diff options
| author | Bobby <[email protected]> | 2025-12-17 17:13:19 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-17 17:13:19 +0530 |
| commit | 17f238caa7d1012ddc4d7fb7e126f04107d29583 (patch) | |
| tree | 9b3c56ff6e4869bd9e4a65e2aff5e2368c41fd23 | |
| parent | 506b84b8d45d6a0fac4f160618cbced1cd22357a (diff) | |
| download | cgitconf-17f238caa7d1012ddc4d7fb7e126f04107d29583.tar.xz cgitconf-17f238caa7d1012ddc4d7fb7e126f04107d29583.zip | |
Update and rename custom.css to cgit.css
| -rw-r--r-- | theme/cgit.css (renamed from theme/custom.css) | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/theme/custom.css b/theme/cgit.css index 41e9e6f..56a7366 100644 --- a/theme/custom.css +++ b/theme/cgit.css @@ -1374,6 +1374,65 @@ div#cgit .markdown-body em { color: var(--lilac) !important; } +/* ---------- Image Blob Rendering ---------- */ +div#cgit .cgit-image-preview { + padding: 10px; + background: #000; + border-bottom: 2px solid var(--pink); + text-align: center; +} + +div#cgit .cgit-image-preview img { + max-width: 100%; + max-height: 70vh; + border: 3px solid var(--aqua); + background: #000; + image-rendering: auto; +} + +/* ---------- Collapsible Hex Dump ---------- */ +div#cgit details.cgit-hexdump { + border-top: 2px solid var(--mint); +} + +div#cgit details.cgit-hexdump summary { + cursor: pointer; + padding: 8px 10px; + background: var(--panel); + color: var(--mint); + font-family: var(--mono); + font-weight: 900; + text-transform: uppercase; + border-bottom: 2px solid var(--mint); +} + +div#cgit details.cgit-hexdump[open] summary { + color: var(--pink); + border-color: var(--pink); +} + +div#cgit details.cgit-hexdump summary::marker { + color: var(--mint); +} + +/* Placeholder to lock layout during blob enhancement */ +div#cgit .cgit-blob-placeholder { + width: 100%; +} + +/* Prevent layout shift while enhancing blobs */ +div#cgit div.content.cgit-enhancing { + visibility: hidden; +} + +div#cgit div.content.cgit-enhanced { + visibility: visible; +} + +/* Prevent hex dump from affecting initial layout */ +div#cgit table.bin-blob { + display: none; +} /* ---------- Focus ---------- */ /* div#cgit *:focus { |
