fleet/frontend/components/forms/fields/InputField/_styles.scss

95 lines
1.7 KiB
SCSS
Raw Normal View History

.input-field {
line-height: 1.5;
background-color: $ui-light-grey;
border: solid 1px $ui-fleet-black-10;
border-radius: 4px;
font-size: $small;
padding: 7px 12px;
color: $core-fleet-blue;
font-family: "Inter", sans-serif;
box-sizing: border-box;
height: 40px;
2022-10-05 14:43:54 +00:00
transition: border-color 100ms;
width: 100%;
&::placeholder {
color: $ui-fleet-black-50;
}
&:focus {
outline: none;
border-color: $core-vibrant-blue;
}
2022-10-05 14:43:54 +00:00
&:hover {
box-shadow: none;
border: 1px solid $core-vibrant-blue;
}
2017-01-13 23:27:58 +00:00
&--disabled {
color: $ui-fleet-black-50;
2017-01-13 23:27:58 +00:00
}
&--error {
color: $core-vibrant-red;
border: 1px solid $core-vibrant-red;
box-sizing: border-box;
border-radius: 4px;
2016-11-09 14:00:40 +00:00
&:focus {
border-color: $ui-error;
background-color: $core-white;
color: $core-fleet-black;
2016-11-09 14:00:40 +00:00
}
}
2016-11-09 14:00:40 +00:00
&__textarea {
min-height: 100px;
max-width: 100%;
display: block;
2016-11-09 14:00:40 +00:00
}
&__label {
2016-11-09 14:00:40 +00:00
display: block;
font-size: $medium;
font-weight: $regular;
color: $core-fleet-black;
2016-11-09 14:00:40 +00:00
margin-bottom: $pad-xsmall;
&--error {
font-weight: $bold;
color: $ui-error;
}
}
2016-11-09 14:00:40 +00:00
&__wrapper {
margin-bottom: $pad-medium;
2016-11-09 14:00:40 +00:00
}
2016-12-16 15:54:49 +00:00
&__hint {
font-size: $x-small;
font-weight: $regular;
2016-12-16 15:54:49 +00:00
line-height: 1.57;
letter-spacing: 1px;
color: $core-fleet-blue;
2016-12-16 15:54:49 +00:00
code {
color: $core-vibrant-blue;
background-color: $ui-gray;
padding: $pad-xxsmall;
font-family: "SourceCodePro", $monospace;
2016-12-16 15:54:49 +00:00
}
}
&__input-container.copy-enabled {
display: flex;
align-items: center;
gap: $pad-medium;
}
}
// Removes arrows on Firefox number fields
input[type="number"] {
-moz-appearance: textfield;
}