stardew-tracker/static/styles.css

189 lines
13 KiB
CSS
Raw Normal View History

2026-10-04 19:27:36 +01:00
:root {
color-scheme: dark;
--ink: #f8f1dc;
--muted: #aebbb2;
--deep: #0c1814;
--panel: #132720;
--panel-2: #193229;
--line: rgba(242, 232, 200, .13);
--accent: #f1c96d;
--season: #79b56b;
--season-soft: rgba(121, 181, 107, .16);
--danger: #f08b5d;
--radius: 18px;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 16px;
}
body[data-season="summer"] { --season: #f0b84f; --season-soft: rgba(240, 184, 79, .16); }
body[data-season="fall"] { --season: #d27849; --season-soft: rgba(210, 120, 73, .17); }
body[data-season="winter"] { --season: #86bcd8; --season-soft: rgba(134, 188, 216, .16); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
min-width: 320px;
background:
radial-gradient(circle at 50% -10%, rgba(55, 107, 85, .23), transparent 40rem),
var(--deep);
color: var(--ink);
min-height: 100vh;
line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
min-height: 84px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.18rem; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: 1px; }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px; background: var(--ink); border-radius: 10px; transform: rotate(-2deg); }
.brand-mark i { display: block; border-radius: 2px; background: #79b56b; }
.brand-mark i:nth-child(2) { background: #f0b84f; }
.brand-mark i:nth-child(3) { background: #d27849; }
.brand-mark i:nth-child(4) { background: #86bcd8; }
.sync-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #87958c; box-shadow: 0 0 0 4px rgba(135,149,140,.1); }
.sync-status[data-mode="ready"] .sync-dot { background: #7bc47f; box-shadow: 0 0 0 4px rgba(123,196,127,.12); }
.sync-status[data-mode="error"] .sync-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(240,139,93,.12); }
.date-deck { padding: 44px 0 30px; }
.date-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.eyebrow { margin: 0 0 7px; text-transform: uppercase; letter-spacing: .16em; color: var(--season); font-weight: 800; font-size: .74rem; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 3px; font: 700 clamp(2.8rem, 8vw, 5.8rem)/.92 Georgia, serif; letter-spacing: -.045em; }
.date-heading > div > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 1rem; }
.date-arrows { display: flex; gap: 8px; }
.date-arrows button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); cursor: pointer; font-size: 1.4rem; transition: .18s ease; }
.date-arrows button:hover { border-color: var(--season); background: var(--season-soft); transform: translateY(-2px); }
.year-switch { display: inline-flex; margin: 30px 0 18px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.year-switch button, .bundle-toolbar button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; color: var(--muted); cursor: pointer; font-weight: 700; font-size: .88rem; }
.year-switch button[aria-pressed="true"], .bundle-toolbar button[aria-pressed="true"] { background: var(--ink); color: var(--deep); }
.season-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.season-tabs button { border: 1px solid var(--line); background: var(--panel); padding: 14px 12px; border-radius: 13px; cursor: pointer; color: var(--muted); font-weight: 750; transition: .18s ease; }
.season-tabs button span { margin-right: 7px; }
.season-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--season); background: var(--season-soft); }
.day-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 12px; }
.day-grid button { aspect-ratio: 1.1; min-width: 0; border: 1px solid var(--line); background: rgba(19,39,32,.65); color: var(--muted); border-radius: 10px; cursor: pointer; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.day-grid button small { font-size: .58rem; font-weight: 800; opacity: .6; line-height: 1; margin-bottom: 2px; }
.day-grid button:hover { border-color: rgba(241,201,109,.45); color: var(--ink); }
.day-grid button.selected { color: var(--deep); background: var(--season); border-color: var(--season); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.section-nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; background: rgba(12,24,20,.88); backdrop-filter: blur(14px); border-block: 1px solid var(--line); padding: 10px 0; }
.section-nav a { text-decoration: none; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 750; }
.section-nav a:hover, .section-nav a.active { color: var(--ink); background: var(--panel-2); }
.content-section { padding: 62px 0; scroll-margin-top: 60px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font: 700 clamp(2rem, 4vw, 3.1rem)/1 Georgia, serif; letter-spacing: -.025em; }
.section-heading > p { color: var(--muted); max-width: 31rem; margin: 0; text-align: right; font-size: .92rem; }
.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.today-card { min-height: 180px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.today-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -42px; bottom: -42px; border: 22px solid var(--season-soft); border-radius: 50%; }
.today-card h3 { font: 700 1.35rem/1.1 Georgia, serif; margin: 25px 0 9px; }
.today-card p { color: var(--muted); margin: 0; font-size: .91rem; max-width: 26rem; }
.card-label { display: flex; align-items: center; gap: 8px; color: var(--season); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 850; }
.card-label span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.today-card.birthday { --season: #f1c96d; }
.today-card.deadline { --season: #f08b5d; }
.today-card.event { --season: #86bcd8; }
.crop-list { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.crop-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 90px 110px; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s ease; }
.crop-row:last-child { border: 0; }
.crop-row:hover { background: rgba(255,255,255,.025); }
.crop-row input, .bundle-item input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { width: 22px; height: 22px; border: 1.5px solid #61746a; border-radius: 7px; display: grid; place-items: center; transition: .15s ease; }
.complete .checkmark { background: var(--season); border-color: var(--season); }
.complete .checkmark::after { content: "✓"; color: var(--deep); font-weight: 950; font-size: .86rem; }
.crop-name strong, .bundle-item strong { display: block; font-size: .96rem; }
.crop-name small, .bundle-item small, .grow-time small, .plant-date small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; margin-top: 2px; }
.grow-time, .plant-date { color: var(--ink); font-weight: 800; font-size: .88rem; text-align: right; }
.plant-date.today { color: var(--accent); }
.crop-row.overdue .plant-date { color: var(--danger); }
.crop-row.complete { opacity: .52; }
.crop-row.complete .crop-name strong { text-decoration: line-through; }
.bundle-heading { align-items: center; }
.progress-cluster { width: min(290px, 42%); color: var(--muted); text-align: right; font-size: .84rem; }
.progress-track { height: 8px; background: var(--panel-2); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--season), var(--accent)); border-radius: inherit; transition: width .3s ease; }
.bundle-toolbar { display: inline-flex; gap: 3px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 30px; }
.room { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; margin-bottom: 46px; }
.room-title { display: flex; gap: 13px; align-items: start; position: sticky; top: 74px; height: min-content; }
.room-title > span { width: 40px; height: 40px; display: grid; place-items: center; background: var(--season-soft); color: var(--season); border-radius: 12px; font-size: 1.1rem; }
.room-title h3 { margin: 2px 0 2px; font: 700 1.18rem Georgia, serif; }
.room-title p { margin: 0; color: var(--muted); font-size: .76rem; }
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bundle-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bundle-card > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 17px 13px; border-bottom: 1px solid var(--line); }
.bundle-card h4 { margin: 0; font-size: .95rem; }
.bundle-card header small { display: block; color: var(--accent); font-size: .7rem; margin-top: 2px; }
.bundle-card header > span { color: var(--muted); font-size: .8rem; font-weight: 800; }
.bundle-card.complete > header { background: var(--season-soft); }
.bundle-card.complete header > span { color: var(--season); }
.bundle-item { min-height: 59px; display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bundle-item:last-child { border: 0; }
.bundle-item:hover { background: rgba(255,255,255,.025); }
.bundle-item.complete > span:last-child { opacity: .5; }
.bundle-item.complete strong { text-decoration: line-through; }
.empty-state { border: 1px dashed rgba(241,201,109,.28); border-radius: var(--radius); text-align: center; padding: 50px 20px; background: rgba(19,39,32,.55); }
.empty-state > span { color: var(--season); font-size: 2rem; }
.empty-state h3 { margin: 10px 0 5px; font: 700 1.3rem Georgia, serif; }
.empty-state p { margin: 0 auto; color: var(--muted); max-width: 32rem; }
footer { padding: 28px 0 48px; color: var(--muted); font-size: .76rem; }
footer p { margin: 0; }
footer a { text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; width: min(420px, calc(100% - 32px)); padding: 13px 16px; background: var(--ink); color: var(--deep); border-radius: 12px; font-weight: 700; text-align: center; box-shadow: 0 14px 40px rgba(0,0,0,.35); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 840px) {
.today-grid { grid-template-columns: repeat(2, 1fr); }
.room { grid-template-columns: 1fr; }
.room-title { position: static; }
}
@media (max-width: 620px) {
.app-shell { width: min(100% - 22px, 1180px); }
.topbar { min-height: 72px; }
.brand small { display: none; }
.sync-status { font-size: .74rem; }
.date-deck { padding-top: 32px; }
.date-heading { align-items: center; }
.date-arrows button { width: 42px; height: 42px; }
.season-tabs { grid-template-columns: repeat(2, 1fr); }
.day-grid { grid-template-columns: repeat(7, 1fr); }
.section-nav { overflow-x: auto; margin-inline: -11px; padding-inline: 11px; }
.section-nav a { white-space: nowrap; }
.content-section { padding: 46px 0; }
.section-heading { align-items: start; flex-direction: column; gap: 10px; }
.section-heading > p { text-align: left; }
.today-grid, .room-grid { grid-template-columns: 1fr; }
.today-card { min-height: 155px; }
.crop-row { grid-template-columns: 24px 1fr 94px; gap: 11px; }
.grow-time { display: none; }
.crop-name small { max-width: 31ch; }
.bundle-heading { align-items: stretch; }
.progress-cluster { width: 100%; text-align: left; }
.bundle-toolbar { display: flex; overflow-x: auto; }
.bundle-toolbar button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { transition-duration: .01ms !important; }
}