Redesign the tracker's UI
An app shell with a sidebar (a top bar on phones) replaces the per-page headers and back links. A token-based design system in styles.css, with a dark set under prefers-color-scheme, replaces the paper palette and the cv-btn/ja-input classes ported from the main site. - Applications: header with counts and the follow-up total, the add form behind a "New application" button, coloured pipeline tiles, a "Needs follow-up" filter, sort indicators, icon row actions, compact phone cards. Quick reference sits beside the table on wide screens. - Leads: profile and sources side by side, underline tabs, score rings, source health dots. - Settings: status cards for capture and email. No API or store changes. jobs-shared.css and the unused Creato font are removed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CiMoE29eGkJtia4hCzSKzT
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ef38679a45
commit
f5b722d100
+528
-98
@@ -1,14 +1,15 @@
|
||||
/*
|
||||
* Global stylesheet: the tracker's whole look outside the components.
|
||||
* Global stylesheet: the design tokens and the small set of shared primitives
|
||||
* (buttons, inputs, cards, pills, alerts, the page header) that every view
|
||||
* composes. Views keep only their own layout in scoped <style> blocks.
|
||||
*
|
||||
* Ported from the main site, where these pages ran inside CVLayout.vue, which
|
||||
* re-pointed the site's dark design tokens to ink-on-paper values. This app is
|
||||
* only ever light, so the paper palette is declared directly and the base
|
||||
* element styles below are what that layout produced.
|
||||
*
|
||||
* Tailwind is here for its preflight reset, which the components were written
|
||||
* Tailwind is here for its preflight reset, which the components are written
|
||||
* against (box-sizing, zeroed margins, unstyled buttons). They use no utility
|
||||
* classes; their own scoped <style> blocks do the layout.
|
||||
* classes.
|
||||
*
|
||||
* Colours are semantic tokens with a dark set under prefers-color-scheme.
|
||||
* Status and score tints are derived with color-mix() from one hue each, so a
|
||||
* new status needs one token, not a light and a dark pair of backgrounds.
|
||||
*/
|
||||
|
||||
@import "tailwindcss";
|
||||
@@ -21,122 +22,551 @@
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "CreatoDisplay";
|
||||
src: url("/jobs/fonts/CreatoDisplay-Bold.woff2") format("woff2");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
:root {
|
||||
color-scheme: light;
|
||||
|
||||
--bg: #f4f5f7;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #f8f9fb;
|
||||
--surface-hover: #f1f3f6;
|
||||
--border: #e3e6eb;
|
||||
--border-strong: #cdd2da;
|
||||
|
||||
--text: #14171c;
|
||||
--text-2: #4a515c;
|
||||
--text-3: #7b8390;
|
||||
|
||||
--accent: #4f46e5;
|
||||
--accent-hover: #4338ca;
|
||||
--accent-fg: #ffffff;
|
||||
--accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
|
||||
|
||||
--danger: #dc2626;
|
||||
--danger-soft: color-mix(in srgb, var(--danger) 9%, var(--surface));
|
||||
--warn: #d97706;
|
||||
--ok: #16a34a;
|
||||
|
||||
/* One hue per job status; pills and pipeline tiles tint from these. */
|
||||
--st-saved: #8b93a1;
|
||||
--st-applied: #4f46e5;
|
||||
--st-screening: #0891b2;
|
||||
--st-assessment: #d97706;
|
||||
--st-interviewing: #9333ea;
|
||||
--st-offer: #16a34a;
|
||||
--st-rejected: #dc2626;
|
||||
--st-withdrawn: #a3a9b3;
|
||||
|
||||
--radius: 10px;
|
||||
--radius-sm: 7px;
|
||||
--shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 1px 3px rgb(16 24 40 / 0.04);
|
||||
--shadow-lg: 0 10px 30px -12px rgb(16 24 40 / 0.25);
|
||||
--ring: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
|
||||
|
||||
--font-heading: "big_noodle_titling", "Arial Narrow", sans-serif;
|
||||
--font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
|
||||
"Helvetica Neue", Arial, sans-serif;
|
||||
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
/* `static` = always emit these variables, because component <style> blocks
|
||||
reference them with var(). */
|
||||
@theme static {
|
||||
/* Paper palette */
|
||||
--color-ink: #111;
|
||||
--color-ink-soft: #333;
|
||||
--color-ink-muted: #555;
|
||||
--color-ink-faint: #999;
|
||||
--color-ink-link: #0066cc;
|
||||
--color-ink-danger: #c00;
|
||||
--color-paper: #fff;
|
||||
--color-paper-tint: #f5f5f5;
|
||||
--color-paper-shade: #eee;
|
||||
--color-line: #ccc;
|
||||
--color-line-soft: #e0e0e0;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
|
||||
--font-heading: "big_noodle_titling", sans-serif;
|
||||
--font-body: "CreatoDisplay", sans-serif;
|
||||
--default-font-family: var(--font-body);
|
||||
--bg: #0e1015;
|
||||
--surface: #171a21;
|
||||
--surface-2: #1c2029;
|
||||
--surface-hover: #222733;
|
||||
--border: #2a2f3a;
|
||||
--border-strong: #3a414f;
|
||||
|
||||
--text: #e9ecf1;
|
||||
--text-2: #b3bac6;
|
||||
--text-3: #828b99;
|
||||
|
||||
--accent: #818cf8;
|
||||
--accent-hover: #a5b4fc;
|
||||
--accent-fg: #0e1015;
|
||||
--accent-soft: color-mix(in srgb, var(--accent) 16%, var(--surface));
|
||||
|
||||
--danger: #f87171;
|
||||
--danger-soft: color-mix(in srgb, var(--danger) 14%, var(--surface));
|
||||
--warn: #fbbf24;
|
||||
--ok: #4ade80;
|
||||
|
||||
--st-saved: #9aa3b2;
|
||||
--st-applied: #818cf8;
|
||||
--st-screening: #22d3ee;
|
||||
--st-assessment: #fbbf24;
|
||||
--st-interviewing: #c084fc;
|
||||
--st-offer: #4ade80;
|
||||
--st-rejected: #f87171;
|
||||
--st-withdrawn: #6b7280;
|
||||
|
||||
--shadow: 0 1px 2px rgb(0 0 0 / 0.4);
|
||||
--shadow-lg: 0 10px 30px -12px rgb(0 0 0 / 0.7);
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
background: var(--color-paper-tint);
|
||||
color: var(--color-ink);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font-body);
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
margin: 0;
|
||||
font-family: var(--font-heading);
|
||||
color: var(--color-ink);
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
h3,
|
||||
h4 {
|
||||
font-size: 1.125rem;
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
p,
|
||||
small,
|
||||
code,
|
||||
ul,
|
||||
li,
|
||||
a {
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
input,
|
||||
textarea {
|
||||
color: var(--color-ink);
|
||||
background: var(--color-paper);
|
||||
border: 1px solid var(--color-line);
|
||||
}
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: var(--color-ink-faint);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Buttons shared by every page */
|
||||
.cv-btn {
|
||||
padding: 0.4rem 1rem;
|
||||
border: 1px solid var(--color-ink-soft);
|
||||
border-radius: 4px;
|
||||
background: var(--color-paper);
|
||||
color: var(--color-ink-soft);
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
white-space: nowrap;
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.9em;
|
||||
padding: 0.05em 0.35em;
|
||||
border-radius: 4px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--ring);
|
||||
}
|
||||
|
||||
/* ---- Page frame --------------------------------------------------------- */
|
||||
|
||||
.page {
|
||||
max-width: 1440px;
|
||||
margin: 0 auto;
|
||||
padding: 1.75rem 2rem 3rem;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: normal;
|
||||
font-size: 2.1rem;
|
||||
letter-spacing: 0.02em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.page-sub {
|
||||
margin-top: 0.4rem;
|
||||
color: var(--text-3);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.page-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.page {
|
||||
padding: 1.25rem 1rem 2.5rem;
|
||||
}
|
||||
.page-title {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- Buttons ------------------------------------------------------------ */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.4rem;
|
||||
height: 2.25rem;
|
||||
padding: 0 0.9rem;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
box-shadow: var(--shadow);
|
||||
transition:
|
||||
background 0.15s,
|
||||
color 0.15s;
|
||||
background 0.12s,
|
||||
border-color 0.12s,
|
||||
color 0.12s;
|
||||
}
|
||||
.cv-btn:hover {
|
||||
background: var(--color-paper-shade);
|
||||
.btn:hover {
|
||||
background: var(--surface-hover);
|
||||
text-decoration: none;
|
||||
}
|
||||
.cv-btn:disabled {
|
||||
.btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
.cv-btn-sm {
|
||||
padding: 0.2rem 0.55rem;
|
||||
.btn-primary {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: var(--accent-fg);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
border-color: var(--accent-hover);
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
.btn-danger {
|
||||
color: var(--danger);
|
||||
}
|
||||
.btn-danger:hover {
|
||||
border-color: var(--danger);
|
||||
background: var(--danger-soft);
|
||||
}
|
||||
.btn-ghost {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.btn-ghost:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--text);
|
||||
}
|
||||
.btn-ghost.btn-danger:hover {
|
||||
border-color: transparent;
|
||||
color: var(--danger);
|
||||
}
|
||||
.btn-sm {
|
||||
height: 1.875rem;
|
||||
padding: 0 0.65rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
/* Square, for a lone icon; always carries a title and aria-label. */
|
||||
.btn-icon {
|
||||
width: 2.25rem;
|
||||
padding: 0;
|
||||
}
|
||||
.btn-icon.btn-sm {
|
||||
width: 1.875rem;
|
||||
}
|
||||
|
||||
/* ---- Form controls ------------------------------------------------------ */
|
||||
|
||||
.input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 2.25rem;
|
||||
padding: 0 0.7rem;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 0.875rem;
|
||||
transition:
|
||||
border-color 0.12s,
|
||||
box-shadow 0.12s;
|
||||
}
|
||||
.input::placeholder {
|
||||
color: var(--text-3);
|
||||
opacity: 1;
|
||||
}
|
||||
.input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: var(--ring);
|
||||
}
|
||||
textarea.input {
|
||||
height: auto;
|
||||
padding: 0.5rem 0.7rem;
|
||||
line-height: 1.45;
|
||||
resize: vertical;
|
||||
}
|
||||
select.input {
|
||||
padding-right: 2rem;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8390' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 0.6rem center;
|
||||
}
|
||||
.input-sm {
|
||||
height: 1.875rem;
|
||||
padding: 0 0.5rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
textarea.input-sm {
|
||||
padding: 0.35rem 0.5rem;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.field > span {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.cv-btn-primary,
|
||||
.cv-btn.active {
|
||||
background: var(--color-ink-soft);
|
||||
color: var(--color-paper);
|
||||
|
||||
.check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--text-2);
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
.cv-btn-primary:hover {
|
||||
background: var(--color-ink-muted);
|
||||
.check input {
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
.cv-btn-danger {
|
||||
border-color: var(--color-ink-danger);
|
||||
color: var(--color-ink-danger);
|
||||
|
||||
/* Search box: an input with a magnifier inside its left edge. */
|
||||
.search {
|
||||
position: relative;
|
||||
flex: 1 1 16rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.cv-btn-danger:hover {
|
||||
background: #fee;
|
||||
.search > svg {
|
||||
position: absolute;
|
||||
left: 0.7rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--text-3);
|
||||
pointer-events: none;
|
||||
}
|
||||
.search > .input {
|
||||
padding-left: 2.1rem;
|
||||
}
|
||||
|
||||
/* ---- Surfaces ----------------------------------------------------------- */
|
||||
|
||||
.card {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.9rem 1.1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: 1rem 1.1rem;
|
||||
}
|
||||
|
||||
/* A card that folds: <details class="card disclosure"><summary>… */
|
||||
.disclosure > summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.9rem 1.1rem;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
user-select: none;
|
||||
}
|
||||
.disclosure > summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
.disclosure > summary::after {
|
||||
content: "";
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-left: auto;
|
||||
flex: none;
|
||||
background: currentColor;
|
||||
color: var(--text-3);
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
|
||||
center / contain no-repeat;
|
||||
transition: transform 0.15s;
|
||||
}
|
||||
.disclosure[open] > summary::after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.disclosure[open] > summary {
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* ---- Feedback ----------------------------------------------------------- */
|
||||
|
||||
.alert {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.25rem;
|
||||
padding: 0.65rem 0.75rem 0.65rem 1rem;
|
||||
border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.hint {
|
||||
color: var(--text-3);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.warn {
|
||||
color: var(--danger);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.empty {
|
||||
padding: 2.5rem 1rem;
|
||||
text-align: center;
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
/* Inline count beside a label, as in tabs and card titles. */
|
||||
.count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 1.4rem;
|
||||
height: 1.25rem;
|
||||
padding: 0 0.4rem;
|
||||
border-radius: 999px;
|
||||
background: var(--surface-hover);
|
||||
color: var(--text-2);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* Long captured posting text: scrolls inside its container. */
|
||||
.posting {
|
||||
max-height: 24rem;
|
||||
overflow: auto;
|
||||
margin: 0;
|
||||
padding: 0.9rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--surface-2);
|
||||
color: var(--text-2);
|
||||
font-family: inherit;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.55;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* ---- Status pills ------------------------------------------------------- */
|
||||
|
||||
.pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
height: 1.6rem;
|
||||
padding: 0 0.65rem;
|
||||
border: 1px solid color-mix(in srgb, var(--st, var(--text-3)) 30%, transparent);
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--st, var(--text-3)) 12%, var(--surface));
|
||||
color: color-mix(in srgb, var(--st, var(--text-3)) 75%, var(--text));
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pill::before {
|
||||
content: "";
|
||||
width: 0.45rem;
|
||||
height: 0.45rem;
|
||||
border-radius: 50%;
|
||||
background: var(--st, var(--text-3));
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.dot {
|
||||
display: inline-block;
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
border-radius: 50%;
|
||||
background: var(--text-3);
|
||||
flex: none;
|
||||
}
|
||||
.dot-ok {
|
||||
background: var(--ok);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
|
||||
}
|
||||
.dot-warn {
|
||||
background: var(--warn);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent);
|
||||
}
|
||||
|
||||
.status-saved { --st: var(--st-saved); }
|
||||
.status-applied { --st: var(--st-applied); }
|
||||
.status-screening { --st: var(--st-screening); }
|
||||
.status-assessment { --st: var(--st-assessment); }
|
||||
.status-interviewing { --st: var(--st-interviewing); }
|
||||
.status-offer { --st: var(--st-offer); }
|
||||
.status-rejected { --st: var(--st-rejected); }
|
||||
.status-withdrawn { --st: var(--st-withdrawn); }
|
||||
|
||||
/* ---- Spinner ------------------------------------------------------------ */
|
||||
|
||||
.spinner {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border: 2px solid currentColor;
|
||||
border-right-color: transparent;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.7s linear infinite;
|
||||
flex: none;
|
||||
}
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.spinner {
|
||||
animation-duration: 2s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user