fleet/frontend/components/forms/fields/InputField/_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

80 lines
1.5 KiB
SCSS

.input-field {
line-height: 34px;
background-color: $ui-light-grey;
border: solid 1px $ui-fleet-blue-15;
border-radius: 4px;
font-size: $small;
padding: $pad-xsmall 12px;
color: $core-fleet-blue;
font-family: "Nunito Sans", sans-serif;
box-sizing: border-box;
height: 40px;
::placeholder {
color: $core-fleet-blue;
}
&:focus {
outline: none;
border-color: $core-vibrant-blue;
border-top-color: $core-fleet-purple;
}
&--disabled {
background-color: #f9f9f9;
}
&--error {
transition: background 150ms ease-in-out, color 150ms ease-in-out;
border-color: $ui-error;
background-color: $ui-error;
color: $core-white;
&:focus {
border-bottom-color: $ui-error;
background-color: $core-white;
color: $core-fleet-black;
}
}
&--password {
letter-spacing: 7px;
}
&__textarea {
min-height: 100px;
max-width: 100%;
display: block;
}
&__label {
display: block;
font-size: $medium;
font-weight: $regular;
color: $core-fleet-black;
margin-bottom: $pad-xsmall;
&--error {
color: $ui-error;
}
}
&__wrapper {
margin-bottom: $pad-medium;
}
&__hint {
font-size: $x-small;
font-weight: $regular;
line-height: 1.57;
letter-spacing: 1px;
color: $core-fleet-blue;
code {
color: $core-vibrant-blue;
background-color: $ui-gray;
padding: $pad-xxsmall;
font-family: "SourceCodePro", $monospace;
}
}
}