Skip to content

Commit 9116b99

Browse files
committed
CSS: footnote and h3
1 parent 199dbb7 commit 9116b99

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

website/src/css/main.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565

6666
h3 {
6767
@apply text-2xl;
68+
font-weight: bold;
69+
@apply markdown-h;
70+
@apply pb-2;
6871
}
6972

7073
/*a {*/
@@ -208,6 +211,11 @@ html {
208211
@apply mb-0;
209212
}
210213

214+
.markdown-content h3 {
215+
@apply mt-6;
216+
@apply mb-0;
217+
}
218+
211219
.markdown-h {
212220
color: var(--brown-caption);
213221
}
@@ -269,6 +277,41 @@ html {
269277
/*@apply leading-7;*/
270278
}
271279

280+
/* note: no preceding `.markdown-content`. */
281+
.footnote-definition {
282+
@apply text-sm;
283+
284+
display: flex;
285+
flex-direction: column; /* stack child elements vertically */
286+
/*align-items: baseline;*/
287+
}
288+
289+
.footnote-definition-label {
290+
/* Adjust spacing between the label and the paragraph. */
291+
/*margin-right: 5px;*/
292+
@apply mr-1.5;
293+
294+
/* align label to start of the line. */
295+
align-self: flex-start;
296+
/* place the label before other elements. */
297+
/*order: -1;*/
298+
299+
/* offset label vertically, since it's too high otherwise */
300+
position: relative;
301+
top: 9px;
302+
}
303+
304+
.footnote-definition code {
305+
@apply text-sm;
306+
}
307+
308+
/** Indent paragraph (incl. lists) compared to label. */
309+
.footnote-definition p,
310+
.footnote-definition ul,
311+
.footnote-definition ol {
312+
@apply ml-4;
313+
@apply mb-1;
314+
}
272315

273316
/*.all-links {*/
274317
/* color: #59a2cc;*/

website/static/css/main.css

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,16 @@ h2 {
515515
h3 {
516516
font-size: 1.5rem;
517517
line-height: 2rem;
518+
font-weight: bold;
519+
color: var(--brown-caption);
520+
}
521+
522+
:is(.dark h3) {
523+
color: var(--brown-caption-dark);
524+
}
525+
526+
h3 {
527+
padding-bottom: 0.5rem;
518528
}
519529

520530
/*a {*/
@@ -1639,6 +1649,11 @@ html {
16391649
margin-bottom: 0px;
16401650
}
16411651

1652+
.markdown-content h3 {
1653+
margin-top: 1.5rem;
1654+
margin-bottom: 0px;
1655+
}
1656+
16421657
.markdown-h {
16431658
color: var(--brown-caption);
16441659
}
@@ -1707,6 +1722,44 @@ html {
17071722
/*@apply leading-7;*/
17081723
}
17091724

1725+
/* note: no preceding `.markdown-content`. */
1726+
1727+
.footnote-definition {
1728+
font-size: 0.875rem;
1729+
line-height: 1.25rem;
1730+
display: flex;
1731+
flex-direction: column;
1732+
/* stack child elements vertically */
1733+
/*align-items: baseline;*/
1734+
}
1735+
1736+
.footnote-definition-label {
1737+
/* Adjust spacing between the label and the paragraph. */
1738+
/*margin-right: 5px;*/
1739+
margin-right: 0.375rem;
1740+
/* align label to start of the line. */
1741+
align-self: flex-start;
1742+
/* place the label before other elements. */
1743+
/*order: -1;*/
1744+
/* offset label vertically, since it's too high otherwise */
1745+
position: relative;
1746+
top: 9px;
1747+
}
1748+
1749+
.footnote-definition code {
1750+
font-size: 0.875rem;
1751+
line-height: 1.25rem;
1752+
}
1753+
1754+
/** Indent paragraph (incl. lists) compared to label. */
1755+
1756+
.footnote-definition p,
1757+
.footnote-definition ul,
1758+
.footnote-definition ol {
1759+
margin-left: 1rem;
1760+
margin-bottom: 0.25rem;
1761+
}
1762+
17101763
/*.all-links {*/
17111764

17121765
/* color: #59a2cc;*/

0 commit comments

Comments
 (0)