217 lines
3.8 KiB
SCSS
217 lines
3.8 KiB
SCSS
.woocommerce-task-dashboard__container {
|
|
.woocommerce-homescreen-card {
|
|
max-width: none;
|
|
width: 100%;
|
|
}
|
|
.woocommerce-task-card.is-loading {
|
|
.woocommerce-card__body {
|
|
border-top: 1px solid $studio-gray-5;
|
|
}
|
|
|
|
.components-card__header {
|
|
background: #fff;
|
|
height: 130px;
|
|
display: block;
|
|
.is-placeholder {
|
|
margin: 20px;
|
|
width: 100%;
|
|
height: 90px;
|
|
}
|
|
}
|
|
|
|
.wooocommerce-task-card__header {
|
|
align-self: inherit;
|
|
}
|
|
|
|
.is-placeholder {
|
|
@include placeholder();
|
|
display: inline-block;
|
|
height: 16px;
|
|
}
|
|
|
|
.woocommerce-card__title {
|
|
.is-placeholder {
|
|
width: 70%;
|
|
height: 28px;
|
|
}
|
|
}
|
|
|
|
.woocommerce-task-list__item-before {
|
|
.is-placeholder {
|
|
height: 36px;
|
|
width: 36px;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
.woocommerce-task-list__item-text {
|
|
.is-placeholder {
|
|
width: 80%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.woocommerce-task-dashboard__body .woocommerce-task-dashboard__container .woocommerce-task-card.completed {
|
|
display: block;
|
|
.components-card__header {
|
|
display: block;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5em;
|
|
font-weight: normal;
|
|
margin-top: 22px;
|
|
}
|
|
|
|
.wooocommerce-task-card__header {
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
button.is-secondary {
|
|
margin-right: 12px;
|
|
}
|
|
}
|
|
|
|
.woocommerce-task-dashboard__container.two-column-experiment {
|
|
max-width: 1032px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin: 0 auto;
|
|
justify-content: space-between;
|
|
|
|
ul li.complete .woocommerce-task-list__item-title {
|
|
font-weight: normal;
|
|
}
|
|
|
|
// Single column mode
|
|
@mixin single-column {
|
|
ul {
|
|
display: block;
|
|
li {
|
|
display: grid;
|
|
grid-template-columns: 48px auto 48px;
|
|
border-right: none;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
li.is-active {
|
|
box-shadow: inset 5px 0 0 0 var(--wp-admin-theme-color);
|
|
transition: box-shadow 0.1s linear;
|
|
}
|
|
}
|
|
.woocommerce-task-list__item-text {
|
|
display: block;
|
|
padding: 0;
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
&:not(.two-columns) {
|
|
@include single-column;
|
|
}
|
|
|
|
ul {
|
|
display: flex;
|
|
li {
|
|
display: block;
|
|
width: 100%;
|
|
border-right: 1px solid #e0e0e0;
|
|
border-top: none;
|
|
padding: 25px;
|
|
}
|
|
li:last-child {
|
|
border-right: none;
|
|
}
|
|
li.is-active {
|
|
box-shadow: inset 0 -4px 0 0 var(--wp-admin-theme-color);
|
|
transition: box-shadow 0.1s linear;
|
|
}
|
|
|
|
li.is-active::after {
|
|
background-color: var(--wp-admin-theme-color);
|
|
opacity: 0.1;
|
|
content: '';
|
|
top: 0;
|
|
left: 0;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
.woocommerce-task-list__item:not(.complete) .woocommerce-task__icon {
|
|
border: 1px solid var(--wp-admin-theme-color);
|
|
}
|
|
|
|
.woocommerce-task-list__item-before {
|
|
display: block;
|
|
padding: 0;
|
|
}
|
|
|
|
.woocommerce-task-list__item-text {
|
|
display: block;
|
|
padding: 0;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.numbered-circle {
|
|
justify-content: center;
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
@for $i from 1 through 10 {
|
|
.woocommerce-task-list__item:not(.complete).index-#{$i} .woocommerce-task__icon::after {
|
|
content: '#{$i}';
|
|
@extend .numbered-circle;
|
|
color: var(--wp-admin-theme-color);
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
@include single-column;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
.woocommerce-task-dashboard__body .woocommerce-task-dismiss-modal {
|
|
width: 565px;
|
|
max-width: 100%;
|
|
|
|
.components-modal__header {
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.woocommerce-usage-modal__message {
|
|
box-sizing: border-box;
|
|
border-bottom: 1px solid #ddd;
|
|
padding: 0 32px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
background: #fff;
|
|
align-items: center;
|
|
height: 60px;
|
|
z-index: 10;
|
|
position: relative;
|
|
position: sticky;
|
|
top: 0;
|
|
margin: 0 -32px 24px;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.woocommerce-usage-modal__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: $gap;
|
|
|
|
button {
|
|
margin-left: $gap;
|
|
}
|
|
}
|
|
}
|