style: apply CHRNX character-led sections
This commit is contained in:
3 files changed
+643
-8
No files matched your search
+318
-8
@@ -754,15 +754,12 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
}
|
||||
|
||||
.chrnx-topic-hero {
|
||||
display: grid;
|
||||
min-height: 30rem;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr);
|
||||
align-items: end;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
min-height: 0;
|
||||
overflow: visible;
|
||||
margin-bottom: 3rem;
|
||||
border: 1px solid var(--chrnx-line);
|
||||
border-radius: calc(var(--chrnx-radius) * 1.5);
|
||||
background: linear-gradient(135deg, var(--chrnx-surface), var(--chrnx-accent-soft));
|
||||
border: 0;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.chrnx-topic-hero__content {
|
||||
@@ -1087,3 +1084,316 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared character-led section frame. */
|
||||
|
||||
.chrnx-character-stage {
|
||||
--chrnx-character-accent: var(--chrnx-accent);
|
||||
--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%));
|
||||
position: relative;
|
||||
display: grid;
|
||||
box-sizing: border-box;
|
||||
min-height: clamp(30rem, 44vw, 38rem);
|
||||
grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
|
||||
isolation: isolate;
|
||||
overflow: clip;
|
||||
border: 1px solid color-mix(in srgb, var(--chrnx-character-accent) 32%, var(--chrnx-line));
|
||||
border-radius: calc(var(--chrnx-radius) * 1.5);
|
||||
background-color: var(--chrnx-surface);
|
||||
background-image: linear-gradient(125deg, var(--chrnx-surface) 0 45%, var(--chrnx-character-wash) 100%);
|
||||
box-shadow: var(--chrnx-shadow);
|
||||
color: var(--chrnx-text);
|
||||
}
|
||||
|
||||
.chrnx-character-stage__atmosphere {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__atmosphere::before {
|
||||
position: absolute;
|
||||
top: 8%;
|
||||
right: -4%;
|
||||
width: min(48rem, 62%);
|
||||
aspect-ratio: 1;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, var(--chrnx-character-halo) 0 24%, transparent 68%);
|
||||
content: "";
|
||||
filter: blur(0.2rem);
|
||||
}
|
||||
|
||||
.chrnx-character-stage__atmosphere::after {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image:
|
||||
linear-gradient(112deg, transparent 0 49%, var(--chrnx-character-wash) 49.5% 50.5%, transparent 51%),
|
||||
linear-gradient(28deg, transparent 0 72%, color-mix(in srgb, var(--chrnx-character-accent) 18%, transparent) 72.5% 74%, transparent 74.5%),
|
||||
radial-gradient(ellipse at 78% 100%, rgb(0 0 0 / 20%) 0 12%, transparent 42%);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.chrnx-character-stage__content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-content: center;
|
||||
align-self: stretch;
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
margin: 0 !important;
|
||||
padding: clamp(2rem, 5vw, 5rem);
|
||||
color: var(--chrnx-text);
|
||||
}
|
||||
|
||||
.chrnx-character-stage__content > :first-child {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__content > :last-child {
|
||||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__art {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
align-self: end;
|
||||
align-items: end;
|
||||
justify-content: center;
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__art::before {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 5%;
|
||||
bottom: -1.25rem;
|
||||
left: 5%;
|
||||
height: 4.5rem;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(ellipse, rgb(0 0 0 / 38%), transparent 68%);
|
||||
content: "";
|
||||
filter: blur(0.55rem);
|
||||
}
|
||||
|
||||
.chrnx-character-stage__art > .chrnx-responsive-portrait {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
align-items: end;
|
||||
justify-content: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__art img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: clamp(28rem, 44vw, 38rem);
|
||||
object-fit: contain;
|
||||
object-position: center bottom;
|
||||
filter: var(--chrnx-character-shadow) saturate(0.96) contrast(1.04);
|
||||
}
|
||||
|
||||
.chrnx-character-stage__secondary-art {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 27%;
|
||||
bottom: 0;
|
||||
width: min(29%, 18rem);
|
||||
height: auto;
|
||||
opacity: 0.34;
|
||||
filter: saturate(0.55) contrast(1.08) drop-shadow(0 1rem 2rem rgb(0 0 0 / 24%));
|
||||
}
|
||||
|
||||
.chrnx-character-stage__atmosphere > .chrnx-responsive-portrait {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__atmosphere .chrnx-character-stage__collage {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: 68% center;
|
||||
filter: saturate(0.68) contrast(1.08);
|
||||
opacity: 0.46;
|
||||
}
|
||||
|
||||
.chrnx-music-landing .chrnx-character-stage__content > .chrnx-responsive-portrait:has(.chrnx-character-stage__collage) {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
opacity: 0.28;
|
||||
}
|
||||
|
||||
.chrnx-music-landing .chrnx-character-stage__content > h2,
|
||||
.chrnx-music-landing .chrnx-character-stage__content > p {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.chrnx-music-landing .chrnx-character-stage__collage {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
filter: saturate(0.72) contrast(1.08);
|
||||
}
|
||||
|
||||
.chrnx-home-projects .chrnx-character-stage,
|
||||
.is-topic-code .chrnx-character-stage {
|
||||
--chrnx-character-accent: #59c3c3;
|
||||
}
|
||||
|
||||
.is-topic-research .chrnx-character-stage {
|
||||
--chrnx-character-accent: #a5d66a;
|
||||
}
|
||||
|
||||
.is-topic-literature .chrnx-character-stage {
|
||||
--chrnx-character-accent: #b88ad9;
|
||||
}
|
||||
|
||||
.chrnx-home-music .chrnx-character-stage,
|
||||
.chrnx-music-landing .chrnx-character-stage,
|
||||
.is-topic-music .chrnx-character-stage {
|
||||
--chrnx-character-accent: #d36b3f;
|
||||
}
|
||||
|
||||
.chrnx-home-music .chrnx-character-stage,
|
||||
.chrnx-music-landing .chrnx-character-stage {
|
||||
background-color: #0d1117;
|
||||
background-image: linear-gradient(125deg, #0d1117 0 45%, rgb(84 38 15 / 72%) 100%);
|
||||
color: #e6edf3;
|
||||
}
|
||||
|
||||
.chrnx-home-music .chrnx-character-stage__content,
|
||||
.chrnx-home-music .chrnx-character-stage__content h2,
|
||||
.chrnx-home-music .chrnx-character-stage__content p,
|
||||
.chrnx-music-landing .chrnx-character-stage__content,
|
||||
.chrnx-music-landing .chrnx-character-stage__content h2,
|
||||
.chrnx-music-landing .chrnx-character-stage__content p,
|
||||
.chrnx-music-landing .chrnx-character-stage__content a {
|
||||
color: #e6edf3;
|
||||
}
|
||||
|
||||
.chrnx-podcast-landing .chrnx-character-stage,
|
||||
.is-topic-podcasts .chrnx-character-stage,
|
||||
.is-topic-silicon-ranch .chrnx-character-stage {
|
||||
--chrnx-character-accent: #58a7d8;
|
||||
}
|
||||
|
||||
.chrnx-about .chrnx-character-stage,
|
||||
.is-topic-life .chrnx-character-stage {
|
||||
--chrnx-character-accent: #e0b75b;
|
||||
}
|
||||
|
||||
.is-topic-gaming .chrnx-character-stage {
|
||||
--chrnx-character-accent: #da7b45;
|
||||
}
|
||||
|
||||
.chrnx-topic-hero__fallback {
|
||||
position: absolute;
|
||||
right: 9%;
|
||||
bottom: 0;
|
||||
width: min(36%, 24rem);
|
||||
aspect-ratio: 0.78;
|
||||
border: 1px solid color-mix(in srgb, var(--chrnx-character-accent) 46%, transparent);
|
||||
border-bottom: 0;
|
||||
border-radius: 48% 48% 0 0;
|
||||
background:
|
||||
radial-gradient(circle at 50% 26%, var(--chrnx-character-halo) 0 14%, transparent 15%),
|
||||
linear-gradient(145deg, var(--chrnx-character-wash), transparent 62%);
|
||||
box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 18%);
|
||||
}
|
||||
|
||||
.chrnx-character-facets {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
opacity: 0.84;
|
||||
}
|
||||
|
||||
.chrnx-character-facets .chrnx-section-portrait {
|
||||
filter: saturate(0.72) contrast(1.02) drop-shadow(0 1rem 1.25rem rgb(0 0 0 / 20%));
|
||||
}
|
||||
|
||||
@media (max-width: 780px) {
|
||||
|
||||
.chrnx-topic-hero {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.chrnx-character-stage {
|
||||
min-height: 0;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto auto;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__content {
|
||||
align-self: start;
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
padding: clamp(1.5rem, 7vw, 3rem);
|
||||
}
|
||||
|
||||
.chrnx-character-stage__art {
|
||||
width: 76%;
|
||||
height: clamp(20rem, 100vw, 34rem);
|
||||
justify-self: end;
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__art img {
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__secondary-art {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__atmosphere::before {
|
||||
top: auto;
|
||||
right: -18%;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.chrnx-character-stage__atmosphere .chrnx-character-stage__collage {
|
||||
object-position: 62% center;
|
||||
opacity: 0.34;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
.chrnx-character-stage,
|
||||
.chrnx-character-stage *,
|
||||
.chrnx-character-stage::before,
|
||||
.chrnx-character-stage::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user