Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
quote_type = single

[*.css]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
- run: npm ci
- run: npm run lint
37 changes: 37 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"extends": [
"stylelint-config-standard"
],
"rules": {
"at-rule-no-unknown": true,
"block-no-empty": true,
"color-hex-length": "short",
"color-named": "never",
"color-no-invalid-hex": true,
"comment-no-empty": true,
"comment-whitespace-inside": "always",
"custom-property-pattern": null,
"declaration-block-no-duplicate-properties": true,
"declaration-no-important": null,
"declaration-property-unit-allowed-list": { "line-height": ["px"]},
"font-family-name-quotes": "always-where-recommended",
"font-family-no-duplicate-names": true,
"font-weight-notation": ["numeric", { "ignore": ["relative"] }],
"function-url-quotes": "never",
"no-descending-specificity": null,
"no-invalid-double-slash-comments": true,
"no-irregular-whitespace": true,
"rule-empty-line-before": ["always", { "except": ["after-single-line-comment", "first-nested"], "ignore": ["after-comment"] }],
"selector-attribute-quotes": "always",
"selector-class-pattern": null,
"selector-id-pattern": null,
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": true,
"selector-type-case": "lower",
"selector-type-no-unknown": true,
"shorthand-property-no-redundant-values": true,
"unit-no-unknown": true,
"value-keyword-case": "lower"
}
}
15 changes: 7 additions & 8 deletions css/camp/camp.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.pageFrameView #mousehuntContainer.PageCamp .trapImageView {
background: rgb(160, 160, 160) !important;
background: linear-gradient(180deg, rgb(218, 218, 218) 0%, rgba(160, 160, 160, 1) 25%, rgba(136, 136, 136, 1) 65%, rgb(66, 66, 66) 95%) !important;
background: rgb(160 160 160) linear-gradient(
180deg, rgb(218 218 218) 0%,
rgb(160 160 160) 25%,
rgb(136 136 136) 65%,
rgb(66 66 66) 95%
) !important;
border: 2px solid var(--mhdm-dark6);
box-shadow: none !important;
}

.pageFrameView #mousehuntContainer.PageCamp .campPage-trap-itemStats .campPage-trap-trapStat .value {
background: var(--mhdm-xlbrown);
}

.pageFrameView #mousehuntContainer.PageCamp .campPage-trap {
border: 0;
box-shadow: none;
Expand Down Expand Up @@ -104,9 +104,8 @@

.pageFrameView #mousehuntContainer.PageCamp .campPage-trap-friendContainer span {
color: var(--mhdm-brown);

}

.pageFrameView #mousehuntContainer.PageCamp .campPage-trap-friendContainer .campPage-trap-friendContainer-toggleFriendsButton-arrow {
border-color: var(--mhdm-white) transparent transparent transparent;
}
}
15 changes: 0 additions & 15 deletions css/camp/hud.css

This file was deleted.

90 changes: 14 additions & 76 deletions css/camp/journal.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* mobile / simple camp */

/* Mobile / simple camp */
.MobilePageCamp .pageFrameView .pageFrameView-content {
background: var(--mhdm-dark5);
}
Expand All @@ -14,29 +13,20 @@
color: var(--mhdm-blue);
}



/* normal camp page */

/* Normal camp page */
.pageFrameView #mousehuntContainer.PageCamp,
.pageFrameView #mousehuntContainer.PageJournal {
background: var(--mhdm-dark5);
}

/* .pageFrameView #mousehuntContainer.PageCamp .mousehuntHud-marbleDrawer {
background: url(https://www.mousehuntgame.com/images/ui/hud/suede.jpg?asset_cache_version=2) repeat-y;
background-size: 101% 101%;
background-position: center;
} */

.pageFrameView #mousehuntContainer.PageCamp .campPage-tabs-tabContentContainer {
background: var(--mhdm-tertiaryDark);
border: 0;
box-shadow: none;
position: relative;
}

.pageFrameView #mousehuntContainer.PageCamp .campPage-tabs-tabContent[data-tab=journal] {
.pageFrameView #mousehuntContainer.PageCamp .campPage-tabs-tabContent[data-tab="journal"] {
background: transparent;
}

Expand All @@ -48,7 +38,6 @@
opacity: 0.9;
}


.pageFrameView #mousehuntContainer.PageCamp .campPage-tabs-tabHeader.active span {
background: var(--mhdm-tertiaryDark);
opacity: 1;
Expand All @@ -58,76 +47,25 @@
color: var(--mhdm-blue);
}

/* adventure book */

.pageFrameView #mousehuntContainer.PageCamp .adventureBookBanner-adventureName,
.pageFrameView #mousehuntContainer.PageCamp .adventureBookBanner-goalPadding {
background-color: var(--mhdm-lbrown);
}

.pageFrameView #mousehuntContainer.PageCamp .adventureBookBanner {
position: relative;
}

.pageFrameView #mousehuntContainer.PageCamp .adventureBookBanner::before {
content: "";
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: var(--mhdm-dimming-filter);
pointer-events: none;
z-index: 2;
}

/* journal */

/* Journal */
.pageFrameView #mousehuntContainer.PageCamp .journal {
position: relative
}

.pageFrameView #mousehuntContainer.PageCamp .journal::before,
.pageFrameView #mousehuntContainer.PageJournal .journal::before {
/* dimming filter on journal */
content: "";
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: var(--mhdm-dimming-filter);
pointer-events: none;
z-index: 2;
}

.pageFrameView #mousehuntContainer.PageCamp .journal .content .journalbody .journaltext {
font-size: 12px;
font-weight: normal;
.pageFrameView #mousehuntContainer.PageCamp .journal .content .journalbody .journaltext,
.pageFrameView #mousehuntContainer.PageJournal .journal .content .journalbody .journaltext,
.pageFrameView #mousehuntContainer.PageCamp .journal .content .journalbody .journaldate,
.pageFrameView #mousehuntContainer.PageJournal .journal .content .journalbody .journaldate {
color: var(--mhdm-black);
}

/* fix transparent journal content bg for some themes with white child element */
/* Fix transparent journal content bg for some themes with white child elements. */
.pageFrameView #mousehuntContainer.PageCamp .journal .content .journalEntries,
.pageFrameView #mousehuntContainer.PageJournal .journal .content .journalEntries {
background: var(--mhdm-journal-bg)
background: var(--mhdm-dark7);
}

/* .pageFrameView #mousehuntContainer.PageCamp .journal .content .catchfailure {
background: url('https://www.mousehuntgame.com/images/ui/journal/steal.gif?asset_cache_version=2') no-repeat 8px 8px;
.pageFrameView #mousehuntContainer.PageCamp .journal a,
.pageFrameView #mousehuntContainer.PageJournal .journal a {
color: var(--mhdm-default-blue);
}

.pageFrameView #mousehuntContainer.PageCamp .journal .content .catchfailuredamage {
background: #b97979 url('https://www.mousehuntgame.com/images/ui/journal/pillage.gif?asset_cache_version=2') no-repeat 8px 8px;
}

.pageFrameView #mousehuntContainer.PageCamp .journal .content .catchsuccess {
background-color: #f5f59d;
}

.pageFrameView #mousehuntContainer.PageCamp .journal .content .catchsuccessloot {
background-color: #e2d880;
} */
15 changes: 7 additions & 8 deletions css/trap.css → css/camp/trap.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
}

.pageFrameView .campPage-trap-itemStats .campPage-trap-trapStat .value {
background: var(--mhdm-xlbrown);
background: var(--mhdm-lbrown);
}

/* XELLIS DARKMODE */
/*** Trap Selector ***/
/* Trap Selector */
.pageFrameView .campPage-trap-itemBrowser-favorite-item-image-quantity {
color: var(--mhdm-dark5);
}

.pageFrameView .campPage-trap-itemBrowser-item-powerType:after {
.pageFrameView .campPage-trap-itemBrowser-item-powerType::after {
color: var(--mhdm-text-normal);
}

Expand Down Expand Up @@ -155,7 +154,7 @@
}

.pageFrameView .campPage-quests-objective-progressBar span {
background: #c4b200;
background: var(--mhdm-yellow-self);
box-shadow: none;
}

Expand All @@ -171,7 +170,7 @@
}

.pageFrameView .campPage-quests-footer-lny {
color: red
color: var(--mhdm-text-danger)
}

.pageFrameView .campPage-quests-objective-container.locked {
Expand Down Expand Up @@ -217,5 +216,5 @@
.pageFrameView .PageCamp .campPage-trap-itemBrowser-items .loading,
.pageFrameView .PageCamp .campPage-tabs-tabContent-loading,
.pageFrameView .PageCamp .campPage-trap-friendList.loading .campPage-trap-friendList-loading {
filter: brightness(var(--mhdm-loader-brightness));
}
filter: brightness(0.2);
}
Loading