feat: add articles section

This commit is contained in:
Ungol 2025-12-23 22:27:52 +01:00
parent 6aa8bdc754
commit 43c2e0853b
9 changed files with 67 additions and 24 deletions

View file

@ -2,6 +2,7 @@
@use 'theme';
@use 'shortcodes/callout';
@use 'parts/anchor';
@use 'parts/articles';
@use 'parts/code';
@use 'parts/footnote';
@use 'parts/misc';
@ -29,14 +30,14 @@ body {
margin: 0;
}
article {
main {
max-width: calc(var(--main-width) - 12rem);
margin-left: auto;
margin-right: auto;
}
@media only screen and (max-width: $smartphone) {
article {
main {
max-width: var(--main-width);
}
}
@ -46,8 +47,13 @@ h1 {
font-weight: medium;
margin-top: 2rem;
margin-bottom: 1rem;
&.section-title {
font-size: 3rem;
}
}
h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
@ -90,6 +96,10 @@ h6 {
h1 {
font-size: 1.5rem;
margin-top: 1.3rem;
&.section-title {
font-size: 2.2rem;
}
}
h2 {