Fixed SASS error
This fixes the SASS error caused by the `&[dir="rtl"]` selector in the `_single.scss` and `_multiple.scss` files. We were expecting these files to be nested within the `.select-container` class, which would have made this a non-error as the `&` would refer to the `.select2-container` class that was wrapping the `@import`. This moves the `@import` statements into the `.select2-container` class, so this no longer triggers an error in the Ruby version of SASS. This closes https://github.com/select2/select2/issues/2896
This commit is contained in:
parent
dcfaa5f628
commit
938993302f
70
dist/css/select2.css
vendored
70
dist/css/select2.css
vendored
@ -4,44 +4,40 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
vertical-align: middle; }
|
vertical-align: middle; }
|
||||||
|
.select2-container .select2-selection--single {
|
||||||
.select2-selection--single {
|
box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
cursor: pointer;
|
||||||
cursor: pointer;
|
|
||||||
display: block;
|
|
||||||
height: 28px;
|
|
||||||
user-select: none;
|
|
||||||
-webkit-user-select: none; }
|
|
||||||
.select2-selection--single .select2-selection__rendered {
|
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
height: 28px;
|
||||||
padding-left: 8px;
|
user-select: none;
|
||||||
padding-right: 20px;
|
-webkit-user-select: none; }
|
||||||
text-overflow: ellipsis; }
|
.select2-container .select2-selection--single .select2-selection__rendered {
|
||||||
|
display: block;
|
||||||
[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
overflow: hidden;
|
||||||
padding-right: 8px;
|
padding-left: 8px;
|
||||||
padding-left: 20px; }
|
padding-right: 20px;
|
||||||
|
text-overflow: ellipsis; }
|
||||||
.select2-selection--multiple {
|
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
||||||
box-sizing: border-box;
|
padding-right: 8px;
|
||||||
cursor: pointer;
|
padding-left: 20px; }
|
||||||
display: block;
|
.select2-container .select2-selection--multiple {
|
||||||
min-height: 32px;
|
box-sizing: border-box;
|
||||||
user-select: none;
|
cursor: pointer;
|
||||||
-webkit-user-select: none; }
|
display: block;
|
||||||
.select2-selection--multiple .select2-selection__rendered {
|
min-height: 32px;
|
||||||
display: inline-block;
|
user-select: none;
|
||||||
overflow: hidden;
|
-webkit-user-select: none; }
|
||||||
padding-left: 8px;
|
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
||||||
text-overflow: ellipsis; }
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
.select2-search--inline {
|
padding-left: 8px;
|
||||||
float: left; }
|
text-overflow: ellipsis; }
|
||||||
.select2-search--inline .select2-search__field {
|
.select2-container .select2-search--inline {
|
||||||
border: none;
|
float: left; }
|
||||||
font-size: 100%;
|
.select2-container .select2-search--inline .select2-search__field {
|
||||||
margin-top: 5px; }
|
border: none;
|
||||||
|
font-size: 100%;
|
||||||
|
margin-top: 5px; }
|
||||||
|
|
||||||
.select2-dropdown {
|
.select2-dropdown {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
2
dist/css/select2.min.css
vendored
2
dist/css/select2.min.css
vendored
File diff suppressed because one or more lines are too long
@ -5,10 +5,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
|
||||||
|
|
||||||
@import "single";
|
@import "single";
|
||||||
@import "multiple";
|
@import "multiple";
|
||||||
|
}
|
||||||
|
|
||||||
@import "dropdown";
|
@import "dropdown";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user