69 lines
1.7 KiB
CSS
69 lines
1.7 KiB
CSS
.search-input {
|
|
--search-input-shadow: none;
|
|
--search-input-background: none;
|
|
--search-input-border: none;
|
|
--search-input-border-radius: 54px;
|
|
--search-input-icon-color: var(--secondary-color);
|
|
--search-input-icon-color-collapsed: var(--grey-color);
|
|
--search-input-icon-color-disabled: var(--disable-color);
|
|
--search-input-divider: 1px solid var(--muted-color);
|
|
--search-input-icon-padding: 20px;
|
|
border-radius: var(--search-input-border-radius);
|
|
border: var(--search-input-border);
|
|
box-shadow: var(--search-input-shadow);
|
|
background: var(--search-input-background);
|
|
width: 100%;
|
|
transition: width 0.5s ease-out;
|
|
}
|
|
|
|
.search-input.collapsed {
|
|
width: calc(2*var(--search-input-icon-padding) + 26px);
|
|
}
|
|
|
|
.search-input .inputs > :not(:last-child) {
|
|
position: relative;
|
|
}
|
|
|
|
.search-input .inputs > :not(:last-child):after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 0;
|
|
top: 15px;
|
|
bottom: 15px;
|
|
width: 0;
|
|
border-left: var(--search-input-divider);
|
|
}
|
|
|
|
.search-input .search-icon {
|
|
padding: var(--search-input-icon-padding);
|
|
color: var(--search-input-icon-color);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.search-input.collapsed .search-icon {
|
|
color: var(--search-input-icon-color-collapsed);
|
|
}
|
|
|
|
.search-input .search-icon.disabled {
|
|
color: var(--search-input-icon-color-disabled);
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Modifiers */
|
|
.inner {
|
|
--search-input-background: var(--light-color);
|
|
--search-input-shadow: var(--shadow-inset);
|
|
}
|
|
|
|
.flat {
|
|
--search-input-background: var(--light-color);
|
|
--search-input-border: 1px solid var(--muted-color);
|
|
}
|
|
|
|
.outer {
|
|
--search-input-background: var(--default-color);
|
|
--search-input-shadow: var(--shadow-medium);
|
|
}
|