/* === Fonts === */ @font-face { font-family: "Iosevka Etoile"; src: url("/_/fonts/IosevkaEtoile.woff2") format("woff2"); } @font-face { font-family: "Iosevka Slab"; src: url("/_/fonts/IosevkaSlab.woff2") format("woff2"); } /* === Theme === */ :root { --bg: #2e2e2e; --bg-panel: #434343; --bg-panel-hover: #585858; --text: #e6e6e6; --text-muted: #cfcfcf; --primary: #87458a; --primary-hover: #d64d95; --secondary: #c48401; --link: #01b6c4; --link-hover: #d6d24d; } /* === Base === */ body { background-color: var(--bg); min-height: 100vh; margin: 0; overflow: auto; padding: 0; color: var(--text); font: 1rem "Iosevka Etoile", monospace; } * { box-sizing: border-box; margin: 0; padding: 0; } /* === Links === */ a { color: var(--text); text-decoration: none; } a:hover { color: var(--primary-hover); } .content a { color: var(--link); } .content a:hover { color: var(--link-hover); } /* === Header === */ header { padding: 0.75rem 1rem; border-bottom: 1px dashed var(--secondary); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .breadcrumb { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; flex: 1; } .logo { width: 1.1em; height: 1.1em; vertical-align: center; } .sep { color: var(--secondary); } .btn { background: none; border: none; color: var(--text); font: inherit; cursor: pointer; padding: 0; text-decoration: none; display: inline-block; white-space: nowrap; } .btn::before { content: "["; color: var(--secondary); } .btn::after { content: "]"; color: var(--secondary); } .btn:hover { color: var(--primary-hover); } /* === Button modifiers === */ /* For inline buttons */ .btn-small { font-size: 0.65rem; font-weight: normal; vertical-align: middle; } /* For toolbars */ .btn-tool { font-size: 0.85rem; padding: 0 0.15rem; } /* === Main === */ main { max-width: 860px; margin: 0 auto; padding: 1.5rem 1rem; } /* === Markdown content === */ .content { margin-bottom: 2rem; } .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { color: var(--text); margin: 1.25rem 0 0.5rem; line-height: 1.3; } .content h1 { font-size: 1.75rem; border-bottom: 1px dashed var(--secondary); padding-bottom: 0.25rem; } .content h2 { font-size: 1.4rem; } .content h3 { font-size: 1.15rem; } .content p { margin: 0.75rem 0; } .content ul, .content ol { margin: 0.75rem 0 0.75rem 1.5rem; } .content li { margin: 0.25rem 0; } .content blockquote { border-left: 3px solid var(--secondary); padding: 0.25rem 1rem; color: var(--text-muted); margin: 0.75rem 0; } .content code { font-family: "Iosevka Etoile", monospace; font-size: 0.875em; background: var(--bg-panel); padding: 0.1em 0.35em; } .content pre { background: var(--bg-panel); border: 1px solid var(--secondary); padding: 1rem; overflow-x: auto; margin: 0.75rem 0; } .content pre code { background: none; padding: 0; } .content table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.9rem; } .content th, .content td { border: 1px solid var(--secondary); padding: 0.4rem 0.75rem; text-align: left; } .content th { background: var(--bg-panel); color: var(--text); } .content hr { border: none; border-top: 1px dashed var(--secondary); margin: 1.5rem 0; } .content img { max-width: 100%; } /* === File listing === */ .listing { border: 1px solid var(--secondary); } .listing-header { padding: 0.5rem 1rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); border-bottom: 1px solid var(--secondary); } .listing-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; border-top: 1px solid var(--secondary); font-size: 0.95rem; } .listing-item:hover { background: var(--bg-panel-hover); } .listing-item .icon { width: 1.25rem; text-align: center; flex-shrink: 0; } .listing-item a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; } .listing-item .meta { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; } /* === Editor toolbar === */ .editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; border: 1px solid var(--secondary); border-bottom: none; padding: 0.4rem 0.6rem; background: var(--bg-panel-hover); } .toolbar-sep { width: 1px; background: var(--secondary); margin: 0 0.2rem; align-self: stretch; } /* === Toolbar dropdowns === */ .toolbar-dropdown { position: relative; } .toolbar-dropdown-menu { position: absolute; top: 100%; left: 0; display: none; z-index: 100; background: var(--bg-panel); border: 1px solid var(--secondary); min-width: 9rem; } .toolbar-dropdown-menu.is-open { display: block; } .toolbar-dropdown-item { display: block; width: 100%; text-align: left; border: none; border-radius: 0; padding: 0.2rem 0.5rem; } /* === Edit form === */ .edit-form { display: flex; flex-direction: column; } textarea { width: 100%; min-height: 60vh; background: var(--bg); border: 1px solid var(--secondary); border-top: none; color: var(--text); font-family: "Iosevka Slab", monospace; font-size: 0.9rem; line-height: 1.6; padding: 1rem; resize: vertical; outline: none; box-sizing: border-box; } /* === Diary views === */ .diary-section { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px dashed var(--secondary); } .diary-section:first-child { border-top: none; padding-top: 0; margin-top: 0; } .diary-section h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 0.75rem; font-weight: normal; } .diary-photo-count { color: var(--text-muted); font-size: 0.85rem; } .diary-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.4rem; margin-top: 0.75rem; } .diary-photo-grid a { display: block; line-height: 0; } .diary-photo-grid img { width: 100%; height: 140px; object-fit: cover; display: block; } .diary-section .content { margin-bottom: 0.75rem; } /* === Section edit links === */ .section-edit { margin-left: 0.75rem; } /* === Empty state === */ .empty { padding: 1rem; text-align: center; } /* === hr === */ hr { border: none; border-top: 1px dashed var(--secondary); margin: 1rem 0; } /* === Scrollbars === */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #111; } ::-webkit-scrollbar-thumb { background: var(--primary); } ::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); } /* === Responsive === */ @media (max-width: 600px) { header { padding: 0.5rem 0.75rem; } main { padding: 1rem 0.75rem; } textarea { min-height: 50vh; } }