dark: make dropdowns readable (select options + pop menus)
- theme.css: form controls inherit color-scheme per theme, and explicit dark/light overrides so the native <option> popup is not white-on-white; option/optgroup use --c-surface/--c-ink, :checked uses the purple tint - _shared.css: .mu-pop-panel/.mu-pop-item/.mu-pop-btn carry token fallbacks so the theme/lang menus stay readable even if tokens are missing (stale cache) - VERSION 2026.09.27.128
This commit is contained in:
1 parent
14e7ec524f
commit
d155d479ad
5 files changed
+69
-26
No files matched your search
@@ -744,3 +744,13 @@ body:has(.mu-site-footer) .mu-footer { display: none; }
|
||||
.mu-share-btn { justify-content: center; }
|
||||
.mu-share-status { text-align: left; }
|
||||
}
|
||||
|
||||
/* กันกรณีโทเคนโหลดไม่ครบ (เช่น cache เก่า) — dropdown ต้องอ่านออกเสมอ */
|
||||
.mu-pop-panel { background: var(--c-surface, #fff); border-color: var(--c-border, #e7e2f6); }
|
||||
:root[data-theme="dark"] .mu-pop-panel { background: var(--c-surface, #171225); border-color: var(--c-border, #352b52); }
|
||||
.mu-pop-item { color: var(--c-ink, #1f2a44); }
|
||||
:root[data-theme="dark"] .mu-pop-item { color: var(--c-ink, #ece9f7); }
|
||||
.mu-pop-item[data-active="1"] { background: var(--c-tint-purple, #f4f1fb); color: var(--c-brand-ink, #7a4cc0); }
|
||||
:root[data-theme="dark"] .mu-pop-item[data-active="1"] { background: var(--c-tint-purple, #241c3b); color: var(--c-brand-ink, #b892f5); }
|
||||
.mu-pop-btn { background: var(--c-surface, #fff); color: var(--c-brand-ink, #7a4cc0); }
|
||||
:root[data-theme="dark"] .mu-pop-btn { background: var(--c-surface, #171225); color: var(--c-brand-ink, #b892f5); }
|
||||
Reference in new issue
Block a user