Browse Source

Remove web fonts; tweak typography

master
Adrian Short 4 years ago
parent
commit
4de58b31dd
Signed by: adrian GPG Key ID: 4B54F9AE91AB06BB
2 changed files with 12 additions and 9 deletions
  1. +1
    -2
      layouts/partials/header.html
  2. +11
    -7
      static/css/main.css

+ 1
- 2
layouts/partials/header.html View File

@@ -5,8 +5,7 @@
{{ hugo.Generator }} {{ hugo.Generator }}
<meta name=viewport content="width=device-width, initial-scale=1"> <meta name=viewport content="width=device-width, initial-scale=1">
<meta charset=utf-8> <meta charset=utf-8>
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap" rel=stylesheet>
<link rel=stylesheet href="{{ relURL "/css/main.css?4" }}">
<link rel=stylesheet href="{{ relURL "/css/main.css?5" }}">
<link rel=alternate type=application/rss+xml title="{{ partial "data/title" . }}" <link rel=alternate type=application/rss+xml title="{{ partial "data/title" . }}"
href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"> href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}">
{{- template "_internal/opengraph.html" . -}} {{- template "_internal/opengraph.html" . -}}


+ 11
- 7
static/css/main.css View File

@@ -3,9 +3,9 @@ body {
color: #000; color: #000;
width: 600px; width: 600px;
margin: 120px auto; margin: 120px auto;
font-family: "PT Serif", serif;
line-height: 1.0rem;
font-size: 1.3em;
font-family: Georgia, Times, "Times New Roman", serif;
line-height: 1.2rem;
font-size: 1.7em;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }


@@ -29,7 +29,7 @@ a:visited {
padding: 0; padding: 0;
margin: 60px 0; margin: 60px 0;
border-radius: 10px; border-radius: 10px;
line-height: 1.8rem;
line-height: 1.9rem;
} }


#articles p { #articles p {
@@ -43,8 +43,10 @@ a:visited {
} }


#articles h2 { #articles h2 {
font-weight: normal;
font-size: 1.7rem;
line-height: 2.5rem; line-height: 2.5rem;
margin: 0 0 15px 0;
margin: 0 0 5px 0;
} }


.postmeta, .listmeta { .postmeta, .listmeta {
@@ -102,10 +104,11 @@ h1 {
} }


article h1 { article h1 {
font-size: 2.9rem;
line-height: 3.8rem;
font-size: 2.4rem;
line-height: 3.0rem;
margin: 0 0 50px 0; margin: 0 0 50px 0;
color: #6b0000; color: #6b0000;
font-weight: 500;
} }


article #description { article #description {
@@ -150,6 +153,7 @@ sup {
margin: 0; margin: 0;
font-size: 3.5rem; font-size: 3.5rem;
line-height: 4.0rem; line-height: 4.0rem;
font-weight: 500;
color: #6b0000; color: #6b0000;
font-variant-caps: petite-caps; font-variant-caps: petite-caps;
} }


Loading…
Cancel
Save