Files
bridget/assets/scss/_partial/_article.scss
Spedon ba07636f8f refactor: prefine for version v1.0.2 (#269)
* refactor: refactor navigateVector logic and remove unused functions

* refactor: refactor HTML structure and styling in single.html

- Modify the `.info` class to `article` in `_article.scss`
- Remove the `nav.html` partial in `single.html`
- Change the class name from `info` to `article` in `single.html`
- Add the `nav.html` partial in `single.html`

* refactor: update handling of 404 page
- Now hugo will set unknown page title as "404"
- Add condition to return an empty image array if the document title starts with "404"

* docs: update documentation
2024-02-05 16:02:10 +08:00

49 lines
514 B
SCSS

article {
padding: var(--space-standard);
max-width: 25em;
p {
margin-bottom: 1em;
}
u {
text-decoration: underline;
}
> h1 {
font-size: 1.6em;
}
> h2 {
font-size: 1.5em;
}
> h3 {
font-size: 1.375em;
}
> h4 {
font-size: 1.25em;
}
> h5 {
font-size: 1.125em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold;
margin: 1.2rem 0;
}
}
@media (max-width: $tablet), (hover: none) {
article {
margin-top: var(--nav-height);
}
}