Diffstat (limited to 'static/style.css')
1 file changed, 212 insertions(+), 219 deletions(-)
@@ -1,5 +1,7 @@
/* ==========================================================================
1. Design Tokens (Catppuccin Mocha Palette)
========================================================================== */
:root {
/* Catppuccin Mocha palette */
--base: #1e1d2d;
--mantle: #181825;
--crust: #11111b;
@@ -27,7 +29,7 @@
--green: #a6e3a1;
--teal: #94e2d5;
--sky: #89dceb;
--saphhire: #74c7ec;
--sapphire: #74c7ec;
--blue: #89b4fa;
--lavender: #b4befe;
@@ -42,13 +44,15 @@
--light_grey: #605f6f;
}
/* ==========================================================================
2. Base & Typography
========================================================================== */
* {
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);
@@ -70,40 +74,54 @@
color: var(--text);
}
table {
border-collapse: collapse;
width: 100%;
overflow: hidden;
a {
color: var(--peach);
padding: 5px;
text-decoration: none;
}
td.msg {
display: flex;
align-items: center;
gap: 0.4em;
overflow: hidden; /* needed for ellipsis to take effect */
a:hover,
a:active,
a.active {
color: var(--crust);
background: var(--peach);
}
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 */
code {
background: var(--black2);
color: var(--green);
padding: 2px 6px;
}
td.author {
white-space: nowrap;
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;
}
/* ==========================================================================
3. Global Tables & Forms
========================================================================== */
table {
border-collapse: collapse;
width: 100%;
overflow: hidden;
}
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;
color: var(--peach);
font-weight: 600;
letter-spacing: 0.05em;
}
td {
@@ -112,6 +130,17 @@
padding: 0.75rem 1rem;
}
td a {
color: var(--text);
}
td.mode,
th.mode {
width: 10ch;
font-family: monospace;
white-space: nowrap;
}
tbody tr:nth-child(even) {
background: var(--one_bg);
}
@@ -124,18 +153,18 @@
background: var(--surface0);
}
th {
color: var(--peach);
font-weight: 600;
font-style: bold;
letter-spacing: 0.05em;
tbody tr.no-background:nth-child(even),
tbody tr.no-background:nth-child(odd),
tbody tr.no-background:hover {
background: transparent;
}
td.form {
text-align: right;
}
td.form input {
td.form input,
td.form select {
color: var(--text);
background: var(--surface0);
border: 1px solid var(--surface1);
@@ -143,168 +172,201 @@
padding: 5px;
}
td.form select {
color: var(--text);
background: var(--surface0);
border: 1px solid var(--surface1);
border-radius: 0;
padding: 5px;
/* ==========================================================================
4. Header & Navigation Tabs
========================================================================== */
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;
}
.tabs {
margin-top: 2rem;
background: var(--black2);
}
.tabs a,
td a {
.tabs a {
color: var(--text);
}
.commit-info {
margin-top: 2rem;
max-width: fit-content;
background: transparent;
.tree-breadcrumb {
background: var(--black2);
padding: 5px;
}
.commit-info tr:nth-child(odd),
.commit-info tr:nth-child(even),
.commit-info tr:hover{
background-color: transparent;
.show_more a,
.pagination a {
color: var(--peach);
font-size: 18px;
}
.commit-info td {
padding: 0.20rem 1rem 0.20rem 0rem;
.show_more a:hover,
.pagination a:hover {
color: var(--crust);
}
.commit-info a {
color: var(--peach);
.pagination {
margin-top: 1rem;
text-align: center;
font-size: 20px;
}
.commit-subject {
padding: 1rem 0;
/* ==========================================================================
5. Metadata Badges, Avatars & Status Indicators
========================================================================== */
.fresh {
color: var(--green);
font-weight: 600;
}
.commit-subject h1 {
font-weight: bold;
font-size: 120%;
.recent {
color: var(--overlay1);
}
.commit-subject h4 {
font-weight: bold;
color: var(--overlay1);
.stale {
color: var(--surface2);
}
.tree-breadcrumb {
background: var(--black2);
padding: 5px;
.description {
color: var(--subtext1);
font-style: italic;
}
code {
background: var(--black2);
color: var(--green);
padding: 2px 6px;
.folder {
color: var(--peach);
}
pre {
color: var(--text);
.clone-url {
background: var(--surface0);
border: 1px var(--surface1) solid;
font-size: 14px;
padding: 6px 10px;
color: var(--peach);
padding: 4px 10px;
font-size: 0.85em;
}
pre code {
.badge_head {
background: var(--crust);
color: var(--text);
background: var(--surface0);
padding: 0;
border: 1px solid var(--red);
padding: 2px 8px;
}
a {
color: var(--peach);
padding: 5px;
text-decoration: none;
.badge_branch {
background: var(--crust);
color: var(--text);
border: 1px solid var(--green);
padding: 2px 8px;
}
a:hover,
a:active,
a.active {
color: var(--crust);
background: var(--peach);
.badge_branch:hover,
.badge_head:hover {
color: var(--peach);
background: var(--crust);
}
.fresh {
.green {
color: var(--green);
font-weight: 600;
}
.recent {
color: var(--overlay1);
}
.stale {
color: var(--surface2);
.red {
color: var(--red);
}
.description {
color: var(--subtext1);
font-style: italic;
span.avatar img.inline {
width: 20px;
height: 20px;
vertical-align: top;
}
span.avatar img.onhover {
display: none;
border: 1px solid var(--surface1);
padding: 0px;
padding: 0;
width: 128px;
height: 128px;
}
span.avatar img.inline {
width: 20px;
height: 20px;
vertical-align: top;
}
span.avatar:hover>img.onhover {
span.avatar:hover > img.onhover {
display: block;
position: absolute;
margin-left: 1.5em;
background-color: var(--crust);
}
.folder {
color: var(--peach);
/* ==========================================================================
6. Commit View & Message Cell
========================================================================== */
td.msg {
display: flex;
align-items: center;
gap: 0.4em;
overflow: hidden;
}
td.logo {
width: 96px;
vertical-align: top;
td.msg .msg-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
td.logo img {
width: 96px;
height: 96px;
td.author {
white-space: nowrap;
}
td.main {
font-size: 200%;
padding-left: 10px;
white-space: nowrap;
.commit-info {
margin-top: 2rem;
max-width: fit-content;
background: transparent;
}
td.sub {
color: var(--subtext0);
border-top: solid 2px var(--surface1);
padding-left: 10px;
.commit-info tr:nth-child(odd),
.commit-info tr:nth-child(even),
.commit-info tr:hover {
background-color: transparent;
}
td.mode, th.mode {
width: 10ch;
font-family: monospace;
white-space: nowrap;
.commit-info td {
padding: 0.20rem 1rem 0.20rem 0;
}
/* === Blob metadata bar === */
.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);
}
/* ==========================================================================
7. Tree & Blob View
========================================================================== */
.blob-meta {
display: flex;
align-items: center;
@@ -331,7 +393,7 @@
.blob-meta .size {
white-space: nowrap;
color: var(--subtext1);
margin-left: auto; /* pushes size + raw-link to the right edge */
margin-left: auto;
}
.blob-table {
@@ -342,7 +404,7 @@
.blob-table tr:nth-child(odd),
.blob-table tr:nth-child(even),
.blob-table tr:hover{
.blob-table tr:hover {
background-color: transparent;
}
@@ -351,7 +413,7 @@
text-align: right;
padding: 0 0.8em;
color: var(--overlay0);
user-select: none; /* selecting code shouldn't drag line numbers along with it */
user-select: none;
border-right: 1px solid var(--surface1);
vertical-align: top;
white-space: nowrap;
@@ -368,87 +430,20 @@
background: none;
border: none;
padding: 0;
white-space: pre-wrap; /* wraps long lines instead of forcing horizontal scroll */
white-space: pre-wrap;
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;
}
/* ==========================================================================
8. Diff & Diffstat
========================================================================== */
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;
}
@@ -456,7 +451,7 @@
.diffstat tr,
.diffstat tr:nth-child(odd),
.diffstat tr:nth-child(even),
.diffstat tr:hover{
.diffstat tr:hover {
background-color: transparent;
}
@@ -506,11 +501,6 @@
color: var(--blue);
}
.diff-addition::before, .diff-deletion::before, .diff-context::before {
display: inline-block;
color: #888;
}
.diff-file-header {
font-weight: bold;
}
@@ -523,31 +513,35 @@
background: #2b3038;
color: var(--green);
display: block;
}
&::before {
content: '+ ';
}
.diff-addition::before {
content: '+ ';
display: inline-block;
color: #888;
}
.diff-deletion {
background: #332839;
color: var(--red);
display: block;
&::before {
content: '- ';
}
}
.diff-context {
&::before {
content: ' ';
}
.diff-deletion::before {
content: '- ';
display: inline-block;
color: #888;
}
/* NOTE: Markdown */
.diff-context::before {
content: ' ';
display: inline-block;
color: #888;
}
/* ==========================================================================
9. Markdown & Readme
========================================================================== */
.readme h1,
.readme h2,
.readme h3,
@@ -563,10 +557,9 @@
padding-bottom: 0.3rem;
}
/* Paragraph */
.readme p {
font-size: 14px;
color: var(--catppuccin-subtext1);
color: var(--subtext1);
}
.readme hr {