feat: add rtl support as part of #47
This commit is contained in:
parent
a74c540ccc
commit
556d6799f2
@ -6,7 +6,7 @@
|
|||||||
--lt-colours-gray: var(--outlinegray) !important;
|
--lt-colours-gray: var(--outlinegray) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, ol, ul, thead {
|
h1, h2, h3, h4, h5, h6, ol, ul, thead {
|
||||||
font-family: Inter;
|
font-family: Inter;
|
||||||
color: var(--dark);
|
color: var(--dark);
|
||||||
font-weight: revert;
|
font-weight: revert;
|
||||||
@ -225,6 +225,13 @@ code {
|
|||||||
|
|
||||||
html {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
|
||||||
|
&:lang(ar) {
|
||||||
|
& p, & h1, & h2, & h3, article {
|
||||||
|
direction: rtl;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="{{ .Lang }}">
|
||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="{{ .Lang }}">
|
||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user