0ef7e833dd
Split the long four-panel Settings page into hash-driven tabs (Familj, Saldon, Lediga dagar, Allmänt) with a sticky side nav on desktop and a scrollable tab bar on mobile. Each card saves on its own, the profile form is prefilled from the member, and save feedback is a fixed toast. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
818 lines
16 KiB
CSS
818 lines
16 KiB
CSS
/* Dashboard (Översikt)
|
|
* ------------------------------------------------------------------------
|
|
* Pure typography and whitespace: the hero is a headline, the key figures
|
|
* are three numerals, and the only hairlines on the page sit between the
|
|
* year rows. Nothing here is a tile or a card. */
|
|
|
|
/* Hero — the headline. Its framing (motivate / warning / reassure) is a
|
|
* short coloured rule above the text, never a tinted box. */
|
|
.dashboard-hero {
|
|
margin-bottom: var(--sp-4);
|
|
}
|
|
|
|
.dashboard-hero::before {
|
|
content: '';
|
|
display: block;
|
|
width: var(--sp-6);
|
|
height: 4px;
|
|
margin-bottom: var(--sp-4);
|
|
border-radius: var(--radius-sm);
|
|
background-color: var(--c-accent);
|
|
}
|
|
|
|
.dashboard-hero--warning::before {
|
|
background-color: var(--c-danger);
|
|
}
|
|
|
|
.dashboard-hero--reassure::before {
|
|
background-color: var(--c-success);
|
|
}
|
|
|
|
.dashboard-hero__message {
|
|
margin: 0;
|
|
max-width: 24ch;
|
|
font-size: var(--fs-2xl);
|
|
font-weight: 600;
|
|
line-height: var(--lh-tight);
|
|
letter-spacing: -0.02em;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.dashboard-hero__remedy {
|
|
margin: var(--sp-2) 0 0;
|
|
max-width: 72ch;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.dashboard-hero__remedy-label {
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
/* One muted line under the hero while the figures still rest on the
|
|
* statutory assumption for at least one parent. The lead word (the e2e
|
|
* hook) is the only emphasised part. */
|
|
.dashboard__estimate {
|
|
margin: 0 0 var(--sp-5);
|
|
max-width: 64ch;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.dashboard__estimate-badge {
|
|
font-weight: 500;
|
|
color: var(--c-warning);
|
|
}
|
|
|
|
/* Key figures — three tabular numerals, 14px labels, no tiles. */
|
|
.key-figures {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--sp-4) var(--sp-7);
|
|
margin: var(--sp-6) 0 var(--sp-7);
|
|
}
|
|
|
|
.key-figures__item {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
gap: var(--sp-1);
|
|
}
|
|
|
|
.key-figures__value {
|
|
margin: 0;
|
|
font-size: var(--fs-2xl);
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
letter-spacing: -0.02em;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.key-figures__value--danger {
|
|
color: var(--c-danger);
|
|
}
|
|
|
|
.key-figures__label {
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
/* Age4 bars — 6px meters, one per parent: the fill is the accent, the
|
|
* unfilled track a lighter step of the same hue. */
|
|
.age4-bars {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-3);
|
|
margin-bottom: var(--sp-6);
|
|
}
|
|
|
|
.age4-bars__title {
|
|
margin: 0;
|
|
font-size: var(--fs-sm);
|
|
font-weight: 500;
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.age4-bars__row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: baseline;
|
|
column-gap: var(--sp-3);
|
|
row-gap: var(--sp-1);
|
|
}
|
|
|
|
.age4-bars__label {
|
|
order: 1;
|
|
font-size: var(--fs-sm);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.age4-bars__stats {
|
|
order: 2;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: var(--sp-3);
|
|
font-size: var(--fs-sm);
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.age4-bars__expiring {
|
|
font-weight: 500;
|
|
color: var(--c-danger);
|
|
}
|
|
|
|
.age4-bars__track {
|
|
order: 3;
|
|
grid-column: 1 / -1;
|
|
height: 6px;
|
|
border-radius: var(--radius-full);
|
|
background-color: var(--c-accent-weak);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.age4-bars__fill {
|
|
height: 100%;
|
|
border-radius: var(--radius-full);
|
|
background-color: var(--c-accent);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
/* Year rows — one native <details> per calendar year: the year, a thin
|
|
* per-parent timeline of planned leave, and each parent's end-of-year
|
|
* figures. Hairlines between rows come from `.disclosure`. */
|
|
.year-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* The section after the rows opens with its own hairline. */
|
|
.year-rows > .disclosure:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.year-rows__legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--sp-4);
|
|
margin: 0 0 var(--sp-2);
|
|
padding: 0;
|
|
list-style: none;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.year-rows__legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
margin: 0;
|
|
}
|
|
|
|
.year-rows__swatch {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Fill/hatch/outline is the shared `.leave-swatch--*` recipe from
|
|
* primitives.css (added alongside these classes in YearRows.tsx); this file
|
|
* keeps only what's genuinely different at this swatch's small size.
|
|
*
|
|
* Vacation's bar uses a distinct, more saturated fill
|
|
* (--c-leave-vacation-bar) than the calendar band/help-popover sample —
|
|
* needed for contrast at 14px/8px. Overrides `.leave-swatch--vacation`'s
|
|
* background-color: same specificity, later in the cascade (components.css
|
|
* loads after primitives.css). */
|
|
.year-rows__swatch--vacation,
|
|
.year-row__band--vacation {
|
|
background-color: var(--c-leave-vacation-bar);
|
|
}
|
|
|
|
/* Lägsta's hatch is finer here (3px/4px stops) than the calendar band/
|
|
* help-popover's 4px/5px, for the same reason. Overrides
|
|
* `.leave-swatch--lagsta`'s background-image the same way. */
|
|
.year-rows__swatch--lagsta,
|
|
.year-row__band--lagsta {
|
|
background-image: repeating-linear-gradient(
|
|
135deg,
|
|
transparent 0 3px,
|
|
var(--c-leave-lagsta-hatch) 3px 4px
|
|
);
|
|
}
|
|
|
|
.year-row__summary {
|
|
display: grid;
|
|
grid-template-columns: 3.5rem minmax(0, 1fr) auto var(--icon-sm);
|
|
align-items: center;
|
|
column-gap: var(--sp-4);
|
|
row-gap: var(--sp-2);
|
|
padding: var(--sp-3) 0;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.year-row__summary:hover {
|
|
background-color: var(--c-row-hover);
|
|
}
|
|
|
|
.year-row__summary::after {
|
|
grid-row: 1;
|
|
grid-column: 4;
|
|
}
|
|
|
|
.year-row__year {
|
|
grid-row: 1;
|
|
grid-column: 1;
|
|
font-size: var(--fs-base);
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.year-row__track {
|
|
grid-row: 1;
|
|
grid-column: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.year-row__lane {
|
|
position: relative;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
background-color: var(--c-band-gap);
|
|
}
|
|
|
|
/* In a couple the lanes run in the same order as the figures beside them
|
|
* (you first), and every band names its parent on hover — a cap mark at
|
|
* the start of a lane read as a band on 1 January, so there is none. */
|
|
|
|
.year-row__band {
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
min-width: 3px;
|
|
border-radius: 2px;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.year-row__band:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.year-row__band:focus-visible {
|
|
outline: 2px solid var(--c-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Per-parent figures: name · FP kvar N · Semester kvar N · sparas N. Laid
|
|
* out as one grid across parents so the columns line up. */
|
|
.year-row__figures {
|
|
grid-row: 1;
|
|
grid-column: 3;
|
|
display: grid;
|
|
grid-template-columns: auto auto auto;
|
|
align-items: baseline;
|
|
column-gap: var(--sp-4);
|
|
row-gap: 2px;
|
|
font-size: var(--fs-sm);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.year-row__parent {
|
|
display: contents;
|
|
}
|
|
|
|
.year-row__name {
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.year-row__figure-label {
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.year-row__figure-value {
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.year-row__figure-sub {
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.year-row__figure-danger {
|
|
font-weight: 500;
|
|
color: var(--c-danger);
|
|
}
|
|
|
|
.year-row__body {
|
|
padding: var(--sp-2) 0 var(--sp-5) 3.5rem;
|
|
}
|
|
|
|
/* Subgrid: promotes the summary's columns to `.year-rows` so every row's
|
|
* figures share the same tracks — the timeline and figure columns then
|
|
* line up across years instead of each row's `auto` column sizing to its
|
|
* own text. Engines without subgrid keep the independent per-row grid
|
|
* above. */
|
|
@supports (grid-template-columns: subgrid) {
|
|
.year-rows {
|
|
display: grid;
|
|
grid-template-columns: 3.5rem minmax(0, 1fr) auto auto auto var(--icon-sm);
|
|
column-gap: var(--sp-4);
|
|
}
|
|
|
|
.year-row {
|
|
grid-column: 1 / -1;
|
|
display: grid;
|
|
grid-template-columns: subgrid;
|
|
}
|
|
|
|
.year-row__summary {
|
|
grid-column: 1 / -1;
|
|
display: grid;
|
|
grid-template-columns: subgrid;
|
|
}
|
|
|
|
.year-row__summary::after {
|
|
grid-column: 6;
|
|
}
|
|
|
|
.year-row__body {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.year-row__figures {
|
|
grid-column: 3 / 6;
|
|
grid-template-columns: subgrid;
|
|
}
|
|
}
|
|
|
|
.year-row__table {
|
|
width: auto;
|
|
margin-bottom: var(--sp-4);
|
|
font-size: var(--fs-sm);
|
|
}
|
|
|
|
.year-row__table th,
|
|
.year-row__table td {
|
|
padding: var(--sp-1) 0 var(--sp-1) var(--sp-5);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.year-row__table th:first-child,
|
|
.year-row__table td:first-child {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.year-row__table thead th {
|
|
padding-bottom: var(--sp-2);
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.year-row__table tr:hover td {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.year-row__group th {
|
|
padding-top: var(--sp-3);
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.year-row__cell-label {
|
|
font-weight: 400;
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.year-row__cell--num {
|
|
text-align: right;
|
|
}
|
|
|
|
.year-row__cell--danger {
|
|
color: var(--c-danger);
|
|
}
|
|
|
|
.year-row__row--emphasis td {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.year-row__badge {
|
|
margin-right: var(--sp-2);
|
|
}
|
|
|
|
/* Explains a warning figure (e.g. why vacation days expire) directly under
|
|
* its value, so a bare red number is never left unaccounted for. */
|
|
.year-row__cell-detail {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-weight: 400;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
white-space: normal;
|
|
}
|
|
|
|
.year-row__wishes-title {
|
|
margin: 0 0 var(--sp-2);
|
|
font-size: var(--fs-sm);
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.year-row__wish-list,
|
|
.year-row__remedies {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
font-size: var(--fs-sm);
|
|
}
|
|
|
|
.year-row__wish {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
column-gap: var(--sp-3);
|
|
margin: 0 0 var(--sp-1);
|
|
}
|
|
|
|
.year-row__wish-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.year-row__wish-weeks {
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.year-row__wish-weeks--short,
|
|
.year-row__shortfall,
|
|
.year-row__both-unmet {
|
|
color: var(--c-danger);
|
|
}
|
|
|
|
.year-row__both-unmet {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
.year-row__remedies {
|
|
flex-basis: 100%;
|
|
padding-left: var(--sp-4);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.year-row__remedies li {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Tips — a plain list. Severity is a small dot before the title; the
|
|
* dismiss is a bare glyph button. */
|
|
.dashboard__tips-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-4);
|
|
}
|
|
|
|
.tip-card {
|
|
padding: 0 0 0 var(--sp-5);
|
|
position: relative;
|
|
}
|
|
|
|
.tip-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 8px;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: var(--radius-full);
|
|
background-color: var(--c-text-faint);
|
|
}
|
|
|
|
.tip-card--warning::before {
|
|
background-color: var(--c-warning);
|
|
}
|
|
|
|
.tip-card--action::before {
|
|
background-color: var(--c-accent);
|
|
}
|
|
|
|
.tip-card--danger::before {
|
|
background-color: var(--c-danger);
|
|
}
|
|
|
|
.tip-card__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--sp-3);
|
|
}
|
|
|
|
.tip-card__title {
|
|
margin: 0;
|
|
font-size: var(--fs-base);
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.tip-card__dismiss {
|
|
flex-shrink: 0;
|
|
width: var(--icon-lg);
|
|
height: var(--icon-lg);
|
|
border-radius: var(--radius-sm);
|
|
font-size: var(--fs-lg);
|
|
line-height: 1;
|
|
}
|
|
|
|
.tip-card__body {
|
|
margin: var(--sp-1) 0 0;
|
|
max-width: 72ch;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
/* Vacation-rescue tip (§vacation-rescue) — an actionable `tip-card` variant:
|
|
* a plain date list, each with its own accept button, plus accept-all/
|
|
* dismiss. Buttons size to their own (bilingual) label text, never a fixed
|
|
* width, since "Acceptera alla"/"Accept all" differ in length. */
|
|
.vacation-rescue-tip__dates {
|
|
list-style: none;
|
|
margin: var(--sp-3) 0 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-2);
|
|
}
|
|
|
|
.vacation-rescue-tip__date {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--sp-3);
|
|
}
|
|
|
|
.vacation-rescue-tip__date-label {
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.vacation-rescue-tip__accept,
|
|
.vacation-rescue-tip__accept-all,
|
|
.vacation-rescue-tip__dismiss {
|
|
flex-shrink: 0;
|
|
width: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.vacation-rescue-tip__actions {
|
|
margin-top: var(--sp-3);
|
|
}
|
|
|
|
.vacation-rescue-tip__error {
|
|
margin: var(--sp-2) 0 0;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-danger);
|
|
}
|
|
|
|
/* "Detaljer" — one disclosure row at the foot of the page. */
|
|
.dashboard__details {
|
|
margin-top: var(--sp-6);
|
|
}
|
|
|
|
.dashboard__details-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-5);
|
|
align-items: flex-start;
|
|
}
|
|
|
|
/* Overview metrics — an unboxed label/value list. */
|
|
.overview-metrics {
|
|
width: 100%;
|
|
}
|
|
|
|
.overview-metrics__title {
|
|
margin: 0 0 var(--sp-2);
|
|
font-size: var(--fs-sm);
|
|
font-weight: 500;
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.overview-metrics__list {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
column-gap: var(--sp-4);
|
|
row-gap: var(--sp-1);
|
|
max-width: 56ch;
|
|
font-size: var(--fs-sm);
|
|
}
|
|
|
|
.overview-metrics__item {
|
|
display: contents;
|
|
}
|
|
|
|
.overview-metrics__label {
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.overview-metrics__value {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.overview-metrics__item--summary .overview-metrics__label,
|
|
.overview-metrics__item--summary .overview-metrics__value {
|
|
padding-top: var(--sp-1);
|
|
font-weight: 600;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
/* Parental-leave snapshot — one numeric column per parent. */
|
|
.parental-leave-breakdown {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-3);
|
|
width: 100%;
|
|
}
|
|
|
|
.parental-leave-breakdown__empty {
|
|
margin: 0;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.parental-leave-breakdown__table {
|
|
width: auto;
|
|
font-size: var(--fs-sm);
|
|
}
|
|
|
|
.parental-leave-breakdown__table th,
|
|
.parental-leave-breakdown__table td {
|
|
padding: var(--sp-1) 0 var(--sp-1) var(--sp-5);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.parental-leave-breakdown__table th:first-child,
|
|
.parental-leave-breakdown__table td:first-child {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.parental-leave-breakdown__table tbody th {
|
|
font-weight: 400;
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.parental-leave-breakdown__table thead th {
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.parental-leave-breakdown__table tr:hover td {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.parental-leave-breakdown__num {
|
|
text-align: right;
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.parental-leave-breakdown__provenance {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
.parental-leave-breakdown__provenance li {
|
|
margin: 0;
|
|
}
|
|
|
|
.parental-leave-breakdown__provenance-name {
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
}
|
|
|
|
.parental-leave-breakdown__badge {
|
|
margin-right: var(--sp-1);
|
|
}
|
|
|
|
.parental-leave-breakdown__reserved-note {
|
|
margin: 0;
|
|
max-width: 64ch;
|
|
font-size: var(--fs-sm);
|
|
color: var(--c-text-muted);
|
|
}
|
|
|
|
/* Form styles */
|
|
.form-group {
|
|
margin-bottom: var(--sp-5);
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: var(--sp-2);
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
font-size: var(--fs-base);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select,
|
|
.form-group textarea {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.form-group textarea {
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
}
|
|
|
|
/* Fieldsets */
|
|
fieldset {
|
|
border: 1px solid var(--c-border);
|
|
border-radius: var(--radius);
|
|
padding: var(--sp-4);
|
|
margin-bottom: var(--sp-5);
|
|
}
|
|
|
|
legend {
|
|
font-weight: 600;
|
|
color: var(--c-text);
|
|
padding: 0 var(--sp-2);
|
|
margin-left: calc(var(--sp-2) * -1);
|
|
}
|
|
|
|
/* Input Components
|
|
*
|
|
* `ChildBirthdayInput`, `VacationDaysInput` and `ParentProfileInput` all
|
|
* build their fields from `.field`/`.field__label`/`.field__control`/
|
|
* `.field__helper` (primitives.css) directly now, rather than their own
|
|
* bespoke `*-input__label`/`__field`/`__range`/`__help` sets — those are
|
|
* gone from here accordingly. What's left below are pure width modifiers
|
|
* (combined with `.field`/`.field__control` in the JSX), the one thing the
|
|
* shared primitives don't express. `.planning-goal-selector*` has no
|
|
* corresponding component left in `src/components` — left as-is, out of
|
|
* scope for this pass. */
|
|
.planning-goal-selector {
|
|
margin-bottom: var(--sp-5);
|
|
}
|
|
|
|
.planning-goal-selector__label {
|
|
display: block;
|
|
margin-bottom: var(--sp-2);
|
|
font-weight: 500;
|
|
color: var(--c-text);
|
|
font-size: var(--fs-base);
|
|
}
|
|
|
|
.planning-goal-selector__select {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.vacation-days-input,
|
|
.parent-profile-input {
|
|
margin-bottom: var(--sp-5);
|
|
}
|
|
|
|
.vacation-days-input__field,
|
|
.parent-profile-input__field {
|
|
max-width: 400px;
|
|
}
|
|
|
|
/* Stacked fields — the same gap as other stacked forms, so a label never
|
|
* sits tight under the select above it. */
|
|
.parent-profile-input {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-4);
|
|
}
|