diff options
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/cgit.css | 19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 0 insertions, 19 deletions
diff --git a/assets/cgit.css b/assets/cgit.css index 511c377..90fa074 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -8,7 +8,6 @@ div#cgit { color-scheme: light dark; - /* Palette: light-dark(light value, dark value) */ --bg: light-dark(#ffffff, #1b1b1b); --fg: light-dark(#333333, #d6d6d6); --muted: light-dark(#777777, #9a9a9a); @@ -30,7 +29,6 @@ div#cgit { --upd: light-dark(#0000cc, #6ea8fe); --hunk: light-dark(#000099, #7aa2f7); --accent: light-dark(#cc0000, #ff6b6b); - /* Faded wash over the fragment-targeted source line. */ --line-hl: light-dark(rgba(212, 167, 44, 0.18), rgba(224, 192, 80, 0.14)); --notes-bg: light-dark(#ffffdd, #33331a); @@ -78,9 +76,7 @@ div#cgit { --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace; - /* Shared horizontal inset so every region lines up down the page. */ --gutter: 1.25rem; - /* Shared height so the dropdowns and fields all agree. */ --control-h: 2em; --radius: 5px; @@ -92,14 +88,12 @@ div#cgit { font-family: var(--font-sans); font-size: 13px; line-height: 1.4; - /* Hold the type size steady when a phone is turned to landscape. */ text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: var(--fg); background: var(--bg); } -/* Scoped so an embedding host page is left alone. */ html.cgit-standalone { color-scheme: light dark; background: light-dark(#ffffff, #1b1b1b); @@ -191,7 +185,6 @@ div#cgit #header { margin-bottom: 0; } -/* Reserved so the header holds still while the image loads. */ div#cgit #header .logo { grid-area: logo; align-self: start; @@ -236,7 +229,6 @@ div#cgit #header .sub { overflow-wrap: anywhere; } -/* The rule under the masthead, run out to the right edge. */ div#cgit #header::before { content: ""; grid-column: 2 / -1; @@ -453,7 +445,6 @@ div#cgit div#summary pre { overflow-x: auto; } -/* Wrapped rather than scrolled, prose is the common case. */ div#cgit pre.plaintext { white-space: pre-wrap; overflow-wrap: anywhere; @@ -666,20 +657,17 @@ div#cgit table.ssdiff td.lineno a:hover { color: var(--fg); } -/* Land a fragment-targeted line mid-viewport rather than at the top. */ div#cgit table.blob td.linenumbers a, div#cgit table.blame td.linenumbers a { scroll-margin-top: calc(50vh - 1em); } -/* Without scripting only the line number itself is tinted. */ div#cgit table.blob td.linenumbers a:target, div#cgit table.blame td.linenumbers a:target { background: var(--line-hl); color: var(--fg); } -/* Anchor box for the highlight bar cgit.js positions over the target. */ div#cgit table.blob, div#cgit table.blame { position: relative; @@ -693,7 +681,6 @@ div#cgit div.line-hl { pointer-events: none; } -/* Tokens produced by the syntax-highlight.lua source filter. */ div#cgit .hl-comment { color: light-dark(#6a737d, #8b949e); font-style: italic; @@ -951,7 +938,6 @@ div#cgit div.diffstat-summary { padding-top: 0.5em; } -/* A scroll box beside the options float would shrink to fit the gap. */ div#cgit div.diff-scroll { clear: right; overflow-x: auto; @@ -986,7 +972,6 @@ div#cgit table.diff td div.del { color: var(--del); } -/* Notice shown when a diff exceeds the configured limits. */ div#cgit div.truncated, div#cgit table.ssdiff td.truncated { color: var(--muted); @@ -1284,8 +1269,6 @@ div#cgit table.ssdiff td.space { height: 3em; } -/* The breakpoints only hide chrome or restack, sizes never change. */ - @media (max-width: 900px) { div#cgit .tabs .search { display: none; @@ -1313,7 +1296,6 @@ div#cgit table.ssdiff td.space { display: none; } - /* Keep any remaining long token from forcing a sideways page. */ div#cgit table.list td { overflow-wrap: anywhere; } @@ -1329,7 +1311,6 @@ div#cgit table.ssdiff td.space { width: auto; } - /* Fixed table layout would still reserve the hidden columns' width. */ div#cgit table.repolist { width: 100%; } |
