Timeline on a brown branch with leaf-colored decade tags; solid featured entries; admin home in two alternating colors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a397f3eac0
commit
e5c14dffa3
5 changed files with 82 additions and 43 deletions
|
|
@ -18,17 +18,33 @@
|
|||
--tl-accent: var(--color-link);
|
||||
--tl-accent-soft: color-mix(in srgb, var(--tl-accent) 12%, transparent);
|
||||
|
||||
/* The rail is a branch: wood brown, the leaves on it. The one other
|
||||
color outside the palette, with the autumn leaves. */
|
||||
--tl-wood: #7a5236;
|
||||
|
||||
--tl-gutter: 5rem;
|
||||
--tl-rail-x: 1.75rem;
|
||||
--tl-rail-w: 2px;
|
||||
--tl-rail-w: 3px;
|
||||
--tl-branch: 0.75rem;
|
||||
|
||||
color: var(--tl-ink);
|
||||
}
|
||||
|
||||
/* Lighter wood on a dark page. */
|
||||
:root[data-theme="dark"] .site-tl {
|
||||
--tl-wood: #a8805a;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) .site-tl {
|
||||
--tl-wood: #a8805a;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.site-tl {
|
||||
--tl-gutter: 3rem;
|
||||
--tl-rail-x: 1rem;
|
||||
--tl-branch: 0.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -47,13 +63,13 @@
|
|||
bottom: 0;
|
||||
left: var(--tl-rail-x);
|
||||
width: var(--tl-rail-w);
|
||||
background: var(--tl-rail);
|
||||
background: var(--tl-wood);
|
||||
}
|
||||
|
||||
.site-tl__decade--pre::before {
|
||||
background: none;
|
||||
border-left: var(--tl-rail-w) solid var(--tl-rail);
|
||||
opacity: 0.35;
|
||||
border-left: var(--tl-rail-w) solid var(--tl-wood);
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
/* Last decade fades out rather than stopping dead. */
|
||||
|
|
@ -80,20 +96,16 @@
|
|||
padding-block-start: 0.5rem;
|
||||
}
|
||||
|
||||
/* The numeral is a tag on the rail: a dark block with white type,
|
||||
centered on the line, so the rail runs into it and out again.
|
||||
(It used to paint the page's color to hide the rail behind it,
|
||||
which showed as a white box once sections went transparent.) */
|
||||
/* The numeral is a tag off the rail, like a branch: a short slanted
|
||||
stroke of the rail's wood runs up from the line to it, and the line
|
||||
carries on past. Its color is the decade's leaves', set inline
|
||||
(TimelineDecade.tsx). */
|
||||
.site-tl__decadeNum {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
justify-self: start;
|
||||
width: fit-content;
|
||||
margin-left: calc(var(--tl-rail-x) + (var(--tl-rail-w) / 2));
|
||||
transform: translateX(-50%);
|
||||
margin-left: calc(var(--tl-rail-x) + var(--tl-rail-w) + var(--tl-branch));
|
||||
padding: 0.5rem 0.3rem;
|
||||
background: var(--color-action);
|
||||
color: #ffffff;
|
||||
font-family: var(--font-display);
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 700;
|
||||
|
|
@ -104,9 +116,16 @@
|
|||
text-orientation: sideways;
|
||||
}
|
||||
|
||||
.site-tl__decade--pre .site-tl__decadeNum {
|
||||
background: var(--color-tint);
|
||||
color: var(--color-muted);
|
||||
.site-tl__decadeNum::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 55%;
|
||||
right: 100%;
|
||||
width: calc(var(--tl-branch) + 0.2rem);
|
||||
height: 3px;
|
||||
background: var(--tl-wood);
|
||||
transform-origin: right center;
|
||||
transform: rotate(28deg);
|
||||
}
|
||||
|
||||
.site-tl__decadeTitle {
|
||||
|
|
@ -356,9 +375,6 @@ a.site-tl__entry:hover .site-tl__entryTitle {
|
|||
background: var(--tl-accent);
|
||||
}
|
||||
|
||||
.site-tl__kind--event {
|
||||
}
|
||||
|
||||
.site-tl__kind--award {
|
||||
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
|
||||
}
|
||||
|
|
@ -378,11 +394,14 @@ a.site-tl__entry:hover .site-tl__entryTitle {
|
|||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* Solid, not a see-through tint: dark text on a tint on the
|
||||
page's colored backdrop was hard to read. */
|
||||
.site-tl__entry--featured {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
padding: 1rem 1.125rem;
|
||||
border-left: 2px solid var(--tl-accent);
|
||||
background: var(--tl-accent-soft);
|
||||
background: color-mix(in srgb, var(--tl-accent) 8%, var(--color-raised));
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.site-tl__entry--featured .site-tl__entryTitle {
|
||||
|
|
@ -397,7 +416,7 @@ a.site-tl__entry:hover .site-tl__entryTitle {
|
|||
}
|
||||
|
||||
a.site-tl__entry--featured:hover {
|
||||
background: color-mix(in srgb, var(--tl-accent) 18%, transparent);
|
||||
background: color-mix(in srgb, var(--tl-accent) 16%, var(--color-raised));
|
||||
}
|
||||
|
||||
/* --- Empty state ----------------------------------------------- */
|
||||
|
|
@ -484,8 +503,8 @@ a.site-tl__entry--featured:hover {
|
|||
top: 1.25rem;
|
||||
bottom: 0;
|
||||
left: var(--tl-rail-x);
|
||||
border-left: var(--tl-rail-w) solid var(--tl-rail);
|
||||
opacity: 0.35;
|
||||
border-left: var(--tl-rail-w) solid var(--tl-wood);
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.site-tl__upcomingBtn {
|
||||
|
|
@ -519,7 +538,7 @@ a.site-tl__entry--featured:hover {
|
|||
place-items: center;
|
||||
margin-left: calc(var(--tl-rail-x) - 7px + (var(--tl-rail-w) / 2));
|
||||
font-size: 14px;
|
||||
color: color-mix(in oklch, #00b83d 60%, #00521b);
|
||||
color: #008f2f; /* the leaves' green (leafColor) */
|
||||
}
|
||||
|
||||
.site-tl__upcomingLabel {
|
||||
|
|
@ -585,7 +604,7 @@ a.site-tl__entry--featured:hover {
|
|||
.site-tl__roster--featured {
|
||||
padding: 0.5rem 1.125rem 1rem;
|
||||
border-left: 2px solid var(--tl-accent);
|
||||
background: var(--tl-accent-soft);
|
||||
background: color-mix(in srgb, var(--tl-accent) 8%, var(--color-raised));
|
||||
margin-top: -0.5rem;
|
||||
}
|
||||
|
||||
|
|
@ -614,7 +633,6 @@ a.site-tl__entry--featured:hover {
|
|||
.site-tl__personPhoto {
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
background: var(--tl-accent-soft);
|
||||
flex: none;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue