2020-05-20 22:15:18 +00:00
|
|
|
// Set up some local color variables to make the CSS more clear
|
|
|
|
$outer-border: $core-grey-light-700;
|
2020-05-27 02:38:57 +00:00
|
|
|
$promo-actions-border: $core-grey-light-500;
|
|
|
|
$action-color: #3858e9;
|
2020-05-20 22:15:18 +00:00
|
|
|
|
2020-05-14 03:23:03 +00:00
|
|
|
.woocommerce-stats-overview {
|
|
|
|
.woocommerce-card__body {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.woocommerce-summary {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-20 22:15:18 +00:00
|
|
|
.woocommerce-stats-overview__footer {
|
|
|
|
border-top: 1px solid $outer-border;
|
|
|
|
}
|
|
|
|
|
2020-05-14 03:23:03 +00:00
|
|
|
.woocommerce-stats-overview__more-btn {
|
|
|
|
display: inline-block;
|
|
|
|
padding: $gap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-stats-overview__tabs {
|
|
|
|
.components-tab-panel__tabs {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2020-05-20 22:15:18 +00:00
|
|
|
border-bottom: 1px solid $outer-border;
|
2020-05-14 03:23:03 +00:00
|
|
|
|
2020-05-27 02:38:57 +00:00
|
|
|
.components-button {
|
|
|
|
display: block;
|
|
|
|
padding: $gap;
|
|
|
|
width: 33.33%;
|
|
|
|
margin-bottom: 4px;
|
2020-05-14 03:23:03 +00:00
|
|
|
|
2020-05-27 02:38:57 +00:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2020-05-14 03:23:03 +00:00
|
|
|
|
2020-05-27 02:38:57 +00:00
|
|
|
&.is-active {
|
|
|
|
border-bottom: 4px solid $action-color;
|
|
|
|
// Avoid the text "jumping" when border-bottom applied.
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2020-05-14 03:23:03 +00:00
|
|
|
|
2020-05-27 02:38:57 +00:00
|
|
|
&:first-child {
|
|
|
|
text-align: left;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2020-05-14 03:23:03 +00:00
|
|
|
|
2020-05-27 02:38:57 +00:00
|
|
|
&:last-child {
|
|
|
|
text-align: right;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2020-05-14 03:23:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-20 22:15:18 +00:00
|
|
|
|
|
|
|
.woocommerce-stats-overview__stats {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
.woocommerce-summary__item-container {
|
|
|
|
width: 50%;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-summary__item-container:nth-last-of-type(1) .woocommerce-summary__item {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-even .woocommerce-summary__item-container:nth-last-of-type(2) .woocommerce-summary__item {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-summary__item-container:nth-of-type(even) .woocommerce-summary__item {
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
2020-05-27 02:38:57 +00:00
|
|
|
|
|
|
|
article.woocommerce-stats-overview__install-jetpack-promo {
|
|
|
|
h3 {
|
|
|
|
margin: 16px 24px 8px;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
margin: 0 24px 16px;
|
|
|
|
}
|
|
|
|
footer {
|
|
|
|
border-top: 1px solid $promo-actions-border;
|
|
|
|
|
|
|
|
// All of this added specificity is required because styles that
|
|
|
|
// need overriding are already specified at a high level.
|
|
|
|
.woocommerce-layout & button.components-button,
|
|
|
|
.woocommerce-layout & button.components-button.is-button {
|
|
|
|
padding: 8px 16px;
|
|
|
|
margin: 16px 4px;
|
|
|
|
height: inherit;
|
|
|
|
color: $action-color;
|
|
|
|
cursor: pointer;
|
|
|
|
line-height: 2;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
&.is-busy {
|
|
|
|
background-image: linear-gradient(-45deg, lighten($action-color, 40%) 28%, #fff 0, #fff 72%, lighten($action-color, 40%) 0);
|
|
|
|
cursor: progress;
|
|
|
|
color: lighten($action-color, 20%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-layout & button.components-button.is-button.is-primary {
|
|
|
|
margin-left: 24px;
|
|
|
|
background: transparent;
|
|
|
|
border: 1px solid $action-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: $core-grey-dark-500;
|
|
|
|
background-color: #fafafa;
|
|
|
|
border-color: #999;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-busy:not(:disabled) {
|
|
|
|
background-image: linear-gradient(-45deg, $action-color 28%, darken($action-color, 20%) 0, darken($action-color, 20%) 72%, $action-color 0) !important;
|
|
|
|
color: $action-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|