diff --git a/src/less/cgit.less b/src/less/cgit.less index e8f5558..25b9f67 100644 --- a/src/less/cgit.less +++ b/src/less/cgit.less @@ -1,6 +1,10 @@ @import 'include/common'; @import 'include/components'; +a.button { + padding: 0 0.5rem; +} + .content > table { width: 100%; } @@ -19,12 +23,60 @@ } } +.form form { + padding: 0 1rem; +} + +.highlight { + @media (prefers-color-scheme: dark) { + background-color: @dark-background !important; + } + @media (prefers-color-scheme: light) { + background-color: @light-background !important; + } + + .nv { + color: #bbca82 !important; + } + + .nb { + color: #90ca82 !important; + } + + .k { + color: #caad82 !important; + } + + .ch, .c1 { + color: #f071bd !important; + font-style: normal !important; + } + + .s2 { + color: #82ca9f !important; + } + + .m { + color: #ca8282 !important; + } +} + .main { &:extend(.title-header); display: block; } +.linenumbers, .lines { + vertical-align: top; + + pre { + margin: 0; + padding: 0; + border: none; + } +} + .logo { width: 0; padding: 0; @@ -93,4 +145,14 @@ margin: 0; border: 0; } + + .form { + padding: 0; + + form { + &:extend(.header-block); + text-align: right; + padding: 0 1rem; + } + } }