Skip to content

Commit f3d1afb

Browse files
authored
Merge pull request #357 from BeAPI/feature/rtl
remove text-align left on RTL
2 parents 053f8d2 + 12c5680 commit f3d1afb

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
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
@@ -38,3 +38,4 @@
3838
@import "./m-background-static";
3939
@import "./m-invisible-scrollbar";
4040
@import "./m-not-acf";
41+
@import "./m-rtl";

src/scss/03-base/_reset.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ body {
7373
font-size: $font-size-base;
7474
font-weight: normal;
7575
color: $color-text;
76-
text-align: left;
7776
background-color: $color-light;
7877
}
7978

0 commit comments

Comments
 (0)