Ver código fonte

More RTL style fixes, now for the multiple select

Robert-Jan Bijl 11 anos atrás
pai
commit
fb91adaa57
1 arquivos alterados com 11 adições e 2 exclusões
  1. 11 2
      select2.css

+ 11 - 2
select2.css

@@ -499,6 +499,10 @@ disabled look for disabled choices in the results dropdown
     background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
 }
 
+html[dir="rtl"] .select2-container-multi .select2-choices {
+    padding: 0 0 0 5px;
+}
+
 .select2-locked {
   padding: 3px 5px 3px 5px !important;
 }
@@ -582,8 +586,8 @@ html[dir="rtl"] .select2-container-multi .select2-choices li
 }
 html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
 {
-    margin-left: 0;
-    margin-right: 5px;
+    margin: 3px 5px 3px 0;
+    padding: 3px 18px 3px 5px;
 }
 .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
     cursor: default;
@@ -613,6 +617,11 @@ html[dir="rtl"] .select2-search-choice-close {
     left: 3px;
 }
 
+html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
+    left: auto;
+    right: 3px;
+}
+
 .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
   background-position: right -11px;
 }