Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 Minor issues from style removals #453

Merged
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
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
2 changes: 1 addition & 1 deletion src/legacy-styles/components/_chat.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.forbidden-lands.chat-item {
background: var(--color-background);
background: var(--color-theme-background);
border-radius: 3px;
color: var(--color-theme-text);
font-family: var(--font-body);
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
10 changes: 5 additions & 5 deletions src/legacy-styles/system/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}

option {
background: var(--color-background);
background: var(--color-theme-background);
}

details {
Expand Down Expand Up @@ -174,14 +174,14 @@

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

input[type="number"],
input[type="text"],
select,
textarea {
background: var(--color-background);
background: var(--color-theme-background);
border: 1px solid var(--color-border);
border-radius: 3px;
box-shadow: inset 0 0 6px var(--color-theme-gray-200);
Expand Down Expand Up @@ -282,8 +282,8 @@

&:nth-child(odd) button:focus,
&:nth-child(odd) button:hover {
background: var(--color-background);
color: var(--color-theme-gray-600);
background: var(--color-theme-background);
color: var(--color-theme-text);
}

img {
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
Loading