Remove top/bottom margin from the first/last element in <aside>

This commit is contained in:
daudix
2024-10-12 03:23:19 +03:00
parent ef3525952e
commit 25771bec3b
3 changed files with 12 additions and 0 deletions

View File

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Remove top/bottom margin from the first/last element in `<aside>`.
- Rename `show_read_time` to `show_reading_time`. - Rename `show_read_time` to `show_reading_time`.
- Use Zola's built-in reading time variable instead of the custom implementation (#102). - Use Zola's built-in reading time variable instead of the custom implementation (#102).

View File

@ -521,12 +521,15 @@ The <abbr title="American Standard Code for Information Interchange">ASCII</abbr
```html ```html
<aside> <aside>
-> Contents here <- -> Contents here <-
</aside> </aside>
``` ```
<aside> <aside>
Quill and a parchment Quill and a parchment
<img class="transparent no-hover" style="margin-block-end: 0; border-radius: 0;" alt="Quill and a parchment" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/%D7%A7%D7%9C%D7%A3%2C_%D7%A0%D7%95%D7%A6%D7%94_%D7%95%D7%93%D7%99%D7%95.jpg/326px-%D7%A7%D7%9C%D7%A3%2C_%D7%A0%D7%95%D7%A6%D7%94_%D7%95%D7%93%D7%99%D7%95.jpg" /> <img class="transparent no-hover" style="margin-block-end: 0; border-radius: 0;" alt="Quill and a parchment" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/%D7%A7%D7%9C%D7%A3%2C_%D7%A0%D7%95%D7%A6%D7%94_%D7%95%D7%93%D7%99%D7%95.jpg/326px-%D7%A7%D7%9C%D7%A3%2C_%D7%A0%D7%95%D7%A6%D7%94_%D7%95%D7%93%D7%99%D7%95.jpg" />
</aside> </aside>

View File

@ -215,6 +215,14 @@ aside {
margin-inline-start: 0; margin-inline-start: 0;
width: 100%; width: 100%;
} }
:first-child {
margin-block-start: 0;
}
:last-child {
margin-block-end: 0;
}
} }
details { details {