Skip to content

Commit

Permalink
UX: Update mobile site setting slide-out nav for RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot committed Feb 11, 2020
1 parent adbff58 commit d73e94b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/assets/stylesheets/common/base/rtl.scss
Expand Up @@ -90,3 +90,33 @@
border-right: 1px solid #cfcfcf;
border-left: none !important;
}

.rtl {
$mobile-breakpoint: 700px;

.admin-detail.mobile-open {
@media (max-width: $mobile-breakpoint) {
transition: transform 0.3s ease;
@include transform(translateX(-250px));
}
@media (max-width: 500px) {
transition: transform 0.3s ease;
@include transform(translateX(-50%));
}
}

.admin-detail.mobile-closed {
@media (max-width: $mobile-breakpoint) {
transition: transform 0.3s ease;
@include transform(translateX(0));
margin-left: -10px !important;
padding-left: 10px !important;
}
}

.admin-nav {
.nav-stacked {
margin: 0 -10px 0 10px !important;
}
}
}

1 comment on commit d73e94b

@discoursebot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/i-couldnt-see-the-setting-menu-bar-in-mobile-rtl-language/125660/4

Please sign in to comment.