fix: use semantic color for prayer section backgrounds in light mode
All checks were successful
CI / update (push) Successful in 1m27s

Replace var(--accent-dark) with var(--color-bg-secondary) which maps
to the correct color in both modes, removing dead @media overrides
that referenced the undefined var(--accent-light). Also match rosary
cross fill to Benedictus medal color in light mode.
This commit is contained in:
2026-02-04 13:01:51 +01:00
parent 9da0a2740d
commit d65886b4e7
4 changed files with 10 additions and 26 deletions

View File

@@ -31,7 +31,7 @@ div.gebet{
} }
.gebet_wrapper{ .gebet_wrapper{
padding: 1em; padding: 1em;
background-color: var(--accent-dark); background-color: var(--color-bg-secondary);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
max-width: 600px; max-width: 600px;
} }
@@ -51,14 +51,6 @@ a.gebet-link {
color: inherit; color: inherit;
display: block; display: block;
} }
@media(prefers-color-scheme: light){
.gebet_wrapper{
background-color: var(--accent-light);
}
:global(.gebet v:lang(la)){
color: black;
}
}
</style> </style>
{#if href} {#if href}

View File

@@ -102,7 +102,7 @@ h1 {
} }
.gebet-wrapper { .gebet-wrapper {
padding: 1.5em; padding: 1.5em;
background-color: var(--accent-dark); background-color: var(--color-bg-secondary);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} }
.intro { .intro {
@@ -110,14 +110,6 @@ h1 {
font-style: italic; font-style: italic;
text-align: center; text-align: center;
} }
@media(prefers-color-scheme: light) {
.gebet-wrapper {
background-color: var(--accent-light);
}
:global(.gebet v:lang(la)) {
color: black;
}
}
</style> </style>
<div class="container"> <div class="container">

View File

@@ -856,18 +856,12 @@ onMount(() => {
scroll-snap-align: start; scroll-snap-align: start;
padding: 2rem; padding: 2rem;
margin-bottom: 2rem; margin-bottom: 2rem;
background: var(--accent-dark); background: var(--color-bg-secondary);
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
position: relative; position: relative;
} }
@media(prefers-color-scheme: light) {
.prayer-section {
background: var(--accent-light);
}
}
.prayer-section.decade { .prayer-section.decade {
scroll-snap-align: start; scroll-snap-align: start;
min-height: 50vh; /* Only decades need minimum height for scroll-snap */ min-height: 50vh; /* Only decades need minimum height for scroll-snap */
@@ -940,6 +934,12 @@ onMount(() => {
transition: all 0.3s ease; transition: all 0.3s ease;
} }
@media (prefers-color-scheme: light) {
.rosary-visualization :global(.cross-symbol) {
fill: var(--nord3);
}
}
.rosary-visualization :global(.hitboxes) { .rosary-visualization :global(.hitboxes) {
fill: transparent; fill: transparent;
} }

View File

@@ -180,7 +180,7 @@
scroll-snap-align: start; scroll-snap-align: start;
padding: 2rem; padding: 2rem;
margin-bottom: 2rem; margin-bottom: 2rem;
background: var(--accent-dark); background: var(--color-bg-secondary);
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
position: relative; position: relative;