1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Remove redundant CSS selectors

Thanks to YellowLabTools for pointing that out
This commit is contained in:
Rohan Kumar 2020-12-18 18:30:34 -08:00
parent 347b2c189b
commit 03da61c393
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -1,6 +1,6 @@
/* CSS that adds the bare minimum for a simple layout */ /* CSS that adds the bare minimum for a simple layout */
/* This site's CSS only does 9 things: /* This site's CSS only does 9 major things:
* 1. sans-serif instead of serif for low-res screens. * 1. sans-serif instead of serif for low-res screens.
* 2. Consistent font size; <pre> and <code> shouldn't be smaller. * 2. Consistent font size; <pre> and <code> shouldn't be smaller.
* 3. max text width for readability * 3. max text width for readability
@ -51,7 +51,7 @@ nav ul {
} }
/* nav links should be easy to tap with fat fingers */ /* nav links should be easy to tap with fat fingers */
nav ul li:not(.home) { nav li {
padding: 0.5rem 0.25rem; padding: 0.5rem 0.25rem;
} }
@ -64,7 +64,7 @@ nav ul li:not(.home) {
/* single-line nav on widescreen, multi-line nav on narrow screens */ /* single-line nav on widescreen, multi-line nav on narrow screens */
@media (min-width: 32rem) { @media (min-width: 32rem) {
header nav ul li { nav li {
display: inline; display: inline;
} }
} }