commit: 0416e6534009273d17e7cdd7291685a8442773a9
parent: d2cd0e2e39d4aeba470890418ce3ab27b0bc0c03
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 21 Apr 2018 16:36:33 +0200
style.css: Add more styling, LaTeX-style
Diffstat:
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/style.css b/style.css
@@ -1,3 +1,8 @@
+:root {
+ font-family: serif;
+ text-rendering: optimizelegibility;
+ font-kerning: normal;
+}
.small-caps { font-variant: small-caps; }
nav li { list-style: none; }
main {
@@ -10,6 +15,23 @@ code { font-family: monospace; }
.p-nickname { font-family: monospace; }
.p-nickname::after { content:")"; }
+h1,h2,h3,h4,h5,h6 {
+ font-family: sans;
+ font-kerning: auto;
+}
+
+h1,h2 {
+ display: table;
+ padding: 0.25ex 0.5em;
+}
+
+h1 { border-bottom: 2pt solid; }
+h2 { border-bottom: 1pt solid; }
+
+h1::before,h2::before,h3::before,h4::before,h5::before,h6::before {
+ display: none;
+}
+
@media print {
nav { display: none; }
a::before { content: "[" attr(href) "]("; }
@@ -17,4 +39,4 @@ code { font-family: monospace; }
a::before, a::after {
font-family: monospace;
}
-}
+}+
\ No newline at end of file