576 lines
12 KiB
CSS
576 lines
12 KiB
CSS
/*
|
|
* 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.
|
|
*
|
|
* Tailwind is here for its preflight reset, which the components are written
|
|
* against (box-sizing, zeroed margins, unstyled buttons). They use no utility
|
|
* 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";
|
|
|
|
@font-face {
|
|
font-family: "big_noodle_titling";
|
|
src: url("/jobs/fonts/big_noodle_titling.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;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
color-scheme: dark;
|
|
|
|
--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 {
|
|
min-height: 100vh;
|
|
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 {
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
a {
|
|
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.12s,
|
|
border-color 0.12s,
|
|
color 0.12s;
|
|
}
|
|
.btn:hover {
|
|
background: var(--surface-hover);
|
|
text-decoration: none;
|
|
}
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
.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);
|
|
}
|
|
|
|
.check {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
font-size: 0.8125rem;
|
|
color: var(--text-2);
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
.check input {
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
/* Search box: an input with a magnifier inside its left edge. */
|
|
.search {
|
|
position: relative;
|
|
flex: 1 1 16rem;
|
|
min-width: 0;
|
|
}
|
|
.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);
|
|
}
|
|
.dot[class*="status-"] {
|
|
background: var(--st, var(--text-3));
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|