Skip to content

Commit 261dad0

Browse files
committed
Merge pull request select2#1877 from khaledhosny/master
Styling fixes for RTL direction
2 parents b747806 + 39f9fc7 commit 261dad0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

select2.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,10 @@ disabled look for disabled choices in the results dropdown
460460
float: left;
461461
list-style: none;
462462
}
463+
html[dir="rtl"] .select2-container-multi .select2-choices li
464+
{
465+
float: right;
466+
}
463467
.select2-container-multi .select2-choices .select2-search-field {
464468
margin: 0;
465469
padding: 0;
@@ -518,6 +522,11 @@ disabled look for disabled choices in the results dropdown
518522
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
519523
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
520524
}
525+
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
526+
{
527+
margin-left: 0;
528+
margin-right: 5px;
529+
}
521530
.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
522531
cursor: default;
523532
}
@@ -537,6 +546,10 @@ disabled look for disabled choices in the results dropdown
537546
outline: none;
538547
background: url('select2.png') right top no-repeat;
539548
}
549+
html[dir="rtl"] .select2-search-choice-close {
550+
right: auto;
551+
left: 3px;
552+
}
540553

541554
.select2-container-multi .select2-search-choice-close {
542555
left: 3px;

0 commit comments

Comments
 (0)