First commit
This commit is contained in:
566
static/css/style.css
Normal file
566
static/css/style.css
Normal file
@@ -0,0 +1,566 @@
|
||||
/* macOS Mojave — SF Pro feel, blue accent, light/dark */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
|
||||
|
||||
:root {
|
||||
--accent: #0a84ff;
|
||||
--accent-hover: #409cff;
|
||||
--accent-dim: rgba(10,132,255,0.15);
|
||||
--accent-dim2: rgba(10,132,255,0.08);
|
||||
--radius-sm: 6px;
|
||||
--radius: 10px;
|
||||
--radius-lg: 14px;
|
||||
--font: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
|
||||
--font-display: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
|
||||
--transition: 0.18s ease;
|
||||
}
|
||||
|
||||
/* Dark (default) */
|
||||
:root, [data-theme="dark"] {
|
||||
--bg: #1c1c1e;
|
||||
--bg2: #2c2c2e;
|
||||
--bg3: #3a3a3c;
|
||||
--surface: #2c2c2e;
|
||||
--surface2: #3a3a3c;
|
||||
--border: rgba(255,255,255,0.1);
|
||||
--border-active: rgba(10,132,255,0.6);
|
||||
--text: #ffffff;
|
||||
--text2: rgba(255,255,255,0.6);
|
||||
--text3: rgba(255,255,255,0.3);
|
||||
--shadow: 0 2px 16px rgba(0,0,0,0.4);
|
||||
--shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
|
||||
--success-bg: rgba(48,209,88,0.15);
|
||||
--success: #30d158;
|
||||
--danger: #ff453a;
|
||||
--danger-bg: rgba(255,69,58,0.15);
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
--bg: #f2f2f7;
|
||||
--bg2: #ffffff;
|
||||
--bg3: #e5e5ea;
|
||||
--surface: #ffffff;
|
||||
--surface2: #f2f2f7;
|
||||
--border: rgba(0,0,0,0.1);
|
||||
--border-active: rgba(10,132,255,0.5);
|
||||
--text: #000000;
|
||||
--text2: rgba(0,0,0,0.55);
|
||||
--text3: rgba(0,0,0,0.25);
|
||||
--shadow: 0 2px 16px rgba(0,0,0,0.1);
|
||||
--shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
|
||||
--success-bg: rgba(48,209,88,0.12);
|
||||
--success: #28a745;
|
||||
--danger: #ff3b30;
|
||||
--danger-bg: rgba(255,59,48,0.12);
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html { font-size: 15px; }
|
||||
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font);
|
||||
font-weight: 400;
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
transition: background var(--transition), color var(--transition);
|
||||
}
|
||||
|
||||
/* ── TOPBAR ── */
|
||||
.topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
backdrop-filter: blur(20px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
||||
background: rgba(28,28,30,0.8);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 24px;
|
||||
height: 52px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
[data-theme="light"] .topbar {
|
||||
background: rgba(242,242,247,0.85);
|
||||
}
|
||||
|
||||
.topbar-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.topbar-nav {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.topbar-nav a {
|
||||
padding: 5px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text2);
|
||||
text-decoration: none;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.topbar-nav a:hover { background: var(--surface2); color: var(--text); }
|
||||
.topbar-nav a.active { background: var(--accent-dim); color: var(--accent); }
|
||||
|
||||
/* Theme toggle */
|
||||
.theme-toggle {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface2);
|
||||
color: var(--text2);
|
||||
cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 15px;
|
||||
transition: all var(--transition);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.theme-toggle:hover { color: var(--text); background: var(--bg3); }
|
||||
|
||||
/* ── MAIN LAYOUT ── */
|
||||
.page { max-width: 640px; margin: 0 auto; padding: 32px 24px 96px; }
|
||||
.page-wide { max-width: 900px; margin: 0 auto; padding: 32px 24px 96px; }
|
||||
|
||||
/* ── PERIOD BANNER ── */
|
||||
.period-banner {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 14px 18px;
|
||||
margin-bottom: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.period-icon { font-size: 18px; flex-shrink: 0; }
|
||||
.period-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
|
||||
.period-text strong { color: var(--text); font-weight: 500; }
|
||||
.period-progress {
|
||||
margin-left: auto;
|
||||
flex-shrink: 0;
|
||||
text-align: right;
|
||||
}
|
||||
.period-pct {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
}
|
||||
.period-bar-wrap {
|
||||
width: 80px;
|
||||
height: 3px;
|
||||
background: var(--bg3);
|
||||
border-radius: 2px;
|
||||
margin-top: 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.period-bar {
|
||||
height: 100%;
|
||||
background: var(--accent);
|
||||
border-radius: 2px;
|
||||
transition: width 0.5s ease;
|
||||
}
|
||||
|
||||
/* ── STATUS DOT ── */
|
||||
#status {
|
||||
font-size: 12px;
|
||||
color: var(--text3);
|
||||
transition: color var(--transition);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
#status::before {
|
||||
content: '';
|
||||
width: 6px; height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--text3);
|
||||
display: inline-block;
|
||||
transition: background var(--transition);
|
||||
}
|
||||
#status.saving { color: var(--accent); }
|
||||
#status.saving::before { background: var(--accent); }
|
||||
#status.saved { color: var(--success); }
|
||||
#status.saved::before { background: var(--success); }
|
||||
#status.error { color: var(--danger); }
|
||||
#status.error::before { background: var(--danger); }
|
||||
|
||||
/* ── CARD ── */
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 20px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
.card:focus-within { border-color: var(--border-active); }
|
||||
|
||||
/* ── QUESTION ── */
|
||||
.question { margin-bottom: 16px; }
|
||||
.question-label {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text2);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* ── YESNO ── */
|
||||
.yesno { display: flex; gap: 8px; }
|
||||
.yesno button {
|
||||
flex: 1; padding: 10px 16px;
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
color: var(--text2);
|
||||
font-family: var(--font);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.yesno button:hover { background: var(--bg3); color: var(--text); }
|
||||
.yesno button.active-yes { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
|
||||
.yesno button.active-no { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
|
||||
|
||||
/* ── SCALE ── */
|
||||
.scale-wrap { display: flex; flex-direction: column; gap: 10px; }
|
||||
.scale-top { display: flex; align-items: baseline; justify-content: space-between; }
|
||||
.scale-value { font-size: 32px; font-weight: 600; color: var(--accent); letter-spacing: -0.03em; font-family: var(--font-display); }
|
||||
.scale-range { font-size: 12px; color: var(--text3); }
|
||||
input[type=range] {
|
||||
-webkit-appearance: none;
|
||||
width: 100%; height: 4px;
|
||||
background: var(--bg3);
|
||||
border-radius: 2px;
|
||||
outline: none;
|
||||
}
|
||||
input[type=range]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 20px; height: 20px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 0 4px var(--accent-dim), var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* ── NUMBER ── */
|
||||
input[type=number] {
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
color: var(--text);
|
||||
font-family: var(--font);
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
padding: 10px 14px;
|
||||
width: 140px;
|
||||
outline: none;
|
||||
transition: border-color var(--transition);
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
input[type=number]::-webkit-outer-spin-button,
|
||||
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
|
||||
input[type=number]:focus { border-color: var(--accent); }
|
||||
|
||||
/* ── DURATION / TIME ── */
|
||||
.duration-wrap, .time-wrap {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.duration-wrap input[type=number],
|
||||
.time-wrap input[type=number] {
|
||||
width: 76px; text-align: center;
|
||||
}
|
||||
.time-sep {
|
||||
font-size: 22px; font-weight: 600;
|
||||
color: var(--text3); line-height: 1;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
/* ── COUNTER ── */
|
||||
.counter-wrap { display: flex; align-items: center; gap: 0; }
|
||||
.counter-btn {
|
||||
width: 52px; height: 52px;
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
font-size: 22px;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
font-family: var(--font);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 300;
|
||||
user-select: none;
|
||||
}
|
||||
.counter-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
|
||||
.counter-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
|
||||
.counter-btn:hover { background: var(--bg3); }
|
||||
.counter-btn:active { background: var(--accent-dim); color: var(--accent); }
|
||||
.counter-val {
|
||||
min-width: 68px;
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
font-family: var(--font-display);
|
||||
letter-spacing: -0.02em;
|
||||
border-top: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 9px 0;
|
||||
}
|
||||
|
||||
/* ── TEXT / TEXTAREA ── */
|
||||
input[type=text], textarea {
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
color: var(--text);
|
||||
font-family: var(--font);
|
||||
font-size: 14px;
|
||||
padding: 10px 14px;
|
||||
width: 100%;
|
||||
outline: none;
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
input[type=text]:focus, textarea:focus { border-color: var(--accent); }
|
||||
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
|
||||
::placeholder { color: var(--text3); }
|
||||
|
||||
/* ── CHOICE / MULTICHOICE ── */
|
||||
.choice-wrap, .multichoice-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.choice-btn {
|
||||
padding: 7px 15px;
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 100px;
|
||||
color: var(--text2);
|
||||
font-family: var(--font);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.choice-btn:hover { background: var(--bg3); color: var(--text); }
|
||||
.choice-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
|
||||
|
||||
/* ── DONE CHECKBOX ── */
|
||||
.done-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 18px 20px;
|
||||
margin-top: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.done-card:hover { border-color: var(--border-active); }
|
||||
.done-card.checked {
|
||||
background: var(--success-bg);
|
||||
border-color: var(--success);
|
||||
}
|
||||
.done-checkbox {
|
||||
width: 22px; height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--border-active);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
flex-shrink: 0;
|
||||
transition: all var(--transition);
|
||||
font-size: 13px;
|
||||
}
|
||||
.done-card.checked .done-checkbox {
|
||||
background: var(--success);
|
||||
border-color: var(--success);
|
||||
color: white;
|
||||
}
|
||||
.done-label { font-size: 14px; font-weight: 500; color: var(--text); }
|
||||
.done-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
|
||||
|
||||
/* ── CALENDAR PAGE ── */
|
||||
.cal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.cal-header h2 {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.03em;
|
||||
font-family: var(--font-display);
|
||||
flex: 1;
|
||||
}
|
||||
.cal-nav-btn {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
color: var(--text2);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.cal-nav-btn:hover { background: var(--bg3); color: var(--text); }
|
||||
|
||||
.cal-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 6px;
|
||||
}
|
||||
.cal-dow {
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text3);
|
||||
padding: 4px 0 8px;
|
||||
}
|
||||
.cal-cell {
|
||||
aspect-ratio: 1;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text2);
|
||||
cursor: default;
|
||||
transition: all var(--transition);
|
||||
position: relative;
|
||||
gap: 3px;
|
||||
}
|
||||
.cal-cell.empty { background: transparent; border-color: transparent; }
|
||||
.cal-cell.has-snapshot {
|
||||
background: var(--accent-dim2);
|
||||
border-color: var(--accent-dim);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
}
|
||||
.cal-cell.has-snapshot:hover { border-color: var(--accent); background: var(--accent-dim); }
|
||||
.cal-cell.done { background: var(--success-bg); border-color: var(--success); }
|
||||
.cal-cell.done .cal-day-num { color: var(--success); }
|
||||
.cal-cell.today { border-color: var(--accent); }
|
||||
.cal-cell.today .cal-day-num { color: var(--accent); font-weight: 700; }
|
||||
.cal-day-num { font-size: 15px; line-height: 1; }
|
||||
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
|
||||
.cal-done-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
|
||||
|
||||
/* ── SNAPSHOT DRAWER ── */
|
||||
.snapshot-panel {
|
||||
position: fixed;
|
||||
top: 0; right: -480px;
|
||||
width: 460px;
|
||||
height: 100vh;
|
||||
background: var(--surface);
|
||||
border-left: 1px solid var(--border);
|
||||
box-shadow: -8px 0 32px rgba(0,0,0,0.3);
|
||||
z-index: 200;
|
||||
transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.snapshot-panel.open { right: 0; }
|
||||
.snapshot-panel-header {
|
||||
padding: 20px 20px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.snapshot-panel-title { font-size: 16px; font-weight: 600; flex: 1; }
|
||||
.snapshot-panel-body { flex: 1; overflow-y: auto; padding: 20px; }
|
||||
.panel-close-btn {
|
||||
width: 28px; height: 28px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface2);
|
||||
color: var(--text2);
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.panel-close-btn:hover { background: var(--bg3); color: var(--text); }
|
||||
|
||||
.snapshot-qa { margin-bottom: 18px; }
|
||||
.snapshot-q { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
|
||||
.snapshot-a { font-size: 14px; color: var(--text); }
|
||||
|
||||
.download-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
background: var(--accent-dim);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--radius);
|
||||
color: var(--accent);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: all var(--transition);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.download-btn:hover { background: var(--accent); color: white; }
|
||||
|
||||
.overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,0.4);
|
||||
z-index: 199;
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
.overlay.visible { display: block; }
|
||||
|
||||
/* ── UTILS ── */
|
||||
.section-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text3);
|
||||
margin-bottom: 12px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
.section-title:first-child { margin-top: 0; }
|
||||
|
||||
/* Early submit button */
|
||||
.early-submit-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
background: var(--danger-bg);
|
||||
border: 1px solid var(--danger);
|
||||
border-radius: var(--radius);
|
||||
color: var(--danger);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
font-family: var(--font);
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.early-submit-btn:hover { background: var(--danger); color: white; }
|
||||
Reference in New Issue
Block a user