Skip to content

Commit

Permalink
[RTL] Fix top-nav position (google#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored May 28, 2024
1 parent 09c158b commit b32bb90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
@import "drawio";
@import "shortcodes";
@import "swagger";
@import "support/rtl";


@if $td-enable-google-fonts {
Expand Down
7 changes: 7 additions & 0 deletions assets/scss/support/_rtl.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@each $breakpoint, $_ in $container-max-widths {
@include media-breakpoint-up($breakpoint) {
html[dir="rtl"] .ms-#{$breakpoint}-auto {
margin-left: initial !important;
}
}
}
1 change: 1 addition & 0 deletions userguide/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ menu:
languages:
en:
languageName: English
languageDirection: rtl
params:
description: Docsy does docs

Expand Down

0 comments on commit b32bb90

Please sign in to comment.