mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Simplify title spacing
This commit is contained in:
parent
09e14bcfc2
commit
846a5f13f9
1 changed files with 17 additions and 3 deletions
|
@ -123,8 +123,6 @@ html {
|
||||||
/* Add padding on both sides so that focus outlines don't escape their
|
/* Add padding on both sides so that focus outlines don't escape their
|
||||||
* containers. This will let us enable CSS containment without
|
* containers. This will let us enable CSS containment without
|
||||||
* clipping overflowing elements. */
|
* clipping overflowing elements. */
|
||||||
margin-top: .25em;
|
|
||||||
margin-bottom: .25em;
|
|
||||||
padding: 0 .5em;
|
padding: 0 .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +131,23 @@ html {
|
||||||
padding-left: .25em
|
padding-left: .25em
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Breadcrumbs get a lot of padding, making the hr margin redundant
|
||||||
|
* Due to containment, the wide blurb at the top of non-article pages
|
||||||
|
* has a huge padding on the bottom. This actually works for archive
|
||||||
|
* pages but not for the main page. */
|
||||||
|
article > hr,
|
||||||
|
body > hr,
|
||||||
|
main > hr {
|
||||||
|
margin: 0 .5em;
|
||||||
|
}
|
||||||
|
header hr {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0 0 .25em;
|
||||||
|
}
|
||||||
|
|
||||||
/* Archive pages can get long. Allow them to get long without slowing
|
/* Archive pages can get long. Allow them to get long without slowing
|
||||||
* down the browser by using content-visibility. */
|
* down the browser by using content-visibility. */
|
||||||
dt,
|
dt,
|
||||||
|
@ -404,7 +419,6 @@ blockquote {
|
||||||
h1 {
|
h1 {
|
||||||
-webkit-hyphens: auto;
|
-webkit-hyphens: auto;
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
margin-top: .25em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Very narrow screens: full hyphenation.
|
/* Very narrow screens: full hyphenation.
|
||||||
|
|
Loading…
Reference in a new issue