2018-08-28 19:15:24 +00:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
.woocommerce-search {
|
|
|
|
position: relative;
|
|
|
|
|
2018-09-19 17:16:52 +00:00
|
|
|
.woocommerce-search__icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
left: 10px;
|
|
|
|
fill: $core-grey-light-900;
|
|
|
|
}
|
|
|
|
|
2018-08-28 19:15:24 +00:00
|
|
|
.woocommerce-search__input {
|
|
|
|
width: 100%;
|
2018-09-19 17:16:52 +00:00
|
|
|
padding: $gap-small $gap-small $gap-small 36px;
|
2018-08-28 19:15:24 +00:00
|
|
|
border: 1px solid $core-grey-light-700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-search__autocomplete-results {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
|
|
|
border: 1px solid $core-grey-light-700;
|
|
|
|
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// This a single `button` in the autocomplete popover
|
|
|
|
.woocommerce-search__autocomplete-result {
|
|
|
|
margin-bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
align-items: center;
|
|
|
|
padding: $gap-small;
|
|
|
|
color: $woocommerce;
|
|
|
|
text-decoration: underline; // @todo Not actually a link, should underline?
|
|
|
|
text-align: left;
|
|
|
|
background: $core-grey-light-100;
|
|
|
|
border-bottom: 1px solid $core-grey-light-500;
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: none;
|
|
|
|
color: $woocommerce;
|
|
|
|
background: $core-grey-light-200;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-selected,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
color: $woocommerce;
|
|
|
|
background: $white;
|
|
|
|
box-shadow: inset 0 0 0 1px $core-grey-light-200, inset 0 0 0 2px $black;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-search__result-thumbnail {
|
|
|
|
margin-right: $gap-small;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|