summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorOscar Benedito <oscar@oscarbenedito.com>2020-07-31 16:56:52 +0200
committerOscar Benedito <oscar@oscarbenedito.com>2020-08-11 01:38:01 +0200
commit1fdbc7e8ef4025e50678261ca670daca85ac298c (patch)
tree3b0862499e130b2e266877a6da8d4dd1ba2ea305 /style.css
parent0a81a2fac1b84fb5ee9870fafb3d62975eaf0f96 (diff)
Add about page for repos with REAMDE
This commits adds a new dependency: md4c (https://github.com/mity/md4c). Now stagit will generate an about page for each repo with a README, converting it to HTML if it is a Markdown file.
Diffstat (limited to 'style.css')
-rw-r--r--style.css21
1 files changed, 20 insertions, 1 deletions
diff --git a/style.css b/style.css
index 118e1e4..3c458f9 100644
--- a/style.css
+++ b/style.css
@@ -28,7 +28,7 @@ body {
overflow-x: auto;
}
-pre {
+pre:not(#about) {
overflow-x: auto;
border: 1px solid var(--code-border);
border-radius: 4px;
@@ -56,6 +56,14 @@ h1, h2, h3, h4, h5, h6 {
margin: 0;
}
+.md h1 {
+ font-size: 1.5em;
+}
+
+.md h2 {
+ font-size: 1.25em;
+}
+
img, h1, h2 {
vertical-align: middle;
}
@@ -147,3 +155,14 @@ pre a.i:hover,
pre a.d:hover {
text-decoration: none;
}
+
+.md table {
+ border-collapse: collapse;
+ margin: 1em 1em;
+ border: 1px solid var(--border);
+}
+.md table td,
+.md table th {
+ padding: 0.25em 1em;
+ border: 1px solid var(--border);
+}