Skip to content

Commit

Permalink
fix: 🐛 Minor issues from style removals
Browse files Browse the repository at this point in the history
  • Loading branch information
aMediocreDad committed Aug 15, 2024
1 parent 9fef0ec commit 2175d21
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion src/forbidden-lands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ Hooks.once("init", () => {
if (game.settings.get("forbidden-lands", "removeBorders"))
$("html").addClass("no-borders");

if (game.settings.get("forbidden-lands", "darkmode"))
if (
Number(game.version) < 12 &&
game.settings.get("forbidden-lands", "darkmode")
)
$("body").addClass("theme-dark");
});

Expand Down
11 changes: 5 additions & 6 deletions src/legacy-styles/components/_dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
}

button {
background: #eee;
padding: 0.3em 2em;
font-weight: normal;
border: 2px groove #e0e0e0;
background: var(--color-theme-gray-400);
padding: 0.3em 32px;
font-weight: 400;
border: 2px solid var(--color-theme-gray-400);
width: 100%;
display: flex;
justify-content: center;
Expand All @@ -102,8 +102,7 @@
&:hover,
&:focus {
box-shadow: none;
border: 2px groove var(--color-theme-alt-600);
background: var(--color-theme-alt-600);
background: var(--color-theme-gray-200);
}

&:active {
Expand Down
2 changes: 1 addition & 1 deletion src/legacy-styles/system/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

button:focus,
button:hover {
background: var(--color-theme-alt-600);
background: var(--color-theme-gray-200);
}

input[type="number"],
Expand Down
1 change: 1 addition & 0 deletions src/system/core/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ body {
--color-theme-contrast: var(--color-theme-gray-200);
--color-theme-accent: #a00404;
--color-theme-gray-200: #dddddd;
--color-theme-gray-400: #999999;
--color-theme-gray-600: #707070;
--color-theme-gray-800: #333333;
--color-theme-alt-200: #ffb994;
Expand Down

0 comments on commit 2175d21

Please sign in to comment.