fix: harden CHRNX character stage contracts
This commit is contained in:
3 files changed
+173
-11
No files matched your search
@@ -1092,6 +1092,7 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
--chrnx-character-halo: color-mix(in srgb, var(--chrnx-character-accent) 30%, transparent);
|
||||
--chrnx-character-wash: color-mix(in srgb, var(--chrnx-character-accent) 12%, transparent);
|
||||
--chrnx-character-shadow: drop-shadow(0 1.75rem 1.5rem rgb(0 0 0 / 32%));
|
||||
--chrnx-character-copy-surface: rgb(21 27 35 / 88%);
|
||||
position: relative;
|
||||
display: grid;
|
||||
box-sizing: border-box;
|
||||
@@ -1153,6 +1154,20 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
color: var(--chrnx-text);
|
||||
}
|
||||
|
||||
.chrnx-character-stage__content::before {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
inset: 0;
|
||||
background-color: var(--chrnx-character-copy-surface);
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__content > :not(.chrnx-responsive-portrait) {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__content > :first-child {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
@@ -1242,17 +1257,18 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
.chrnx-music-landing .chrnx-character-stage__content > .chrnx-responsive-portrait:has(.chrnx-character-stage__collage) {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
inset: 0 auto 0 0;
|
||||
width: calc(100% / 0.55);
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0 !important;
|
||||
opacity: 0.28;
|
||||
}
|
||||
|
||||
.chrnx-music-landing .chrnx-character-stage__content > h2,
|
||||
.chrnx-music-landing .chrnx-character-stage__content > p {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.chrnx-music-landing .chrnx-character-stage__collage {
|
||||
@@ -1283,11 +1299,21 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
|
||||
.chrnx-home-music .chrnx-character-stage,
|
||||
.chrnx-music-landing .chrnx-character-stage {
|
||||
--chrnx-character-copy-surface: rgb(13 17 23 / 86%);
|
||||
background-color: #0d1117;
|
||||
background-image: linear-gradient(125deg, #0d1117 0 45%, rgb(84 38 15 / 72%) 100%);
|
||||
color: #e6edf3;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .chrnx-character-stage {
|
||||
--chrnx-character-copy-surface: rgb(255 253 247 / 90%);
|
||||
}
|
||||
|
||||
html[data-theme="light"] .chrnx-home-music .chrnx-character-stage,
|
||||
html[data-theme="light"] .chrnx-music-landing .chrnx-character-stage {
|
||||
--chrnx-character-copy-surface: rgb(13 17 23 / 86%);
|
||||
}
|
||||
|
||||
.chrnx-home-music .chrnx-character-stage__content,
|
||||
.chrnx-home-music .chrnx-character-stage__content h2,
|
||||
.chrnx-home-music .chrnx-character-stage__content p,
|
||||
@@ -1385,6 +1411,11 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
object-position: 62% center;
|
||||
opacity: 0.34;
|
||||
}
|
||||
|
||||
.chrnx-music-landing .chrnx-character-stage__content > .chrnx-responsive-portrait:has(.chrnx-character-stage__collage) {
|
||||
width: 100%;
|
||||
height: calc(100% + clamp(20rem, 100vw, 34rem));
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
Reference in new issue
Block a user