Skip to content

Commit f3a8f8c

Browse files
Merge pull request #43 from ClojureCivitas/improve-spacing
attempt to improve spacing of the layout
2 parents c25d7d3 + 79196b4 commit f3a8f8c

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

site/styles.scss

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,63 @@ div.quarto-post h3 a {
2424
.quarto-listing .quarto-post {
2525
border-bottom: none;
2626
}
27+
28+
figcaption {
29+
margin: auto;
30+
text-align: center;
31+
}
32+
33+
/* Add more breathing room throughout the site */
34+
35+
/* Increase paragraph spacing */
36+
p {
37+
margin-bottom: 1.2em;
38+
line-height: 1.6;
39+
}
40+
41+
/* More space around code blocks */
42+
pre {
43+
margin: 1.5em 0;
44+
}
45+
46+
/* Special handling for code blocks followed by output */
47+
/* Keep code and output connected but add space around the pair */
48+
.sourceCode + .cell-output,
49+
pre + .cell-output {
50+
margin-top: 0.5em;
51+
margin-bottom: 1.5em;
52+
}
53+
54+
/* More space around horizontal rules */
55+
hr {
56+
margin: 2em 0;
57+
border: none;
58+
border-top: 1px solid #ddd;
59+
}
60+
61+
/* Add breathing room to list items */
62+
li {
63+
margin-bottom: 0.5em;
64+
}
65+
66+
/* More space around headings */
67+
h1, h2, h3, h4, h5, h6 {
68+
margin-top: 1.5em;
69+
margin-bottom: 0.8em;
70+
}
71+
72+
/* First heading on page doesn't need top margin */
73+
h1:first-child, h2:first-child, h3:first-child {
74+
margin-top: 0;
75+
}
76+
77+
/* Add space around blockquotes */
78+
blockquote {
79+
margin: 1.5em 0;
80+
padding: 1em 1.5em;
81+
}
82+
83+
/* Add space around tables */
84+
table {
85+
margin: 1.5em 0;
86+
}

0 commit comments

Comments
 (0)