woocommerce/plugins/woocommerce-admin/client/components/search/style.scss

73 lines
1.4 KiB
SCSS
Raw Normal View History

/** @format */
.woocommerce-search {
position: relative;
.woocommerce-search__icon {
position: absolute;
top: 10px;
left: 10px;
fill: $core-grey-light-900;
}
.woocommerce-search__input {
width: 100%;
padding: $gap-smaller $gap-small $gap-smaller 36px;
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;
position: absolute;
top: 36px;
left: 0;
right: 0;
z-index: 10;
&: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;
}
}
}