Move codeblock code to layout/article.css and fix 4 spaces codeblocks

This commit is contained in:
FarisZR 2022-03-04 02:20:50 +03:00
parent e971bda507
commit fad9b83286
2 changed files with 8 additions and 7 deletions

View File

@ -138,11 +138,6 @@
}
}
// keep Codeblocks LTR
.direction-rtl .highlight {
direction: ltr;
}
/* Compact style article list */
.article-list--compact {
border-radius: var(--card-border-radius);

View File

@ -313,7 +313,10 @@
line-height: 1.428571429;
word-break: break-all;
padding: var(--card-padding);
// keep Codeblocks LTR
[dir="rtl"] & {
direction: ltr;
}
code {
color: unset;
border: none;
@ -332,7 +335,10 @@
opacity: 1;
}
}
// keep Codeblocks LTR
[dir="rtl"] & {
direction: ltr;
}
pre {
margin: initial;
padding: 0;