From ed161e7fb20a697ecba070ef7db4c231d700f245 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 25 Mar 2020 05:12:40 +0100 Subject: Move to my own static generator --- static/avatar-512x512.png | Bin 0 -> 244569 bytes static/avatar-64x64.png | Bin 0 -> 16769 bytes static/style.css | 172 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 172 insertions(+) create mode 100644 static/avatar-512x512.png create mode 100644 static/avatar-64x64.png create mode 100644 static/style.css (limited to 'static') diff --git a/static/avatar-512x512.png b/static/avatar-512x512.png new file mode 100644 index 0000000..fc34eee Binary files /dev/null and b/static/avatar-512x512.png differ diff --git a/static/avatar-64x64.png b/static/avatar-64x64.png new file mode 100644 index 0000000..1406f46 Binary files /dev/null and b/static/avatar-64x64.png differ diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..1254dc9 --- /dev/null +++ b/static/style.css @@ -0,0 +1,172 @@ +* { + box-sizing: border-box; +} + +body { + line-height: 150%; + margin-bottom: 100px; + font-family: serif; +} + +main { + max-width: 760px; + padding: 20px 30px; +} + +nav { + margin-bottom: 50px; +} + +nav a { + display: inline-block; + margin-right: 20px; +} + +h1 { + font-size: 280%; + line-height: initial; +} + +h2 { + font-size: 200%; + line-height: initial; +} + +h3 { + font-size: 160%; + line-height: initial; +} + +img { + max-width: 100%; + margin: 30px auto; + display: block; +} + +ul.article-list li { + margin-bottom: 10px; +} + +ul.article-list li div { + display: flex; +} + +ul.article-list time { + display: inline-block; + min-width: 160px; +} + +article .info { + font-style: oblique; +} + +pre { + overflow: auto; +} + +table { + width: 100%; +} + +table, th, td { + border: 1px solid black; + text-align: left; +} + +th, td { + padding: 5px 10px; +} + +code, pre { + font-size: 13px; +} + +code { + background: rgb(255, 241, 177); + padding: 2px 5px; +} + +pre > code { + background: unset; + padding: unset; +} + +p.modified { + font-style: oblique; + font-size: 90%; + margin-top: 50px; +} + +::selection { + background: #ff0; + color: #000; +} + +::-moz-selection { + background: #ff0; + color: #000; +} + +@media only screen and (max-width:480px) { + main { + padding: 20px; + } + + nav { + text-align: center; + margin-bottom: initial; + } + + nav a { + margin-bottom: 10px; + } + + ul { + padding-left: 20px; + } + + ul.article-list li { + margin-bottom: 20px; + + } + + ul.article-list li div { + display: block; + margin-top: 15px; + } + + ul.article-list a { + display: block; + margin-top: 5px; + } + + h1 { + font-size: 220%; + } + + h2 { + font-size: 180%; + } + + h3 { + font-size: 160%; + } +} + +@media (prefers-color-scheme: light) { + body { + background-color: white; + color: black; + } +} + +@media (prefers-color-scheme: dark) { + body { + background-color: rgb(30, 30, 30); + color: white; + } + + a { + color: white; + } +} -- cgit v1.2.3