do not apply class when inside <pre>
https://stackoverflow.com/questions/23853931/how-can-i-style-code-only-if-its-parent-is-not-pre
This commit is contained in:
parent
ba90344999
commit
81ed3cc51d
1 changed files with 345 additions and 345 deletions
|
@ -67,10 +67,10 @@ pre {
|
|||
box-shadow: 3px 3px 6px black;
|
||||
}
|
||||
|
||||
code {
|
||||
:not(pre) > code {
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
border-radius: 3px;
|
||||
padding: 0 3px;
|
||||
padding: 0px 3px;
|
||||
}
|
||||
|
||||
ul, li, ol { margin: 0; padding: 0 }
|
||||
|
|
Loading…
Reference in a new issue