-
Notifications
You must be signed in to change notification settings - Fork 15k
Add RTL support #51600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RTL support #51600
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -18,6 +18,15 @@ $vendor-strip-font-size: 16px; | |||||||||||||||||||
display: none; | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
body:dir(rtl) { | ||||||||||||||||||||
overflow-x: hidden; | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
table:dir(rtl) { | ||||||||||||||||||||
text-align: right; | ||||||||||||||||||||
direction: rtl; | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
.td-home { | ||||||||||||||||||||
#viewDocs, | ||||||||||||||||||||
#tryKubernetes { | ||||||||||||||||||||
|
@@ -118,6 +127,10 @@ $vendor-strip-font-size: 16px; | |||||||||||||||||||
text-align: left; | ||||||||||||||||||||
margin: 0 5% 15px 0; | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Optionally:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think only override RTL ones and do not change anything related to current state of Kubernetes website |
||||||||||||||||||||
&:dir(rtl) > .light-text { | ||||||||||||||||||||
text-align: right; | ||||||||||||||||||||
} | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
#mobileShowVideoButton { | ||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!doctype html> | ||
<html lang="{{ .Site.Language.Lang }}" class="{{.Params.class}} no-js"> | ||
<html lang="{{ .Site.Language.Lang }}" class="{{.Params.class}} no-js" dir="{{ or .Site.Language.LanguageDirection `ltr` }}"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks just right. |
||
{{- if eq hugo.Environment "preview" -}} | ||
<!-- deploy preview --> | ||
{{- end -}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this affect breadcrumb of ltr pages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you’re absolutely right, and I’ve fixed it.
Many thanks, @bsalamat