new-ryuslash.org/src/scss/cgit.scss
Tom Willemse fe7933869e Switch from less to scss
Trying to redo the way I build my site so that it's simpler to maintain, and one
thing that was getting in my way was that ‘lessc’ isn't packaged for Guix. Sass
on the other hand is, so I've switched.
2023-07-27 00:57:24 -07:00

157 lines
1.9 KiB
SCSS

@import 'include/common';
@import 'include/components';
a.button {
padding: 0 0.5rem;
}
.content > table {
width: 100%;
}
.decoration > a {
margin-left: 5px;
display: inline-block;
padding: 0 5px;
background-color: #1e2f47;
color: $dark-foreground;
&:hover {
text-decoration: none;
background-color: #71a3f0;
color: $dark-background;
}
}
.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;
> a {
position: absolute;
top: 10px;
left: 10px;
}
}
.pager {
@include listless-list;
margin: 0;
padding: 0;
text-align: center;
padding-bottom: 5px;
li {
padding: 5px 10px;
}
}
.reposection {
text-align: center;
font-size: 1.4rem;
font-weight: bold;
}
.sub {
@extend .subtitle;
display: block;
}
.tabs {
width: 100%;
a {
padding: 5px 10px;
margin: 0;
&.active {
background-color: $dark-background-highlight;
}
}
.form {
width: 0;
white-space: nowrap;
}
}
#cgit {
@extend .content-wrapper;
position: relative;
}
#header {
width: 100%;
&, tbody, tr, td {
display: block;
margin: 0;
border: 0;
}
.form {
padding: 0;
form {
text-align: right;
padding: 0 1rem;
}
}
}