theme: style: unify styling of headings

This commit is contained in:
Peter Cai 2020-04-11 19:04:13 +08:00
parent 9b018b559d
commit 48dd6cbabc
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 26 additions and 6 deletions

View File

@ -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;