mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
- Add help text within dropdown in smaller font size underneath "Require password reset" saying "This will revoke all active Fleet API tokens for this user." - Update API docs to use "API token" parlance instead of "Auth token"
223 lines
3.8 KiB
SCSS
223 lines
3.8 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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&__option {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
&__help-text {
|
|
margin-top: 4px;
|
|
font-size: $xx-small;
|
|
white-space: normal;
|
|
color: $core-medium-blue-grey;
|
|
font-style: italic;
|
|
}
|
|
}
|
|
|
|
.Select {
|
|
.Select-control {
|
|
border: 1px solid $ui-borders;
|
|
background-color: $ui-light-grey;
|
|
border-radius: 4px;
|
|
height: 40px;
|
|
|
|
.Select-value {
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
.Select-value {
|
|
font-size: $small;
|
|
border-radius: 4px;
|
|
background-color: $ui-light-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-dark-blue-grey;
|
|
}
|
|
|
|
&.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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-menu-outer {
|
|
margin-top: 4px;
|
|
box-shadow: 0 4px 10px rgba(52, 59, 96, 0.15);
|
|
border-radius: 4px;
|
|
z-index: 6;
|
|
overflow: hidden;
|
|
border: 0;
|
|
}
|
|
|
|
.Select-noresults {
|
|
font-size: $x-small;
|
|
}
|
|
|
|
.Select-option {
|
|
color: $core-dark-blue-grey;
|
|
font-size: $x-small;
|
|
margin: 6px 0;
|
|
padding: 6px 16px;
|
|
display: block;
|
|
|
|
&.is-focused {
|
|
background-color: $core-blue-label-over;
|
|
|
|
.Select-icon {
|
|
color: $core-blue-label-over;
|
|
}
|
|
}
|
|
|
|
&.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-label-down;
|
|
color: $white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-value {
|
|
margin-top: 3px;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.Select-value-label {
|
|
padding: 0 0 0 1rem;
|
|
}
|
|
}
|
|
}
|