first commit
This commit is contained in:
commit
dd6a740645
37 files changed
+5424
No files matched your search
+161
@@ -0,0 +1,161 @@
|
||||
:root {
|
||||
--bg: #f6f5f2;
|
||||
--surface: #ffffff;
|
||||
--text: #1d1d1f;
|
||||
--muted: #6b6b70;
|
||||
--border: #e3e1dc;
|
||||
--accent: #2f6f5e;
|
||||
--accent-text: #ffffff;
|
||||
--danger: #b3402f;
|
||||
--running: #e8f3ef;
|
||||
--warn: #b7791f;
|
||||
--radius: 10px;
|
||||
color-scheme: light dark;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #151517;
|
||||
--surface: #1f1f22;
|
||||
--text: #ececef;
|
||||
--muted: #9a9aa2;
|
||||
--border: #2f2f34;
|
||||
--accent: #5fb39a;
|
||||
--accent-text: #0d1f1a;
|
||||
--danger: #e0705e;
|
||||
--running: #1d2e29;
|
||||
--warn: #e0a84a;
|
||||
}
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
}
|
||||
a { color: var(--accent); }
|
||||
h1, h2 { margin: 0 0 .75rem; font-weight: 600; }
|
||||
h2 { font-size: 1.1rem; }
|
||||
|
||||
.topbar {
|
||||
display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
|
||||
padding: .75rem max(16px, calc((100vw - 960px) / 2));
|
||||
background: var(--surface); border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
|
||||
.topbar nav { display: flex; gap: .25rem; flex-wrap: wrap; }
|
||||
.topbar nav a {
|
||||
padding: .35rem .75rem; border-radius: 999px; color: var(--muted); text-decoration: none;
|
||||
}
|
||||
.topbar nav a[aria-current="page"] { background: var(--bg); color: var(--text); font-weight: 600; }
|
||||
|
||||
main { max-width: 960px; margin: 1.5rem auto; padding: 0 16px; display: grid; gap: 1rem; }
|
||||
|
||||
.card {
|
||||
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
padding: 1.25rem; min-width: 0;
|
||||
}
|
||||
.card.archived { opacity: .65; }
|
||||
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
|
||||
.card-head h2 { margin: 0; }
|
||||
.total { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.1rem; }
|
||||
|
||||
.row { display: flex; gap: .5rem; align-items: center; }
|
||||
.row.wrap { flex-wrap: wrap; }
|
||||
.grow { flex: 1; min-width: 0; }
|
||||
.row.grow input { flex: 1; min-width: 0; }
|
||||
.stack { display: grid; gap: .35rem; }
|
||||
.muted, .empty { color: var(--muted); }
|
||||
.empty { margin: .25rem 0; }
|
||||
.nowrap { white-space: nowrap; }
|
||||
|
||||
input, select, button { font: inherit; color: inherit; }
|
||||
input, select {
|
||||
background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
|
||||
padding: .45rem .6rem; min-width: 0; max-width: 100%;
|
||||
}
|
||||
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
|
||||
.title-input { font-weight: 600; font-size: 1.05rem; }
|
||||
label { display: flex; align-items: center; gap: .35rem; color: var(--muted); }
|
||||
|
||||
.btn {
|
||||
border: 1px solid var(--border); background: var(--surface); border-radius: 8px;
|
||||
padding: .45rem .9rem; cursor: pointer; white-space: nowrap;
|
||||
}
|
||||
.btn:hover { border-color: var(--muted); }
|
||||
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
|
||||
.btn.danger { color: var(--danger); }
|
||||
.btn.small { padding: .2rem .55rem; font-size: .85rem; }
|
||||
.htmx-request .btn, .btn.htmx-request { opacity: .6; }
|
||||
|
||||
.badge { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: var(--bg); color: var(--muted); }
|
||||
|
||||
/* Timer */
|
||||
.timer.is-running { background: var(--running); border-color: var(--color, var(--accent)); border-left-width: 6px; }
|
||||
.current { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; margin-bottom: 1rem; }
|
||||
.current-project { font-size: 1.3rem; font-weight: 600; }
|
||||
.clock { font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
|
||||
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: .5rem; }
|
||||
.note { color: var(--muted); font-size: .9rem; }
|
||||
|
||||
/* Tables */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; }
|
||||
th, td { padding: .5rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
|
||||
tr:last-child td { border-bottom: 0; }
|
||||
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.time { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
|
||||
.client { color: var(--muted); }
|
||||
tr.running { background: var(--running); }
|
||||
tr.editing td { background: var(--bg); }
|
||||
tr.editing input, tr.editing select { width: 100%; }
|
||||
td.actions { text-align: right; white-space: nowrap; }
|
||||
.warn { color: var(--warn); cursor: help; }
|
||||
|
||||
/* Colors */
|
||||
.dot {
|
||||
display: inline-block; width: .65rem; height: .65rem; border-radius: 50%;
|
||||
background: var(--color); margin-right: .4rem; vertical-align: baseline; flex: none;
|
||||
}
|
||||
.client-card { border-left: 6px solid var(--color); }
|
||||
input[type="color"] {
|
||||
width: 2.2rem; height: 2.2rem; padding: .15rem; flex: none; cursor: pointer;
|
||||
}
|
||||
.projects input[type="color"] { width: 1.8rem; height: 1.8rem; }
|
||||
|
||||
/* Projects list */
|
||||
.projects { list-style: none; margin: 0 0 1rem; padding: 0; }
|
||||
.projects li {
|
||||
display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
|
||||
padding: .4rem 0; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.projects li.archived { opacity: .6; }
|
||||
|
||||
/* Periods & reports */
|
||||
.presets { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .75rem; }
|
||||
.presets a {
|
||||
padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--border);
|
||||
color: var(--muted); text-decoration: none; font-size: .9rem;
|
||||
}
|
||||
.presets a[aria-current="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
|
||||
.filters { margin-bottom: 1rem; }
|
||||
.report .label { width: 35%; }
|
||||
.bar-cell { width: 50%; vertical-align: middle; }
|
||||
.bar { height: .7rem; border-radius: 4px; background: var(--color, var(--accent)); min-width: 2px; }
|
||||
.report tfoot td { font-weight: 600; border-top: 2px solid var(--border); }
|
||||
|
||||
#toast {
|
||||
position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
|
||||
background: var(--danger); color: #fff; padding: .6rem 1rem; border-radius: 8px;
|
||||
max-width: calc(100vw - 32px); box-shadow: 0 4px 16px rgb(0 0 0 / .2);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.current { grid-template-columns: 1fr auto; }
|
||||
.current .btn { grid-column: 1 / -1; }
|
||||
.start { grid-template-columns: 1fr; }
|
||||
.report .label { width: auto; }
|
||||
.bar-cell { width: 30%; }
|
||||
}
|
||||
Reference in new issue
Block a user