2016-11-03 19:40:54 +00:00
|
|
|
.input-field {
|
2021-12-05 23:12:55 +00:00
|
|
|
line-height: 1.5;
|
2025-09-29 17:10:41 +00:00
|
|
|
background-color: $core-fleet-white;
|
2023-01-05 15:23:27 +00:00
|
|
|
border: solid 1px $ui-fleet-black-10;
|
2025-01-22 15:22:59 +00:00
|
|
|
border-radius: $border-radius;
|
2025-06-10 19:04:18 +00:00
|
|
|
font-size: $x-small;
|
2025-02-28 13:46:00 +00:00
|
|
|
padding: $pad-small $pad-medium;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-blue;
|
2023-05-12 13:40:43 +00:00
|
|
|
font-family: "Inter", sans-serif;
|
2016-11-11 14:42:23 +00:00
|
|
|
box-sizing: border-box;
|
2025-09-29 17:10:41 +00:00
|
|
|
height: 36px;
|
2022-10-05 14:43:54 +00:00
|
|
|
transition: border-color 100ms;
|
2022-12-16 18:32:10 +00:00
|
|
|
width: 100%;
|
2016-11-03 19:40:54 +00:00
|
|
|
|
2021-12-02 15:03:56 +00:00
|
|
|
&::placeholder {
|
|
|
|
|
color: $ui-fleet-black-50;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
2025-02-28 13:46:00 +00:00
|
|
|
&:hover:not(.input-field--read-only) {
|
|
|
|
|
box-shadow: none;
|
2025-09-29 17:10:41 +00:00
|
|
|
border: 1px solid $ui-fleet-black-75-over;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
2025-02-28 13:46:00 +00:00
|
|
|
&:active:not(.input-field--read-only),
|
|
|
|
|
&:focus:not(.input-field--read-only),
|
|
|
|
|
&:focus-visible:not(.input-field--read-only) {
|
2022-10-05 14:43:54 +00:00
|
|
|
box-shadow: none;
|
2025-02-28 13:46:00 +00:00
|
|
|
outline: 0;
|
2025-09-29 17:10:41 +00:00
|
|
|
border: 1px solid $ui-fleet-black-75-down;
|
2022-10-05 14:43:54 +00:00
|
|
|
}
|
|
|
|
|
|
2017-01-13 23:27:58 +00:00
|
|
|
&--disabled {
|
2021-06-24 20:42:29 +00:00
|
|
|
color: $ui-fleet-black-50;
|
2024-05-02 13:20:41 +00:00
|
|
|
|
|
|
|
|
.form-field__label,
|
|
|
|
|
.form-field__help-text {
|
|
|
|
|
color: $ui-fleet-black-50;
|
|
|
|
|
}
|
2017-01-13 23:27:58 +00:00
|
|
|
}
|
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&--error {
|
2021-06-18 18:56:11 +00:00
|
|
|
color: $core-vibrant-red;
|
|
|
|
|
border: 1px solid $core-vibrant-red;
|
|
|
|
|
box-sizing: border-box;
|
2025-01-22 15:22:59 +00:00
|
|
|
border-radius: $border-radius;
|
2016-11-09 14:00:40 +00:00
|
|
|
|
|
|
|
|
&:focus {
|
2021-11-16 17:30:04 +00:00
|
|
|
border-color: $ui-error;
|
2025-09-29 17:10:41 +00:00
|
|
|
background-color: $core-fleet-white;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-black;
|
2016-11-09 14:00:40 +00:00
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
2016-11-09 14:00:40 +00:00
|
|
|
&__textarea {
|
|
|
|
|
min-height: 100px;
|
2026-01-29 14:24:28 +00:00
|
|
|
min-width: 100%;
|
2016-11-09 14:00:40 +00:00
|
|
|
max-width: 100%;
|
2016-12-21 17:25:54 +00:00
|
|
|
display: block;
|
2016-11-09 14:00:40 +00:00
|
|
|
}
|
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&__label {
|
2016-11-09 14:00:40 +00:00
|
|
|
display: block;
|
2020-11-20 00:51:22 +00:00
|
|
|
font-size: $medium;
|
|
|
|
|
font-weight: $regular;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-black;
|
2016-11-09 14:00:40 +00:00
|
|
|
margin-bottom: $pad-xsmall;
|
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&--error {
|
2021-06-18 18:56:11 +00:00
|
|
|
font-weight: $bold;
|
2022-01-21 17:06:58 +00:00
|
|
|
color: $ui-error;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
}
|
2016-11-09 14:00:40 +00:00
|
|
|
|
|
|
|
|
&__wrapper {
|
2021-04-30 21:32:50 +00:00
|
|
|
margin-bottom: $pad-medium;
|
2016-11-09 14:00:40 +00:00
|
|
|
}
|
2016-12-16 15:54:49 +00:00
|
|
|
|
2024-01-18 15:48:44 +00:00
|
|
|
&__help-text {
|
2021-04-30 21:32:50 +00:00
|
|
|
font-size: $x-small;
|
2020-11-20 00:51:22 +00:00
|
|
|
font-weight: $regular;
|
2016-12-16 15:54:49 +00:00
|
|
|
line-height: 1.57;
|
|
|
|
|
letter-spacing: 1px;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-blue;
|
2016-12-16 15:54:49 +00:00
|
|
|
|
|
|
|
|
code {
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-vibrant-blue;
|
|
|
|
|
background-color: $ui-gray;
|
|
|
|
|
padding: $pad-xxsmall;
|
2021-04-12 13:32:25 +00:00
|
|
|
font-family: "SourceCodePro", $monospace;
|
2016-12-16 15:54:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
2023-08-08 14:57:55 +00:00
|
|
|
|
2025-04-23 18:42:30 +00:00
|
|
|
&__copy-wrapper {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2026-01-14 15:54:09 +00:00
|
|
|
gap: $pad-xsmall;
|
2024-09-05 11:47:34 +00:00
|
|
|
position: absolute;
|
2026-01-14 15:54:09 +00:00
|
|
|
top: 3px; // vertically center
|
2025-04-23 18:42:30 +00:00
|
|
|
right: 0;
|
2025-09-29 17:10:41 +00:00
|
|
|
margin: 1px 4px;
|
|
|
|
|
background-color: $core-fleet-white;
|
2026-02-16 20:11:40 +00:00
|
|
|
|
|
|
|
|
&__text-area {
|
|
|
|
|
top: -30px;
|
|
|
|
|
}
|
2024-09-05 11:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-08 14:57:55 +00:00
|
|
|
&__input-container.copy-enabled {
|
2025-05-13 14:24:32 +00:00
|
|
|
position: relative;
|
2025-05-21 17:32:18 +00:00
|
|
|
|
|
|
|
|
.input-field {
|
|
|
|
|
padding-right: 35px; // horizontal scroll of long inputs will not be hidden by copy button
|
|
|
|
|
}
|
2023-11-29 17:27:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__copied-confirmation {
|
2025-05-21 17:32:18 +00:00
|
|
|
@include copy-message;
|
2024-09-05 11:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__copied-confirmation-outside {
|
2025-09-29 17:10:41 +00:00
|
|
|
margin-left: -88px;
|
2023-08-08 14:57:55 +00:00
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
2022-11-11 21:12:00 +00:00
|
|
|
|
|
|
|
|
// Removes arrows on Firefox number fields
|
|
|
|
|
input[type="number"] {
|
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
|
}
|