fleet/frontend/components/forms/fields/SelectTargetsDropdown/_styles.scss
2022-07-27 08:51:45 -04:00

260 lines
4.7 KiB
SCSS

.target-select {
margin-bottom: $pad-small;
&__label {
font-size: $x-small;
color: $core-fleet-black;
display: block;
margin: $pad-xxlarge 0 $pad-xsmall;
text-align: right;
&--error {
.target-select__select-targets {
color: $ui-error;
}
}
}
&__select-targets {
float: left;
font-weight: $bold;
}
&__targets-count {
font-size: $x-small;
font-weight: $regular;
color: $core-fleet-black;
}
&.Select {
.Select-control {
min-height: 48px;
}
.Select-arrow {
content: url("../assets/images/icon-chevron-black-16x16@2x.png");
height: 16px;
width: 16px;
margin-top: 6px;
margin-left: 6px;
border: none;
&:hover {
content: url("../assets/images/icon-chevron-blue-16x16@2x.png");
}
}
&.is-open {
.Select-arrow {
content: url("../assets/images/icon-collapse-black-16x16@2x.png");
height: 16px;
width: 16px;
margin-top: 11px;
margin-left: 6px;
border: none;
&:hover {
content: url("../assets/images/icon-collapse-blue-16x16@2x.png");
}
}
.Select-arrow-zone {
&:hover {
.Select-arrow {
border-top-color: transparent;
}
}
}
}
.Select-input {
height: 53px;
margin: 0;
padding: 0 0 0 10px;
> input {
line-height: 36px;
color: $core-fleet-black;
font-size: $small;
}
}
.Select-placeholder {
line-height: 53px;
font-size: $small;
}
.Select-arrow-zone {
padding-right: 30px;
}
&.Select--multi {
.Select-option {
padding: 0;
&.is-disabled {
&.is-focused {
background-color: $ui-vibrant-blue-10;
border-radius: 8px;
}
}
&:last-child {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
}
.Select-value {
line-height: 34px;
border: 1px solid $core-dark-blue-grey;
margin-top: 5px;
margin-bottom: 0;
}
}
&.is-focused {
.Select-control {
border: 1px solid $core-vibrant-blue;
}
}
}
.Select-menu-outer {
max-height: 500px;
height: 500px;
overflow: hidden;
box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.15);
.Select-menu {
height: 498px;
max-height: 498px;
overflow: scroll;
position: relative;
&::after {
@extend %fleeticon;
content: "\f03c";
font-size: 150px;
position: absolute;
left: 50%;
top: 50%;
margin-top: -75px;
opacity: 0.25;
width: 50%;
text-align: center;
}
}
.target-list {
height: 100%;
}
}
.Select-value {
border-radius: $border-radius;
background-color: $core-white;
border: solid 1px $ui-fleet-blue-15;
.Select-value-icon {
height: 100%;
&::after {
content: url("../assets/images/icon-close-fleet-blue-16x16@2x.png");
transform: scale(0.5);
border-radius: 0px;
margin-top: 4px;
}
&:hover {
&::after {
content: url("../assets/images/icon-close-vibrant-blue-16x16@2x.png");
transform: scale(0.5);
}
}
}
.Select-value-label {
font-size: $small;
color: $core-dark-blue-grey;
font-size: $x-small;
padding: 0 0 0 $pad-medium;
line-height: 34px;
}
}
.Select-clear {
content: url("../assets/images/icon-close-fleet-blue-16x16@2x.png");
width: 16px;
height: 16px;
border-radius: 0px;
margin-left: -4px;
margin-top: 6px;
&:hover {
content: url("../assets/images/icon-close-vibrant-blue-16x16@2x.png");
width: 16px;
height: 16px;
border-radius: 0px;
}
}
.Select-clear-zone {
width: 30px;
}
.Select-arrow-zone {
width: 30px;
margin-right: 5px;
}
.Select-loading-zone {
margin-right: 10px;
}
&.is-empty {
.Select-menu-outer {
.Select-menu {
&::after {
content: "\f049";
font-size: 180px;
margin-top: -90px;
color: $ui-gray;
}
}
}
}
&.is-disabled {
.Select-value-label {
padding: 0 $pad-medium;
}
}
@include breakpoint(ltdesktop) {
.Select-menu-outer {
.Select-menu {
min-width: 665px;
&::after {
display: none;
}
}
}
&.show-preview {
.Select-menu-outer {
.Select-menu {
left: auto;
right: 0;
}
}
.Select-menu {
left: 0;
right: auto;
position: absolute;
}
}
}
}