mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 21:33:19 +00:00
def8b8a24d
The release popup now shows 5.1.0: place search, shared place details and faster routing as three cards side by side, each with its own drawing. The support band is set as a card like the promise above it (optional supportLabelKey; a release without it keeps the plain line), and the two support buttons get the same glass look in their colours. Settings > About gets a full-width panel for dataforest cloud, who sponsor the servers behind place search, address search and routing. Both logos ship in client/public/brands, so opening Settings reaches no third party. Wherever a line names dataforest cloud it links to https://cloud.dataforest.net/?mtm_campaign=trek, the link dataforest gave us; the README moves to it too. All 28 locales carry the new copy, and the old 5.0 card keys are gone.
648 lines
18 KiB
CSS
648 lines
18 KiB
CSS
/*
|
|
* The release notice modal: a two-column panel, the release on the left and a
|
|
* note from the maintainer on the right.
|
|
*
|
|
* The measurements are the design's own, at full size, kept in one stylesheet
|
|
* rather than spread across inline styles (the same arrangement mobile.css uses
|
|
* for the mobile shell). The panel is 1420px wide wherever the screen has room
|
|
* and gives up width, never size, where it has not.
|
|
*
|
|
* The left column is deliberately dark in both themes: it is a brand panel, not
|
|
* a surface, so it does not read the surface tokens. Everything on the right
|
|
* does. theme-lint-disable: the brand panel's colours are fixed by design.
|
|
*/
|
|
|
|
.rn-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
/* Above the navbar, the page-bound sticky bars and the page-owned
|
|
overlays: the notice is app-wide, so nothing a page draws may cover it. */
|
|
z-index: var(--z-notice, 99998);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 34px;
|
|
background: oklch(0.12 0.01 60 / 0.52);
|
|
backdrop-filter: blur(14px) saturate(1.1);
|
|
-webkit-backdrop-filter: blur(14px) saturate(1.1);
|
|
animation: rn-fade 0.35s ease both;
|
|
}
|
|
|
|
@keyframes rn-fade {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes rn-rise {
|
|
from { opacity: 0; transform: translateY(16px) scale(0.985); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
|
|
/*
|
|
* The design draws these boxes with their border outside the stated size, the
|
|
* browser default. TREK sets border-box globally, which would take 2px off each.
|
|
*/
|
|
.rn-panel,
|
|
.rn-mark,
|
|
.rn-feature,
|
|
.rn-feature-visual,
|
|
.rn-notes,
|
|
.rn-close { box-sizing: content-box; }
|
|
|
|
.rn-panel {
|
|
position: relative;
|
|
width: min(1420px, calc(100% - 2px));
|
|
max-height: 100%;
|
|
display: grid;
|
|
grid-template-columns: 1.2fr 1fr;
|
|
/* One row, never taller than the panel: otherwise the row takes the height of
|
|
the taller column and the panel clips both, the support buttons first. */
|
|
grid-template-rows: minmax(0, 1fr);
|
|
border-radius: 30px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px oklch(0 0 0 / 0.2), 0 60px 130px -40px oklch(0 0 0 / 0.7);
|
|
border: 1px solid oklch(1 0 0 / 0.1);
|
|
animation: rn-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
font-family: var(--font-system);
|
|
/* The design sets no base line height; the app's 1.5 would add 3px to every label. */
|
|
line-height: normal;
|
|
}
|
|
|
|
/* The panel's, not the note's: in the stacked layout below it has to outlast the
|
|
release half, which scrolls by first. */
|
|
.rn-close {
|
|
position: absolute;
|
|
top: 22px;
|
|
/* Logical, so the X sits at the reading end in Arabic too. With the physical
|
|
right it stayed over the release half there, which the note's palette below
|
|
is not made for, and the stacked layout put it at the other end anyway. */
|
|
inset-inline-end: 22px;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--bg-hover);
|
|
border: 1px solid var(--border-faint);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
z-index: 2;
|
|
cursor: pointer;
|
|
transition: background-color 0.15s ease, color 0.15s ease;
|
|
}
|
|
|
|
.rn-close:hover { background: var(--bg-selected); color: var(--text-primary); }
|
|
|
|
/* Below the two-column breakpoint the halves stack and the panel scrolls. The
|
|
rows must go back to auto: with the single minmax row from above, the note took
|
|
the whole panel and the release half was left with nothing but its padding. */
|
|
@media (max-width: 1080px) {
|
|
.rn-panel { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; }
|
|
.rn-release { grid-area: 1 / 1; }
|
|
.rn-note { grid-area: 2 / 1; }
|
|
.rn-release, .rn-release-inner, .rn-note-body { overflow: visible; }
|
|
/* The X used to sit in the note, a whole release half below the top edge, and
|
|
at a tablet's width the backdrop is gone too. As a grid item over both rows
|
|
it sticks 22px under the top edge for the entire scroll, over either half. */
|
|
.rn-close {
|
|
position: sticky;
|
|
grid-row: 1 / -1;
|
|
grid-column: 1;
|
|
justify-self: end;
|
|
align-self: start;
|
|
margin: 22px;
|
|
/* At the top of the scroll it hangs over the release half, which is dark in
|
|
both themes. The note's palette is a near-transparent fill and secondary
|
|
ink: in the light theme that is a slate glyph on near black, roughly 1.8:1,
|
|
so the only way to dismiss the notice on a tablet was invisible. An opaque
|
|
chip with primary ink carries over either half, the way .rn-support below
|
|
gets a solid band once it sticks. */
|
|
background: color-mix(in srgb, var(--bg-card) 92%, var(--text-primary));
|
|
border-color: var(--border-primary);
|
|
color: var(--text-primary);
|
|
box-shadow: 0 2px 8px oklch(0 0 0 / 0.25);
|
|
}
|
|
/* Once the note has scrolled into view, the ask stays at the bottom edge. The
|
|
band's usual tint is translucent, so it gets a solid one here. */
|
|
.rn-support {
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 1;
|
|
background: color-mix(in srgb, var(--bg-card) 95%, var(--text-primary));
|
|
}
|
|
}
|
|
|
|
[data-reduce-motion='true'] .rn-overlay,
|
|
[data-reduce-motion='true'] .rn-panel {
|
|
animation-duration: 0.01ms;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.rn-overlay, .rn-panel { animation-duration: 0.01ms; }
|
|
}
|
|
|
|
/* ── Left: the release ─────────────────────────────────────────────────── */
|
|
|
|
.rn-release {
|
|
position: relative;
|
|
background: radial-gradient(120% 95% at 18% 0%, #1b1b22 0%, #0e0e12 52%, #08080a 100%);
|
|
color: #f5f5f7;
|
|
padding: 44px 46px 34px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* The dot field, faded out towards the lower right. */
|
|
.rn-release-grain {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-image: radial-gradient(circle, oklch(1 0 0 / 0.1) 1px, transparent 1.3px);
|
|
background-size: 24px 24px;
|
|
-webkit-mask-image: radial-gradient(90% 70% at 25% 12%, #000 0%, transparent 78%);
|
|
mask-image: radial-gradient(90% 70% at 25% 12%, #000 0%, transparent 78%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.rn-release-inner {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.rn-release-inner::-webkit-scrollbar { display: none; }
|
|
|
|
.rn-eyebrow-row { display: flex; align-items: center; gap: 11px; }
|
|
|
|
.rn-mark {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 10px;
|
|
background: oklch(1 0 0 / 0.1);
|
|
border: 1px solid oklch(1 0 0 / 0.16);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: none;
|
|
}
|
|
|
|
.rn-mark img { width: 18px; height: 18px; display: block; }
|
|
|
|
.rn-eyebrow,
|
|
.rn-features-label {
|
|
font-family: var(--font-subtext);
|
|
font-size: 11px;
|
|
line-height: 14px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: oklch(1 0 0 / 0.5);
|
|
}
|
|
|
|
.rn-version {
|
|
margin-top: 22px;
|
|
font-family: var(--font-subtext);
|
|
font-size: 74px;
|
|
font-weight: 600;
|
|
line-height: 0.84;
|
|
letter-spacing: -0.055em;
|
|
color: #fbfbfd;
|
|
}
|
|
|
|
.rn-headline {
|
|
/* CJK breaks anywhere by default; break at phrase boundaries where supported. */
|
|
word-break: auto-phrase;
|
|
margin: 20px 0 0;
|
|
font-size: 26px;
|
|
font-weight: 600;
|
|
line-height: 1.24;
|
|
letter-spacing: -0.03em;
|
|
max-width: 560px;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-intro {
|
|
margin: 11px 0 0;
|
|
max-width: 640px;
|
|
font-size: 16.5px;
|
|
line-height: 1.6;
|
|
color: oklch(1 0 0 / 0.62);
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-features-head {
|
|
margin-top: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.rn-features-label { white-space: nowrap; }
|
|
|
|
.rn-features-rule { flex: 1; height: 1px; background: oklch(1 0 0 / 0.12); }
|
|
|
|
.rn-features-aside {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: oklch(1 0 0 / 0.4);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.rn-features {
|
|
margin-top: 14px;
|
|
/* Keeps the foot clear of the cards when the column has no height to spare. */
|
|
margin-bottom: 18px;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
/* A headliner laid across the row: the picture beside the text, not above it.
|
|
Doubled class so it wins over the .rn-feature block below, which sets the column. */
|
|
.rn-feature.rn-feature-wide {
|
|
grid-column: 1 / -1;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 18px;
|
|
padding: 12px 18px 12px 12px;
|
|
}
|
|
|
|
.rn-feature.rn-feature-wide .rn-feature-visual {
|
|
flex: 0 0 236px;
|
|
width: 236px;
|
|
height: 88px;
|
|
}
|
|
|
|
.rn-feature.rn-feature-wide .rn-feature-body { margin-top: 4px; }
|
|
|
|
.rn-feature {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
min-height: 0;
|
|
padding: 14px 14px 18px;
|
|
border-radius: 20px;
|
|
background: linear-gradient(160deg, oklch(1 0 0 / 0.1) 0%, oklch(1 0 0 / 0.045) 62%);
|
|
border: 1px solid oklch(1 0 0 / 0.13);
|
|
backdrop-filter: blur(16px) saturate(1.2);
|
|
-webkit-backdrop-filter: blur(16px) saturate(1.2);
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16), 0 12px 28px -16px oklch(0 0 0 / 0.7);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rn-feature-shine {
|
|
position: absolute;
|
|
top: 0;
|
|
inset-inline: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.4), transparent);
|
|
}
|
|
|
|
.rn-feature-visual {
|
|
position: relative;
|
|
height: 112px;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
background: oklch(1 0 0 / 0.06);
|
|
border: 1px solid oklch(1 0 0 / 0.12);
|
|
}
|
|
|
|
.rn-feature-title {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
letter-spacing: -0.015em;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-feature-body {
|
|
margin-top: 7px;
|
|
font-size: 13.5px;
|
|
line-height: 1.55;
|
|
color: oklch(1 0 0 / 0.6);
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-release-foot {
|
|
margin-top: auto;
|
|
padding-top: 26px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
border-top: 1px solid oklch(1 0 0 / 0.09);
|
|
}
|
|
|
|
.rn-footnote {
|
|
font-size: 14.5px;
|
|
line-height: 1.55;
|
|
color: oklch(1 0 0 / 0.46);
|
|
max-width: 360px;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-notes {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 11px;
|
|
height: 44px;
|
|
padding: 0 7px 0 18px;
|
|
border-radius: 999px;
|
|
background: oklch(1 0 0 / 0.07);
|
|
border: 1px solid oklch(1 0 0 / 0.14);
|
|
color: #f5f5f7;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.1);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.rn-notes:hover { background: oklch(1 0 0 / 0.12); color: #f5f5f7; }
|
|
|
|
.rn-notes-arrow {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
background: #f5f5f7;
|
|
color: #101013;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: none;
|
|
}
|
|
|
|
/* ── Right: the note ───────────────────────────────────────────────────── */
|
|
|
|
.rn-note {
|
|
position: relative;
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.rn-note-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 44px 44px 26px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.rn-note-body::-webkit-scrollbar { display: none; }
|
|
|
|
/*
|
|
* The two columns scroll; what is inside them must not give way instead. A flex
|
|
* item may shrink below its content, and one with overflow hidden may shrink to
|
|
* nothing, so on a 1080p screen at 100% the promise box was pressed down to its
|
|
* label while the paragraphs around it kept their height and the column scrolled.
|
|
*/
|
|
.rn-release-inner > *,
|
|
.rn-note-body > * { flex-shrink: 0; }
|
|
|
|
.rn-note-eyebrow {
|
|
font-family: var(--font-subtext);
|
|
font-size: 11px;
|
|
line-height: 14px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.rn-note-title {
|
|
word-break: auto-phrase;
|
|
margin: 14px 0 0;
|
|
font-size: 29px;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.03em;
|
|
max-width: 420px;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-note p {
|
|
margin: 20px 0 0;
|
|
font-size: 16px;
|
|
line-height: 1.66;
|
|
color: var(--text-secondary);
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-note p + p { margin-top: 14px; }
|
|
|
|
/*
|
|
* The promise is a pane of glass in the inverse of the note: dark on a light note,
|
|
* light on a dark one, with the same sheen and edge light as the release cards.
|
|
*/
|
|
.rn-promise {
|
|
position: relative;
|
|
isolation: isolate;
|
|
overflow: hidden;
|
|
margin-top: 24px;
|
|
padding: 18px 20px;
|
|
border-radius: 18px;
|
|
background: linear-gradient(
|
|
160deg,
|
|
color-mix(in oklch, var(--text-primary) 94%, transparent) 0%,
|
|
color-mix(in oklch, var(--text-primary) 80%, transparent) 100%
|
|
);
|
|
border: 1px solid color-mix(in oklch, var(--text-primary) 55%, transparent);
|
|
backdrop-filter: blur(16px) saturate(1.3);
|
|
-webkit-backdrop-filter: blur(16px) saturate(1.3);
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2), 0 16px 34px -20px oklch(0 0 0 / 0.6);
|
|
color: var(--bg-primary);
|
|
}
|
|
|
|
/* The edge light along the top, as on the cards. */
|
|
.rn-promise::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
inset-inline: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.5), transparent);
|
|
z-index: 1;
|
|
}
|
|
|
|
/* A soft light falling in from the top left, and a faint glow where it leaves. */
|
|
.rn-promise::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background:
|
|
radial-gradient(120% 110% at 0% 0%, oklch(1 0 0 / 0.16) 0%, transparent 55%),
|
|
radial-gradient(80% 90% at 100% 100%, oklch(0.84 0.18 85 / 0.12) 0%, transparent 60%);
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
.rn-promise-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-family: var(--font-subtext);
|
|
font-size: 10.5px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: color-mix(in oklch, var(--bg-primary) 55%, transparent);
|
|
}
|
|
|
|
.rn-promise-text {
|
|
margin-top: 9px;
|
|
font-size: 16.5px;
|
|
line-height: 1.5;
|
|
letter-spacing: -0.01em;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-promise-text b { font-weight: 600; }
|
|
|
|
.rn-promise-text span { font-weight: 400; color: color-mix(in oklch, var(--bg-primary) 68%, transparent); }
|
|
|
|
.rn-closing {
|
|
margin-top: auto;
|
|
padding-top: 24px;
|
|
font-size: 16.5px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.rn-support {
|
|
padding: 22px 44px 26px;
|
|
border-top: 1px solid var(--border-primary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.rn-support .rn-support-card { margin-top: 0; }
|
|
|
|
.rn-support-text {
|
|
font-size: 15.5px;
|
|
line-height: 1.62;
|
|
color: var(--text-secondary);
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.rn-support-text b { font-weight: 600; color: var(--text-primary); }
|
|
|
|
.rn-support-buttons {
|
|
margin-top: 14px;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rn-support-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 9px;
|
|
height: 50px;
|
|
border-radius: 15px;
|
|
font-size: 15.5px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
cursor: pointer;
|
|
/* Glass like the promise card, tinted with each platform's colour (set below). */
|
|
position: relative;
|
|
isolation: isolate;
|
|
overflow: hidden;
|
|
background: linear-gradient(160deg,
|
|
color-mix(in oklch, var(--rn-btn) 96%, white) 0%,
|
|
color-mix(in oklch, var(--rn-btn) 82%, transparent) 100%);
|
|
border: 1px solid color-mix(in oklch, var(--rn-btn) 70%, white);
|
|
backdrop-filter: blur(16px) saturate(1.3);
|
|
-webkit-backdrop-filter: blur(16px) saturate(1.3);
|
|
box-shadow:
|
|
inset 0 1px 0 oklch(1 0 0 / 0.45),
|
|
0 12px 26px -14px color-mix(in oklch, var(--rn-btn) 80%, black);
|
|
transition: filter 0.15s ease, transform 0.15s ease;
|
|
}
|
|
|
|
/* The light along the top edge and the sheen in the corner, as on the promise card. */
|
|
.rn-support-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
inset-inline: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.75), transparent);
|
|
}
|
|
.rn-support-btn::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background: radial-gradient(120% 140% at 0% 0%, oklch(1 0 0 / 0.32) 0%, transparent 55%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.rn-support-btn:hover { filter: brightness(1.04) saturate(1.05); transform: translateY(-1px); }
|
|
|
|
/* The steam lifts off the cup in turn, and the heart beats. */
|
|
.rn-coffee { overflow: visible; }
|
|
.rn-steam { stroke-width: 1.8; animation: rn-steam 3s ease-in-out infinite; }
|
|
.rn-steam:nth-of-type(4) { animation-delay: 0.5s; }
|
|
.rn-steam:nth-of-type(5) { animation-delay: 1s; }
|
|
|
|
@keyframes rn-steam {
|
|
0% { opacity: 0; transform: translate(0, 3px); }
|
|
25% { opacity: 1; transform: translate(-0.7px, -1px); }
|
|
55% { opacity: 0.85; transform: translate(0.7px, -5px); }
|
|
100% { opacity: 0; transform: translate(-0.4px, -10px); }
|
|
}
|
|
|
|
.rn-heart { transform-origin: 50% 55%; animation: rn-beat 1.3s ease-in-out infinite; }
|
|
|
|
@keyframes rn-beat {
|
|
0%, 60%, 100% { transform: scale(1); }
|
|
15% { transform: scale(1.2); }
|
|
30% { transform: scale(1); }
|
|
45% { transform: scale(1.12); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.rn-steam, .rn-heart { animation: none; }
|
|
}
|
|
|
|
[data-reduce-motion='true'] .rn-steam,
|
|
[data-reduce-motion='true'] .rn-heart { animation: none; }
|
|
|
|
/* Brand colours: Buy Me a Coffee and Ko-fi own these. */
|
|
.rn-support-bmc { --rn-btn: #ffdd00; color: #101013; } /* theme-lint-disable */
|
|
.rn-support-kofi { --rn-btn: #ff5e5b; color: #ffffff; } /* theme-lint-disable */
|
|
|
|
/* Narrow viewports: keep the proportions, drop the outer padding. */
|
|
@media (max-width: 900px) {
|
|
.rn-overlay { padding: 0; }
|
|
.rn-panel { border-radius: 0; border: 0; max-height: 100%; }
|
|
}
|
|
|
|
/* The sponsor's name, linked wherever a line names it; it takes the colour of the line it sits in. */
|
|
.rn-sponsor {
|
|
color: inherit;
|
|
font-weight: 600;
|
|
text-decoration: underline;
|
|
text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
|
|
text-underline-offset: 3px;
|
|
transition: text-decoration-color 160ms ease;
|
|
}
|
|
.rn-sponsor:hover {
|
|
text-decoration-color: currentColor;
|
|
}
|