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:
Essa Alshammri 2024-04-13 12:19:59 +03:00 committed by GitHub
parent 0baec34596
commit f8a0fc4e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;