Skip to content

Commit fb91ada

Browse files
author
Robert-Jan Bijl
committed
More RTL style fixes, now for the multiple select
1 parent 06b93b2 commit fb91ada

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

select2.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ disabled look for disabled choices in the results dropdown
499499
background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
500500
}
501501

502+
html[dir="rtl"] .select2-container-multi .select2-choices {
503+
padding: 0 0 0 5px;
504+
}
505+
502506
.select2-locked {
503507
padding: 3px 5px 3px 5px !important;
504508
}
@@ -582,8 +586,8 @@ html[dir="rtl"] .select2-container-multi .select2-choices li
582586
}
583587
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
584588
{
585-
margin-left: 0;
586-
margin-right: 5px;
589+
margin: 3px 5px 3px 0;
590+
padding: 3px 18px 3px 5px;
587591
}
588592
.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
589593
cursor: default;
@@ -613,6 +617,11 @@ html[dir="rtl"] .select2-search-choice-close {
613617
left: 3px;
614618
}
615619

620+
html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
621+
left: auto;
622+
right: 3px;
623+
}
624+
616625
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
617626
background-position: right -11px;
618627
}

0 commit comments

Comments
 (0)