aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-01-26 11:47:06 -0500
committerJoe Mou <dev@mou.fo>2026-01-26 13:13:12 -0500
commitae49c53b8b963878f1b13881c558cea121071944 (patch)
tree1e670ac1701f9508ab1a2bc3b6041735b5e01cd2 /static
parentfe7e6c348b19c58c83ff80ef635c30d0ad4f21d7 (diff)
Overview (README) in trees
Diffstat (limited to 'static')
-rw-r--r--static/style.css43
1 files changed, 41 insertions, 2 deletions
diff --git a/static/style.css b/static/style.css
index 1229fce..ff787d6 100644
--- a/static/style.css
+++ b/static/style.css
@@ -3,6 +3,7 @@ body {
font-family: Helvetica, Arial, sans-serif;
--border-color: #d0d7de;
+ --shade-background: #eeeeee;
}
@media (prefers-color-scheme: dark) {
@@ -23,10 +24,20 @@ a {
text-decoration: none;
}
-header, .box {
+body > header, .box {
+ --box-padding: .5rem;
+
margin: 1rem 0;
border: 1px solid var(--border-color);
- padding: .5rem;
+ padding: var(--box-padding);
+
+ > header:first-child {
+ margin: calc(-1 * var(--box-padding));
+ margin-bottom: 0;
+ padding: .5rem;
+ border-bottom: 1px solid var(--border-color);
+ font-weight: bold;
+ }
}
footer {
@@ -64,3 +75,31 @@ pre.box {
/* Instead of scrolling overflow for long lines, grow the box. */
width: fit-content;
}
+
+.overview {
+ overflow-wrap: break-word;
+ &.box {
+ --box-padding: 1rem;
+ }
+
+ a {
+ text-decoration: underline;
+ }
+
+ h1, h2 {
+ border-bottom: 1px solid var(--border-color);
+ }
+
+ img {
+ max-width: 100%;
+ }
+
+ code {
+ background: var(--shade-background);
+ }
+
+ /* TODO Strip permalinks? */
+ svg.octicon-link {
+ display: none;
+ }
+}