mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-19 04:23:30 +08:00
Move codeblock code to layout/article.css and fix 4 spaces codeblocks
This commit is contained in:
parent
e971bda507
commit
fad9b83286
@ -138,11 +138,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// keep Codeblocks LTR
|
|
||||||
.direction-rtl .highlight {
|
|
||||||
direction: ltr;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Compact style article list */
|
/* Compact style article list */
|
||||||
.article-list--compact {
|
.article-list--compact {
|
||||||
border-radius: var(--card-border-radius);
|
border-radius: var(--card-border-radius);
|
||||||
|
@ -313,7 +313,10 @@
|
|||||||
line-height: 1.428571429;
|
line-height: 1.428571429;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
padding: var(--card-padding);
|
padding: var(--card-padding);
|
||||||
|
// keep Codeblocks LTR
|
||||||
|
[dir="rtl"] & {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
code {
|
code {
|
||||||
color: unset;
|
color: unset;
|
||||||
border: none;
|
border: none;
|
||||||
@ -332,7 +335,10 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// keep Codeblocks LTR
|
||||||
|
[dir="rtl"] & {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
pre {
|
pre {
|
||||||
margin: initial;
|
margin: initial;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user