Skip to content

Commit 48384a0

Browse files
committed
style(web): Support dark mode for submit buttons
Requires a few additional tweaks because simply changing the colors also resets the whole browser default appearance of the inputs. https://developer.mozilla.org/en-US/docs/Web/CSS/appearance Make odd and even table rows lighter in dark mode at the same time.
1 parent 2cd49b3 commit 48384a0

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

server/static/harmony.css

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
--even-fill: #f8f8f8;
1818
--input-fill: var(--page-fill);
1919
--input-border: #999999;
20+
--button-fill: var(--even-fill);
21+
--button-focus: var(--odd-fill);
22+
--button-border: #dcdcdc;
2023
--link: #0066cc;
2124
--link-accent: var(--brand-red);
2225
/* Provider brand colors */
@@ -38,8 +41,9 @@
3841
--theme-text: var(--brand-light);
3942
--nav-accent: var(--brand-orange);
4043
--tooltip-fill: #555555;
41-
--odd-fill: #333333;
42-
--even-fill: #2a2a2a;
44+
--odd-fill: #3d3d3d;
45+
--even-fill: #333333;
46+
--button-border: #666666;
4347
--link: #3399ff;
4448
--link-accent: var(--brand-orange);
4549
}
@@ -182,6 +186,19 @@ input#region-input {
182186
width: 14em;
183187
}
184188

189+
input[type='submit'] {
190+
color: var(--text);
191+
background-color: var(--button-fill);
192+
border: 2px outset var(--button-border);
193+
border-radius: 0.3em;
194+
}
195+
input[type='submit']:active {
196+
border-style: inset;
197+
}
198+
input[type='submit']:focus, input[type='submit']:hover {
199+
background-color: var(--button-focus);
200+
}
201+
185202
/* tables */
186203

187204
table {

0 commit comments

Comments
 (0)