mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Remove redundant CSS selectors
Thanks to YellowLabTools for pointing that out
This commit is contained in:
parent
347b2c189b
commit
03da61c393
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue