Overhaul index page

This commit is contained in:
Joscha 2023-08-17 22:34:45 +02:00
parent 5bc4605414
commit 689894d2e8
2 changed files with 77 additions and 36 deletions

View file

@ -1,15 +1,16 @@
:root { * {
--lh: 1.3em;
font-family: monospace; font-family: monospace;
line-height: var(--lh); margin: 0;
color-scheme: light dark; padding: 0;
} }
/* General */ body {
margin: .7em;
}
details, h2 {
dl { font-size: 1.7em;
margin: var(--lh) 0; margin: 1em 0 .5em;
} }
a { a {
@ -21,21 +22,45 @@ a:hover {
font-weight: bold; font-weight: bold;
} }
button {
padding: 0 .5ch;
}
details {
margin: 1em 0;
padding: .3em 1ch;
background-color: #ddd;
}
details>summary {
font-weight: bold;
margin-left: 0;
list-style-type: "> ";
}
details[open]>summary {
margin-left: 0;
margin-bottom: 1em;
list-style-type: "v ";
}
details[open]>:last-child {
margin-bottom: 0;
}
dl {
margin: 1em 0;
}
dt {
margin-top: 1em;
}
dd { dd {
margin-left: 4ch; margin-left: 4ch;
} }
details { /*
background-color: #ddd;
}
details>* {
margin-left: 4ch;
}
details>summary {
margin-left: 0;
}
table { table {
border-collapse: collapse; border-collapse: collapse;
@ -51,13 +76,7 @@ td+td {
padding-left: 2ch; padding-left: 2ch;
} }
.reachable { */
color: #777;
}
.orphaned {
color: #a33;
}
/* Nav bar */ /* Nav bar */
@ -77,6 +96,13 @@ nav>* {
border-right: 0.1em solid black; border-right: 0.1em solid black;
} }
nav>:first-child img {
width: 1.2em;
height: 1.2em;
vertical-align: bottom;
padding-right: 0.3em;
}
nav>:first-child { nav>:first-child {
padding-left: 0; padding-left: 0;
} }
@ -90,13 +116,6 @@ nav>.current {
font-weight: bold; font-weight: bold;
} }
nav>:first-child img {
width: 1.2em;
height: 1.2em;
vertical-align: -20%;
padding-right: 0.3em;
}
nav a { nav a {
text-decoration: none; text-decoration: none;
} }
@ -105,8 +124,20 @@ nav a:hover {
text-decoration: underline; text-decoration: underline;
} }
/* Commit status */
.commit-reachable {
color: #777;
}
.commit-orphaned {
color: #a33;
}
/* Commit */ /* Commit */
/*
.commit * { .commit * {
margin: 0; margin: 0;
} }
@ -127,8 +158,12 @@ nav a:hover {
white-space: pre-wrap; white-space: pre-wrap;
} }
*/
/* Worker */ /* Worker */
/*
.worker * { .worker * {
margin: 0; margin: 0;
} }
@ -144,8 +179,12 @@ nav a:hover {
font-weight: bold; font-weight: bold;
} }
*/
/* Queue */ /* Queue */
/*
#queue td:nth-child(2), #queue td:nth-child(2),
#queue td:nth-child(3) { #queue td:nth-child(3) {
text-align: right; text-align: right;
@ -158,3 +197,5 @@ nav a:hover {
#queue .odd:hover { #queue .odd:hover {
background-color: #ddd; background-color: #ddd;
} }
*/

View file

@ -1,10 +1,10 @@
{% macro commit_class(reachable) %} {% macro commit_class(reachable) %}
{%- if reachable == 0 -%} {%- if reachable == 0 -%}
orphaned commit-orphaned
{%- else if reachable == 1 -%} {%- else if reachable == 1 -%}
reachable commit-reachable
{%- else -%} {%- else -%}
tracked commit-tracked
{%- endif -%} {%- endif -%}
{% endmacro %} {% endmacro %}