mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
remove <figure> margin, for narrow screens.
This commit is contained in:
parent
d4266900c8
commit
4b79d96afe
1 changed files with 9 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
* 8. dark.css changes a few colors if the browser wants dark mode.
|
||||
* 9. Support unstyled lists: for webmentions, post lists, nav links.
|
||||
* 10. Narrow screen optimization: less-indented blockquotes, overflow
|
||||
* behavior for <pre>.
|
||||
* behavior for <pre>, no figure margins.
|
||||
* Everything else is browser defaults:
|
||||
* default fonts, non-dark-mode colors, etc.
|
||||
*/
|
||||
|
@ -36,6 +36,10 @@ blockquote {
|
|||
padding-left: 1em;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* nav links should be easy to tap with fat fingers */
|
||||
nav li {
|
||||
padding-right: 0.5em;
|
||||
|
@ -43,6 +47,7 @@ nav li {
|
|||
|
||||
/* Lists without bullets; navlinks, posts lists, webmentions */
|
||||
.unstyled-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
@ -92,7 +97,9 @@ pre {
|
|||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
li.u-comment.h-cite {
|
||||
/* some webmentions contain full URLs, and these should be broken to fit
|
||||
* the viewport on narrow screens */
|
||||
.u-comment .h-cite {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue