diff options
Diffstat (limited to 'cgit.css')
-rw-r--r-- | cgit.css | 38 |
1 files changed, 24 insertions, 14 deletions
@@ -1,28 +1,38 @@ -@import url("https://rsms.me/inter/inter.css"); +@import url("https://git.estrogen.zone/cgit-assets.git/plain/fonts.css"); * { box-sizing: border-box; } -html { +:root { color: #dedede; background: #1a1b1c; font-size: 10pt; + --font-inter: Inter; + --font-sans: var(--font-inter, Inter), system-ui, sans-serif; + --font-monospace: "JetBrainsMono Nerd Font", "JetBrainsMonoNL Nerd Font", + "JetBrains Mono", "JetBrains Mono CGit", "JetBrains Mono NL", "Courier New", + Courier, monospace; --radius-lg: 16px; --radius-md: 12px; --radius-smol: 8px; --bg-headers: #121212bb; } +@supports (font-variation-settings: normal) { + :root { + --font-inter: InterVariable, Inter; + } +} div#cgit { padding: 0em; margin: 0em; - font-family: Inter, sans-serif; font-size: 1rem; color: #dedede; background: #2a2b2c; padding: 1.5rem; margin: 1.2rem; + font-family: var(--font-sans); border-radius: var(--radius-lg); } @@ -317,7 +327,7 @@ div#cgit table.list th { } div#cgit table.list td.commitgraph { - font-family: monospace; + font-family: var(--font-monospace, monospace); white-space: pre; } @@ -346,12 +356,12 @@ div#cgit table.list td.commitgraph .column6 { } div#cgit table.list td.logsubject { - font-family: monospace; + font-family: var(--font-monospace, monospace); font-weight: bold; } div#cgit table.list td.logmsg { - font-family: monospace; + font-family: var(--font-monospace, monospace); white-space: pre; padding: 0 0.5em; } @@ -427,17 +437,17 @@ div#cgit div.error { div#cgit a.ls-blob, div#cgit a.ls-dir, div#cgit .ls-mod { - font-family: monospace; + font-family: var(--font-monospace, monospace); } div#cgit td.ls-size { text-align: right; - font-family: monospace; + font-family: var(--font-monospace, monospace); width: 10em; } div#cgit td.ls-mode { - font-family: monospace; + font-family: var(--font-monospace, monospace); width: 10em; } @@ -528,14 +538,14 @@ div#cgit table.bin-blob { } div#cgit table.bin-blob th { - font-family: monospace; + font-family: var(--font-monospace, monospace); white-space: pre; border: solid 1px #777; padding: 0.5em 1em; } div#cgit table.bin-blob td { - font-family: monospace; + font-family: var(--font-monospace, monospace); white-space: pre; border-left: solid 1px #777; padding: 0em 1em; @@ -632,7 +642,7 @@ div#cgit div.notes-header { div#cgit div.notes { white-space: pre; - font-family: monospace; + font-family: var(--font-monospace, monospace); border: solid 1px #ee9; background-color: #ffd; padding: 0.3em 2em 0.3em 1em; @@ -774,7 +784,7 @@ div#cgit table.diff td div.ctx { } div#cgit .oid { - font-family: monospace; + font-family: var(--font-monospace, monospace); font-size: 90%; } @@ -1023,7 +1033,7 @@ div#cgit table.ssdiff { div#cgit table.ssdiff td { font-size: 75%; - font-family: monospace; + font-family: var(--font-monospace, monospace); white-space: pre; padding: 1px 4px 1px 4px; border-left: solid 1px #aaa; |