浏览代码

Fix RTL for sidebar menu

Daniel 3 年之前
父节点
当前提交
060f9082a6
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 2 1
      scss/_nav-sidebar.scss
  2. 3 3
      scss/mixins/_miscellaneous.scss

+ 2 - 1
scss/_nav-sidebar.scss

@@ -9,6 +9,7 @@
 
       .right {
         @include transition(transform $transition-fn $transition-speed);
+        transform: none #{"/*rtl:rotate(-180deg)*/"};
       }
     }
 
@@ -57,7 +58,7 @@
     > .nav-link {
       svg.right,
       i.right {
-        @include rotate(-90deg);
+        transform: rotate(-90deg) #{"/*rtl:rotate(-90deg)*/"};
       }
     }
   }

+ 3 - 3
scss/mixins/_miscellaneous.scss

@@ -16,9 +16,9 @@
 //   #{$property}: calc(#{$expression});
 // }
 
-@mixin rotate($value) {
-  transform: rotate($value);
-}
+// @mixin rotate($value) {
+//   transform: rotate($value);
+// }
 
 // @mixin animation($animation) {
 //   animation: $animation;