2018-11-29 18:10:08 +00:00
|
|
|
|
.woocommerce-search-list {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 0 0 $gap;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__selected {
|
|
|
|
|
margin: $gap 0;
|
|
|
|
|
padding: $gap 0 0;
|
2018-12-03 21:05:12 +00:00
|
|
|
|
// 76px is the height of 1 row of tags.
|
|
|
|
|
min-height: 76px;
|
2018-11-29 18:10:08 +00:00
|
|
|
|
border-top: 1px solid $core-grey-light-500;
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__selected-header {
|
|
|
|
|
margin-bottom: $gap-smaller;
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
margin-left: $gap-small;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-tag__text {
|
|
|
|
|
max-width: 13em;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__search {
|
|
|
|
|
margin: $gap 0;
|
|
|
|
|
padding: $gap 0 0;
|
|
|
|
|
border-top: 1px solid $core-grey-light-500;
|
|
|
|
|
|
|
|
|
|
.components-base-control__field {
|
|
|
|
|
margin-bottom: $gap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__list {
|
|
|
|
|
padding: 0;
|
2019-01-14 19:37:35 +00:00
|
|
|
|
max-height: 17em;
|
2018-12-03 18:06:47 +00:00
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
overflow-y: auto;
|
2018-11-29 18:10:08 +00:00
|
|
|
|
border-top: 1px solid $core-grey-light-500;
|
|
|
|
|
border-bottom: 1px solid $core-grey-light-500;
|
|
|
|
|
|
2018-12-04 00:17:22 +00:00
|
|
|
|
&.is-loading {
|
|
|
|
|
padding: $gap-small 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.is-not-found {
|
|
|
|
|
padding: $gap-small 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__not-found-icon,
|
|
|
|
|
.woocommerce-search-list__not-found-text {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__not-found-icon {
|
|
|
|
|
margin-right: $gap;
|
|
|
|
|
|
|
|
|
|
.gridicon {
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.components-spinner {
|
|
|
|
|
float: none;
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-29 18:10:08 +00:00
|
|
|
|
.components-menu-group__label {
|
|
|
|
|
@include visually-hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& > [role="menu"] {
|
|
|
|
|
border: 1px solid $core-grey-light-500;
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__item {
|
2018-11-30 22:29:43 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2018-11-29 18:10:08 +00:00
|
|
|
|
margin-bottom: 0;
|
2019-01-14 19:37:35 +00:00
|
|
|
|
padding: $gap-small $gap;
|
2018-11-29 18:10:08 +00:00
|
|
|
|
background: $white;
|
|
|
|
|
// !important to keep the border around on hover
|
|
|
|
|
border-bottom: 1px solid $core-grey-light-500 !important;
|
|
|
|
|
color: $core-grey-dark-500;
|
|
|
|
|
|
2018-12-19 16:56:44 +00:00
|
|
|
|
@include hover-state {
|
|
|
|
|
background: $core-grey-light-100;
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-20 22:26:51 +00:00
|
|
|
|
&:last-child {
|
2018-12-19 16:56:44 +00:00
|
|
|
|
border-bottom: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-03 16:25:32 +00:00
|
|
|
|
.woocommerce-search-list__item-state {
|
2018-11-30 22:29:43 +00:00
|
|
|
|
flex: 0 0 16px;
|
|
|
|
|
margin-right: $gap-smaller;
|
2019-01-14 19:37:35 +00:00
|
|
|
|
// Set an explicit height to ensure vertical alignment
|
|
|
|
|
height: 24px;
|
2018-11-30 22:29:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-19 16:56:44 +00:00
|
|
|
|
.woocommerce-search-list__item-label {
|
|
|
|
|
display: flex;
|
2018-11-30 22:29:43 +00:00
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-19 16:56:44 +00:00
|
|
|
|
// Anything deeper than 5 levels will use this fallback depth
|
2018-12-19 22:34:28 +00:00
|
|
|
|
&[class*="depth-"] .woocommerce-search-list__item-label:before {
|
|
|
|
|
margin-right: $gap-smallest;
|
|
|
|
|
content: repeat( '— ', 5 );
|
2018-11-29 18:10:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-19 22:34:28 +00:00
|
|
|
|
&.depth-0 .woocommerce-search-list__item-label:before {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
content: '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@for $i from 1 to 5 {
|
|
|
|
|
&.depth-#{$i} .woocommerce-search-list__item-label:before {
|
|
|
|
|
content: repeat( '— ', $i );
|
2018-12-19 16:56:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__item-name {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__item-prefix {
|
|
|
|
|
display: none;
|
|
|
|
|
color: $core-grey-dark-300;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.is-searching,
|
|
|
|
|
&.is-skip-level {
|
2018-12-19 22:34:28 +00:00
|
|
|
|
.woocommerce-search-list__item-label {
|
|
|
|
|
// Un-flex the label, so the prefix (breadcrumbs) and name are aligned.
|
2018-12-19 16:56:44 +00:00
|
|
|
|
display: inline-block;
|
2018-12-19 22:34:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__item-prefix {
|
|
|
|
|
display: inline;
|
2018-12-19 16:56:44 +00:00
|
|
|
|
|
|
|
|
|
&:after {
|
2018-12-19 22:34:28 +00:00
|
|
|
|
margin-right: $gap-smallest;
|
2018-12-19 16:56:44 +00:00
|
|
|
|
content: " ›";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.is-searching {
|
|
|
|
|
.woocommerce-search-list__item-name {
|
|
|
|
|
color: $core-grey-dark-900;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__item-count {
|
|
|
|
|
flex: 0;
|
|
|
|
|
padding: $gap-smallest/2 $gap-smaller;
|
|
|
|
|
border: 1px solid $core-grey-light-500;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
color: $core-grey-dark-300;
|
|
|
|
|
background: $white;
|
2018-11-29 18:10:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-10 18:16:37 +00:00
|
|
|
|
|
|
|
|
|
.components-panel {
|
|
|
|
|
.woocommerce-search-list {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__selected {
|
|
|
|
|
margin: 0 0 $gap;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border-top: none;
|
|
|
|
|
// 54px is the height of 1 row of tags in the sidebar.
|
|
|
|
|
min-height: 54px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-search-list__search {
|
|
|
|
|
margin: 0 0 $gap;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border-top: none;
|
|
|
|
|
}
|
|
|
|
|
}
|