Files
openfoodnetwork/app/webpacker/css/admin_v3/components/tom_select.scss
Jean-Baptiste Bellet 200550588a Be as clause as possible from native <select />
Still need to wrap/ellipsis selected item...
2023-08-15 08:36:50 +02:00

68 lines
1.1 KiB
SCSS

.ts-wrapper.single,
.ts-wrapper.multi {
min-height: 40px;
&.input-active {
.ts-control {
border-color: $lighter-grey;
input {
&::placeholder {
color: $light-grey;
}
}
}
}
.ts-control {
box-shadow: none;
border-color: $lighter-grey;
background-color: $lighter-grey;
background-image: none;
@include border-radius($border-radius);
input {
&::placeholder {
color: $near-black;
}
}
}
.ts-dropdown {
@include border-radius($border-radius);
border: none;
box-shadow: none;
color: $near-black;
.option {
&.selected {
border-left: 2px solid $orient;
}
&.active {
background-color: $lighter-grey;
color: $near-black;
}
}
}
}
.plugin-dropdown_input .dropdown-input {
border-color: $lighter-grey;
&:focus {
border-color: $orient;
}
}
// For the "single" tom_select, be as clause as native select boxes
// without too many options
.ts-wrapper.single {
max-height: 40px;
max-width: 100%;
&.input-active .ts-control {
cursor: pointer;
}
}