/* Multithreaded, Forum Stylesheet. Adapted from Makenot.work design language */ /* FONTS */ @font-face { font-family: "Young Serif"; src: url("/static/fonts/ysrf.woff2") format("woff2"), url("/static/fonts/ysrf.ttf") format("truetype"); font-display: swap; } @font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-Regular.woff2") format("woff2"), url("/static/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: normal; font-display: swap; } @font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-Bold.woff2") format("woff2"), url("/static/fonts/IBMPlexMono-Bold.ttf") format("truetype"); font-weight: bold; font-display: swap; } @font-face { font-family: "Lato"; src: url("/static/fonts/Lato-Regular.woff2") format("woff2"), url("/static/fonts/Lato-Regular.ttf") format("truetype"); font-weight: normal; font-display: swap; } @font-face { font-family: "Lato"; src: url("/static/fonts/Lato-Bold.woff2") format("woff2"), url("/static/fonts/Lato-Bold.ttf") format("truetype"); font-weight: bold; font-display: swap; } /* VARIABLES */ :root { --background: #ede8e1; --detail: #3d3530; --highlight: #6c5ce7; --light-background: #f4f0eb; --surface-muted: #ddd7c5; --surface-alt: #ebe7db; --surface-border: #d0cbb8; --border: #d0cbb8; --text-muted: #8a8480; --input-background: #e2dad2; --primary-dark: #000000; --primary-light: #ffffff; --success: #2d5016; --warning: #8b7355; --danger: #d62828; --error: #d62828; --focus-ring: #6c5ce7; } /* RESET */ * { margin: 0; padding: 0; box-sizing: border-box; } /* BASE */ body { margin: 0; background-color: var(--background); color: var(--detail); font-family: "Lato", sans-serif; line-height: 1.5; } h1 { font-family: "Young Serif", serif; font-weight: normal; color: var(--detail); text-align: left; font-size: 1.5rem; } h2, h3 { font-family: "IBM Plex Mono", monospace; font-weight: normal; color: var(--detail); } p { font-family: "Lato", sans-serif; color: var(--detail); } a { color: var(--detail); text-decoration: none; } a:hover { text-decoration: underline; } /* The signature dot */ .dot { color: var(--highlight); } /* LAYOUT */ .container { max-width: 1200px; margin: 0 auto; padding: 1rem; } .padded-page { padding: 1.25rem; } /* SITE HEADER & NAV */ .site-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; margin-bottom: 0.5rem; } .site-header nav { margin: 0; } .site-header .nav-links { display: flex; gap: 1.5rem; align-items: center; } .nav-links a { color: var(--detail); text-decoration: none; font-family: "IBM Plex Mono", monospace; transition: opacity 0.2s ease; } .nav-links a:hover { opacity: 0.6; text-decoration: none; } .site-logo { font-family: "Young Serif", serif; font-size: 1.25rem; text-decoration: none; color: var(--detail); } .site-logo:hover { opacity: 0.8; text-decoration: none; } .link-button { background: none; border: none; color: var(--detail); font-family: "IBM Plex Mono", monospace; font-size: 1rem; cursor: pointer; padding: 0; text-decoration: none; transition: opacity 0.2s ease; } .link-button:hover { opacity: 0.6; text-decoration: underline; } .nav-form { display: contents; } /* Hamburger toggle */ .nav-toggle-checkbox { display: none; } .nav-toggle-label { display: none; cursor: pointer; padding: 0.5rem; z-index: 11; } .nav-toggle-label span { display: block; width: 22px; height: 2px; background: var(--detail); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; } /* BUTTONS */ button { color: var(--detail); background: var(--light-background); padding: 6px 12px; border: 1px solid var(--detail); font-family: inherit; cursor: pointer; transition: opacity 0.2s ease; } button:hover { opacity: 0.8; } button.primary, .btn-primary { background: var(--primary-dark); color: var(--primary-light); border: none; padding: 0.5rem 1rem; font-family: inherit; font-size: 0.85rem; cursor: pointer; transition: opacity 0.2s ease; } button.primary:hover, .btn-primary:hover { opacity: 0.8; } button.secondary, .btn-secondary { background: var(--surface-muted); color: var(--detail); border: none; padding: 0.5rem 1rem; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; cursor: pointer; transition: opacity 0.2s ease; } button.secondary:hover, .btn-secondary:hover { opacity: 0.8; } /* FORMS */ form { display: flex; flex-direction: column; gap: 1rem; width: 100%; } .form-container { max-width: 600px; background: var(--light-background); padding: 1.5rem; } label { font-family: "IBM Plex Mono", monospace; color: var(--detail); font-size: 14px; } input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select { width: 100%; background: var(--input-background); border: none; padding: 0.6rem; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: var(--detail); } input::placeholder, textarea::placeholder { opacity: 0.5; } input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus, select:focus { outline: none; border: 2px solid var(--highlight); } textarea { min-height: 150px; resize: vertical; } textarea.drag-over { border: 2px dashed var(--highlight); background: var(--surface-muted); } /* Inline form validation error, inserted by mt.js on a 422 submit, replacing the old error toast. Persists next to the form with the input preserved. */ .form-error { background: var(--surface-muted); border-left: 3px solid var(--error); color: var(--error); padding: 0.6rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.85rem; } input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--error); } select { cursor: pointer; } input[type="submit"], form button { font-family: "Young Serif", serif; font-size: 16px; color: var(--detail); background: var(--light-background); padding: 10px 20px; border: 1px solid var(--detail); cursor: pointer; } input[type="submit"]:hover, form button:hover { background: var(--background); } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .form-group { display: flex; flex-direction: column; gap: 0.25rem; } .form-actions { display: flex; gap: 1rem; margin-top: 0.5rem; } .form-help { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; } .input-narrow { width: 6rem; } /* DIRECTORY TABLE (forum home) */ .directory-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-family: "Lato", sans-serif; } .directory-table thead { background: var(--surface-muted); } .directory-table th { text-align: left; padding: 0.35rem 0.75rem; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: normal; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } .directory-table tbody tr { transition: background 0.1s ease; } .directory-table tbody tr:nth-child(odd) { background: var(--surface-alt); } .directory-table tbody tr:nth-child(even) { background: var(--light-background); } .directory-table tbody tr:hover { background: var(--surface-muted); } .directory-table td { padding: 0.4rem 0.75rem; border-top: 1px solid var(--border); } .directory-name { font-family: "Young Serif", serif; font-size: 1rem; } .directory-name a { color: var(--detail); text-decoration: none; } .directory-name a:hover { text-decoration: underline; } .directory-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; } .directory-table .col-creator { white-space: nowrap; width: 130px; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; } .directory-table .col-type { white-space: nowrap; width: 100px; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--text-muted); } .directory-table .col-items { white-space: nowrap; width: 60px; text-align: right; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--text-muted); } /* DATA TABLE (dense thread listings) */ .data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-family: "Lato", sans-serif; margin-bottom: 1rem; } .data-table thead { background: var(--surface-muted); } .data-table th { text-align: left; padding: 0.35rem 0.75rem; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: normal; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } .data-table th.sortable { cursor: pointer; transition: background 0.2s ease; user-select: none; } .data-table th.sortable:hover { background: var(--border); } .data-table th.sortable a { color: inherit; text-decoration: none; display: block; } .data-table th.sortable a:hover { text-decoration: none; } .data-table th.sort-active { color: var(--detail); } .data-table tbody tr { transition: background 0.1s ease; } .data-table tbody tr:nth-child(odd) { background: var(--surface-alt); } .data-table tbody tr:nth-child(even) { background: var(--light-background); } .data-table tbody tr:hover { background: var(--surface-muted); } .data-table td { padding: 0.4rem 0.75rem; border-top: 1px solid var(--border); } /* Thread-specific table columns */ .data-table .thread-title { font-weight: bold; } .data-table .thread-title a { color: var(--detail); text-decoration: none; } .data-table .thread-title a:hover { text-decoration: underline; } .data-table .col-replies, .data-table .col-activity { white-space: nowrap; text-align: right; width: 100px; } .data-table .col-author { white-space: nowrap; width: 130px; } /* Member list columns */ .data-table .col-role { white-space: nowrap; width: 100px; } .data-table .col-joined { white-space: nowrap; text-align: right; width: 100px; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--text-muted); } /* Pinned row highlight */ .data-table tr.pinned { background: var(--surface-muted); } .data-table tr.pinned:hover { background: var(--border); } /* BADGES */ .badge { display: inline-block; padding: 0.15rem 0.4rem; font-size: 0.7rem; font-family: "IBM Plex Mono", monospace; background: var(--primary-dark); color: var(--primary-light); } .badge-success { background: var(--success); } .badge-warning { background: var(--warning); } .badge-danger { background: var(--danger); } .badge-muted { background: var(--text-muted); } .badge-ban { background: var(--danger); color: var(--primary-light); } .badge-mute-type { background: var(--warning); color: var(--primary-light); } /* Role badges */ .badge-role-owner { background: var(--primary-dark); color: var(--primary-light); } .badge-role-moderator { background: var(--warning); color: var(--primary-light); } .badge-role-member { background: var(--surface-muted); color: var(--detail); border: 1px solid var(--border); } .badge-role-guest { background: var(--surface-muted); color: var(--text-muted); border: 1px solid var(--border); } /* Thread status badges, text-only */ .badge-pinned { background: var(--surface-muted); color: var(--detail); border: 1px solid var(--border); } .badge-locked { background: var(--surface-muted); color: var(--text-muted); border: 1px solid var(--border); } /* BREADCRUMBS */ .breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; font-family: "IBM Plex Mono", monospace; } .breadcrumb a { color: var(--detail); text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; } .breadcrumb .sep { margin: 0 0.3rem; opacity: 0.5; } /* POST ITEM (thread view) */ .post-list { display: flex; flex-direction: column; gap: 0; } .post-item { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); } .post-item:first-child { border-top: 1px solid var(--border); } .post-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; } .post-author { font-family: "IBM Plex Mono", monospace; font-weight: bold; font-size: 0.85rem; } .post-timestamp { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--text-muted); } .post-edited { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--text-muted); font-style: italic; margin-left: 0.5rem; } .post-body { font-size: 0.9rem; line-height: 1.5; } .post-body p { margin-bottom: 0.5rem; } .post-body p:last-child { margin-bottom: 0; } .post-body code { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; background: var(--surface-muted); padding: 0.1rem 0.35rem; } .post-body pre { background: var(--primary-dark); color: var(--primary-light); padding: 0.75rem; overflow-x: auto; margin: 0.5rem 0; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; line-height: 1.5; } .post-body pre code { background: none; padding: 0; color: inherit; } .post-body blockquote { border-left: 3px solid var(--border); padding-left: 1rem; margin: 0.5rem 0; color: var(--text-muted); } .post-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.5rem 0; cursor: pointer; } /* Post action links (edit/delete) */ .post-actions { margin-left: 0.75rem; } .post-action-link { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--text-muted); background: none; border: none; padding: 0; cursor: pointer; text-decoration: none; margin-left: 0.5rem; } .post-action-link:hover { color: var(--detail); text-decoration: underline; } .post-action-delete:hover { color: var(--danger); } /* Deleted posts */ .post-deleted .post-body { color: var(--text-muted); font-style: italic; } /* OP indicator */ .post-item.op { background: var(--light-background); } /* DRAFT INDICATOR */ .draft-indicator { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; } .draft-discard { cursor: pointer; color: var(--text-muted); } .draft-discard:hover { color: var(--danger); } /* REPLY FORM */ .reply-section { padding: 1rem; margin-top: 0.5rem; } .reply-section h3 { margin-bottom: 0.75rem; } /* PAGE HEADER (title + actions row) */ .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .page-header h1 { text-align: left; font-size: 1.5rem; margin: 0; } .page-header h2 { font-size: 1.2rem; margin: 0; } /* TOAST NOTIFICATIONS */ .toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; } .toast { background: var(--primary-dark); color: var(--primary-light); padding: 0.6rem 1rem; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); animation: toast-in 0.3s ease-out; max-width: 300px; } .toast-success { background: var(--success); } .toast-error { background: var(--error); } .toast-warning { background: var(--warning); } .toast-info { background: var(--primary-dark); } .toast-retry-btn { background: none; border: 1px solid currentColor; color: inherit; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.4rem; margin-left: 0.75rem; cursor: pointer; } .toast-retry-btn:hover { background: rgba(255, 255, 255, 0.15); } .toast.fade-out { animation: toast-out 0.3s ease-in forwards; } @keyframes toast-in { from { transform: translateX(100%); } to { transform: translateX(0); } } @keyframes toast-out { from { transform: translateX(0); } to { transform: translateX(100%); } } /* SETTINGS PAGE */ .settings-section { margin-bottom: 2rem; } .settings-section h3 { margin-bottom: 0.75rem; } .settings-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-family: "Lato", sans-serif; margin-bottom: 1rem; } .settings-table thead { background: var(--surface-muted); } .settings-table th { text-align: left; padding: 0.35rem 0.75rem; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: normal; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } .settings-table tbody tr { transition: background 0.1s ease; } .settings-table tbody tr:nth-child(odd) { background: var(--surface-alt); } .settings-table tbody tr:nth-child(even) { background: var(--light-background); } .settings-table tbody tr:hover { background: var(--surface-muted); } .settings-table td { padding: 0.4rem 0.75rem; border-top: 1px solid var(--border); } .settings-cat-name { font-family: "Young Serif", serif; font-size: 1rem; } .settings-cat-desc { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; } .settings-mono { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--text-muted); } .settings-actions { white-space: nowrap; } /* ACCESSIBILITY */ .skip-to-main { position: absolute; top: -100px; left: 0; background: var(--primary-dark); color: var(--primary-light); padding: 8px; z-index: 100; transition: top 0.2s ease; } .skip-to-main:focus { top: 0; } *:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } /* PAGINATION */ .pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 0.75rem 0; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; } .pagination-link { color: var(--detail); text-decoration: none; padding: 0.3rem 0.6rem; border: 1px solid var(--border); background: var(--light-background); transition: background 0.2s ease; } .pagination-link:hover { background: var(--surface-muted); text-decoration: none; } .pagination-info { color: var(--text-muted); } /* ERROR PAGES */ .error-page { text-align: center; padding: 3rem 1rem; } .error-page h2 { font-family: "Young Serif", serif; font-size: 3rem; margin-bottom: 0.5rem; } .error-page p { color: var(--text-muted); margin-bottom: 1.5rem; } /* EMPTY STATE */ .empty-state { text-align: center; padding: 1rem; color: var(--text-muted); font-family: "IBM Plex Mono", monospace; } /* SITE FOOTER */ .site-footer { text-align: center; padding: 1rem; margin-top: 1rem; border-top: 1px solid var(--border); font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--text-muted); } .site-footer a { color: var(--detail); text-decoration: none; } .site-footer a:hover { text-decoration: underline; } .site-footer-links { margin-bottom: 0.5rem; } .site-footer-links a { margin: 0 0.75rem; } .footer-sep { margin: 0 0.4rem; } /* FOOTNOTES + IMMUTABLE POSTS */ .post-footnotes { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--border); } .footnote { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; } .footnote p { margin: 0.15rem 0; } .footnote-prefix { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; } .footnote-form-toggle { margin-top: 0.5rem; } .footnote-form-toggle textarea { width: 100%; min-height: 60px; margin-top: 0.5rem; } .badge-unread { background: var(--highlight); color: var(--primary-light); font-size: 0.75rem; padding: 0.1rem 0.4rem; border-radius: 3px; font-family: "IBM Plex Mono", monospace; } tr.unread .thread-title a { font-weight: 700; } tr.unread .thread-title::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--highlight); border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; } /* Mention indicator on thread listings */ .badge-mention { color: var(--highlight); font-size: 0.75rem; font-weight: 700; font-family: "IBM Plex Mono", monospace; background: none; border: none; padding: 0; } tr.mentioned { border-left: 3px solid var(--highlight); } /* Tracking settings */ .tracking-settings { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.85rem; } .toggle-label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; } .toggle-checkbox { accent-color: var(--highlight); } /* Info/static page sections */ .info-section h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; } .info-section ul { padding-left: 1.5rem; margin-bottom: 0.75rem; } .info-section li { margin-bottom: 0.3rem; line-height: 1.5; } .tag-filter { margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; } .tag-filter-label { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--text-muted); margin-right: 0.25rem; } .tag-chip { display: inline-block; padding: 0.15rem 0.5rem; font-size: 0.8rem; border: 1px solid var(--border); border-radius: 3px; text-decoration: none; color: var(--text-primary); } .tag-chip:hover { background: var(--surface-muted); } .tag-chip.tag-active { background: var(--primary-dark); color: var(--primary-light); border-color: var(--primary-dark); } .tag-badge { display: inline-block; font-size: 0.7rem; padding: 0.05rem 0.35rem; background: var(--surface-muted); border-radius: 2px; margin-left: 0.25rem; vertical-align: middle; font-family: "IBM Plex Mono", monospace; color: var(--text-muted); } .tag-fieldset { border: none; padding: 0; } .tag-fieldset legend { font-weight: 600; margin-bottom: 0.35rem; } .tag-checkbox { display: inline-block; margin-right: 1rem; font-size: 0.9rem; cursor: pointer; } .flag-form-toggle { margin-top: 0.5rem; } .flag-form { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; } .flag-form label { font-size: 0.85rem; cursor: pointer; } .flag-form textarea { width: 100%; min-height: 40px; margin-top: 0.25rem; } .flag-btn { align-self: flex-start; font-size: 0.8rem; padding: 0.25rem 0.75rem; } .post-removed .post-body { color: var(--text-muted); font-style: italic; } .quote-attribution { display: block; font-size: 0.8rem; font-family: "IBM Plex Mono", monospace; color: var(--text-muted); margin-top: 0.25rem; font-style: normal; } .quote-attribution a { color: var(--text-muted); text-decoration: none; } .quote-attribution a:hover { text-decoration: underline; } .quote-btn { position: absolute; z-index: 100; background: var(--surface); border: 1px solid var(--border); padding: 0.25rem 0.5rem; font-size: 0.75rem; font-family: "IBM Plex Mono", monospace; cursor: pointer; } .quote-btn:hover { background: var(--light-background); } /* UTILITY CLASSES */ .form-inline { display: inline; } .form-inline-row { display: inline-flex; gap: 0.25rem; flex-direction: row; align-items: center; } .btn-secondary { text-decoration: none; } .section-heading { margin-bottom: 1.5rem; } .section-heading-top { margin-top: 1.5rem; } .textarea-short { min-height: 60px; } .textarea-medium { min-height: 80px; } .footnote-btn { margin-top: 0.25rem; } .input-compact { width: 150px; padding: 0.3rem; } .search-form { flex-direction: row; gap: 0.5rem; align-items: flex-end; } .flex-1 { flex: 1; } .profile-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; } .profile-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; } .profile-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; color: var(--text-muted); flex-shrink: 0; } .profile-name { margin: 0; } .text-muted { color: var(--text-muted); } .text-muted-sm { color: var(--text-muted); font-size: 0.85rem; } .text-muted-md { color: var(--text-muted); font-size: 0.9rem; } .community-desc { margin-bottom: 0.5rem; color: var(--text-muted); } .activity-category { color: var(--text-muted); font-size: 0.85rem; } /* LINK PREVIEWS */ .post-link-previews { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; } .link-preview-card { display: block; padding: 0.5rem 0.75rem; border: 1px solid var(--border); background: var(--light-background); text-decoration: none; color: var(--detail); transition: background 0.2s ease; } .link-preview-card:hover { background: var(--surface-muted); text-decoration: none; } .lp-title { display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; font-weight: bold; } .lp-desc { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; } .lp-url { display: block; font-size: 0.7rem; font-family: "IBM Plex Mono", monospace; color: var(--text-muted); margin-top: 0.15rem; } /* SEARCH MODAL */ .search-toggle { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: var(--text-muted); background: none; border: 1px solid var(--border); padding: 0.25rem 0.75rem; cursor: pointer; transition: opacity 0.2s ease; } .search-toggle:hover { opacity: 0.7; } .search-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; justify-content: center; padding-top: 10vh; } .search-modal[hidden] { display: none; } .search-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); } .search-modal-content { position: relative; width: 100%; max-width: 600px; max-height: 70vh; display: flex; flex-direction: column; background: var(--light-background); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); z-index: 1; } .search-input { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; font-family: "IBM Plex Mono", monospace; background: var(--background); border: none; border-bottom: 1px solid var(--border); color: var(--detail); outline: none; } .search-input:focus { border-bottom-color: var(--highlight); } .search-results-container { overflow-y: auto; max-height: calc(70vh - 3rem); } .search-results { list-style: none; margin: 0; padding: 0; } .search-result { border-bottom: 1px solid var(--border); } .search-result:last-child { border-bottom: none; } .search-result-link { display: block; padding: 0.6rem 1rem; text-decoration: none; color: var(--detail); transition: background 0.1s ease; } .search-result-link:hover, .search-result.search-active .search-result-link { background: var(--surface-muted); text-decoration: none; } .search-result-title { display: block; font-weight: bold; font-size: 0.9rem; } .search-result-meta { display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; } .search-result-snippet { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .search-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; } /* POST ENDORSEMENTS */ .endorsed { color: var(--highlight); font-weight: bold; } .endorsement-count { color: var(--detail); font-size: 0.85rem; margin-left: 0.25rem; } /* CHAT ROOM */ .chat-room { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--light-background); } /* The log scrolls, the composer does not. A fixed height rather than a growing page is what lets the island keep the newest message in view without moving the thing the reader is typing into. */ .chat-log { list-style: none; margin: 0; padding: 0.5rem; height: 60vh; min-height: 15rem; overflow-y: auto; overscroll-behavior: contain; } .chat-message { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.25rem 0.35rem; line-height: 1.45; } .chat-message:hover { background: var(--surface-alt); } .chat-avatar { align-self: center; border-radius: 50%; flex-shrink: 0; } .chat-author { font-weight: bold; color: var(--detail); white-space: nowrap; } .chat-time { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; } .chat-body { flex: 1; min-width: 0; overflow-wrap: anywhere; } /* Sent, not yet echoed back by the server. Dimmed rather than hidden: the message is on screen the instant it is typed, and the dimming is the only thing saying it is not confirmed. */ .chat-message.is-pending { opacity: 0.55; } .chat-message.is-failed { opacity: 1; border-left: 2px solid var(--danger); } .chat-error { color: var(--danger); font-size: 0.85rem; } /* Delete, and the retry on a failed send. Both stay out of the way until the message is under the pointer, and both are always reachable by keyboard. */ .chat-remove, .chat-retry { background: none; border: 1px solid transparent; color: var(--text-muted); cursor: pointer; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; padding: 0 0.3rem; } .chat-remove { opacity: 0; margin-left: auto; } .chat-message:hover .chat-remove, .chat-remove:focus-visible { opacity: 1; } .chat-remove:hover, .chat-retry:hover { color: var(--danger); border-color: var(--border); } .chat-status { margin: 0; padding: 0.35rem 0.6rem; border-top: 1px solid var(--border); background: var(--surface-alt); color: var(--text-muted); font-size: 0.85rem; } .chat-composer { display: flex; gap: 0.5rem; padding: 0.5rem; border-top: 1px solid var(--border); } .chat-composer input[type="text"] { flex: 1; min-width: 0; background: var(--input-background); border: 1px solid var(--border); color: var(--detail); padding: 0.45rem 0.6rem; } .chat-notice { padding: 0.6rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; } /* RESPONSIVE, 768px (tablet) */ @media (max-width: 768px) { .container { padding: 0.75rem; } .padded-page { padding: 0.75rem; } .form-row { grid-template-columns: 1fr; } .data-table th, .data-table td { padding: 0.35rem 0.5rem; font-size: 0.8rem; } .directory-table th, .directory-table td { padding: 0.35rem 0.5rem; font-size: 0.8rem; } .page-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } /* Hamburger menu */ .nav-toggle-label { display: block; } .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--background); border-bottom: 1px solid var(--border); padding: 0.75rem 1.25rem; z-index: 10; } .site-header { position: relative; } .nav-toggle-checkbox:checked ~ nav { display: block; } .site-header .nav-links { flex-direction: column; gap: 0.75rem; } /* Animate hamburger to X */ .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; } .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); } /* Hide less important columns on mobile */ .data-table .col-author { display: none; } .directory-table .col-type, .directory-table .col-items { display: none; } .col-replies { width: auto; } } /* RESPONSIVE, 480px (phone) */ @media (max-width: 480px) { .container { padding: 0.5rem; } .padded-page { padding: 0.5rem; } h1 { font-size: 1.6rem; } .toast-container { left: 0.75rem; right: 0.75rem; } .toast { max-width: 100%; } .post-header { flex-direction: column; gap: 0.2rem; } /* The composer and the on-screen keyboard together take most of a phone, so the log gives up height rather than pushing the input off the bottom. */ .chat-log { height: 55vh; padding: 0.35rem; } /* No hover on a touch screen, so a delete control that only appears on hover is a control that does not exist. */ .chat-remove { opacity: 1; } }