Implement stores and refills, improve testing
This commit is contained in:
parent
9f416903ef
commit
5536acd67d
137 changed files with 21218 additions and 221 deletions
473
docs/design/styles/cabinet.css
Normal file
473
docs/design/styles/cabinet.css
Normal file
|
|
@ -0,0 +1,473 @@
|
|||
/* Cabinet — hero screen */
|
||||
|
||||
.cab-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 1px;
|
||||
background: var(--border);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
.cab-summary__item {
|
||||
background: var(--bg-elev);
|
||||
padding: 18px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
.cab-summary__label {
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.cab-summary__value {
|
||||
font-size: 26px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--ink-strong);
|
||||
line-height: 1.15;
|
||||
}
|
||||
.cab-summary__item--danger .cab-summary__value { color: var(--danger); }
|
||||
.cab-summary__item--warn .cab-summary__value { color: var(--warn); }
|
||||
.cab-summary__item--brand .cab-summary__value { color: var(--brand); }
|
||||
.cab-summary__hint { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
|
||||
|
||||
/* Filters */
|
||||
.cab-filters {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.cab-filters__tabs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
background: var(--bg-elev);
|
||||
padding: 4px;
|
||||
border-radius: var(--r-sm);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.cab-filters__tab {
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
border-radius: 6px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: all 0.12s;
|
||||
}
|
||||
.cab-filters__tab:hover { color: var(--ink); }
|
||||
.cab-filters__tab.is-active {
|
||||
background: var(--ink);
|
||||
color: var(--bg-elev);
|
||||
font-weight: 500;
|
||||
}
|
||||
.cab-filters__count {
|
||||
font-size: 10px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 6px;
|
||||
background: var(--bg-inset);
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
.cab-filters__tab.is-active .cab-filters__count {
|
||||
background: rgba(255,255,255,0.12);
|
||||
color: var(--bg-elev);
|
||||
}
|
||||
.cab-filters__tools {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
.cab-filters__search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
padding: 6px 10px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
.cab-filters__search input {
|
||||
border: 0; outline: 0; background: transparent; width: 120px; font-size: 12px;
|
||||
}
|
||||
.cab-filters__search input::placeholder { color: var(--ink-faint); }
|
||||
|
||||
/* Grid */
|
||||
.cab-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
.cab-card {
|
||||
text-align: left;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
padding: 18px;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
transition: all 0.15s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.cab-card:hover {
|
||||
border-color: var(--border-strong);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
.cab-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 3px;
|
||||
background: var(--viz-1);
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
.cab-card:hover::before { opacity: 0.6; }
|
||||
.cab-card--lvl-low::before, .cab-card--lvl-critical::before {
|
||||
background: var(--danger); opacity: 1;
|
||||
}
|
||||
.cab-card--lvl-expiring::before { background: var(--warn); opacity: 1; }
|
||||
|
||||
.cab-card__top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.cab-card__swatch {
|
||||
width: 34px; height: 34px;
|
||||
border-radius: var(--r-sm);
|
||||
display: grid; place-items: center;
|
||||
background: color-mix(in oklab, var(--c) 16%, var(--bg-elev));
|
||||
color: var(--c);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cab-card__swatch--sm { width: 22px; height: 22px; border-radius: 6px; }
|
||||
.cab-card__meta { flex: 1; min-width: 0; }
|
||||
.cab-card__name {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--ink-strong);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.cab-card__strength {
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
margin-top: 1px;
|
||||
}
|
||||
.cab-card__flag { flex-shrink: 0; }
|
||||
|
||||
.cab-card__qty {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
}
|
||||
.cab-card__qtyNum {
|
||||
font-size: 26px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--ink-strong);
|
||||
line-height: 1;
|
||||
}
|
||||
.cab-card__qtyUnit {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.cab-card__foot {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 10px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px dashed var(--border);
|
||||
}
|
||||
.cab-card__footLabel {
|
||||
font-size: 10px;
|
||||
color: var(--ink-faint);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.cab-card__footValue {
|
||||
font-size: 12px;
|
||||
color: var(--ink);
|
||||
font-weight: 500;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.cab-card__footValue.is-warn { color: var(--warn); }
|
||||
|
||||
/* Days bar */
|
||||
.daysbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.daysbar__track {
|
||||
flex: 1;
|
||||
height: 6px;
|
||||
background: var(--bg-inset);
|
||||
border-radius: 3px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.daysbar__fill {
|
||||
height: 100%;
|
||||
background: var(--ok);
|
||||
border-radius: 3px;
|
||||
transition: width 0.3s;
|
||||
}
|
||||
.daysbar--low .daysbar__fill { background: var(--warn); }
|
||||
.daysbar--critical .daysbar__fill { background: var(--danger); }
|
||||
.daysbar__mark {
|
||||
position: absolute;
|
||||
top: -2px; bottom: -2px;
|
||||
width: 1px;
|
||||
background: var(--ink-faint);
|
||||
opacity: 0.5;
|
||||
}
|
||||
.daysbar__label {
|
||||
font-size: 11px;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 3px;
|
||||
min-width: 50px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.daysbar__num {
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
font-size: 13px;
|
||||
}
|
||||
.daysbar__unit { color: var(--ink-muted); font-size: 10px; }
|
||||
.daysbar--low .daysbar__num { color: var(--warn); }
|
||||
.daysbar--critical .daysbar__num { color: var(--danger); }
|
||||
|
||||
/* Table view */
|
||||
.cab-table {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
.cab-table__head, .cab-table__row {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 0.7fr 1.4fr 1fr 0.8fr 0.8fr;
|
||||
gap: 14px;
|
||||
padding: 10px 18px;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
.cab-table__head {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--ink-faint);
|
||||
background: var(--bg-inset);
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-weight: 600;
|
||||
}
|
||||
.cab-table__row {
|
||||
border-bottom: 1px solid var(--border);
|
||||
transition: background 0.1s;
|
||||
}
|
||||
.cab-table__row:last-child { border-bottom: 0; }
|
||||
.cab-table__row:hover { background: var(--bg-inset); }
|
||||
.cab-table__cellMed {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
}
|
||||
|
||||
/* Shelf view */
|
||||
.cab-shelf {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 40px;
|
||||
padding: 20px 0 40px;
|
||||
}
|
||||
.cab-shelf__level {
|
||||
position: relative;
|
||||
}
|
||||
.cab-shelf__tag {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--ink-faint);
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.cab-shelf__bottles {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
align-items: flex-end;
|
||||
min-height: 160px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
.cab-shelf__line {
|
||||
height: 3px;
|
||||
background: linear-gradient(180deg, var(--border-strong), var(--border));
|
||||
border-radius: 1px;
|
||||
margin-top: 8px;
|
||||
box-shadow: 0 1px 0 var(--bg-inset);
|
||||
}
|
||||
|
||||
.cab-bottle {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: transform 0.15s;
|
||||
width: 80px;
|
||||
}
|
||||
.cab-bottle:hover { transform: translateY(-3px); }
|
||||
.cab-bottle__body {
|
||||
width: 46px;
|
||||
height: 110px;
|
||||
background: color-mix(in oklab, var(--c) 18%, var(--bg-elev));
|
||||
border: 1.5px solid color-mix(in oklab, var(--c) 50%, var(--bg-elev));
|
||||
border-radius: 8px 8px 6px 6px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.cab-bottle__fill {
|
||||
position: absolute;
|
||||
left: 0; right: 0; bottom: 0;
|
||||
background: var(--c);
|
||||
transition: height 0.4s;
|
||||
}
|
||||
.cab-bottle__cap {
|
||||
position: absolute;
|
||||
top: -6px; left: 50%; transform: translateX(-50%);
|
||||
width: 28px; height: 8px;
|
||||
background: var(--ink-muted);
|
||||
border-radius: 3px 3px 2px 2px;
|
||||
}
|
||||
.cab-bottle--lvl-low .cab-bottle__body, .cab-bottle--lvl-critical .cab-bottle__body {
|
||||
border-color: var(--danger);
|
||||
}
|
||||
.cab-bottle__label { text-align: center; }
|
||||
.cab-bottle__name {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: var(--ink);
|
||||
max-width: 90px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cab-bottle__qty { font-size: 10px; color: var(--ink-muted); }
|
||||
|
||||
/* Detail drawer */
|
||||
.cab-detail {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(20, 18, 10, 0.3);
|
||||
z-index: 50;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
animation: fade-in 0.2s;
|
||||
}
|
||||
@keyframes fade-in { from { opacity: 0; } }
|
||||
.cab-detail__panel {
|
||||
width: min(520px, 100%);
|
||||
background: var(--bg-elev);
|
||||
border-left: 1px solid var(--border);
|
||||
box-shadow: var(--shadow-lg);
|
||||
overflow-y: auto;
|
||||
animation: slide-in 0.2s;
|
||||
padding: 24px 28px 32px;
|
||||
}
|
||||
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
|
||||
.cab-detail__head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.cab-detail__title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 22px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--ink-strong);
|
||||
}
|
||||
.cab-detail__sub {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
.cab-detail__hero {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
background: var(--bg-inset);
|
||||
border-radius: var(--r-md);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.cab-detail__bigLabel {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--ink-faint);
|
||||
font-weight: 600;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.cab-detail__big {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--ink-strong);
|
||||
line-height: 1.1;
|
||||
}
|
||||
.cab-detail__big span {
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
font-weight: 400;
|
||||
font-family: var(--font-sans);
|
||||
margin-left: 2px;
|
||||
}
|
||||
.cab-detail__big.is-warn { color: var(--warn); }
|
||||
.cab-detail__actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.cab-detail__section { margin-top: 20px; }
|
||||
.cab-detail__sectionTitle {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--ink-muted);
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.cab-detail__prices {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.cab-detail__price {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
background: var(--bg-elev);
|
||||
}
|
||||
.cab-detail__price.is-best {
|
||||
border-color: var(--ok);
|
||||
background: var(--ok-soft);
|
||||
}
|
||||
.cab-detail__priceStore { flex: 1; font-size: 13px; }
|
||||
.cab-detail__priceBody { text-align: right; }
|
||||
152
docs/design/styles/dashboard.css
Normal file
152
docs/design/styles/dashboard.css
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
/* Dashboard */
|
||||
.dash-hero {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
padding: 4px 4px 24px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.dash-hero__day {
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-muted);
|
||||
font-weight: 500;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.dash-hero__title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 34px;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--ink-strong);
|
||||
line-height: 1.05;
|
||||
}
|
||||
.dash-hero__sub {
|
||||
font-size: 14px;
|
||||
color: var(--ink-muted);
|
||||
margin-top: 8px;
|
||||
max-width: 520px;
|
||||
}
|
||||
|
||||
.dash-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
.dash-panel { overflow: hidden; }
|
||||
|
||||
/* Schedule */
|
||||
.dash-schedule { padding: 4px 18px 18px; }
|
||||
.dash-sched__slot {
|
||||
display: grid;
|
||||
grid-template-columns: 80px 1fr;
|
||||
gap: 16px;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px dashed var(--border);
|
||||
align-items: flex-start;
|
||||
}
|
||||
.dash-sched__slot:last-child { border-bottom: 0; }
|
||||
.dash-sched__slot.is-done { opacity: 0.55; }
|
||||
.dash-sched__time { padding-top: 4px; }
|
||||
.dash-sched__items {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.dash-sched__pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 12px 6px 8px;
|
||||
background: var(--bg-inset);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
transition: all 0.12s;
|
||||
}
|
||||
.dash-sched__pill:hover { border-color: var(--border-strong); }
|
||||
.dash-sched__pill.is-taken { background: var(--ok-soft); border-color: transparent; }
|
||||
.dash-sched__pill.is-taken .dash-sched__name { text-decoration: line-through; color: var(--ink-muted); }
|
||||
.dash-sched__check {
|
||||
width: 16px; height: 16px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid var(--border-strong);
|
||||
display: grid; place-items: center;
|
||||
color: transparent;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.dash-sched__check.is-taken { background: var(--ok); border-color: var(--ok); color: white; }
|
||||
.dash-sched__name { font-weight: 500; color: var(--ink-strong); }
|
||||
.dash-sched__dose { color: var(--ink-muted); font-size: 11px; }
|
||||
|
||||
/* Low */
|
||||
.dash-low { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
|
||||
.dash-low__item {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px dashed var(--border);
|
||||
}
|
||||
.dash-low__item:last-child { border-bottom: 0; }
|
||||
|
||||
/* Spend */
|
||||
.dash-spend { padding: 12px 18px 18px; }
|
||||
|
||||
/* Supply */
|
||||
.dash-supply { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
|
||||
.dash-supply__row {
|
||||
display: grid;
|
||||
grid-template-columns: 140px 1fr 48px;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
.dash-supply__name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.dash-supply__bar {
|
||||
height: 8px;
|
||||
background: var(--bg-inset);
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
.dash-supply__fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
|
||||
.dash-supply__fill--ok { background: var(--brand); }
|
||||
.dash-supply__fill--low { background: var(--warn); }
|
||||
.dash-supply__fill--critical { background: var(--danger); }
|
||||
.dash-supply__days { font-weight: 600; text-align: right; }
|
||||
.dash-supply__days span { color: var(--ink-faint); font-weight: 400; margin-left: 1px; font-size: 10px; }
|
||||
|
||||
/* Orders */
|
||||
.dash-orders { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
|
||||
.dash-order {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px dashed var(--border);
|
||||
}
|
||||
.dash-order:last-child { border-bottom: 0; }
|
||||
.dash-order__icon {
|
||||
width: 28px; height: 28px;
|
||||
border-radius: 50%;
|
||||
background: var(--brand-soft);
|
||||
color: var(--brand-soft-ink);
|
||||
display: grid; place-items: center;
|
||||
}
|
||||
.dash-order.is-past .dash-order__icon { background: var(--bg-inset); color: var(--ink-muted); }
|
||||
|
||||
/* Activity */
|
||||
.dash-activity { padding: 4px 18px 16px; }
|
||||
.dash-act {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px dashed var(--border);
|
||||
}
|
||||
.dash-act:last-child { border-bottom: 0; }
|
||||
199
docs/design/styles/other.css
Normal file
199
docs/design/styles/other.css
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
/* Other pages */
|
||||
.sub-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
|
||||
.form-label { display:block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 600; margin-bottom: 6px; }
|
||||
.form-select {
|
||||
padding: 8px 12px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
font-size: 13px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.lib-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.lib-row:last-child { border-bottom: 0; }
|
||||
.lib-row:hover { background: var(--bg-inset); }
|
||||
|
||||
.org-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
|
||||
.org-day { padding: 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); }
|
||||
.org-day__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
|
||||
.org-day__slots { display: flex; flex-wrap: wrap; gap: 4px; min-height: 70px; }
|
||||
.org-pill {
|
||||
width: 14px; height: 20px; background: var(--c); border-radius: 7px;
|
||||
box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1), inset 0 3px 0 rgba(255,255,255,0.2);
|
||||
display: inline-block;
|
||||
}
|
||||
.org-day__count { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; font-weight:600; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
|
||||
|
||||
/* Organizer — fill + inventory impact */
|
||||
.org-hero {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.3fr;
|
||||
gap: 0;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
.org-hero__controls {
|
||||
padding: 20px 22px;
|
||||
background: var(--bg-inset);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
}
|
||||
.org-hero__divider { height: 1px; background: var(--border); }
|
||||
.org-hero__select {
|
||||
display: block;
|
||||
margin-top: 6px;
|
||||
padding: 8px 12px;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--ink-strong);
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
}
|
||||
.org-hero__stepper {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
.org-hero__stepper button {
|
||||
width: 32px; height: 36px;
|
||||
border: none; background: transparent;
|
||||
font-size: 16px; color: var(--ink-strong);
|
||||
cursor: pointer;
|
||||
}
|
||||
.org-hero__stepper button:hover { background: var(--bg-inset); }
|
||||
.org-hero__stepper span {
|
||||
padding: 0 14px; font-size: 20px; font-weight: 600; min-width: 48px; text-align: center;
|
||||
color: var(--ink-strong);
|
||||
border-left: 1px solid var(--border);
|
||||
border-right: 1px solid var(--border);
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
}
|
||||
.org-hero__presets { display: flex; gap: 4px; margin-top: 8px; }
|
||||
.org-hero__preset {
|
||||
padding: 4px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
}
|
||||
.org-hero__preset.is-active { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }
|
||||
|
||||
.org-hero__summary {
|
||||
padding: 22px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
.org-alert {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 14px;
|
||||
border-radius: var(--r-sm);
|
||||
font-size: 13px;
|
||||
}
|
||||
.org-alert strong { font-weight: 600; color: var(--ink-strong); }
|
||||
.org-alert > div:first-of-type { flex: 1; }
|
||||
.org-alert--ok { background: var(--ok-soft); color: var(--ok); }
|
||||
.org-alert--ok strong { color: var(--ok); }
|
||||
.org-alert--warn { background: var(--warn-soft); color: var(--warn); }
|
||||
.org-alert--warn strong { color: var(--warn); }
|
||||
.org-alert--danger { background: var(--danger-soft); color: var(--danger); }
|
||||
.org-alert--danger strong { color: var(--danger); }
|
||||
|
||||
.org-impact { padding: 4px 18px 16px; }
|
||||
.org-impact__head, .org-impact__row {
|
||||
display: grid;
|
||||
grid-template-columns: 2.4fr 0.8fr 0.8fr 1.6fr 0.8fr;
|
||||
gap: 14px;
|
||||
padding: 10px 8px;
|
||||
font-size: 13px;
|
||||
align-items: center;
|
||||
}
|
||||
.org-impact__head {
|
||||
font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
|
||||
color: var(--ink-faint); font-weight: 600;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.org-impact__row { border-bottom: 1px dashed var(--border); }
|
||||
.org-impact__row:last-child { border-bottom: 0; }
|
||||
.org-impact__row--short { background: color-mix(in oklab, var(--danger) 5%, transparent); }
|
||||
.org-impact__bar {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-inset);
|
||||
}
|
||||
.org-impact__barFill {
|
||||
position: absolute; top: 0; left: 0; bottom: 0;
|
||||
border-radius: 3px;
|
||||
transition: width .2s;
|
||||
}
|
||||
|
||||
.prices-table { padding: 0 18px 16px; }
|
||||
.prices-table__head, .prices-table__row {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr 1fr;
|
||||
gap: 14px;
|
||||
padding: 10px 8px;
|
||||
font-size: 13px;
|
||||
align-items: center;
|
||||
}
|
||||
.prices-table__head {
|
||||
font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
|
||||
color: var(--ink-faint); font-weight: 600;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.prices-table__row { border-bottom: 1px dashed var(--border); }
|
||||
.prices-table__row:last-child { border-bottom: 0; }
|
||||
.prices-table__row.is-best { background: var(--ok-soft); border-radius: 8px; margin: 2px 0; border-bottom: 0; }
|
||||
|
||||
.refill-row {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 12px 0; border-bottom: 1px dashed var(--border);
|
||||
}
|
||||
.refill-row:last-child { border-bottom: 0; }
|
||||
|
||||
.act-row {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 10px 0;
|
||||
position: relative;
|
||||
}
|
||||
.act-rail { width: 12px; position: relative; align-self: stretch; }
|
||||
.act-dot { position: absolute; top: 14px; left: 2px; width: 8px; height: 8px; border-radius: 50%; }
|
||||
.act-dot--consumed { background: var(--info); }
|
||||
.act-dot--added { background: var(--ok); }
|
||||
.act-dot--adjusted { background: var(--warn); }
|
||||
|
||||
.settings-row {
|
||||
display: grid; grid-template-columns: 120px 1fr auto;
|
||||
gap: 16px; align-items: center;
|
||||
padding: 10px 0; border-bottom: 1px dashed var(--border);
|
||||
}
|
||||
.settings-row:last-child { border-bottom: 0; }
|
||||
.settings-row > span:first-child { color: var(--ink-muted); font-size: 12px; }
|
||||
181
docs/design/styles/schedule.css
Normal file
181
docs/design/styles/schedule.css
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
/* Schedule page — slot-based */
|
||||
|
||||
/* Week bar: compact adherence heatmap */
|
||||
.sched-weekbar {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
.sched-weekbar__days {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 6px;
|
||||
flex: 1;
|
||||
}
|
||||
.sched-weekday {
|
||||
padding: 8px 6px;
|
||||
border-radius: var(--r-sm);
|
||||
border: 1px solid transparent;
|
||||
background: transparent;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
grid-template-rows: auto auto;
|
||||
gap: 2px 8px;
|
||||
align-items: center;
|
||||
transition: background .12s, border-color .12s;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sched-weekday:hover { background: var(--bg-inset); }
|
||||
.sched-weekday.is-active { background: var(--bg-inset); border-color: var(--border-strong); }
|
||||
.sched-weekday__label {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
color: var(--ink-faint);
|
||||
font-weight: 600;
|
||||
grid-row: 1;
|
||||
}
|
||||
.sched-weekday__num {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--ink-strong);
|
||||
grid-row: 2;
|
||||
}
|
||||
.sched-weekday__bar {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / 3;
|
||||
width: 5px;
|
||||
height: 28px;
|
||||
background: var(--bg-inset);
|
||||
border-radius: 2px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sched-weekday__fill {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-radius: 2px;
|
||||
transition: height .2s;
|
||||
}
|
||||
|
||||
/* Today: slot rows */
|
||||
.sched-slots {
|
||||
padding: 4px 18px 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.sched-slot {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--bg-elev);
|
||||
overflow: hidden;
|
||||
transition: border-color .12s;
|
||||
}
|
||||
.sched-slot:hover { border-color: var(--border-strong); }
|
||||
.sched-slot.is-open { border-color: var(--border-strong); }
|
||||
.sched-slot--done { background: color-mix(in oklab, var(--ok) 4%, var(--bg-elev)); }
|
||||
.sched-slot--overdue { border-color: color-mix(in oklab, var(--warn) 40%, var(--border)); }
|
||||
|
||||
.sched-slot__row {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 100px 1fr auto;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 14px 16px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sched-slot__time { display: flex; flex-direction: column; gap: 2px; }
|
||||
.sched-slot__hour {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--ink-strong);
|
||||
letter-spacing: -0.01em;
|
||||
line-height: 1;
|
||||
}
|
||||
.sched-slot__phase {
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.sched-slot__main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.sched-slot__summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.sched-slot__dots {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.sched-slot__dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid;
|
||||
background: transparent;
|
||||
transition: all .15s;
|
||||
}
|
||||
.sched-slot__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.sched-slot__detail {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 10px 16px 14px 116px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
background: var(--bg-inset);
|
||||
}
|
||||
.sched-slot__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
transition: all 0.12s;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sched-slot__item:hover { border-color: var(--border-strong); }
|
||||
.sched-slot__item.is-taken { opacity: 0.65; }
|
||||
|
||||
.sched-check {
|
||||
width: 18px; height: 18px; border-radius: 50%;
|
||||
border: 1.5px solid var(--border-strong);
|
||||
display: grid; place-items: center;
|
||||
color: transparent;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.sched-check.is-taken { background: var(--ok); border-color: var(--ok); color: white; }
|
||||
|
||||
.sched-regimen {
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
370
docs/design/styles/shell.css
Normal file
370
docs/design/styles/shell.css
Normal file
|
|
@ -0,0 +1,370 @@
|
|||
/* Shell: sidebar + topbar + layout */
|
||||
|
||||
.mt-app {
|
||||
display: grid;
|
||||
grid-template-columns: 248px 1fr;
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.mt-side {
|
||||
background: var(--bg-elev);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
.mt-side__brand {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
padding: 18px 18px 14px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.mt-side__logo {
|
||||
width: 34px; height: 34px;
|
||||
border-radius: 10px;
|
||||
display: grid; place-items: center;
|
||||
background: var(--brand-soft);
|
||||
}
|
||||
.mt-side__title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--ink-strong);
|
||||
}
|
||||
.mt-side__sub {
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.mt-side__nav {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 10px 10px 16px;
|
||||
}
|
||||
.mt-side__group { margin-bottom: 14px; }
|
||||
.mt-side__section {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-faint);
|
||||
padding: 10px 10px 6px;
|
||||
}
|
||||
.mt-side__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
padding: 7px 10px;
|
||||
border-radius: var(--r-sm);
|
||||
font-size: 13px;
|
||||
color: var(--ink-muted);
|
||||
text-align: left;
|
||||
transition: background 0.1s, color 0.1s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.mt-side__item > span:not(.mt-side__badge) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.mt-side__item { min-width: 0; }
|
||||
.mt-side__item:hover { background: var(--bg-inset); color: var(--ink); }
|
||||
.mt-side__item.is-active {
|
||||
background: var(--brand-soft);
|
||||
color: var(--brand-soft-ink);
|
||||
font-weight: 500;
|
||||
}
|
||||
.mt-side__item svg { opacity: 0.8; }
|
||||
.mt-side__item.is-active svg { opacity: 1; }
|
||||
.mt-side__soon {
|
||||
margin-left: auto;
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
color: var(--ink-faint);
|
||||
background: var(--bg-inset);
|
||||
padding: 1px 6px;
|
||||
border-radius: 8px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
.mt-side__item.is-soon { opacity: 0.55; cursor: not-allowed; }
|
||||
.mt-side__item.is-soon:hover { background: transparent; color: var(--ink-muted); }
|
||||
.mt-side__badge {
|
||||
margin-left: auto;
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
padding: 1px 6px;
|
||||
border-radius: 8px;
|
||||
min-width: 18px;
|
||||
text-align: center;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.mt-side__foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.mt-side__avatar {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--viz-4), var(--viz-3));
|
||||
color: white;
|
||||
display: grid; place-items: center;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
}
|
||||
.mt-side__whoName { font-size: 13px; font-weight: 500; color: var(--ink-strong); }
|
||||
.mt-side__whoRole { font-size: 11px; color: var(--ink-muted); }
|
||||
|
||||
/* Topbar */
|
||||
.mt-main { display: flex; flex-direction: column; min-width: 0; }
|
||||
.mt-top {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
padding: 22px 32px 18px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 5;
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
.mt-top__crumbs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
margin-bottom: 6px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.mt-top__crumbs .is-current { color: var(--ink); }
|
||||
.mt-top__title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--ink-strong);
|
||||
margin: 0;
|
||||
line-height: 1.1;
|
||||
}
|
||||
.mt-top__sub {
|
||||
font-size: 13px;
|
||||
color: var(--ink-muted);
|
||||
margin-top: 4px;
|
||||
}
|
||||
.mt-top__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.mt-top__search {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-sm);
|
||||
padding: 6px 10px;
|
||||
min-width: 280px;
|
||||
color: var(--ink-muted);
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
.mt-top__search:focus-within { border-color: var(--brand); }
|
||||
.mt-top__search input {
|
||||
border: 0; outline: 0; background: transparent;
|
||||
font-size: 13px; flex: 1; color: var(--ink);
|
||||
}
|
||||
.mt-top__search input::placeholder { color: var(--ink-faint); }
|
||||
.mt-top__search kbd {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
padding: 2px 5px;
|
||||
background: var(--bg-inset);
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.mt-iconbtn {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: var(--r-sm);
|
||||
display: grid; place-items: center;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--ink-muted);
|
||||
position: relative;
|
||||
transition: all 0.1s;
|
||||
}
|
||||
.mt-iconbtn:hover { color: var(--ink); border-color: var(--border-strong); }
|
||||
.mt-iconbtn__dot {
|
||||
position: absolute;
|
||||
top: 6px; right: 6px;
|
||||
width: 6px; height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--danger);
|
||||
border: 1.5px solid var(--bg-elev);
|
||||
}
|
||||
|
||||
/* Page container */
|
||||
.mt-page {
|
||||
padding: 28px 32px 56px;
|
||||
max-width: 1400px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.mt-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 7px 12px;
|
||||
border-radius: var(--r-sm);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
transition: all 0.12s;
|
||||
border: 1px solid transparent;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.mt-btn--primary {
|
||||
background: var(--brand);
|
||||
color: var(--brand-ink);
|
||||
}
|
||||
.mt-btn--primary:hover { background: var(--brand-deep); }
|
||||
.mt-btn--ghost {
|
||||
background: var(--bg-elev);
|
||||
color: var(--ink);
|
||||
border-color: var(--border);
|
||||
}
|
||||
.mt-btn--ghost:hover { border-color: var(--border-strong); background: var(--bg-inset); }
|
||||
.mt-btn--subtle {
|
||||
color: var(--ink-muted);
|
||||
padding: 6px 10px;
|
||||
}
|
||||
.mt-btn--subtle:hover { color: var(--ink); background: var(--bg-inset); }
|
||||
.mt-btn--danger {
|
||||
color: var(--danger);
|
||||
border-color: var(--danger-soft);
|
||||
background: var(--bg-elev);
|
||||
}
|
||||
.mt-btn--danger:hover { background: var(--danger-soft); }
|
||||
|
||||
/* Card */
|
||||
.mt-card {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
}
|
||||
.mt-card__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 16px 18px 14px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.mt-card__title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: var(--ink-strong);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.mt-card__sub {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
.mt-card__body { padding: 16px 18px; }
|
||||
|
||||
/* Pill / badge */
|
||||
.mt-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
line-height: 1.6;
|
||||
letter-spacing: 0.01em;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.mt-pill--brand { background: var(--brand-soft); color: var(--brand-soft-ink); }
|
||||
.mt-pill--ok { background: var(--ok-soft); color: var(--ok); }
|
||||
.mt-pill--warn { background: var(--warn-soft); color: var(--warn); }
|
||||
.mt-pill--danger { background: var(--danger-soft); color: var(--danger); }
|
||||
.mt-pill--info { background: var(--info-soft); color: var(--info); }
|
||||
.mt-pill--ghost { background: var(--bg-inset); color: var(--ink-muted); }
|
||||
.mt-pill--outline { border-color: var(--border); color: var(--ink-muted); }
|
||||
|
||||
/* Utility */
|
||||
.mt-row { display: flex; gap: 12px; align-items: center; }
|
||||
.mt-col { display: flex; flex-direction: column; gap: 12px; }
|
||||
.mt-grid { display: grid; gap: 12px; }
|
||||
.mt-divider { height: 1px; background: var(--border); margin: 12px 0; }
|
||||
.mt-stack > * + * { margin-top: 12px; }
|
||||
.mt-mono { font-family: var(--font-mono); font-size: 12px; }
|
||||
|
||||
/* Tweaks panel */
|
||||
.mt-tweaks {
|
||||
position: fixed;
|
||||
right: 16px;
|
||||
bottom: 16px;
|
||||
z-index: 100;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--r-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: 14px;
|
||||
min-width: 240px;
|
||||
display: none;
|
||||
}
|
||||
.mt-tweaks.is-open { display: block; }
|
||||
.mt-tweaks__title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.mt-tweaks__row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px 0;
|
||||
border-top: 1px solid var(--border);
|
||||
font-size: 12px;
|
||||
}
|
||||
.mt-tweaks__row:first-of-type { border-top: 0; }
|
||||
.mt-seg {
|
||||
display: inline-flex;
|
||||
background: var(--bg-inset);
|
||||
border-radius: 6px;
|
||||
padding: 2px;
|
||||
gap: 0;
|
||||
}
|
||||
.mt-seg button {
|
||||
padding: 4px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
.mt-seg button.is-active {
|
||||
background: var(--bg-elev);
|
||||
color: var(--ink);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
123
docs/design/styles/tokens.css
Normal file
123
docs/design/styles/tokens.css
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
/* MeshiTrack design tokens */
|
||||
|
||||
:root {
|
||||
/* Type */
|
||||
--font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
|
||||
--font-display: 'Fraunces', 'Inter Tight', serif;
|
||||
--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
|
||||
|
||||
/* Neutrals (warm off-white → near-black) */
|
||||
--bg: #f6f4ef;
|
||||
--bg-elev: #ffffff;
|
||||
--bg-inset: #efebe3;
|
||||
--border: #e4dfd4;
|
||||
--border-strong: #cfc8b8;
|
||||
--ink-faint: #a39b89;
|
||||
--ink-muted: #6e6759;
|
||||
--ink: #1d1b17;
|
||||
--ink-strong: #0b0a08;
|
||||
|
||||
/* Brand — refined sage-leaning green (was straight green) */
|
||||
--brand: #2f6b4a;
|
||||
--brand-deep: #1e4a32;
|
||||
--brand-ink: #ffffff;
|
||||
--brand-soft: #e6efe8;
|
||||
--brand-soft-ink: #1e4a32;
|
||||
|
||||
/* Status */
|
||||
--danger: #b8361a;
|
||||
--danger-soft: #fbe8e0;
|
||||
--warn: #a66a0a;
|
||||
--warn-soft: #f9ecd2;
|
||||
--ok: #3e7a4c;
|
||||
--ok-soft: #e3ede0;
|
||||
--info: #3a5a85;
|
||||
--info-soft: #e1e8f1;
|
||||
|
||||
/* Data viz (cabinet categories / charts) */
|
||||
--viz-1: #2f6b4a;
|
||||
--viz-2: #a66a0a;
|
||||
--viz-3: #3a5a85;
|
||||
--viz-4: #8a4c6e;
|
||||
--viz-5: #6b6237;
|
||||
--viz-6: #7a3a28;
|
||||
|
||||
/* Shape */
|
||||
--r-xs: 6px;
|
||||
--r-sm: 10px;
|
||||
--r-md: 14px;
|
||||
--r-lg: 20px;
|
||||
--r-xl: 28px;
|
||||
|
||||
/* Shadow */
|
||||
--shadow-sm: 0 1px 2px rgba(20, 18, 10, 0.04), 0 0 0 1px rgba(20, 18, 10, 0.04);
|
||||
--shadow-md: 0 4px 16px -6px rgba(20, 18, 10, 0.08), 0 0 0 1px rgba(20, 18, 10, 0.05);
|
||||
--shadow-lg: 0 20px 40px -20px rgba(20, 18, 10, 0.22), 0 0 0 1px rgba(20, 18, 10, 0.06);
|
||||
}
|
||||
|
||||
[data-theme='dark'] {
|
||||
--bg: #141310;
|
||||
--bg-elev: #1c1b17;
|
||||
--bg-inset: #100f0c;
|
||||
--border: #2a2823;
|
||||
--border-strong: #3a372f;
|
||||
--ink-faint: #6a6559;
|
||||
--ink-muted: #9a9386;
|
||||
--ink: #ece8de;
|
||||
--ink-strong: #f8f5ec;
|
||||
|
||||
--brand: #5fa87b;
|
||||
--brand-deep: #8fc9a4;
|
||||
--brand-ink: #0b0a08;
|
||||
--brand-soft: #1e2c23;
|
||||
--brand-soft-ink: #8fc9a4;
|
||||
|
||||
--danger: #e37358;
|
||||
--danger-soft: #2c1a15;
|
||||
--warn: #d6a152;
|
||||
--warn-soft: #2c2217;
|
||||
--ok: #7aba89;
|
||||
--ok-soft: #1a2820;
|
||||
--info: #7ea3cf;
|
||||
--info-soft: #1a2028;
|
||||
|
||||
--viz-1: #5fa87b;
|
||||
--viz-2: #d6a152;
|
||||
--viz-3: #7ea3cf;
|
||||
--viz-4: #c088a5;
|
||||
--viz-5: #b8ac76;
|
||||
--viz-6: #d88a74;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
|
||||
--shadow-md: 0 4px 16px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
|
||||
--shadow-lg: 0 20px 40px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-feature-settings: 'ss01', 'cv11';
|
||||
color: var(--ink);
|
||||
background: var(--bg);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-size: 14px;
|
||||
line-height: 1.45;
|
||||
letter-spacing: -0.005em;
|
||||
transition: background-color 0.2s, color 0.2s;
|
||||
}
|
||||
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
|
||||
input, select, textarea { font: inherit; color: inherit; }
|
||||
a { color: inherit; text-decoration: none; }
|
||||
|
||||
::selection { background: var(--brand); color: var(--brand-ink); }
|
||||
|
||||
/* Scrollbars */
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg); }
|
||||
|
||||
.mono { font-family: var(--font-mono); }
|
||||
.serif { font-family: var(--font-display); }
|
||||
.num { font-variant-numeric: tabular-nums; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue