fleet/frontend/components/forms/fields/SelectTargetsDropdown/_styles.scss

214 lines
3.9 KiB
SCSS
Raw Normal View History

.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 {
border-radius: $border-radius;
border: 1px solid $ui-fleet-black-10;
&.is-focused,
&:hover {
border: 1px solid $core-vibrant-blue;
}
.Select-control {
min-height: 48px;
background-color: $ui-light-grey;
}
2016-11-23 21:10:32 +00:00
.Select-arrow {
content: url("../assets/images/icon-chevron-black-16x16@2x.png");
height: 16px;
width: 16px;
margin-left: 6px;
border: none;
.Select-arrow-zone {
&:hover {
.Select-arrow {
border-top-color: transparent;
}
}
}
2017-02-24 19:11:33 +00:00
}
&:hover,
&.is-open {
.Select-arrow {
content: url("../assets/images/icon-chevron-blue-16x16@2x.png");
margin-left: 6px;
}
}
.Select-input {
height: 53px;
margin: 0;
padding: 0 0 0 10px;
> input {
line-height: 53px;
color: $core-fleet-black;
font-size: $small;
}
}
.Select-placeholder {
line-height: 53px;
font-size: $small;
color: $ui-fleet-black-50;
}
&.Select--multi {
.Select-option {
2016-11-23 21:10:32 +00:00
padding: 0;
&.is-disabled {
&.is-focused {
background-color: $ui-vibrant-blue-10;
border-radius: 8px;
}
}
2016-11-23 21:10:32 +00:00
&:last-child {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
}
}
2016-11-23 21:10:32 +00:00
}
.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;
2016-11-23 21:10:32 +00:00
position: relative;
&::after {
2021-06-07 01:56:30 +00:00
@extend %fleeticon;
content: "\f03c";
2016-11-23 21:10:32 +00:00
font-size: 150px;
position: absolute;
left: 50%;
2016-11-23 21:10:32 +00:00
top: 50%;
margin-top: -75px;
opacity: 0.25;
width: 50%;
2016-11-23 21:10:32 +00:00
text-align: center;
}
}
.target-list {
height: 100%;
}
}
.Select-value {
border-radius: $border-radius;
background-color: $core-white;
2016-11-23 21:10:32 +00:00
.Select-value-icon {
height: 100%;
2016-11-23 21:10:32 +00:00
&::after {
content: url("../assets/images/icon-close-fleet-blue-16x16@2x.png");
transform: scale(0.5);
border-radius: 0px;
margin-top: 4px;
2016-11-23 21:10:32 +00:00
}
&:hover {
&::after {
content: url("../assets/images/icon-close-vibrant-blue-16x16@2x.png");
transform: scale(0.5);
2016-11-23 21:10:32 +00:00
}
}
}
.Select-value-label {
font-size: $small;
color: $ui-fleet-black-75;
font-size: $x-small;
2016-11-23 21:10:32 +00:00
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;
2016-11-23 21:10:32 +00:00
&:hover {
content: url("../assets/images/icon-close-vibrant-blue-16x16@2x.png");
width: 16px;
height: 16px;
border-radius: 0px;
2016-11-23 21:10:32 +00:00
}
}
.Select-clear-zone {
width: 30px;
}
.Select-arrow-zone {
width: 30px;
margin-right: 5px;
}
2016-11-23 21:10:32 +00:00
.Select-loading-zone {
margin-right: 10px;
2016-11-23 21:10:32 +00:00
}
&.is-empty {
.Select-menu-outer {
.Select-menu {
&::after {
content: "\f049";
2016-11-23 21:10:32 +00:00
font-size: 180px;
margin-top: -90px;
color: $ui-gray;
2016-11-23 21:10:32 +00:00
}
}
}
}
&.is-disabled {
.Select-value-label {
padding: 0 $pad-medium;
}
}
}