styles.css (6438B)
1 :root { color-scheme: light dark; } 2 body { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; margin: 0; } 3 .container { max-width: 960px; margin: 0 auto; padding: 16px; } 4 header { border-bottom: 1px solid #ddd3; } 5 .header-flex { display: flex; justify-content: space-between; align-items: center; gap: 12px; } 6 .branding { display: grid; gap: 4px; } 7 .subline { margin: 6px 0 0 0 !important; } 8 @media (max-width: 800px) { 9 .subline { display: none; } 10 } 11 .branding h1 { margin: 0; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; } 12 .branding h1 a { text-decoration: none; } 13 .container h1 a { color: inherit; text-decoration: none; } 14 .container h1 a:hover { text-decoration: underline; } 15 .muted { color: #666; margin: 0 0 8px 0; font-size: 13px; } 16 /* Ensure the results summary has balanced vertical spacing */ 17 .results-summary { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; } 18 .results-filter { font-size: 13px; color: #555; white-space: nowrap; } 19 .results-filter a { color: inherit; } 20 .results-filter a.selected { font-weight: 600; text-decoration: none; } 21 .results-filter .sep { margin: 0 6px; opacity: 0.6; } 22 .top-links { font-size: 13px; color: #555; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 10px; } 23 .top-links .user-line { white-space: nowrap; } 24 .top-links a { color: inherit; } 25 .top-links .sep { margin: 0 6px; opacity: 0.6; } 26 .top-links .api-key { font-size: 12px; color: #666; } 27 .top-links .api-key .token { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; } 28 .small-links { font-size: 12px; margin-left: 8px; color: #666; } 29 .small-links a { color: inherit; } 30 .small-links .sep { margin: 0 6px; opacity: 0.6; } 31 .ios-note { margin-top: 12px; } 32 .btn-row { display: flex; gap: 8px; } 33 .grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; } 34 @media (max-width: 800px) { .grid { grid-template-columns: 1fr; } } 35 /* Span full width across both columns when needed (e.g., public view) */ 36 .span2 { grid-column: 1 / -1; } 37 /* Vertical spacing between stacked sections on non-grid pages (e.g., settings) */ 38 .container:not(.grid) > section + section { margin-top: 48px; } 39 form { display: grid; gap: 10px; } 40 label { display: grid; gap: 6px; font-size: 13px; } 41 input, textarea { padding: 8px; font-size: 14px; border: 1px solid #ccc; border-radius: 6px; background: transparent; color: inherit; } 42 label.inline { display: inline-flex; align-items: center; gap: 6px; } 43 button { padding: 8px 12px; font-size: 14px; border-radius: 6px; border: 1px solid #888; background: #eee; color: #111; cursor: pointer; } 44 @media (prefers-color-scheme: dark) { button { background: #333; color: #eee; border-color: #777; } } 45 /* Reusable button style for prominent actions */ 46 .btn { display: inline-block; padding: 8px 12px; font-size: 14px; border-radius: 6px; background: #111; color: #fff !important; text-decoration: none; border: none; cursor: pointer; } 47 .btn:hover { filter: brightness(1.05); } 48 @media (prefers-color-scheme: dark) { .btn { background: #000; color: #fff !important; } } 49 button.btn { border: none; } 50 /* Token display */ 51 .token-display { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 13px; padding: 10px 12px; border: 1px solid #ddd3; border-radius: 6px; background: #f6f7f8; color: inherit; display: inline-block; } 52 @media (prefers-color-scheme: dark) { .token-display { background: #1b1d1f; border-color: #333; } } 53 .error { color: #b00020; } 54 .ok { color: #0a7f2e; } 55 .results { display: grid; gap: 12px; margin-top: 12px; } 56 .card { border: 1px solid #ddd3; border-radius: 8px; padding: 12px; } 57 .card.private { background: #f6f7f8; } 58 @media (prefers-color-scheme: dark) { .card.private { background: #202225; } } 59 .card h3 { margin: 0 0 6px 0; font-size: 16px; } 60 /* Allow grid children to shrink so long strings don't expand layout */ 61 .grid > * { min-width: 0; } 62 .card { min-width: 0; } 63 .archive-link { display:none; } 64 .icon { display:none; } 65 .edit-form { display: grid; gap: 8px; margin: 8px 0; } 66 .edit-form .actions { display: flex; gap: 8px; } 67 .url { color: #666; font-size: 12px; margin: 0 0 6px 0; overflow-wrap: anywhere; word-break: break-word; } 68 .url.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; } 69 .referrer { color: #999; font-size: 12px; margin: 0 0 6px 0; display: flex; gap: 4px; align-items: baseline; } 70 .referrer .ref-link { display: inline-block; min-width: 0; text-decoration: none; border-bottom: 1px solid currentColor; line-height: 1; } 71 .referrer .ref-link a { display: inline-block; max-width: 100%; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; vertical-align: bottom; } 72 .action-links { margin: 6px 0 0 0; font-size: 13px; color: #555; } 73 .action-links a { color: inherit; } 74 .action-links .sep { margin: 0 6px; opacity: 0.6; } 75 .excerpt { margin: 6px 0; white-space: pre-wrap; } 76 mark { background: #fff3b0; color: inherit; padding: 0 2px; border-radius: 2px; } 77 .meta { color: #777; font-size: 12px; margin: 8px 0 0 0; } 78 .desc { margin: 6px 0 0; color: #444; } 79 .desc blockquote { margin: 8px 0; padding-left: 10px; border-left: 3px solid #ddd; } 80 @media (prefers-color-scheme: dark) { .desc { color: #ddd; } .desc blockquote { border-left-color: #444; } } 81 .auth-links { margin-top: 8px; font-size: 13px; } 82 /* Underline all links globally */ 83 a { text-decoration: underline; } 84 /* Pagination links should match surrounding text color (no purple visited) */ 85 .pager a, 86 .pager a:visited { color: inherit; } 87 /* Bookmark title link: use browser default link color for both states (avoid purple visited) */ 88 .card h3 a, 89 .card h3 a:visited { color: blue; overflow-wrap: break-word; } 90 91 .pager { margin-top: 16px; font-size: 13px; color: #555; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; } 92 .pager .sep { margin: 0 6px; opacity: 0.6; } 93 .pager .muted { color: #999; text-decoration: none; } 94 .pager .pages a, .pager .sizes a { margin: 0 4px; } 95 .pager .pages .muted, .pager .sizes .muted { margin: 0 4px; } 96 .pager .sizes > span:first-child { margin-right: 4px; }