Skip to content

Commit

Permalink
CSS vertical spacing tweaks.
Browse files Browse the repository at this point in the history
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
  • Loading branch information
daira committed Dec 1, 2022
1 parent b5957b5 commit 388a73d
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ h5, h6, h7, h8 {

h1 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
}

h2 {
font-size: 2.125rem;
margin-bottom: 1.125rem;
}

h3 {
Expand All @@ -131,17 +133,14 @@ h5 {

h6 {
font-size: 1.3rem;
bottom-padding: 2rem;
}

h7 {
font-size: 1.25rem;
bottom-padding: 2rem;
}

h8 {
font-size: 1.2rem;
bottom-padding: 2rem;
}

blockquote {
Expand All @@ -150,24 +149,32 @@ blockquote {
overflow-x: auto;
}

p, ul, ol, li, table {
p {
margin-top: 0;
margin-bottom: calc( 1rem + 1ex );
}

p {
margin-bottom: 1rem;
table {
margin-top: 0.5rem;
margin-bottom: calc( 1rem + 1ex );
}

li {
margin-bottom: 0.2rem;
ul, ol {
margin-top: -0.4rem;
margin-bottom: calc( 0.5rem + 1ex );
}

li ol {
margin-top: 0.25ex;
}

li ul {
margin-top: 0.625rem;
margin-top: 0.25ex;
}

ul, ol, table {
margin-bottom: calc( 0.5rem + 0.5ex );
li {
margin-top: 0.5ex;
margin-bottom: 0.5rem;
}

p, ul, ol, dl, table {
Expand Down

0 comments on commit 388a73d

Please sign in to comment.