mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
allow default theme to inherit color scheme when nested
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
:where(:root),
|
||||
.wa-theme-default,
|
||||
.wa-light,
|
||||
.wa-dark .wa-invert {
|
||||
.wa-dark .wa-invert,
|
||||
.wa-light .wa-theme-default,
|
||||
.wa-dark .wa-theme-default.wa-invert,
|
||||
.wa-dark .wa-theme-default .wa-invert {
|
||||
/* #region Colors (Light) ~~~~~~~~~~~~~~~~~~~~~ */
|
||||
color-scheme: light;
|
||||
color: var(--wa-color-text-normal);
|
||||
@@ -83,7 +86,10 @@
|
||||
}
|
||||
|
||||
.wa-dark,
|
||||
.wa-invert {
|
||||
.wa-invert,
|
||||
.wa-dark .wa-theme-default,
|
||||
.wa-light .wa-theme-default.wa-invert,
|
||||
.wa-light .wa-theme-default .wa-invert {
|
||||
/* #region Colors (Dark) ~~~~~~~~~~~~~~~~~~~~~~ */
|
||||
color-scheme: dark;
|
||||
color: var(--wa-color-text-normal);
|
||||
|
||||
Reference in New Issue
Block a user