2016-11-03 19:40:54 +00:00
|
|
|
.input-icon-field {
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&__icon {
|
|
|
|
|
position: absolute;
|
2025-02-28 13:46:00 +00:00
|
|
|
left: 12px;
|
|
|
|
|
top: 0;
|
2025-09-29 17:10:41 +00:00
|
|
|
height: 36px;
|
2025-02-28 13:46:00 +00:00
|
|
|
width: 16px;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-content: center;
|
|
|
|
|
z-index: 1;
|
2025-09-29 17:10:41 +00:00
|
|
|
color: $core-fleet-black;
|
2016-11-03 19:40:54 +00:00
|
|
|
|
|
|
|
|
&--active {
|
2025-09-29 17:10:41 +00:00
|
|
|
color: $ui-fleet-black-75-down;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--error {
|
2021-06-18 18:56:11 +00:00
|
|
|
border: 1px solid $core-vibrant-red;
|
|
|
|
|
box-sizing: border-box;
|
2025-01-22 15:22:59 +00:00
|
|
|
border-radius: $border-radius;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-29 13:49:36 +00:00
|
|
|
// Relative input wrapper with absolute icon corrects icon alignment on all browsers
|
|
|
|
|
&__input-wrapper {
|
|
|
|
|
position: relative;
|
2025-09-29 17:10:41 +00:00
|
|
|
height: 36px;
|
2024-02-29 13:49:36 +00:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&__input {
|
2023-01-05 15:23:27 +00:00
|
|
|
border: 1px solid $ui-fleet-black-10;
|
2025-09-29 17:10:41 +00:00
|
|
|
background-color: $core-fleet-white;
|
2021-04-10 00:30:42 +00:00
|
|
|
border-radius: $border-radius;
|
2025-02-28 13:46:00 +00:00
|
|
|
padding: 9.5px 12px 9.5px $pad-medium;
|
2023-07-19 14:40:59 +00:00
|
|
|
font-size: $x-small;
|
2016-11-03 19:40:54 +00:00
|
|
|
text-indent: 1px;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
2021-04-09 19:04:11 +00:00
|
|
|
color: $core-fleet-black;
|
2020-11-20 00:51:22 +00:00
|
|
|
font-weight: $regular;
|
2022-10-19 17:57:06 +00:00
|
|
|
transition: border-color 100ms;
|
2016-12-01 18:57:19 +00:00
|
|
|
|
2025-02-28 13:46:00 +00:00
|
|
|
&.input-with-icon {
|
|
|
|
|
padding-left: 36px;
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-03 20:46:55 +00:00
|
|
|
::placeholder {
|
2025-09-29 17:10:41 +00:00
|
|
|
color: $ui-fleet-black-50;
|
2016-12-01 18:57:19 +00:00
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-06 16:22:51 +00:00
|
|
|
&:disabled {
|
|
|
|
|
color: $ui-fleet-black-50;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
}
|
|
|
|
|
|
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;
|
2021-06-18 18:56:11 +00:00
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
2025-09-29 17:10:41 +00:00
|
|
|
&__input-wrapper:not(&__input-wrapper--disabled) {
|
|
|
|
|
.input-icon-field__input:hover {
|
|
|
|
|
border: 1px solid $ui-fleet-black-50;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
border: 1px solid $core-fleet-black;
|
|
|
|
|
}
|
2024-02-29 13:49:36 +00:00
|
|
|
}
|
|
|
|
|
|
2025-02-28 13:46:00 +00:00
|
|
|
// Icon color matches border color on hover
|
2024-02-29 13:49:36 +00:00
|
|
|
.input-icon-field__icon {
|
|
|
|
|
svg {
|
|
|
|
|
path {
|
2025-09-29 17:10:41 +00:00
|
|
|
fill: $ui-fleet-black-75-over;
|
2024-02-29 13:49:36 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-28 13:46:00 +00:00
|
|
|
&__input-wrapper {
|
|
|
|
|
.input-icon-field__input:focus {
|
2025-09-29 17:10:41 +00:00
|
|
|
border: 1px solid $core-fleet-black;
|
2025-02-28 13:46:00 +00:00
|
|
|
|
|
|
|
|
// Icon color matches border color on focus
|
|
|
|
|
+ .input-icon-field__icon {
|
|
|
|
|
svg {
|
|
|
|
|
path {
|
2025-09-29 17:10:41 +00:00
|
|
|
fill: $core-fleet-black;
|
2025-02-28 13:46:00 +00:00
|
|
|
}
|
2024-02-29 13:49:36 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-02-28 13:46:00 +00:00
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&__label {
|
2022-02-28 21:25:06 +00:00
|
|
|
display: block;
|
2020-12-02 14:59:44 +00:00
|
|
|
font-size: $x-small;
|
|
|
|
|
font-weight: $bold;
|
2025-09-29 17:10:41 +00:00
|
|
|
color: $core-fleet-black;
|
2022-02-28 21:25:06 +00:00
|
|
|
|
|
|
|
|
&[data-has-tooltip="true"] {
|
|
|
|
|
margin-bottom: $pad-small;
|
|
|
|
|
}
|
2025-02-28 13:46:00 +00:00
|
|
|
|
|
|
|
|
&--disabled {
|
|
|
|
|
color: $ui-fleet-black-50;
|
|
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__errors {
|
2021-09-28 20:30:36 +00:00
|
|
|
color: $core-vibrant-red;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
2016-12-01 18:57:19 +00:00
|
|
|
|
2022-11-04 13:14:18 +00:00
|
|
|
/* removes the 'X' from IE input type=search */
|
|
|
|
|
input[type="search"]::-ms-clear {
|
|
|
|
|
display: none;
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
}
|
|
|
|
|
input[type="search"]::-ms-reveal {
|
|
|
|
|
display: none;
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* removes the 'X' from Chrome input type=search */
|
|
|
|
|
input[type="search"]::-webkit-search-decoration,
|
|
|
|
|
input[type="search"]::-webkit-search-cancel-button,
|
|
|
|
|
input[type="search"]::-webkit-search-results-button,
|
|
|
|
|
input[type="search"]::-webkit-search-results-decoration {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2024-12-23 21:20:51 +00:00
|
|
|
|
|
|
|
|
&__clear-button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 12px;
|
|
|
|
|
top: 0;
|
2025-09-29 17:10:41 +00:00
|
|
|
height: 36px;
|
2024-12-23 21:20:51 +00:00
|
|
|
width: 16px;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-content: center;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|