Skip to content

Commit 7ed4c50

Browse files
committed
fix: 🐛 Minor issues from style removals
1 parent 9fef0ec commit 7ed4c50

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

Diff for: src/forbidden-lands.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ Hooks.once("init", () => {
7676
if (game.settings.get("forbidden-lands", "removeBorders"))
7777
$("html").addClass("no-borders");
7878

79-
if (game.settings.get("forbidden-lands", "darkmode"))
79+
if (
80+
Number(game.version) < 12 &&
81+
game.settings.get("forbidden-lands", "darkmode")
82+
)
8083
$("body").addClass("theme-dark");
8184
});
8285

Diff for: src/legacy-styles/components/_chat.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.forbidden-lands.chat-item {
2-
background: var(--color-background);
2+
background: var(--color-theme-background);
33
border-radius: 3px;
44
color: var(--color-theme-text);
55
font-family: var(--font-body);

Diff for: src/legacy-styles/components/_dialog.scss

+5-6
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@
9090
}
9191

9292
button {
93-
background: #eee;
94-
padding: 0.3em 2em;
95-
font-weight: normal;
96-
border: 2px groove #e0e0e0;
93+
background: var(--color-theme-gray-400);
94+
padding: 0.3em 32px;
95+
font-weight: 400;
96+
border: 2px solid var(--color-theme-gray-400);
9797
width: 100%;
9898
display: flex;
9999
justify-content: center;
@@ -102,8 +102,7 @@
102102
&:hover,
103103
&:focus {
104104
box-shadow: none;
105-
border: 2px groove var(--color-theme-alt-600);
106-
background: var(--color-theme-alt-600);
105+
background: var(--color-theme-gray-200);
107106
}
108107

109108
&:active {

Diff for: src/legacy-styles/system/_main.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
option {
33-
background: var(--color-background);
33+
background: var(--color-theme-background);
3434
}
3535

3636
details {
@@ -174,14 +174,14 @@
174174

175175
button:focus,
176176
button:hover {
177-
background: var(--color-theme-alt-600);
177+
background: var(--color-theme-gray-200);
178178
}
179179

180180
input[type="number"],
181181
input[type="text"],
182182
select,
183183
textarea {
184-
background: var(--color-background);
184+
background: var(--color-theme-background);
185185
border: 1px solid var(--color-border);
186186
border-radius: 3px;
187187
box-shadow: inset 0 0 6px var(--color-theme-gray-200);
@@ -282,8 +282,8 @@
282282

283283
&:nth-child(odd) button:focus,
284284
&:nth-child(odd) button:hover {
285-
background: var(--color-background);
286-
color: var(--color-theme-gray-600);
285+
background: var(--color-theme-background);
286+
color: var(--color-theme-text);
287287
}
288288

289289
img {

Diff for: src/system/core/styles/variables.scss

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ body {
55
--color-theme-contrast: var(--color-theme-gray-200);
66
--color-theme-accent: #a00404;
77
--color-theme-gray-200: #dddddd;
8+
--color-theme-gray-400: #999999;
89
--color-theme-gray-600: #707070;
910
--color-theme-gray-800: #333333;
1011
--color-theme-alt-200: #ffb994;

0 commit comments

Comments
 (0)