1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

CSS fixes

- Remove redundant selector
- surround preformatted text with a soft border even outside <p>.
This commit is contained in:
Rohan Kumar 2022-02-22 14:00:52 -08:00
parent 8e16576d2a
commit acbaac71ea
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -48,7 +48,7 @@ nav li {
/* 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: 24em) { @media (min-width: 24em) {
nav .unstyled-list li { nav li {
display: inline; display: inline;
} }
} }
@ -69,11 +69,13 @@ pre {
/* stylelint-disable -- compatibility hack */ /* stylelint-disable -- compatibility hack */
font-family: monospace, monospace; font-family: monospace, monospace;
/* csslint ignore:end */ /* stylelint-enable */
} }
pre, pre,
p code { /* don't put a border around code within a <pre> block,
* just put the border around the <code> */
:not(pre) > code {
border: 1px solid #bbb; border: 1px solid #bbb;
padding: 0 0.1em; padding: 0 0.1em;
} }