Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Reformat code

dominik-zeglen63f638fbf3a9
diff --git a/saleor/static/dashboard/scss/components/_select2.scss b/saleor/static/dashboard/scss/components/_select2.scss
index 9f9b61ddf1..660e12e058 100644
--- a/saleor/static/dashboard/scss/components/_select2.scss
+++ b/saleor/static/dashboard/scss/components/_select2.scss
@@ -1,13 +1,10 @@
@mixin select2 {
margin-bottom: 20px;
-
&.select2-container--default, &.select2-container--default.select2-container--focus {
border-bottom: $input-border;
box-sizing: border-box;
-
.select2-results__options {
background-color: $dropdown-bg-color;
-
.select2-results__option {
clear: both;
color: $dropdown-color;
@@ -20,44 +17,36 @@
text-transform: none;
width: 100%;
}
-
.select2-results__message {
color: $input-disabled-color;
}
-
.select2-results__option[aria-selected=true] {
background-color: darken($dropdown-hover-bg-color, 7%);
}
-
.select2-results__option--highlighted[aria-selected] {
background-color: $dropdown-hover-bg-color;
}
}
-
.select2-selection--multiple {
background: transparent;
border: none;
border-radius: 0;
box-sizing: border-box;
-
.select2-selection__rendered {
padding: 0;
vertical-align: middle;
}
-
li.select2-selection__choice {
@extend .chip;
border: 0;
margin-top: 3px;
margin-bottom: 4px;
-
.select2-selection__choice__remove {
color: inherit;
float: right;
font-size: 0;
height: 32px;
margin: 0;
-
&:before {
content: "\00d7";
font-size: 15px;
@@ -67,7 +56,6 @@
}
}
}
-
.select2-search--inline {
.select2-search__field {
background: transparent;
@@ -75,7 +63,6 @@
line-height: 32px;
margin: 3px 0 4px;
padding-left: 0;
-
&:focus {
border-bottom: none;
box-shadow: none;
@@ -83,22 +70,18 @@
}
}
}
-
&.select2-container--default.select2-container--open {
border-bottom: 1px solid $input-focus-color;
box-shadow: 0 1px 0 0 $input-focus-color;
-
.select2-selection__rendered {
background-color: $select-background;
}
}
-
.select2-dropdown {
@extend .z-depth-1;
border: none;
}
}
-
.select2-container {
@include select2;
}