mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
This if the 2nd PR as part of the of the Align components in Fleet UI with design system in Figma #539 These changes **refactor the spacing and font sizes** used by the frontend. - Change the scss variables in `padding.scss` and `fonts.scss`. - Replace custom styles with the new variables throughout all stylesheets.
74 lines
1.3 KiB
SCSS
74 lines
1.3 KiB
SCSS
.input-icon-field {
|
|
margin-top: $pad-medium;
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
&__icon {
|
|
position: absolute;
|
|
right: 6px;
|
|
top: 28px;
|
|
font-size: 18px;
|
|
color: $core-fleet-black;
|
|
|
|
&--active {
|
|
color: $core-vibrant-blue;
|
|
}
|
|
|
|
&--error {
|
|
color: $ui-error;
|
|
}
|
|
}
|
|
|
|
&__input {
|
|
border: 1px solid $ui-fleet-blue-15;
|
|
background-color: $ui-light-grey;
|
|
border-radius: $border-radius;
|
|
padding: 9px 30px 9px $pad-medium;
|
|
font-size: $small;
|
|
text-indent: 1px;
|
|
position: relative;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
color: $core-fleet-black;
|
|
font-weight: $regular;
|
|
|
|
&::placeholder {
|
|
color: $ui-fleet-black-25;
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&--error {
|
|
border-bottom-color: $ui-error;
|
|
}
|
|
|
|
}
|
|
|
|
&__label {
|
|
font-size: $x-small;
|
|
font-weight: $bold;
|
|
margin-bottom: $pad-xsmall;
|
|
}
|
|
|
|
&__errors {
|
|
font-size: $x-small;
|
|
}
|
|
|
|
&__hint {
|
|
font-size: $x-small;
|
|
font-style: italic;
|
|
font-weight: $regular;
|
|
line-height: 20px;
|
|
display: inline-block;
|
|
margin-top: $pad-small;
|
|
|
|
code {
|
|
color: $core-vibrant-blue;
|
|
background-color: $ui-light-grey;
|
|
padding: 2px;
|
|
font-family: 'SourceCodePro', $monospace;
|
|
}
|
|
}
|
|
}
|