2018-06-20 15:09:37 +00:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
.woocommerce-table {
|
2018-08-01 16:00:45 +00:00
|
|
|
.woocommerce-card__body {
|
|
|
|
padding: 0;
|
2018-10-17 21:56:09 +00:00
|
|
|
position: relative;
|
2018-08-01 16:00:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-card__action,
|
|
|
|
.woocommerce-card__menu {
|
|
|
|
justify-self: flex-end;
|
|
|
|
}
|
2018-09-18 14:12:13 +00:00
|
|
|
|
|
|
|
&.has-compare {
|
|
|
|
.woocommerce-card__action {
|
2018-10-10 14:12:00 +00:00
|
|
|
align-items: center;
|
2018-09-18 14:12:13 +00:00
|
|
|
text-align: left;
|
|
|
|
display: grid;
|
|
|
|
width: 100%;
|
|
|
|
grid-template-columns: auto 1fr auto;
|
|
|
|
}
|
2018-10-10 14:12:00 +00:00
|
|
|
.woocommerce-search {
|
|
|
|
margin: 0 $gap;
|
|
|
|
}
|
2018-10-17 23:01:57 +00:00
|
|
|
.woocommerce-compare-button {
|
2018-10-10 14:12:00 +00:00
|
|
|
padding: 3px $gap-small;
|
|
|
|
height: auto;
|
|
|
|
}
|
2018-09-18 14:12:13 +00:00
|
|
|
}
|
2018-10-17 21:56:09 +00:00
|
|
|
|
2018-10-17 23:01:57 +00:00
|
|
|
button.woocommerce-table__download-button.is-link {
|
|
|
|
padding: 6px $gap-small;
|
|
|
|
color: #000000;
|
|
|
|
text-decoration: none;
|
|
|
|
svg {
|
|
|
|
margin-right: $gap-smaller;
|
|
|
|
max-width: 18px;
|
|
|
|
width: 24px;
|
|
|
|
max-width: 24px;
|
|
|
|
}
|
|
|
|
|
2018-10-17 21:56:09 +00:00
|
|
|
.woocommerce-pagination {
|
|
|
|
padding-top: $gap;
|
|
|
|
padding-bottom: $gap;
|
|
|
|
z-index: 1;
|
|
|
|
background: white;
|
|
|
|
position: relative;
|
|
|
|
}
|
2018-06-20 15:09:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-table__caption {
|
|
|
|
@include font-size( 24 );
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-table__table {
|
2018-08-01 16:00:45 +00:00
|
|
|
overflow-x: auto;
|
2018-10-17 21:56:09 +00:00
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 41px;
|
|
|
|
height: 100%;
|
|
|
|
background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-scrollable:after {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2018-08-01 16:00:45 +00:00
|
|
|
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-08-13 15:25:32 +00:00
|
|
|
|
|
|
|
tr:hover,
|
|
|
|
tr:focus-within {
|
|
|
|
background-color: $core-grey-light-200;
|
|
|
|
}
|
2018-06-20 15:09:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-table__header,
|
|
|
|
.woocommerce-table__item {
|
2018-09-13 09:05:26 +00:00
|
|
|
@include font-size( 13 );
|
2018-08-01 16:00:45 +00:00
|
|
|
padding: $gap $gap-large;
|
|
|
|
border-bottom: 1px solid $core-grey-light-500;
|
2018-06-20 15:09:37 +00:00
|
|
|
text-align: left;
|
2018-08-13 15:25:32 +00:00
|
|
|
|
2018-10-12 21:29:25 +00:00
|
|
|
> a:only-child {
|
|
|
|
display: block;
|
|
|
|
margin: ($gap*-1) ($gap-large*-1);
|
|
|
|
padding: $gap $gap-large;
|
|
|
|
}
|
2018-08-13 15:25:32 +00:00
|
|
|
|
2018-10-12 21:29:25 +00:00
|
|
|
a {
|
2018-08-13 15:25:32 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: $woocommerce-700;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-31 14:43:25 +00:00
|
|
|
.is-placeholder {
|
|
|
|
@include placeholder();
|
|
|
|
display: inline-block;
|
|
|
|
height: 16px;
|
|
|
|
max-width: 120px;
|
|
|
|
width: 80%;
|
|
|
|
}
|
|
|
|
|
2018-10-11 08:30:51 +00:00
|
|
|
&:not(.is-left-aligned) {
|
2018-08-13 15:25:32 +00:00
|
|
|
text-align: right;
|
|
|
|
|
2018-10-11 08:30:51 +00:00
|
|
|
.rtl & {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2018-08-13 15:25:32 +00:00
|
|
|
button {
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
2018-10-11 08:30:51 +00:00
|
|
|
}
|
2018-08-31 14:43:25 +00:00
|
|
|
|
2018-10-11 08:30:51 +00:00
|
|
|
&.is-numeric .is-placeholder {
|
|
|
|
max-width: 40px;
|
2018-08-13 15:25:32 +00:00
|
|
|
}
|
2018-06-20 15:09:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
th.woocommerce-table__item {
|
2018-10-11 08:30:51 +00:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2018-06-20 15:09:37 +00:00
|
|
|
.woocommerce-table__header {
|
2018-08-01 16:00:45 +00:00
|
|
|
padding: $gap-smaller $gap-large;
|
2018-06-20 15:09:37 +00:00
|
|
|
background-color: #f8f9fa;
|
2018-08-01 16:00:45 +00:00
|
|
|
border-bottom: 1px solid $core-grey-light-700;
|
2018-10-17 15:42:33 +00:00
|
|
|
font-weight: bold;
|
|
|
|
white-space: nowrap;
|
2018-06-20 15:09:37 +00:00
|
|
|
|
|
|
|
& + .woocommerce-table__header {
|
2018-08-01 16:00:45 +00:00
|
|
|
border-left: 1px solid $core-grey-light-700;
|
2018-10-11 08:30:51 +00:00
|
|
|
|
|
|
|
.rtl & {
|
|
|
|
border-left: 0;
|
|
|
|
border-right: 1px solid $core-grey-light-700;
|
|
|
|
}
|
2018-06-20 15:09:37 +00:00
|
|
|
}
|
|
|
|
|
2018-10-17 15:42:33 +00:00
|
|
|
&.is-left-aligned.is-sortable {
|
|
|
|
padding-left: $gap;
|
|
|
|
svg {
|
|
|
|
display: inline-flex;
|
|
|
|
order: 1;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-01 16:00:45 +00:00
|
|
|
.components-button.is-button {
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
2018-08-13 15:25:32 +00:00
|
|
|
padding: $gap-smaller $gap-large $gap-smaller 0;
|
2018-06-20 15:09:37 +00:00
|
|
|
vertical-align: middle;
|
2018-08-01 16:00:45 +00:00
|
|
|
line-height: 1;
|
|
|
|
border: none;
|
|
|
|
background: transparent;
|
|
|
|
box-shadow: none !important;
|
|
|
|
|
2018-10-11 08:30:51 +00:00
|
|
|
.rtl & {
|
|
|
|
padding: $gap-smaller 0 $gap-smaller $gap-large;
|
|
|
|
}
|
|
|
|
|
2018-08-01 16:00:45 +00:00
|
|
|
// @todo Add interactive styles
|
|
|
|
&:hover {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-sortable {
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.gridicon {
|
|
|
|
visibility: hidden;
|
|
|
|
margin-left: $gap-smallest;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-sorted .components-button,
|
|
|
|
.components-button:hover,
|
|
|
|
.components-button:focus {
|
|
|
|
.gridicon {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-table__summary {
|
|
|
|
margin: $gap 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-table__summary-item {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
.woocommerce-table__summary-label,
|
|
|
|
.woocommerce-table__summary-value {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-table__summary-label {
|
|
|
|
margin-left: $gap-smallest;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-table__summary-value {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
& + .woocommerce-table__summary-item:before {
|
|
|
|
content: '/';
|
|
|
|
margin: 0 $gap-smallest;
|
2018-06-20 15:09:37 +00:00
|
|
|
}
|
|
|
|
}
|