Add hash symbols to headings

This commit is contained in:
Lewis Dale 2023-02-05 20:05:54 +00:00
parent 53bb30bdf0
commit 67a2fe350d

View File

@ -7,7 +7,9 @@ body {
}
h1, h2, h3, h4, h5 {
display: flex;
font-weight: bold;
gap: 1ch;
line-height: 1.2;
margin: 0;
}
@ -17,14 +19,29 @@ h1 {
word-wrap: normal;
}
h1::before {
content: "#";
margin-inline-start: -2ch;
}
h2 {
font-size: var(--text-size-xl);
}
h2::before {
content: "##";
margin-inline-start: -3ch;
}
h3 {
font-size: var(--text-size-l);
}
h3::before {
content: "###";
margin-inline-start: -4ch;
}
a {
color: inherit;
text-decoration: underline;