mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 08:45:06 -04:00
refactor: code font-size without :has
This commit is contained in:
parent
dd799056c7
commit
8f26729a64
1 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
// 1. Correct the inheritance and scaling of font size in all browsers
|
// 1. Correct the inheritance and scaling of font size in all browsers
|
||||||
// 2. Correct the odd `em` font sizing in all browsers
|
// 2. Correct the odd `em` font sizing in all browsers
|
||||||
pre:not(:has(code)),
|
pre,
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
samp {
|
samp {
|
||||||
|
@ -21,6 +21,11 @@
|
||||||
font-family: var(#{$✨}font-family); // 1
|
font-family: var(#{$✨}font-family); // 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre code {
|
||||||
|
font-size: inherit;
|
||||||
|
font-family: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
// Prevent overflow of the container in all browsers (opinionated)
|
// Prevent overflow of the container in all browsers (opinionated)
|
||||||
pre {
|
pre {
|
||||||
-ms-overflow-style: scrollbar;
|
-ms-overflow-style: scrollbar;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue