mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Integrate select2 to admin_v3
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
@import "../admin/question-mark-tooltip";
|
||||
@import "../admin/relationships";
|
||||
@import "../admin/reports";
|
||||
@import "../admin/select2";
|
||||
@import "components/select2"; // admin_v
|
||||
@import "../admin/sidebar-item";
|
||||
@import "../admin/side_menu";
|
||||
@import "../admin/tables";
|
||||
|
||||
63
app/webpacker/css/admin_v3/components/select2.scss
Normal file
63
app/webpacker/css/admin_v3/components/select2.scss
Normal file
@@ -0,0 +1,63 @@
|
||||
.select2-container {
|
||||
.select2-choice {
|
||||
.select2-search-choice-close {
|
||||
display: none !important;
|
||||
}
|
||||
.select2-arrow {
|
||||
width: 22px;
|
||||
border: none;
|
||||
background-image: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&.light {
|
||||
.select2-choice {
|
||||
background-color: #ffffff;
|
||||
font-weight: normal;
|
||||
color: $spree-blue !important;
|
||||
border: 1px solid $color-border !important;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.select2-container-active {
|
||||
.select2-choice {
|
||||
background-color: #ffffff !important;
|
||||
border: 1px solid $spree-green !important;
|
||||
|
||||
.select2-arrow {
|
||||
&:before {
|
||||
color: $spree-blue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.select2-container-multi {
|
||||
.select2-search-field {
|
||||
max-height: 20px;
|
||||
input {
|
||||
padding: 0 !important;
|
||||
margin: 0 0 0 5px !important;
|
||||
}
|
||||
}
|
||||
.select2-search-choice {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-left: 7px;
|
||||
|
||||
.select2-search-choice-close {
|
||||
position: relative;
|
||||
order: -1;
|
||||
width: auto;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 100% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user