mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
The goal of this PR was to insert new colors, remove legacy colors, and update only the styles accordingly. The Nunito Sans Italic font was also added. Later PRs will include layout, copy, and style change to individual components. These later changes will more exactly resemble the current mockups.
206 lines
3.5 KiB
SCSS
206 lines
3.5 KiB
SCSS
.dropdown {
|
|
&__label {
|
|
display: block;
|
|
font-size: 16px;
|
|
font-weight: $regular;
|
|
color: $core-dark-blue-grey;
|
|
margin-bottom: $pad-xsmall;
|
|
|
|
&--error {
|
|
color: $alert;
|
|
}
|
|
}
|
|
|
|
&__select {
|
|
&--error {
|
|
&.Select {
|
|
.Select-control {
|
|
border-color: $alert;
|
|
background-color: $alert-light;
|
|
}
|
|
|
|
.Select-arrow {
|
|
border-top-color: $alert;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select {
|
|
.Select-control {
|
|
border: 1px solid $ui-borders;
|
|
background-color: $ui-light-grey;
|
|
border-radius: 4px;
|
|
height: 40px;
|
|
}
|
|
|
|
.Select-value {
|
|
font-size: $medium;
|
|
border-radius: 2px;
|
|
background-color: #fff;
|
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 0 0 $ui-medium-grey;
|
|
border: solid 1px $ui-borders;
|
|
|
|
.Select-value-icon {
|
|
border: 0;
|
|
float: right;
|
|
position: relative;
|
|
line-height: 28px;
|
|
width: 25px;
|
|
padding: 0;
|
|
margin: 0 5px;
|
|
text-indent: -999em;
|
|
|
|
&::after {
|
|
@extend %kolidecon;
|
|
transition: color 150ms ease-in-out;
|
|
transform: translate(-50%, -50%);
|
|
content: '\f036';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
visibility: visible;
|
|
font-size: 16px;
|
|
color: $ui-medium-grey;
|
|
text-indent: 0;
|
|
}
|
|
|
|
&:hover {
|
|
&::after {
|
|
color: $core-medium-blue-grey;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-value-label {
|
|
font-size: 16px;
|
|
font-weight: $regular;
|
|
color: $core-dark-blue-grey;
|
|
line-height: 28px;
|
|
}
|
|
}
|
|
|
|
&--single {
|
|
> .Select-control {
|
|
.Select-value {
|
|
line-height: 38px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-arrow {
|
|
border-top-color: $core-blue;
|
|
}
|
|
|
|
&.is-focused {
|
|
.Select-control {
|
|
border: 1px solid $core-blue;
|
|
}
|
|
|
|
&:not(.is-open) {
|
|
.Select-control {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.has-value {
|
|
> .Select-control,
|
|
&.is-pseudo-focused > .Select-control {
|
|
.Select-value {
|
|
.Select-value-label {
|
|
color: $core-dark-blue-grey;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.is-open {
|
|
.Select-control {
|
|
box-shadow: inset 0 0 8px 0 rgba(0, 0, 0, 0.08);
|
|
}
|
|
}
|
|
|
|
.Select-menu-outer {
|
|
margin-top: 2px;
|
|
box-shadow: 0 1px 3px 1px rgba($black, 0.05);
|
|
border: solid 1px $ui-borders;
|
|
border-radius: 2px;
|
|
z-index: 6;
|
|
}
|
|
|
|
.Select-option {
|
|
color: $core-dark-blue-grey;
|
|
font-size: $medium;
|
|
|
|
&.is-focused {
|
|
background-color: $core-blue;
|
|
color: $white;
|
|
|
|
.Select-icon {
|
|
color: $core-blue-ultralight;
|
|
}
|
|
}
|
|
|
|
&.is-disabled {
|
|
color: $ui-medium-grey;
|
|
|
|
.Select-icon {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-icon {
|
|
color: $ui-medium-grey;
|
|
}
|
|
|
|
.Select-placeholder {
|
|
color: $core-medium-blue-grey;
|
|
font-size: $small;
|
|
line-height: 40px;
|
|
padding: 0 12px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
&.Select--multi {
|
|
.Select-control {
|
|
display: flex;
|
|
align-items: center;
|
|
height: auto;
|
|
min-height: 40px;
|
|
}
|
|
|
|
.Select-multi-value-wrapper {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.Select-arrow-zone {
|
|
display: block;
|
|
}
|
|
|
|
.Select-option {
|
|
&.is-disabled {
|
|
color: $core-dark-blue-grey;
|
|
cursor: default;
|
|
|
|
&.is-focused {
|
|
background-color: $core-blue;
|
|
color: $white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-value {
|
|
margin-top: 3px;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.Select-value-label {
|
|
padding: 0 0 0 1rem;
|
|
}
|
|
}
|
|
}
|