From 48dd6cbabc595e192cf0656b7948d64db53759ec Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 11 Apr 2020 19:04:13 +0800 Subject: [PATCH] theme: style: unify styling of headings --- theme/default/static/style.css | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/theme/default/static/style.css b/theme/default/static/style.css index 50a9f59..1c01257 100644 --- a/theme/default/static/style.css +++ b/theme/default/static/style.css @@ -80,6 +80,32 @@ body { margin-left: calc(100% - 40px); } +/* Headings */ +h1, h2, h3, h4, h5 { + margin: 0 0 0.5em 0; + padding: 0; +} + +h1 { + font-size: 1.4em; +} + +h2 { + font-size: 1.3em; +} + +h3 { + font-size: 1.2em; +} + +h4 { + font-size: 1.1em; +} + +h5 { + font-size: 1em; +} + /* Sidebar */ .sidebar { float: left; @@ -190,12 +216,6 @@ body { margin-bottom: 12px; } -.post-list .post h1 { - font-size: 1.2em; - margin: 0 0 0.5em 0; - padding: 0; -} - .post-list .post h1 a { color: inherit; transition: color 0.2s ease-in-out;