Created
June 9, 2024 09:45
-
-
Save RobinBoers/540f30bb46987f6ff073d623e67a9665 to your computer and use it in GitHub Desktop.
Custom stylesheet for git.dupunkto.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("cgit.css"); | |
@import url("https://roblog.nl/base.css"); | |
/* Better fonts */ | |
:root { | |
line-height: 1.6; | |
tab-size: 4; | |
} | |
div#cgit { font-family: monospace; } | |
* { | |
border: revert !important; | |
} | |
/* Better layout */ | |
div#cgit div.content { | |
padding: 2em .8em; | |
} | |
div#cgit { | |
max-width: 117ch; | |
margin: 0 auto; | |
} | |
div#cgit div#summary { | |
max-width: 80ch; | |
} | |
/* Better header */ | |
table#header { | |
margin-top: 2em; | |
font-family: serif; | |
font-weight: bolder; | |
} | |
table#header td.main:has(a) { | |
color: transparent; | |
font-size: .2px !important; | |
} | |
table#header td.main a { | |
font-size: 2rem !important; | |
} | |
table#header td.main a:first-child::after { | |
content: "/"; | |
} | |
div#cgit div.footer { | |
font-family: serif; | |
font-size: 1.2em; | |
margin-top: 3em; | |
margin-bottom: 1em; | |
} | |
/* Trim repo descriptions */ | |
div#cgit div.content table.list[summary="repository list"] tr td:nth-child(2) { | |
max-width: 40ch !important; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
text-transform: lowercase; | |
} | |
/* Remove weird artifacts */ | |
table#header td.sub.right { | |
display: none; | |
} | |
/* Remove excessive use of borders */ | |
div#cgit table#header td.sub { | |
border-top: none; | |
} | |
div#cgit table.tabs { | |
border-bottom: none; | |
} | |
div#cgit div.content { | |
border-bottom: none; | |
} | |
/* Padding on sections */ | |
div#cgit table.list td.reposection { | |
padding-top: 1.5em; | |
} | |
/* Neutral colors */ | |
div#cgit table.list th a { | |
color: inherit; | |
} | |
div#cgit table.list tr:nth-child(even) { | |
background: inherit; | |
} | |
div#cgit table.list tr:hover { | |
background: inherit; | |
} | |
div#cgit table.list tr.nohover-highlight:hover:nth-child(even) { | |
background: inherit; | |
} | |
div#cgit table.blob td.linenumbers a:target { | |
color: goldenrod; | |
text-decoration: underline; | |
outline: none; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment