2022-10-06 21:41:22 +02:00
|
|
|
.mm-text-field-base {
|
|
|
|
--text-field-base-height: var(--size, 40px);
|
|
|
|
|
|
|
|
&--size-sm {
|
|
|
|
--size: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--size-md {
|
|
|
|
--size: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--size-lg {
|
|
|
|
--size: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
height: var(--text-field-base-height);
|
|
|
|
border-color: var(--color-border-default);
|
|
|
|
|
|
|
|
&--focused {
|
2022-10-26 00:23:48 +02:00
|
|
|
outline: 5px auto Highlight; // firefox
|
|
|
|
outline: 5px auto -webkit-focus-ring-color; // chrome
|
2022-10-06 21:41:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
border-color: var(--color-error-default);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
border-color: var(--color-border-default);
|
|
|
|
}
|
|
|
|
|
|
|
|
// truncates text with ellipsis
|
|
|
|
&--truncate .mm-text-field-base__input {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__input {
|
|
|
|
border: none;
|
|
|
|
height: 100%;
|
2022-11-23 18:58:43 +01:00
|
|
|
width: 100%;
|
2022-10-06 21:41:22 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
box-sizing: content-box;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:focus-visible {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|