mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
This is the first PR as a part of the Fleet UI Refresh #38. Changes include: - Add Nunito Sans font files and modify global styles to reflect the font change. - Modify global font variables to reflect new sizing and weight naming conventions. -- New sizing and naming conventions: --- SIZE: xx-small: 12px, x-small: 14px, small: 16px, medium: 20px, large: 24px, x-large: 28px --- WEIGHT: regular: 400, bold: 700 - Remove the old Oxygen font files. Changes to other style sheets reflect the changes to the new font sizing and weight naming conventions for global variables. The changes don't necessarily use the correct size (as illustrated by mockups). Those "up to spec" sizing changes are to come.
205 lines
3.4 KiB
SCSS
205 lines
3.4 KiB
SCSS
.dropdown {
|
|
&__label {
|
|
display: block;
|
|
font-size: 16px;
|
|
font-weight: $regular;
|
|
color: $text-dark;
|
|
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 $accent-medium;
|
|
border-radius: 2px;
|
|
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 #b8c2e3;
|
|
border: solid 1px #b8c2e3;
|
|
|
|
.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: $accent-dark;
|
|
text-indent: 0;
|
|
}
|
|
|
|
&:hover {
|
|
&::after {
|
|
color: $accent-text;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-value-label {
|
|
font-size: 16px;
|
|
font-weight: $regular;
|
|
color: $text-dark;
|
|
line-height: 28px;
|
|
}
|
|
}
|
|
|
|
&--single {
|
|
> .Select-control {
|
|
.Select-value {
|
|
line-height: 38px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-arrow {
|
|
border-top-color: $brand;
|
|
}
|
|
|
|
&.is-focused {
|
|
.Select-control {
|
|
border: 1px solid $brand;
|
|
}
|
|
|
|
&:not(.is-open) {
|
|
.Select-control {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.has-value {
|
|
> .Select-control,
|
|
&.is-pseudo-focused > .Select-control {
|
|
.Select-value {
|
|
.Select-value-label {
|
|
color: $text-dark;
|
|
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 $accent-light;
|
|
border-radius: 2px;
|
|
z-index: 6;
|
|
}
|
|
|
|
.Select-option {
|
|
color: $text-dark;
|
|
font-size: $medium;
|
|
|
|
&.is-focused {
|
|
background-color: $brand;
|
|
color: $white;
|
|
|
|
.Select-icon {
|
|
color: $brand-ultralight;
|
|
}
|
|
}
|
|
|
|
&.is-disabled {
|
|
color: $silver;
|
|
|
|
.Select-icon {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-icon {
|
|
color: $accent-medium;
|
|
}
|
|
|
|
.Select-placeholder {
|
|
color: $accent-text;
|
|
font-size: 16px;
|
|
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: $text-dark;
|
|
cursor: default;
|
|
|
|
&.is-focused {
|
|
background-color: $brand;
|
|
color: $white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select-value {
|
|
margin-top: 3px;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.Select-value-label {
|
|
padding: 0 0 0 1rem;
|
|
}
|
|
}
|
|
}
|