405 lines
7.4 KiB
SCSS
405 lines
7.4 KiB
SCSS
@use "./base.scss";
|
|
@use "./variables.scss" as *;
|
|
|
|
:root {
|
|
--delve-green: #2f9663;
|
|
--hold-purple: #996de3;
|
|
}
|
|
|
|
body {
|
|
background: #050505;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.page > #quartz-body .page-header {
|
|
display: contents;
|
|
}
|
|
|
|
.page > #quartz-body .page-header > header {
|
|
position: sticky;
|
|
z-index: 20;
|
|
top: 0;
|
|
width: 100vw;
|
|
box-sizing: border-box;
|
|
margin: 0 0 2.5rem calc(50% - 50vw);
|
|
padding: 1.35rem max(1rem, env(safe-area-inset-left));
|
|
background: #050505;
|
|
}
|
|
|
|
.page > #quartz-body .page-header > .popover-hint {
|
|
margin-bottom: 1rem;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media all and ($desktop) {
|
|
.page > #quartz-body .sidebar {
|
|
top: 8.2rem;
|
|
height: calc(100vh - 8.2rem);
|
|
padding-top: 2rem;
|
|
}
|
|
}
|
|
|
|
.page > #quartz-body .explorer-content,
|
|
.page > #quartz-body .explorer-content > .explorer-ul {
|
|
scrollbar-color: var(--secondary) transparent;
|
|
scrollbar-width: thin;
|
|
|
|
&::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track,
|
|
&::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
min-height: 2rem;
|
|
border-radius: 999px;
|
|
background: var(--secondary);
|
|
}
|
|
|
|
&::-webkit-scrollbar-button {
|
|
display: none;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
.delvehold-masthead {
|
|
display: flex;
|
|
flex: 1 1 100%;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.8rem;
|
|
width: 100%;
|
|
min-width: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.delvehold-wordmark {
|
|
font-family: var(--titleFont);
|
|
font-size: clamp(2.4rem, 7vw, 3.5rem);
|
|
letter-spacing: 0.055em;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.delvehold-wordmark-delve {
|
|
color: var(--delve-green);
|
|
font-weight: 100;
|
|
}
|
|
|
|
.delvehold-wordmark-hold {
|
|
color: var(--hold-purple);
|
|
font-weight: 100;
|
|
}
|
|
|
|
.delvehold-wordmark-slash {
|
|
color: #fff;
|
|
font-weight: 100;
|
|
}
|
|
|
|
.article-title,
|
|
article > h1,
|
|
article > h2,
|
|
article > h3 {
|
|
font-family: var(--titleFont);
|
|
font-weight: 100;
|
|
letter-spacing: 0.025em;
|
|
}
|
|
|
|
.delvehold-nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem 1.2rem;
|
|
|
|
a {
|
|
color: var(--darkgray);
|
|
font-family: var(--headerFont);
|
|
font-size: 0.92rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
a:hover,
|
|
a.active {
|
|
color: var(--hold-purple);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.page > #quartz-body .sidebar.left:has(.explorer) {
|
|
z-index: 30;
|
|
}
|
|
|
|
.delvehold-masthead {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
}
|
|
|
|
body[data-slug="index"] {
|
|
background: #050505;
|
|
timeline-scope: --delvehold-enter-delve, --delvehold-enter-hold;
|
|
|
|
&::before,
|
|
&::after {
|
|
content: "";
|
|
position: fixed;
|
|
z-index: 0;
|
|
inset: -35vmax;
|
|
pointer-events: none;
|
|
clip-path: polygon(120% 0, 100% 0, 100% 100%, 100% 100%);
|
|
animation: delvehold-diagonal-wipe linear both;
|
|
animation-range: entry 0% cover 50%;
|
|
}
|
|
|
|
&::before {
|
|
background: color-mix(in srgb, var(--delve-green) 8%, #050505);
|
|
animation-timeline: --delvehold-enter-delve;
|
|
}
|
|
|
|
&::after {
|
|
background: color-mix(in srgb, var(--hold-purple) 9%, #050505);
|
|
animation-timeline: --delvehold-enter-hold;
|
|
}
|
|
|
|
#quartz-root {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.page > #quartz-body {
|
|
grid-template:
|
|
"grid-header"
|
|
"grid-center"
|
|
"grid-footer" / minmax(0, 1fr);
|
|
max-width: 52rem;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.sidebar {
|
|
display: none !important;
|
|
}
|
|
|
|
.delvehold-wordmark-delve {
|
|
--delvehold-delve-gain: 0;
|
|
--delvehold-delve-loss: 0;
|
|
font-weight: calc(100 + var(--delvehold-delve-gain) - var(--delvehold-delve-loss));
|
|
animation: delvehold-delve-gain linear both, delvehold-delve-loss linear both;
|
|
animation-timeline: --delvehold-enter-delve, --delvehold-enter-hold;
|
|
animation-range: entry 0% cover 50%, entry 0% cover 50%;
|
|
}
|
|
|
|
.delvehold-wordmark-hold {
|
|
--delvehold-hold-gain: 0;
|
|
font-weight: calc(100 + var(--delvehold-hold-gain));
|
|
animation: delvehold-hold-gain linear both;
|
|
animation-timeline: --delvehold-enter-hold;
|
|
animation-range: entry 0% cover 50%;
|
|
}
|
|
}
|
|
|
|
.delvehold-mode-boundary {
|
|
height: 1px;
|
|
margin-top: -1px;
|
|
pointer-events: none;
|
|
|
|
&::after {
|
|
content: "";
|
|
position: fixed;
|
|
z-index: 2;
|
|
inset: -35vmax;
|
|
pointer-events: none;
|
|
background: #fff;
|
|
clip-path: polygon(120% 0, 120.15% 0, 100.15% 100%, 100% 100%);
|
|
animation: delvehold-wipe-edge linear both;
|
|
animation-range: entry 0% cover 50%;
|
|
}
|
|
}
|
|
|
|
.delvehold-mode-boundary-delve {
|
|
view-timeline: --delvehold-enter-delve block;
|
|
|
|
&::after {
|
|
animation-timeline: --delvehold-enter-delve;
|
|
}
|
|
}
|
|
|
|
.delvehold-mode-boundary-hold {
|
|
view-timeline: --delvehold-enter-hold block;
|
|
|
|
&::after {
|
|
animation-timeline: --delvehold-enter-hold;
|
|
}
|
|
}
|
|
|
|
.delvehold-landing {
|
|
color: #fff;
|
|
}
|
|
|
|
.delvehold-intro {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
min-height: 72vh;
|
|
padding: 5rem 0;
|
|
|
|
p {
|
|
max-width: 48rem;
|
|
color: #fff;
|
|
font-size: clamp(1.15rem, 2vw, 1.5rem);
|
|
line-height: 1.55;
|
|
}
|
|
}
|
|
|
|
.delvehold-discord-cta {
|
|
align-self: center;
|
|
margin-top: 1.5rem;
|
|
padding: 0.75rem 1.15rem;
|
|
border: 1px solid #fff;
|
|
background: #fff;
|
|
color: #050505;
|
|
font-family: var(--headerFont);
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
|
|
&:hover {
|
|
background: transparent;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
.delvehold-mode-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
min-height: 72vh;
|
|
padding: 5rem 0;
|
|
|
|
h1,
|
|
h2 {
|
|
max-width: 13ch;
|
|
margin: 0 0 2rem;
|
|
color: #fff;
|
|
font-size: clamp(2.8rem, 7vw, 6rem);
|
|
font-weight: 100;
|
|
line-height: 0.96;
|
|
}
|
|
|
|
p:not(.delvehold-mode-label) {
|
|
max-width: 42rem;
|
|
color: #fff;
|
|
font-size: clamp(1rem, 1.5vw, 1.2rem);
|
|
}
|
|
}
|
|
|
|
.delvehold-mode-label {
|
|
margin: 0 0 1.2rem;
|
|
font-family: var(--titleFont);
|
|
font-size: 0.82rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.22em;
|
|
}
|
|
|
|
.delvehold-mode-panel-delve .delvehold-mode-label {
|
|
color: var(--delve-green);
|
|
}
|
|
|
|
.delvehold-mode-panel-hold .delvehold-mode-label {
|
|
color: var(--hold-purple);
|
|
}
|
|
|
|
.delvehold-landing-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1.5rem;
|
|
padding: 3rem 0 8rem;
|
|
|
|
a {
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
@property --delvehold-delve-gain {
|
|
syntax: "<number>";
|
|
inherits: false;
|
|
initial-value: 0;
|
|
}
|
|
|
|
@property --delvehold-delve-loss {
|
|
syntax: "<number>";
|
|
inherits: false;
|
|
initial-value: 0;
|
|
}
|
|
|
|
@property --delvehold-hold-gain {
|
|
syntax: "<number>";
|
|
inherits: false;
|
|
initial-value: 0;
|
|
}
|
|
|
|
@keyframes delvehold-delve-gain {
|
|
from {
|
|
--delvehold-delve-gain: 0;
|
|
}
|
|
|
|
to {
|
|
--delvehold-delve-gain: 700;
|
|
}
|
|
}
|
|
|
|
@keyframes delvehold-delve-loss {
|
|
from {
|
|
--delvehold-delve-loss: 0;
|
|
}
|
|
|
|
to {
|
|
--delvehold-delve-loss: 700;
|
|
}
|
|
}
|
|
|
|
@keyframes delvehold-hold-gain {
|
|
from {
|
|
--delvehold-hold-gain: 0;
|
|
}
|
|
|
|
to {
|
|
--delvehold-hold-gain: 700;
|
|
}
|
|
}
|
|
|
|
@keyframes delvehold-diagonal-wipe {
|
|
from {
|
|
clip-path: polygon(120% 0, 100% 0, 100% 100%, 100% 100%);
|
|
}
|
|
|
|
to {
|
|
clip-path: polygon(0 0, 100% 0, 100% 100%, -20% 100%);
|
|
}
|
|
}
|
|
|
|
@keyframes delvehold-wipe-edge {
|
|
from {
|
|
clip-path: polygon(120% 0, 120.15% 0, 100.15% 100%, 100% 100%);
|
|
}
|
|
|
|
to {
|
|
clip-path: polygon(0 0, 0.15% 0, -19.85% 100%, -20% 100%);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
body[data-slug="index"]::before,
|
|
body[data-slug="index"]::after,
|
|
body[data-slug="index"] .delvehold-wordmark-delve,
|
|
body[data-slug="index"] .delvehold-wordmark-hold,
|
|
.delvehold-mode-boundary::after {
|
|
animation: none;
|
|
}
|
|
}
|