docs(theme): trim verbose CSS comments to their point
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
--font-weight-body: 600;
|
--font-weight-body: 600;
|
||||||
--font-weight-normal: 400;
|
--font-weight-normal: 400;
|
||||||
|
|
||||||
/* Fluid section title: scales from 2rem at ~267px to 8rem at ~1707px */
|
|
||||||
--text-section-title: clamp(2rem, 7.5vw, 8rem);
|
--text-section-title: clamp(2rem, 7.5vw, 8rem);
|
||||||
|
|
||||||
/* === LINE HEIGHT === */
|
/* === LINE HEIGHT === */
|
||||||
@@ -72,8 +71,7 @@
|
|||||||
--border-width: 1.5px;
|
--border-width: 1.5px;
|
||||||
--radius: 5px;
|
--radius: 5px;
|
||||||
|
|
||||||
/* Muted offset shadow — quieter than the old hard-blue brutalist stamp.
|
/* Low-alpha blue so the offset shadow reads as a muted stamp, not a hard block. */
|
||||||
* Softer alpha + tighter offsets keep the offset-shadow feel, just lighter. */
|
|
||||||
--shadow-color: rgba(4, 28, 243, 0.25);
|
--shadow-color: rgba(4, 28, 243, 0.25);
|
||||||
|
|
||||||
/* === OFFSET SHADOWS === */
|
/* === OFFSET SHADOWS === */
|
||||||
@@ -246,18 +244,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Button elevation transition — transform + shadow animate together over 130ms
|
/* Spring feel comes from the easing curve, not keyframes. */
|
||||||
* on the micro easing curve; the spring feel comes from the curve, no keyframes. */
|
|
||||||
@utility btn-transition {
|
@utility btn-transition {
|
||||||
transition: transform 130ms var(--ease-micro);
|
transition: transform 130ms var(--ease-micro);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Offset "shadow" as a static pseudo-block instead of box-shadow. box-shadow
|
/* Offset "shadow" as a pseudo-block, not box-shadow: box-shadow repaints on
|
||||||
* swims because it repaints on the main thread while the button's translate
|
* the main thread while the button's translate runs on the compositor, so the
|
||||||
* runs on the compositor — the two desync per frame. Here both the button and
|
* two desync per frame. Animating both as transforms keeps them frame-synced. */
|
||||||
* its ::before are transforms, so they stay frame-synced. The ::before counter-
|
|
||||||
* translates to hold a fixed 3px world offset while the button lifts/presses,
|
|
||||||
* so the shadow appears frozen and only the button moves. */
|
|
||||||
.btn-shadow {
|
.btn-shadow {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
@@ -328,20 +322,16 @@
|
|||||||
outline: var(--border-width) solid var(--blue);
|
outline: var(--border-width) solid var(--blue);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
}
|
}
|
||||||
/* Tiled blue dot pattern — applied to body::before (page-wide) and reusable
|
/* Shared paper-grain texture: a tiled blue dot for any surface that needs it. */
|
||||||
* on any surface that should share the same paper-grain texture. The SVG
|
|
||||||
* tile is rasterized once and composited cheaply via repeating background. */
|
|
||||||
@utility grain-pattern {
|
@utility grain-pattern {
|
||||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23041cf3' opacity='0.10'/%3E%3C/svg%3E");
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23041cf3' opacity='0.10'/%3E%3C/svg%3E");
|
||||||
}
|
}
|
||||||
/* Apply Fraunces variable axes to non-heading elements using the heading font */
|
|
||||||
.font-wonk {
|
.font-wonk {
|
||||||
font-variation-settings:
|
font-variation-settings:
|
||||||
"WONK" var(--fraunces-wonk),
|
"WONK" var(--fraunces-wonk),
|
||||||
"SOFT" var(--fraunces-soft);
|
"SOFT" var(--fraunces-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sidebar divider: bottom border on mobile, right border on desktop */
|
|
||||||
.brutal-border-sidebar {
|
.brutal-border-sidebar {
|
||||||
border-bottom: var(--border-width) solid var(--blue);
|
border-bottom: var(--border-width) solid var(--blue);
|
||||||
}
|
}
|
||||||
@@ -568,12 +558,9 @@ dialog.lightbox {
|
|||||||
z-index: 30;
|
z-index: 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Lightbox image sizing — leaves vertical headroom for the fixed close button
|
/* Lightbox image sizing — max-height leaves vertical headroom so the fixed
|
||||||
* (sits at top-3, ~2.5rem tall). 8rem total = ~4rem top/bottom after centering,
|
* close button never overlaps the image. content-box keeps the border outside
|
||||||
* so the button never overlaps the image.
|
* the image pixels, avoiding subpixel clipping by the dialog's overflow:hidden. */
|
||||||
* box-sizing: content-box so max-w/max-h apply to the image pixels and the
|
|
||||||
* 3px brutal-border sits outside them — avoids subpixel clipping of the
|
|
||||||
* border by the dialog's overflow:hidden when both have border-box. */
|
|
||||||
@utility lightbox-image {
|
@utility lightbox-image {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
max-width: calc(100vw - 2rem);
|
max-width: calc(100vw - 2rem);
|
||||||
|
|||||||
Reference in New Issue
Block a user