Skip to content

Commit cf5eef6

Browse files
Merge pull request #44 from ClojureCivitas/improve-spacing
improve style spacing
2 parents f3a8f8c + f1eb794 commit cf5eef6

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

site/styles.scss

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ figcaption {
3232

3333
/* Add more breathing room throughout the site */
3434

35+
/* More space around sub-headings */
36+
h2 {
37+
margin-top: 1.5em !important;
38+
margin-bottom: 0.8em !important;
39+
}
40+
3541
/* Increase paragraph spacing */
3642
p {
3743
margin-bottom: 1.2em;
@@ -54,26 +60,13 @@ pre + .cell-output {
5460
/* More space around horizontal rules */
5561
hr {
5662
margin: 2em 0;
57-
border: none;
58-
border-top: 1px solid #ddd;
5963
}
6064

6165
/* Add breathing room to list items */
6266
li {
6367
margin-bottom: 0.5em;
6468
}
6569

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-
7770
/* Add space around blockquotes */
7871
blockquote {
7972
margin: 1.5em 0;
@@ -84,3 +77,8 @@ blockquote {
8477
table {
8578
margin: 1.5em 0;
8679
}
80+
81+
/* Add space between main headings and descriptions */
82+
#title-block-header.quarto-title-block.default .quarto-title .title {
83+
margin-bottom: 0.5em;
84+
}

0 commit comments

Comments
 (0)