mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
fix: render native select option lists in the dark palette
This commit is contained in:
1 parent
0d41b6be54
commit
59b2637fb7
3 files changed
+33
No files matched your search
Vendored
+22
@@ -14,6 +14,8 @@
|
||||
--text-primary: #e8eaed;
|
||||
--text-secondary: rgba(232, 234, 237, 0.5);
|
||||
--text-dim: rgba(232, 234, 237, 0.3);
|
||||
/* Opaque surface for browser-painted menus, which cannot use --glass-bg. */
|
||||
--menu-bg: #12121c;
|
||||
--font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
|
||||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
--panel-radius: 16px;
|
||||
@@ -69,6 +71,26 @@
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Native `<select>` popups are painted by the browser, not by this sheet: the
|
||||
closed control inherits its panel skin, but the option list falls back to the
|
||||
platform's light palette unless the control declares a scheme. Declare it on
|
||||
the controls rather than on :root so the app keeps its own hand-tuned
|
||||
scrollbar and input skins, and set the option colors explicitly because the
|
||||
popup surface is not themed on every platform. */
|
||||
select {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
select option,
|
||||
select optgroup {
|
||||
background-color: var(--menu-bg);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
select option:disabled {
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
|
||||
Reference in new issue
Block a user