Skip to content

Commit

Permalink
feat: add rtl support as part of jackyzha0#47
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Feb 15, 2022
1 parent fb9ea8d commit 4587b13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion assets/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--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;
color: var(--dark);
font-weight: revert;
Expand Down Expand Up @@ -225,6 +225,13 @@ code {

html {
scroll-behavior: smooth;

&:lang(ar) {
& p, & h1, & h2, & h3, article {
direction: rtl;
text-align: right;
}
}
}

body {
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ .Lang }}">
{{ partial "head.html" . }}

<body>
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ .Lang }}">
{{ partial "head.html" . }}

<body>
Expand Down

0 comments on commit 4587b13

Please sign in to comment.