Skip to content

Commit fcce258

Browse files
committed
fix rtl with mixin
1 parent 1c1ab0b commit fcce258

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

src/scss/02-tools/_m-rtl.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Support for rtl text, explicit support for Arabic and Hebrew
2+
3+
@mixin rtl() {
4+
*[dir="rtl"] &,
5+
:root:lang(ar) &,
6+
:root:lang(iw) & {
7+
@content;
8+
}
9+
}

src/scss/02-tools/_m-select-custom.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@
5050
}
5151
}
5252

53-
// Support for rtl text, explicit support for Arabic and Hebrew
54-
*[dir="rtl"] &,
55-
:root:lang(ar) &,
56-
:root:lang(iw) & {
53+
@include rtl {
5754
background-position: left 10px top 50%, 0 0;
5855
}
5956
}

src/scss/02-tools/tools.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@
3939
@import "./m-background-static";
4040
@import "./m-invisible-scrollbar";
4141
@import "./m-not-acf";
42+
@import "./m-rtl";

src/scss/03-base/_reset.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ body {
7474
font-weight: normal;
7575
color: $color-text;
7676
background-color: $color-light;
77-
78-
*:not([dir="rtl"]) &,
79-
:root:not(:lang(ar)):not(:lang(iw)) & {
80-
text-align: left;
81-
}
8277
}
8378

8479
button {

0 commit comments

Comments
 (0)