2022-06-16 18:44:05 +02:00
|
|
|
.hook-search-misc() {
|
|
|
|
.search-input {
|
|
|
|
--search-input-shadow: none;
|
|
|
|
--search-input-background: none;
|
|
|
|
--search-input-border-width: 0;
|
2022-10-12 11:24:36 +02:00
|
|
|
--search-input-border-style: solid;
|
2022-06-16 18:44:05 +02:00
|
|
|
--search-input-border: transparent;
|
|
|
|
--search-input-border-radius: 500px;
|
2022-10-12 11:24:36 +02:00
|
|
|
/* Focus Styling */
|
|
|
|
--search-input-border-focus: var(--search-input-border);
|
|
|
|
--search-input-border-style-focus: var(--search-input-border-style);
|
|
|
|
/* Icon */
|
2023-05-12 16:27:11 +02:00
|
|
|
--search-input-icon-ratio: 1.3;
|
2022-06-16 18:44:05 +02:00
|
|
|
--search-input-icon-color: @global-secondary-background;
|
|
|
|
--search-input-icon-color-collapsed: @global-color;
|
|
|
|
--search-input-icon-color-disabled: @global-muted-color;
|
2023-05-12 16:27:11 +02:00
|
|
|
--search-input-icon-display: inline;
|
|
|
|
--search-input-icon-background-color: transparent;
|
|
|
|
--search-input-icon-background-color-disabled: transparent;
|
|
|
|
--search-input-icon-background-padding: 0px;
|
2022-06-16 18:44:05 +02:00
|
|
|
--search-input-divider: @global-border-width solid @global-border;
|
2022-12-07 15:57:46 +01:00
|
|
|
--search-input-icon-padding-horizontal: 15px;
|
|
|
|
--search-input-icon-padding-vertical: 16px;
|
|
|
|
/* Filters Icon */
|
|
|
|
--search-filters-toogle-border: @global-border-width solid @global-border;
|
|
|
|
--search-filters-toogle-padding: 10px;
|
2022-06-16 18:44:05 +02:00
|
|
|
border-radius: var(--search-input-border-radius);
|
|
|
|
border: var(--search-input-border-width) solid var(--search-input-border);
|
|
|
|
box-shadow: var(--search-input-shadow);
|
|
|
|
background: var(--search-input-background);
|
|
|
|
width: 100%;
|
|
|
|
transition: width 0.5s ease-out;
|
|
|
|
|
2022-10-12 11:24:36 +02:00
|
|
|
/* Override border style variable in order to cheat angular optimization (DO NOT REMOVE)*/
|
|
|
|
& {
|
|
|
|
border-style: var(--search-input-border-style);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.focused {
|
|
|
|
border-color: var(--search-input-border-focus);
|
|
|
|
border-style: var(--search-input-border-style-focus);
|
|
|
|
}
|
|
|
|
|
2022-06-16 18:44:05 +02:00
|
|
|
&.collapsed {
|
2023-05-12 16:27:11 +02:00
|
|
|
width: calc(2 * (var(--search-input-icon-padding-horizontal) + var(--search-input-icon-background-padding)) + var(--search-input-icon-ratio)*20px);
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
& .search-icon {
|
|
|
|
color: var(--search-input-icon-color-collapsed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .inputs {
|
|
|
|
& > :not(:last-child) {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 15px;
|
|
|
|
bottom: 15px;
|
|
|
|
width: 0;
|
|
|
|
border-left: var(--search-input-divider);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .search-icon {
|
2022-12-07 15:57:46 +01:00
|
|
|
padding: var(--search-input-icon-padding-vertical) var(--search-input-icon-padding-horizontal);
|
2022-06-16 18:44:05 +02:00
|
|
|
color: var(--search-input-icon-color);
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
|
2023-05-12 16:27:11 +02:00
|
|
|
& > icon {
|
|
|
|
padding: var(--search-input-icon-background-padding);
|
|
|
|
border-radius: 50%;
|
|
|
|
display: var(--search-input-icon-display);
|
|
|
|
background-color: var(--search-input-icon-background-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-06-16 18:44:05 +02:00
|
|
|
&.disabled {
|
|
|
|
color: var(--search-input-icon-color-disabled);
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
2023-05-12 16:27:11 +02:00
|
|
|
|
|
|
|
& > icon {
|
|
|
|
background-color: var(--search-input-icon-background-color-disabled);
|
|
|
|
}
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-07 15:57:46 +01:00
|
|
|
& .filters-toggle {
|
|
|
|
padding: calc(var(--search-input-icon-padding-vertical) - var(--search-filters-toogle-padding)) calc(var(--search-input-icon-padding-horizontal) - var(--search-filters-toogle-padding));
|
|
|
|
|
|
|
|
& > a {
|
|
|
|
border: var(--search-filters-toogle-border);
|
|
|
|
border-radius: 500px;
|
|
|
|
padding: var(--search-filters-toogle-padding);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-16 18:44:05 +02:00
|
|
|
/* Modifiers */
|
|
|
|
&.inner {
|
|
|
|
--search-input-background: @global-inverse-color;
|
|
|
|
--search-input-shadow: @global-inset-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flat {
|
|
|
|
--search-input-background: @global-inverse-color;
|
|
|
|
--search-input-border-width: @global-border-width;
|
2023-03-22 15:07:27 +01:00
|
|
|
--search-input-border: @gray-300;
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.outer {
|
|
|
|
--search-input-background: @global-background;
|
|
|
|
--search-input-shadow: @global-medium-box-shadow;
|
|
|
|
}
|
2022-10-12 11:24:36 +02:00
|
|
|
|
|
|
|
&.border-bottom {
|
|
|
|
--search-input-border-width: 1px;
|
|
|
|
--search-input-border-radius: 0;
|
2022-12-07 15:57:46 +01:00
|
|
|
--search-input-icon-padding-vertical: 10px;
|
|
|
|
--search-input-icon-padding-horizontal: 10px;
|
2022-10-12 11:24:36 +02:00
|
|
|
--search-input-border: @global-muted-background;
|
|
|
|
--search-input-border-style: hidden hidden solid hidden;
|
|
|
|
--search-input-border-focus: @secondary-color;
|
|
|
|
|
|
|
|
.input-wrapper {
|
|
|
|
--input-padding-horizontal: 0;
|
|
|
|
--input-padding-vertical: 0;
|
|
|
|
--input-font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
2023-05-11 16:17:16 +02:00
|
|
|
|
2023-05-12 16:27:11 +02:00
|
|
|
&.small-vertical {
|
|
|
|
--search-input-icon-padding-vertical: 10px;
|
|
|
|
|
|
|
|
& .search {
|
|
|
|
--input-padding-vertical: 10px;
|
|
|
|
}
|
|
|
|
}
|
2023-05-11 16:17:16 +02:00
|
|
|
|
2023-05-12 16:27:11 +02:00
|
|
|
&.background {
|
|
|
|
--search-input-icon-ratio: 1;
|
|
|
|
--search-input-icon-color: @global-inverse-color;
|
|
|
|
--search-input-icon-color-collapsed: @global-inverse-color;
|
2023-05-12 17:06:58 +02:00
|
|
|
--search-input-icon-display: block;
|
2023-05-12 16:27:11 +02:00
|
|
|
--search-input-icon-background-color: @global-secondary-background;
|
|
|
|
--search-input-icon-background-padding: 7px;
|
|
|
|
--search-input-icon-padding-horizontal: 10px;
|
|
|
|
--search-input-icon-padding-vertical: 10px;
|
|
|
|
|
|
|
|
&.small-vertical {
|
|
|
|
--search-input-icon-padding-vertical: 6px;
|
|
|
|
}
|
2023-05-11 16:17:16 +02:00
|
|
|
}
|
|
|
|
}
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-misc() {
|
|
|
|
.search-input {
|
|
|
|
&.outer {
|
|
|
|
--search-input-shadow: @inverse-global-medium-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|