feat(theme): add --header-background-color CSS variable for image-free headers
Fix typo (backgroun-color → background-color) in .container-header that silently broke the color fallback. Split background shorthand into discrete background-color / background-image properties so the color renders when --header-background-image is set to none. Add --header-background-color to all four theme files (dark.standard, light.standard, dark.custom, light.custom). Regenerate minified CSS. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14193,10 +14193,11 @@ fieldset>* {
|
|||||||
|
|
||||||
.container-header {
|
.container-header {
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
background: var(--header-background-image, url('../../../../../../media/templates/site/mokoonyx/images/bg.svg'));
|
background-color: var(--header-background-color, #adadad);
|
||||||
|
background-image: var(--header-background-image, url('../../../../../../media/templates/site/mokoonyx/images/bg.svg'));
|
||||||
background-size: var(--header-background-size, auto);
|
background-size: var(--header-background-size, auto);
|
||||||
box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.03) inset;
|
|
||||||
background-repeat: var(--header-background-repeat, repeat);
|
background-repeat: var(--header-background-repeat, repeat);
|
||||||
|
box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.03) inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sticky header: override z-index to stay above all content */
|
/* Sticky header: override z-index to stay above all content */
|
||||||
|
|||||||
2
src/media/css/template.min.css
vendored
2
src/media/css/template.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -210,6 +210,7 @@ color-scheme: dark;
|
|||||||
|
|
||||||
|
|
||||||
/* ===== HEADER BACKGROUND ===== */
|
/* ===== HEADER BACKGROUND ===== */
|
||||||
|
--header-background-color: #1a1f2b;
|
||||||
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
||||||
--header-background-attachment: fixed;
|
--header-background-attachment: fixed;
|
||||||
--header-background-repeat: repeat;
|
--header-background-repeat: repeat;
|
||||||
|
|||||||
2
src/media/css/theme/dark.standard.min.css
vendored
2
src/media/css/theme/dark.standard.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -209,6 +209,7 @@ color-scheme: light;
|
|||||||
|
|
||||||
|
|
||||||
/* ===== HEADER BACKGROUND ===== */
|
/* ===== HEADER BACKGROUND ===== */
|
||||||
|
--header-background-color: #adadad;
|
||||||
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
||||||
--header-background-attachment: fixed;
|
--header-background-attachment: fixed;
|
||||||
--header-background-repeat: repeat;
|
--header-background-repeat: repeat;
|
||||||
|
|||||||
2
src/media/css/theme/light.standard.min.css
vendored
2
src/media/css/theme/light.standard.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -210,6 +210,7 @@ color-scheme: dark;
|
|||||||
|
|
||||||
|
|
||||||
/* ===== HEADER BACKGROUND ===== */
|
/* ===== HEADER BACKGROUND ===== */
|
||||||
|
--header-background-color: #1a1f2b;
|
||||||
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
||||||
--header-background-attachment: fixed;
|
--header-background-attachment: fixed;
|
||||||
--header-background-repeat: repeat;
|
--header-background-repeat: repeat;
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ color-scheme: light;
|
|||||||
|
|
||||||
|
|
||||||
/* ===== HEADER BACKGROUND ===== */
|
/* ===== HEADER BACKGROUND ===== */
|
||||||
|
--header-background-color: #adadad;
|
||||||
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
--header-background-image: url('../../../../../../media/templates/site/mokoonyx/images/bg.svg');
|
||||||
--header-background-attachment: fixed;
|
--header-background-attachment: fixed;
|
||||||
--header-background-repeat: repeat;
|
--header-background-repeat: repeat;
|
||||||
|
|||||||
Reference in New Issue
Block a user