fleet/frontend/components/forms/fields/InputField/_styles.scss
noahtalerman 51cfb07f64
Implement global colors. Add italic font. (#64)
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.
2020-11-24 08:59:03 -08:00

84 lines
1.7 KiB
SCSS

.input-field {
transition: border 150ms ease-in-out, box-shadow 150ms ease-in-out;
line-height: 34px;
background-color: $ui-light-grey;
border: solid 1px $ui-borders;
border-radius: 4px;
font-size: $small;
padding: $pad-xsmall 12px;
color: $core-medium-blue-grey;
font-family: 'Nunito Sans', sans-serif;
box-sizing: border-box;
height: 40px;
::placeholder {
color: $core-medium-blue-grey;
}
&:focus {
outline: none;
box-shadow: inset 0 0 8px 0 rgba($black, 0.1);
border-color: $core-purple;
border-bottom-color: $core-blue;
}
&--disabled {
background-color: #f9f9f9;
}
&--error {
transition: background 150ms ease-in-out, color 150ms ease-in-out;
border-color: $alert;
background-color: $alert-light;
color: $white;
box-shadow: inset 0 -4px 4px 0 rgba($black, 0.1);
&:focus {
box-shadow: inset 0 0 8px 0 rgba($black, 0.1);
border-bottom-color: $alert;
background-color: $white;
color: $core-dark-blue-grey;
}
}
&--password {
letter-spacing: 7px;
}
&__textarea {
min-height: 100px;
max-width: 100%;
display: block;
}
&__label {
display: block;
font-size: $medium;
font-weight: $regular;
color: $core-dark-blue-grey;
margin-bottom: $pad-xsmall;
&--error {
color: $alert;
}
}
&__wrapper {
margin-bottom: $pad-base;
}
&__hint {
font-size: 14px;
font-weight: $regular;
line-height: 1.57;
letter-spacing: 1px;
color: $core-medium-blue-grey;
code {
color: $core-blue;
background-color: $ui-medium-grey;
padding: 2px;
font-family: 'SourceCodePro', $monospace;
}
}
}