Add dark overlay on offline page background for dark theme
Uses ::before pseudo-element with rgba(0,0,0,0.5) overlay only on dark theme. Content stays above via z-index. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,24 @@
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dark theme: overlay to darken the background */
|
||||||
|
:root[data-bs-theme="dark"] .moko-offline-wrap {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-bs-theme="dark"] .moko-offline-wrap::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-bs-theme="dark"] .moko-offline-wrap > * {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* === Centered Card Overlay === */
|
/* === Centered Card Overlay === */
|
||||||
.moko-offline-card {
|
.moko-offline-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user