From f9217c974bed30b834f49a268bb4ecddfb61a4b0 Mon Sep 17 00:00:00 2001 From: gurkenhabicht Date: Sat, 29 Oct 2022 01:27:18 +0200 Subject: [PATCH] fonts --- static/stylesheet.css | 15 +++++++++------ templates/template.html | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/static/stylesheet.css b/static/stylesheet.css index 17f7396..9b4f952 100644 --- a/static/stylesheet.css +++ b/static/stylesheet.css @@ -1,7 +1,11 @@ -html *{ font-family: Fira Mono, DejaVu Sans Mono, Menlo, Consolas, Liberation Mono, Monaco, Lucida Console, monospace;} -body { margin:0; padding: 0; text-decoration: none;} -blockquote { text-align: center; font-size: 16px; font-style: normal; line-height: 30px;} -pre { font-size: 14px; padding-left: 2ch;padding-top:2ch; padding-bottom: 2ch; overflow: auto; max-width: 100%; border-radius: 5px;} +html *{ font-family: Dejavu Sans Mono, Noto Sans Mono, Menlo, Consolas, Monaco, monospace; } +body { margin:0; padding: 0; text-decoration: none; } +h1 {font-size: 33px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 51px; } +h2 {font-size: 26px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 41px; } +h3 { font-size: 16px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 27px; } +p { font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; } +blockquote { text-align: center; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; } +pre { font-family: monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; padding-left: 2ch;padding-top:2ch; padding-bottom: 2ch; overflow: auto; max-width: 100%; border-radius: 5px;} code { max-width: 100%; overflow: auto; } img { max-width: 100%; } hr { height: 0px; } @@ -53,7 +57,7 @@ details summary::marker { height: auto; content: "\1F4C1\20";} /* 12em is the width of the columns */ flex: 0 0 12em; /* experimental line height */ - line-height: 1.8em; + line-height: 27px; } .HolyGrail-ads { overflow: hidden; @@ -83,7 +87,6 @@ details summary::marker { height: auto; content: "\1F4C1\20";} margin: 0em; text-align: left; /* experimental line height */ - line-height: 1.5em; list-style-position: inside; } diff --git a/templates/template.html b/templates/template.html index fa14b76..8c62b6b 100644 --- a/templates/template.html +++ b/templates/template.html @@ -66,7 +66,7 @@ {%- for item in tree.children recursive %} {%- set name = item.name.split('/')[-1] -%} {%- if item.type != "directory" -%} -
  • {{ name }}
  • +
  • {{ name }}
  • {%- else -%} {%- if item.children|length -%}
    {{ name[0]|upper }}{{ name[1:] }}