diff options
author | sanine <sanine.not@pm.me> | 2023-01-12 17:29:28 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-01-12 17:29:28 -0600 |
commit | f9f8a3206298363059601f6c389584426962e5e4 (patch) | |
tree | b0ed2fd393a1064c01aabdce548e9f84215a8c57 /site_root/cgit.css | |
parent | 655cd79991ec9204afb9f5acf52495c13af14d25 (diff) |
wrong branch :c
Diffstat (limited to 'site_root/cgit.css')
-rw-r--r-- | site_root/cgit.css | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/site_root/cgit.css b/site_root/cgit.css new file mode 100644 index 0000000..9242499 --- /dev/null +++ b/site_root/cgit.css @@ -0,0 +1,176 @@ +:root { + --light: #eee; + --dark: #1c1c1c; + --highlight: #f5ae2e; +} + +body { + color: var(--light); + background: var(--dark); + font-family: monospace; + font-size: 14px; +} + +#navigation { + text-align: center; +} + +.centered { + text-align: center; +} + +#content { + width: 600px; + max-width: 100%; + margin: auto; +} + +a { + color: var(--highlight); +} + +a:hover { + color: var(--dark); + background: var(--highlight); + text-decoration: none; +} + +ul { + list-style: none; +} + +li:before { + content: '* '; +} + +code { + background: black; + padding: 0 6px; + border-radius: 4px; +} + +pre code { + padding: 0; +} + + +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * cgit-specific css + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + */ + +div#cgit { + width: 700px; + max-width: 100%; + margin: auto; +} + +div#cgit table#header { + width: 100%; + margin-bottom: 1em; +} + +div#cgit table#header tbody tr td.logo a { + display: none; +} + +div#cgit table#header td.form { + text-align: right; + vertical-align: bottom; + padding-right: 1em; + padding-bottom: 2px; + white-space: nowrap; +} + +div#cgit table.tabs { + border-bottom: solid 3px var(--highlight); + border-collapse: collapse; + margin-top: 2em; + margin-bottom: 0; + width: 100%; +} + +div#cgit table.tabs td { + padding: 0px 1em; + vertical-align: bottom; +} + +div#cgit table.tabs td a { + padding: 2px 0.75em; + text-decoration: none; +} + +div#cgit table.tabs td a.active { + color: var(--dark); + background-color: var(--highlight); +} + + +div#cgit table.tabs td.form { + text-align: right; +} + +div#cgit table.tabs td.form form { + padding-bottom: 2px; + white-space: nowrap; +} + + +div#cgit div.content { + margin: 0px; + padding: 2em 0; + border-bottom: solid 3px var(--light); +} + +div#cgit select, input { + font-family: monospace; +} + + +div#cgit table.list { + width: 100%; + border: none; + border-collapse: collapse; +} + +div#cgit table.list tr { + background: white; +} + +div#cgit table.list tr.logheader { + background: #eee; +} + +div#cgit table.list tr:nth-child(even) { + background: #151515; +} + +div#cgit table.list tr:nth-child(odd) { + background: var(--dark); +} + + +div#cgit table.blob td.hashes, +div#cgit table.blob td.lines { + margin: 0; padding: 0 0 0 0.5em; + vertical-align: top; + background-color: #151515; +} + +div#cgit table.blob td.lines code { + background-color: #151515; +} + +div#cgit span.decoration { + margin: 0 1em; +} + +div#cgit span.decoration a::before { + content: "["; +} + +div#cgit span.decoration a::after { + content: "]"; +} |