This commit is contained in:
Zaine Qayyum
2026-08-19 09:56:06 +01:00
commit 9e075ec941
10 changed files with 7414 additions and 0 deletions

653
css/style.css Normal file
View File

@@ -0,0 +1,653 @@
:root {
--paper: #f3ead3;
--paper-dark: #e8dcb8;
--ink: #1a1714;
--muted: #4a443c;
--rule: #1a1714;
--sidebar: 16.5rem;
--focus: #1a1714;
}
html[data-theme="dark"] {
--paper: #1c1916;
--paper-dark: #141210;
--ink: #f3ead3;
--muted: #c9bda8;
--rule: #d4c6aa;
--focus: #f3ead3;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
height: 100%;
width: 100%;
overflow: hidden;
}
html {
font-size: 18px;
}
body {
background: var(--paper);
color: var(--ink);
font-family: "Courier New", Courier, ui-monospace, monospace;
line-height: 1.55;
}
.app {
display: grid;
grid-template-columns: var(--sidebar) 1fr;
height: 100vh;
width: 100vw;
}
.sidebar {
display: flex;
flex-direction: column;
min-height: 0;
border-right: 1px solid var(--rule);
background: var(--paper-dark);
}
.sidebar-head {
padding: 1rem 1rem 0.6rem;
border-bottom: 1px solid var(--rule);
}
.sidebar-head h2 {
margin: 0 0 0.65rem;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: 400;
font-size: 1.25rem;
}
.vault-picker {
display: flex;
flex-direction: column;
gap: 0.2rem;
margin-bottom: 0.55rem;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.vault-picker select {
text-transform: none;
letter-spacing: 0;
font-size: 0.9rem;
width: 100%;
}
.vault-actions {
display: flex;
gap: 0.35rem;
margin-bottom: 0.4rem;
}
.vault-actions button,
#remove-vault {
flex: 1;
font-size: 0.72rem;
}
#remove-vault {
width: 100%;
}
.folder-heading {
padding: 0.7rem 1rem 0;
}
.eyebrow {
margin: 0 0 0.25rem;
font-size: 0.8rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--muted);
}
.folder-list {
flex: 1;
overflow: auto;
padding: 0.5rem 0;
}
.folder-row {
display: grid;
grid-template-columns: 1fr auto auto;
align-items: stretch;
}
.folder-row button[data-folder-action] {
border: 0;
background: transparent;
padding: 0 0.45rem;
text-transform: none;
letter-spacing: 0;
font-size: 1rem;
}
.folder-item {
display: flex;
align-items: center;
gap: 0.35rem;
width: 100%;
text-align: left;
border: 0;
background: transparent;
padding: 0.45rem 0.85rem;
text-transform: none;
letter-spacing: 0;
font-size: 0.95rem;
cursor: pointer;
}
.folder-item .count {
margin-left: auto;
color: var(--muted);
font-size: 0.85rem;
}
.folder-item.active {
background: var(--ink);
color: var(--paper);
}
.folder-item.active .count {
color: var(--paper);
}
.folder-item:hover:not(.active) {
text-decoration: underline;
}
.folder-item.nested {
padding-left: 1.6rem;
}
.sidebar-actions {
display: flex;
gap: 0.4rem;
padding: 0.75rem;
border-top: 1px solid var(--rule);
}
.sidebar-actions button {
flex: 1;
}
.file-path {
margin: 0;
padding: 0 0.75rem 0.75rem;
font-size: 0.75rem;
color: var(--muted);
word-break: break-all;
}
.workspace {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
height: 100vh;
}
.masthead {
flex: 0 0 auto;
padding: 0.9rem 1.15rem 0.8rem;
border-bottom: 1px solid var(--rule);
}
.masthead-row {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 1rem;
}
h1 {
margin: 0;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.85rem;
font-weight: 400;
}
.subtitle {
margin: 0.15rem 0 0;
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.8rem;
}
.masthead-meta {
display: flex;
align-items: center;
gap: 0.6rem;
}
.datestamp {
margin: 0;
font-size: 0.9rem;
white-space: nowrap;
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.6rem 1rem;
align-items: flex-end;
margin-top: 0.75rem;
}
.search {
display: flex;
flex-direction: column;
gap: 0.25rem;
flex: 1 1 14rem;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
input[type="search"],
input[type="number"],
input[type="text"],
input[type="url"],
select,
textarea,
button {
font: inherit;
color: var(--ink);
background: var(--paper);
border: 1px solid var(--rule);
border-radius: 0;
padding: 0.4rem 0.55rem;
}
input[type="search"] {
text-transform: none;
letter-spacing: 0;
font-size: 1rem;
}
.actions {
display: flex;
gap: 0.45rem;
}
button {
cursor: pointer;
text-transform: uppercase;
letter-spacing: 0.04em;
font-size: 0.8rem;
}
button:hover {
text-decoration: underline;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 2px solid var(--focus);
outline-offset: 2px;
}
.toast {
margin: 0.55rem 0 0;
font-size: 0.9rem;
}
.stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
flex: 0 0 auto;
border-bottom: 1px solid var(--rule);
}
.stat {
padding: 0.65rem 0.95rem;
border-right: 1px solid var(--rule);
}
.stat:last-child {
border-right: 0;
}
.stat .value {
display: block;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.45rem;
}
.stat .label {
display: block;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
}
.filters {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
flex: 0 0 auto;
border-bottom: 1px solid var(--rule);
}
.filters fieldset {
margin: 0;
border: 0;
border-right: 1px solid var(--rule);
padding: 0.55rem 0.9rem 0.7rem;
}
.filters fieldset:last-child {
border-right: 0;
}
.filters legend {
padding: 0;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
}
.filters label {
display: inline-block;
margin: 0.2rem 0.85rem 0 0;
font-size: 0.95rem;
}
.filters input {
accent-color: var(--ink);
}
.catalog {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
padding: 1.1rem 1.15rem 1.6rem;
}
.section {
margin-bottom: 1.5rem;
}
.section h2 {
margin: 0 0 0.7rem;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.25rem;
font-weight: 400;
border-bottom: 1px solid var(--rule);
padding-bottom: 0.3rem;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
gap: 0.9rem;
}
.card {
border: 1px solid var(--rule);
padding: 1rem 1.05rem 1rem;
background: var(--paper);
display: flex;
flex-direction: column;
}
.card-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.75rem;
border-bottom: 1px solid var(--rule);
padding-bottom: 0.55rem;
margin-bottom: 0.7rem;
}
.card h3 {
margin: 0;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.2rem;
font-weight: 400;
}
.meta {
margin: 0.2rem 0 0;
font-size: 0.95rem;
color: var(--muted);
}
.stamps {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.3rem;
}
.stamp {
display: inline-block;
border: 1px solid var(--rule);
padding: 0.15rem 0.4rem;
font-size: 0.75rem;
letter-spacing: 0.06em;
text-transform: uppercase;
white-space: nowrap;
}
.stamp.filled {
background: var(--ink);
color: var(--paper);
}
.progress-row {
display: flex;
align-items: center;
gap: 0.45rem;
margin: 0.4rem 0 0.35rem;
}
.progress-row button {
padding: 0.2rem 0.55rem;
min-width: 2rem;
}
.progress-row input[type="number"] {
width: 4.4rem;
text-align: right;
}
.progress-row .of {
font-size: 0.95rem;
color: var(--muted);
}
.bar {
height: 0.7rem;
border: 1px solid var(--rule);
margin: 0.15rem 0 0.65rem;
}
.bar > span {
display: block;
height: 100%;
background: var(--ink);
}
.card-controls {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.55rem;
margin-top: auto;
}
.field {
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.field.wide {
grid-column: 1 / -1;
}
.field select,
.field textarea,
.field input {
text-transform: none;
letter-spacing: 0;
font-size: 0.95rem;
}
.field textarea {
min-height: 3.4rem;
resize: vertical;
}
.card-foot {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
margin-top: 0.65rem;
padding-top: 0.5rem;
border-top: 1px dashed var(--rule);
font-size: 0.9rem;
}
.card-foot a {
color: var(--ink);
}
.card-foot a:hover {
text-decoration: underline;
}
.card-foot-actions {
display: flex;
gap: 0.4rem;
}
.drop-overlay {
position: fixed;
inset: 0.75rem;
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
border: 1px dashed var(--rule);
background: color-mix(in srgb, var(--paper) 92%, transparent);
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.4rem;
color: var(--ink);
pointer-events: none;
}
.drop-overlay[hidden] {
display: none;
}
.tags {
margin: 0.35rem 0 0;
font-size: 0.85rem;
color: var(--muted);
}
.muted,
.empty {
color: var(--muted);
font-size: 1rem;
}
.error {
border: 1px solid var(--rule);
padding: 1rem;
}
.empty-vault {
max-width: 36rem;
}
.empty-vault p {
margin: 0 0 0.75rem;
}
.empty-vault ol {
margin: 0 0 1rem;
padding-left: 1.2rem;
}
.sheet {
width: min(34rem, calc(100vw - 2rem));
border: 1px solid var(--rule);
background: var(--paper);
color: var(--ink);
padding: 0;
}
.sheet::backdrop {
background: rgba(0, 0, 0, 0.4);
}
.sheet form {
padding: 1.1rem 1.15rem 1.15rem;
}
.sheet h2 {
margin: 0 0 0.9rem;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: 400;
font-size: 1.3rem;
border-bottom: 1px solid var(--rule);
padding-bottom: 0.4rem;
}
.dialog-fields {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.7rem;
}
.dialog-fields .field.wide {
grid-column: 1 / -1;
}
.dialog-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
justify-content: flex-end;
}
@media (max-width: 900px) {
.app {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
.sidebar {
max-height: 11rem;
border-right: 0;
border-bottom: 1px solid var(--rule);
}
.workspace {
height: auto;
min-height: 0;
}
}