baseof: use `dir` attribute instead of class

and set default dir to `auto`

main(css): rm unused class
This commit is contained in:
Aditya Telange 2020-10-30 01:01:48 +05:30
parent 0887805caf
commit 9acbc2c134
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 2 additions and 10 deletions

View File

@ -52,14 +52,6 @@
width: 26px; width: 26px;
} }
.direction-rtl {
direction: rtl;
}
.direction-ltr {
direction: ltr;
}
code { code {
direction: ltr; direction: ltr;
} }

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ .Site.Language }}" class="direction-{{ .Language.LanguageDirection | default "ltr" }}"> <html lang="{{ .Site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
<head> <head>
{{- partial "head.html" . }} {{- partial "head.html" . }}
@ -15,4 +15,4 @@
{{- partialCached "footer.html" . .Type }} {{- partialCached "footer.html" . .Type }}
</body> </body>
</html> </html>