Add direction ltr to pre > code and highlight (#611)
* Add direction ltr to pre > code and highlight * Add unicode-bidi: embed;
This commit is contained in:
parent
0baec34596
commit
f8a0fc4e24
1 changed files with 9 additions and 0 deletions
|
@ -69,6 +69,8 @@
|
|||
}
|
||||
|
||||
code {
|
||||
direction: ltr;
|
||||
unicode-bidi: embed;
|
||||
padding: 0 $padding-4;
|
||||
background: var(--gray-200);
|
||||
border-radius: $border-radius;
|
||||
|
@ -76,6 +78,8 @@
|
|||
}
|
||||
|
||||
pre {
|
||||
direction: ltr;
|
||||
unicode-bidi: embed;
|
||||
padding: $padding-16;
|
||||
background: var(--gray-100);
|
||||
border-radius: $border-radius;
|
||||
|
@ -150,6 +154,11 @@
|
|||
}
|
||||
|
||||
// Special case for highlighted code with line numbers
|
||||
.highlight {
|
||||
direction: ltr;
|
||||
unicode-bidi: embed;
|
||||
}
|
||||
|
||||
.highlight table tr {
|
||||
td:nth-child(1) pre {
|
||||
margin: 0;
|
||||
|
|
Loading…
Reference in a new issue