A set of style fixes for rtl langs

This commit is contained in:
daudix
2024-06-17 05:21:54 +03:00
parent f7dcab6c1d
commit 2abb4d234c
8 changed files with 108 additions and 48 deletions

View File

@ -48,6 +48,11 @@ blockquote {
border-radius: 0.25rem;
padding: 0 0.75rem;
color: var(--fg-muted-5);
body[dir="rtl"] & {
border-right: 0.25rem solid var(--primary-color);
border-left: unset;
}
}
mark {
@ -102,6 +107,11 @@ hr {
background: var(--bg-color), var(--primary-color);
padding: 0 0.25rem;
content: "☙❧";
// An ugly hack to fix mirroring in rtl
body[dir="rtl"] & {
content: "❧☙";
}
}
}
@ -122,6 +132,10 @@ aside {
padding: 1rem;
width: 30%;
body[dir="rtl"] & {
float: left;
}
@media only screen and (max-width: 720px) {
float: none;
margin-inline-start: 0;