fleet/frontend/components/forms/fields/SelectTargetsDropdown/_styles.scss
noahtalerman 0f48eb8525
Bring new style variables from teams into master (#707)
This PR brings the style changes made in the "Align Fleet UI colors with Figma components"
#615 and "Align Fleet UI with Figma (spacing and fonts)" #628 PRs into the master branch.
2021-04-30 17:32:50 -04:00

240 lines
4.2 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;
}
&__targets-count {
font-size: $small;
font-weight: $regular;
color: $core-vibrant-blue;
}
&.Select {
.Select-control {
min-height: 48px;
}
.Select-arrow {
border-width: 8px 8px 2.5px;
}
&.is-open {
.Select-arrow {
border-width: 2.5px 8px 8px;
}
.Select-arrow-zone {
&:hover {
.Select-arrow {
border-top-color: transparent;
}
}
}
}
.Select-input {
height: 46px;
margin: 0 0 0 $pad-medium;
> input {
line-height: 30px;
padding: 8px 0;
color: $core-fleet-black;
font-size: $small;
}
}
.Select-placeholder {
line-height: 46px;
font-size: $small;
padding: 0 $pad-medium;
}
.Select-arrow-zone {
padding-right: 19px;
}
&.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-fleet-black;
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 %kolidecon;
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 {
border: 0;
float: right;
position: relative;
line-height: 34px;
width: 25px;
padding: 0;
margin: 0 5px;
text-indent: -999em;
&::after {
@extend %kolidecon;
transition: color 150ms ease-in-out;
transform: translate(-50%, -50%);
content: "\2715"; // hex code for multiplication cross
position: absolute;
top: 50%;
left: 50%;
visibility: visible;
color: $core-fleet-black;
display: block;
text-indent: 0;
}
&:hover {
&::after {
color: $ui-error;
}
}
}
.Select-value-label {
font-size: $small;
font-weight: $regular;
color: $core-fleet-black;
padding: 0 0 0 $pad-medium;
line-height: 34px;
}
}
.Select-clear {
font-size: $x-large;
margin-right: 10px;
color: $core-fleet-black;
&:hover {
color: $ui-error;
}
}
.Select-loading-zone {
padding-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;
}
}
}
}