mirror of
https://github.com/imfing/hextra.git
synced 2025-10-29 13:50:23 -04:00
fix: move dir attribute to :root (#805)
This commit is contained in:
committed by
GitHub
parent
82e25c0b0d
commit
3abcde4f8e
@@ -8,7 +8,7 @@ function computeMenuTranslation(switcher, optionsElement) {
|
|||||||
const isOnTop = switcher.dataset.location === 'top';
|
const isOnTop = switcher.dataset.location === 'top';
|
||||||
const isOnBottom = switcher.dataset.location === 'bottom';
|
const isOnBottom = switcher.dataset.location === 'bottom';
|
||||||
const isOnBottomRight = switcher.dataset.location === 'bottom-right';
|
const isOnBottomRight = switcher.dataset.location === 'bottom-right';
|
||||||
const isRTL = document.body.dir === 'rtl'
|
const isRTL = document.documentElement.dir === 'rtl'
|
||||||
|
|
||||||
// Stuck on the left side of the switcher.
|
// Stuck on the left side of the switcher.
|
||||||
let x = switcherRect.left;
|
let x = switcherRect.left;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Site.Language.Lang }}">
|
<html lang="{{ .Site.Language.Lang }}" dir="{{ .Site.Language.LanguageDirection | default `ltr` }}">
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
<body dir="{{ .Site.Language.LanguageDirection | default `ltr` }}">
|
<body>
|
||||||
{{- partial "banner.html" . -}}
|
{{- partial "banner.html" . -}}
|
||||||
{{- partial "navbar.html" . -}}
|
{{- partial "navbar.html" . -}}
|
||||||
{{- block "main" . }}{{ end -}}
|
{{- block "main" . }}{{ end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user