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

97 lines
1.9 KiB
SCSS

/** @format */
.woocommerce-search {
position: relative;
.woocommerce-search__icon {
position: absolute;
top: 10px;
left: 10px;
fill: $core-grey-light-900;
}
.woocommerce-search__inline-container {
width: 100%;
padding: 2px 2px 2px 36px;
border: 1px solid $core-grey-light-700;
background-color: $white;
&.is-active {
border-color: $input-active-border;
box-shadow: inset 0 0 0 $input-active-inner, 0 0 1px 2px $input-active-outer;
}
.woocommerce-search__token-list {
display: inline-block;
}
}
.woocommerce-search__inline-input,
.woocommerce-search__inline-input:focus {
border: none;
outline: none;
box-shadow: none;
padding: 6px 0;
}
.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;
}
}
}