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:
parent
8e16576d2a
commit
acbaac71ea
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue