1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/input/search-input.scss
Alex Andreev dc07d646ec
Align NamespaceSelect and SearchField (#1073)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-12 10:08:57 +03:00

34 lines
542 B
SCSS

.Input.SearchInput {
--compact-focus-width: 190px;
max-width: 900px;
min-width: 220px;
> label {
color: inherit;
border-radius: $radius;
padding: 6px 6px 6px 10px;
.Icon {
height: $margin * 2;
}
}
&.compact {
min-width: 0;
.input {
transition: width 150ms;
&:placeholder-shown:not(:focus) {
transition-duration: 100ms;
width: 0;
margin: 0;
}
&:focus, &:not(:placeholder-shown) {
width: var(--compact-focus-width);
}
}
}
}