style: refine CHRNX canvas and hero
This commit is contained in:
3 files changed
+111
-19
No files matched your search
+29
-19
@@ -51,14 +51,18 @@ html[data-theme="light"] {
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
body,
|
||||
html[data-theme="dark"] body,
|
||||
html[data-theme="light"] body,
|
||||
:root:not([data-theme]) body {
|
||||
background-color: var(--chrnx-bg);
|
||||
background-image:
|
||||
radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--chrnx-accent) 14%, transparent), transparent 34rem),
|
||||
linear-gradient(var(--chrnx-line) 1px, transparent 1px),
|
||||
linear-gradient(90deg, var(--chrnx-line) 1px, transparent 1px);
|
||||
background-position: 0 0, center, center;
|
||||
background-size: auto, 3rem 3rem, 3rem 3rem;
|
||||
radial-gradient(circle at 90% 6%, color-mix(in srgb, var(--chrnx-accent) 16%, transparent), transparent 34rem),
|
||||
radial-gradient(circle at 8% 42%, color-mix(in srgb, var(--chrnx-green) 8%, transparent), transparent 30rem),
|
||||
linear-gradient(165deg, color-mix(in srgb, var(--chrnx-surface) 22%, transparent), transparent 42%, color-mix(in srgb, var(--chrnx-accent) 5%, transparent));
|
||||
background-position: center top, center 36rem, center;
|
||||
background-repeat: no-repeat, no-repeat, no-repeat;
|
||||
background-size: 100% 48rem, 100% 54rem, 100% 100%;
|
||||
color: var(--chrnx-text);
|
||||
}
|
||||
|
||||
@@ -109,12 +113,14 @@ footer a {
|
||||
border-top: 1px solid var(--chrnx-line);
|
||||
}
|
||||
|
||||
.chrnx-home-intro {
|
||||
.chrnx-home > .chrnx-home-intro {
|
||||
position: relative;
|
||||
display: grid;
|
||||
min-height: min(74vh, 48rem);
|
||||
box-sizing: border-box;
|
||||
min-height: min(64vh, 42rem);
|
||||
align-content: center;
|
||||
padding-right: clamp(0rem, 15vw, 12rem);
|
||||
padding-block: clamp(3rem, 5vh, 4rem);
|
||||
padding-right: clamp(0rem, 12vw, 9rem);
|
||||
}
|
||||
|
||||
.chrnx-home-intro::before {
|
||||
@@ -141,17 +147,18 @@ footer a {
|
||||
}
|
||||
|
||||
.chrnx-home-intro h1 {
|
||||
max-width: 13ch;
|
||||
max-width: 18ch;
|
||||
margin: 0;
|
||||
font-size: var(--wp--preset--font-size--display);
|
||||
font-size: clamp(2.35rem, 1.75rem + 2.8vw, 4.25rem);
|
||||
line-height: 1.08;
|
||||
letter-spacing: -0.035em;
|
||||
}
|
||||
|
||||
.chrnx-home-intro p {
|
||||
max-width: 58ch;
|
||||
margin-top: 1.5rem;
|
||||
margin-top: 1.25rem;
|
||||
color: var(--chrnx-muted);
|
||||
font-size: var(--wp--preset--font-size--large);
|
||||
font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.5rem);
|
||||
}
|
||||
|
||||
.chrnx-featured-stories > h2,
|
||||
@@ -723,10 +730,6 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
|
||||
@media (max-width: 599px) {
|
||||
|
||||
body {
|
||||
background-size: auto, 2rem 2rem, 2rem 2rem;
|
||||
}
|
||||
|
||||
.chrnx-home > section,
|
||||
.chrnx-home > .wp-block-group,
|
||||
.chrnx-home > .wp-block-chrnx-featured-stories,
|
||||
@@ -735,11 +738,18 @@ html[data-theme="light"] .chrnx-home-music p {
|
||||
padding-block: 3.5rem;
|
||||
}
|
||||
|
||||
.chrnx-home-intro {
|
||||
min-height: 38rem;
|
||||
.chrnx-home > .chrnx-home-intro {
|
||||
min-height: auto;
|
||||
max-height: 34rem;
|
||||
align-content: start;
|
||||
padding-block: 2.5rem;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.chrnx-home-intro h1 {
|
||||
font-size: clamp(2.2rem, 10vw, 2.75rem);
|
||||
}
|
||||
|
||||
.chrnx-home-intro::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user