Merging explore-redesign branch into develop for Explore July release #3
|
@ -10,9 +10,14 @@
|
||||||
--search-input-border-focus: var(--search-input-border);
|
--search-input-border-focus: var(--search-input-border);
|
||||||
--search-input-border-style-focus: var(--search-input-border-style);
|
--search-input-border-style-focus: var(--search-input-border-style);
|
||||||
/* Icon */
|
/* Icon */
|
||||||
|
--search-input-icon-ratio: 1.3;
|
||||||
--search-input-icon-color: @global-secondary-background;
|
--search-input-icon-color: @global-secondary-background;
|
||||||
--search-input-icon-color-collapsed: @global-color;
|
--search-input-icon-color-collapsed: @global-color;
|
||||||
--search-input-icon-color-disabled: @global-muted-color;
|
--search-input-icon-color-disabled: @global-muted-color;
|
||||||
|
--search-input-icon-display: inline;
|
||||||
|
--search-input-icon-background-color: transparent;
|
||||||
|
--search-input-icon-background-color-disabled: transparent;
|
||||||
|
--search-input-icon-background-padding: 0px;
|
||||||
--search-input-divider: @global-border-width solid @global-border;
|
--search-input-divider: @global-border-width solid @global-border;
|
||||||
--search-input-icon-padding-horizontal: 15px;
|
--search-input-icon-padding-horizontal: 15px;
|
||||||
--search-input-icon-padding-vertical: 16px;
|
--search-input-icon-padding-vertical: 16px;
|
||||||
|
@ -37,7 +42,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.collapsed {
|
&.collapsed {
|
||||||
width: calc(2 * var(--search-input-icon-padding-horizontal) + 26px);
|
width: calc(2 * (var(--search-input-icon-padding-horizontal) + var(--search-input-icon-background-padding)) + var(--search-input-icon-ratio)*20px);
|
||||||
|
|
||||||
& .search-icon {
|
& .search-icon {
|
||||||
color: var(--search-input-icon-color-collapsed);
|
color: var(--search-input-icon-color-collapsed);
|
||||||
|
@ -66,10 +71,22 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
|
& > 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: var(--search-input-icon-color-disabled);
|
color: var(--search-input-icon-color-disabled);
|
||||||
cursor: default;
|
cursor: default;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
|
& > icon {
|
||||||
|
background-color: var(--search-input-icon-background-color-disabled);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,13 +132,30 @@
|
||||||
--input-font-size: 14px;
|
--input-font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&.small-vertical {
|
&.small-vertical {
|
||||||
--search-input-icon-padding-vertical: 10px;
|
--search-input-icon-padding-vertical: 10px;
|
||||||
|
|
||||||
& .search {
|
& .search {
|
||||||
--input-padding-vertical: 10px;
|
--input-padding-vertical: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.background {
|
||||||
|
--search-input-icon-ratio: 1;
|
||||||
|
--search-input-icon-color: @global-inverse-color;
|
||||||
|
--search-input-icon-color-collapsed: @global-inverse-color;
|
||||||
|
--search-input-icon-color-disabled: @global-meta-color;
|
||||||
|
--search-input-icon-display: inline-block;
|
||||||
|
--search-input-icon-background-color: @global-secondary-background;
|
||||||
|
--search-input-icon-background-color-disabled: @global-muted-color;
|
||||||
|
--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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue