Diffstat (limited to 'static/style.css')
1 file changed, 575 insertions(+)
@@ -1,0 +1,575 @@
:root {
/* Catppuccin Mocha palette */
--base: #1e1d2d;
--mantle: #181825;
--crust: #11111b;
--text: #cdd6f4;
--subtext1: #bac2de;
--subtext0: #a6adc8;
--surface0: #313244;
--surface1: #45475a;
--surface2: #585b70;
--overlay0: #6c7086;
--overlay1: #7f849c;
--overlay2: #9399b2;
--rosewater: #f5e0dc;
--flamingo: #f2cdcd;
--pink: #f5c2e7;
--mauve: #cba6f7;
--red: #f38ba8;
--maroon: #eba0ac;
--peach: #fab387;
--yellow: #f9e2af;
--green: #a6e3a1;
--teal: #94e2d5;
--sky: #89dceb;
--saphhire: #74c7ec;
--blue: #89b4fa;
--lavender: #b4befe;
--white: #D9E0EE;
--black2: #252434;
--one_bg: #2d2c3c;
--one_bg2: #363545;
--one_bg3: #3e3d4d;
--grey: #474656;
--grey_fg: #4e4d5d;
--grey_fg2: #555464;
--light_grey: #605f6f;
}
* {
box-sizing: border-box;
}
body {
font-family: 'Maple Mono NF', monospace;
/* font-family: 'BigBlueTerm437 Nerd Font', monospace; */
font-size: 1rem;
margin: 0;
background: var(--base);
color: var(--text);
}
div#body {
padding: 2rem;
}
main {
padding: 2rem;
margin: 0 auto;
}
h1,
h2,
h3 {
color: var(--text);
}
table {
border-collapse: collapse;
width: 100%;
overflow: hidden;
}
td.msg {
display: flex;
align-items: center;
gap: 0.4em;
overflow: hidden; /* needed for ellipsis to take effect */
}
td.msg .msg-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0; /* flex children don't shrink below content size by default — this overrides that */
}
td.author {
white-space: nowrap;
}
th {
text-align: left;
white-space: nowrap;
}
tbody tr.no-background:nth-child(even),
tbody tr.no-background:nth-child(odd),
tbody tr.no-background:hover {
background: transparent;
}
td {
text-align: left;
white-space: nowrap;
padding: 0.75rem 1rem;
}
tbody tr:nth-child(even) {
background: var(--one_bg);
}
tbody tr:nth-child(odd) {
background: var(--black2);
}
tbody tr:hover {
background: var(--surface0);
}
th {
color: var(--peach);
font-weight: 600;
font-style: bold;
letter-spacing: 0.05em;
}
td.form {
text-align: right;
}
td.form input {
color: var(--text);
background: var(--surface0);
border: 1px solid var(--surface1);
border-radius: 0;
padding: 5px;
}
td.form select {
color: var(--text);
background: var(--surface0);
border: 1px solid var(--surface1);
border-radius: 0;
padding: 5px;
}
.tabs {
margin-top: 2rem;
background: var(--black2);
}
.tabs a,
td a {
color: var(--text);
}
.commit-info {
margin-top: 2rem;
max-width: fit-content;
background: transparent;
}
.commit-info tr:nth-child(odd),
.commit-info tr:nth-child(even),
.commit-info tr:hover{
background-color: transparent;
}
.commit-info td {
padding: 0.20rem 1rem 0.20rem 0rem;
}
.commit-info a {
color: var(--peach);
}
.commit-subject {
padding: 1rem 0;
}
.commit-subject h1 {
font-weight: bold;
font-size: 120%;
}
.commit-subject h4 {
font-weight: bold;
color: var(--overlay1);
}
.tree-breadcrumb {
background: var(--black2);
padding: 5px;
}
code {
background: var(--black2);
color: var(--green);
padding: 2px 6px;
}
pre {
color: var(--text);
background: var(--surface0);
border: 1px var(--surface1) solid;
font-size: 14px;
padding: 6px 10px;
}
pre code {
color: var(--text);
background: var(--surface0);
padding: 0;
}
a {
color: var(--peach);
padding: 5px;
text-decoration: none;
}
a:hover,
a:active,
a.active {
color: var(--crust);
background: var(--peach);
}
.fresh {
color: var(--green);
font-weight: 600;
}
.recent {
color: var(--overlay1);
}
.stale {
color: var(--surface2);
}
.description {
color: var(--subtext1);
font-style: italic;
}
span.avatar img.onhover {
display: none;
border: 1px solid var(--surface1);
padding: 0px;
width: 128px;
height: 128px;
}
span.avatar img.inline {
width: 20px;
height: 20px;
vertical-align: top;
}
span.avatar:hover>img.onhover {
display: block;
position: absolute;
margin-left: 1.5em;
background-color: var(--crust);
}
.folder {
color: var(--peach);
}
td.logo {
width: 96px;
vertical-align: top;
}
td.logo img {
width: 96px;
height: 96px;
}
td.main {
font-size: 200%;
padding-left: 10px;
white-space: nowrap;
}
td.sub {
color: var(--subtext0);
border-top: solid 2px var(--surface1);
padding-left: 10px;
}
td.mode, th.mode {
width: 10ch;
font-family: monospace;
white-space: nowrap;
}
/* === Blob metadata bar === */
.blob-meta {
display: flex;
align-items: center;
gap: 1em;
padding: 0.5em 0.8em;
margin-bottom: 0.5em;
background-color: var(--black2);
border: 1px solid var(--surface1);
font-family: monospace;
font-size: 0.9em;
}
.blob-meta .mode {
white-space: nowrap;
color: var(--green);
}
.blob-meta .blob-id {
color: var(--subtext0);
overflow: hidden;
text-overflow: ellipsis;
}
.blob-meta .size {
white-space: nowrap;
color: var(--subtext1);
margin-left: auto; /* pushes size + raw-link to the right edge */
}
.blob-table {
width: 100%;
border-collapse: collapse;
font-family: monospace;
}
.blob-table tr:nth-child(odd),
.blob-table tr:nth-child(even),
.blob-table tr:hover{
background-color: transparent;
}
.blob-table .line-no {
width: 4em;
text-align: right;
padding: 0 0.8em;
color: var(--overlay0);
user-select: none; /* selecting code shouldn't drag line numbers along with it */
border-right: 1px solid var(--surface1);
vertical-align: top;
white-space: nowrap;
}
.blob-table .line-content {
width: 100%;
padding: 0 0.8em;
color: var(--text);
}
.blob-table .line-content pre {
margin: 0;
background: none;
border: none;
padding: 0;
white-space: pre-wrap; /* wraps long lines instead of forcing horizontal scroll */
word-break: break-all;
}
.clone-url {
background: var(--surface0);
color: var(--peach);
padding: 4px 10px;
font-size: 0.85em;
}
.show_more a,
.pagination a{
color: var(--peach);
font-size: 18px;
}
.show_more a:hover,
.pagination a:hover{
color: var(--crust);
}
.pagination {
margin-top: 1rem;
text-align: center;
font-size: 20px;
}
.badge_head {
background: var(--crust);
color: var(--text);
border: 1px solid var(--red);
padding: 2px 8px;
}
.badge_branch {
background: var(--crust);
color: var(--text);
border: 1px solid var(--green);
padding: 2px 8px;
}
.badge_branch:hover,
.badge_head:hover {
color: var(--peach);
background: var(--crust);
}
.green {
color: var(--green);
}
.red {
color: var(--red);
}
.mt-1 {
margin-top: 1rem;
}
.mt-2 {
margin-top: 2rem;
}
.mt-3 {
margin-top: 3rem;
}
.mt-4 {
margin-top: 4rem;
}
.mt-5 {
margin-top: 5rem;
}
table.diffstat {
background: var(--surface0);
border: 1px var(--surface1) solid;
max-width: 50%;
min-width: 50%;
}
table.diffstat td {
padding: 0.2em 0.2em 0.1em 0.1em;
}
.diffstat tr,
.diffstat tr:nth-child(odd),
.diffstat tr:nth-child(even),
.diffstat tr:hover{
background-color: transparent;
}
.diffstat .mode,
.diffstat .upd,
.diffstat .right {
width: 1%;
}
a.diffstat-added {
color: var(--green);
}
a.diffstat-removed {
color: var(--red);
}
a.diffstat-changed {
color: var(--peach);
}
a.diffstat-added:hover,
a.diffstat-removed:hover,
a.diffstat-changed:hover {
color: var(--crust);
}
.diffstat-addition {
background: var(--green);
height: 0.5rem;
}
.diffstat-deletion {
background: var(--red);
height: 0.5rem;
}
pre.diff {
color: var(--text);
background: none;
border: none;
font-size: 14px;
padding: 0;
}
.diff-hunk {
color: var(--blue);
}
.diff-addition::before, .diff-deletion::before, .diff-context::before {
display: inline-block;
color: #888;
}
.diff-file-header {
font-weight: bold;
}
.diff-file-header > span > span {
font-weight: normal;
}
.diff-addition {
background: #2b3038;
color: var(--green);
display: block;
&::before {
content: '+ ';
}
}
.diff-deletion {
background: #332839;
color: var(--red);
display: block;
&::before {
content: '- ';
}
}
.diff-context {
&::before {
content: ' ';
}
}
/* NOTE: Markdown */
.readme h1,
.readme h2,
.readme h3,
.readme h4,
.readme h5,
.readme h6 {
margin-bottom: 1rem;
}
.readme h1,
.readme h2 {
border-bottom: 1px solid var(--surface1);
padding-bottom: 0.3rem;
}
/* Paragraph */
.readme p {
font-size: 14px;
color: var(--catppuccin-subtext1);
}
.readme hr {
border: none;
border-top: 1px solid var(--surface1);
}