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

View file

@ -80,6 +80,32 @@ body {
margin-left: calc(100% - 40px); 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 */
.sidebar { .sidebar {
float: left; float: left;
@ -190,12 +216,6 @@ body {
margin-bottom: 12px; margin-bottom: 12px;
} }
.post-list .post h1 {
font-size: 1.2em;
margin: 0 0 0.5em 0;
padding: 0;
}
.post-list .post h1 a { .post-list .post h1 a {
color: inherit; color: inherit;
transition: color 0.2s ease-in-out; transition: color 0.2s ease-in-out;