Skip to content

Commit

Permalink
rtl to scss files
Browse files Browse the repository at this point in the history
  • Loading branch information
dekelb committed May 26, 2017
1 parent da6a5f7 commit 9ba05e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scss/control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
cursor: default;
pointer-events: none;
}
&.Select-rtl {
direction: rtl;
text-align: right;
}
}

// base
Expand Down Expand Up @@ -230,6 +234,11 @@
vertical-align: middle;
width: ($select-arrow-width * 5);
padding-right: $select-arrow-width;

.Select-rtl & {
padding-right: 0;
padding-left: $select-arrow-width;
}
}

.Select-arrow {
Expand Down
14 changes: 14 additions & 0 deletions scss/multi.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
margin-left: $select-padding-horizontal;
padding: 0;
}
&.Select-rtl .Select-input {
margin-left: 0;
margin-right: $select-padding-horizontal;
}

// reduce margin once there is value
&.has-value .Select-input {
Expand Down Expand Up @@ -75,6 +79,16 @@
}
}

&.Select-rtl {
.Select-value {
margin-left: 0;
margin-right: $select-item-gutter;
}
.Select-value-icon {
border-right: none;
border-left: 1px solid $select-item-border-color;
}
}
}

.Select--multi.is-disabled {
Expand Down

0 comments on commit 9ba05e6

Please sign in to comment.