new-ryuslash.org/src/less/cgit.less

157 lines
1.9 KiB
Text

@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 {
.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;
}
}
}