woocommerce/plugins/woocommerce-admin/client/dashboard/style.scss

238 lines
4.0 KiB
SCSS
Raw Normal View History

2018-08-02 23:10:55 +00:00
/** @format */
.woocommerce-dashboard__columns {
2018-08-06 22:34:47 +00:00
display: grid;
grid-template-columns: calc(50% - #{$gap-large/2}) calc(50% - #{$gap-large/2});
grid-column-gap: $gap-large;
2018-08-02 23:10:55 +00:00
// Auto-position fix for IE11.
> div {
@include set-grid-item-position( 2, 14 );
}
@include breakpoint( '<960px' ) {
grid-template-columns: 100%;
> div {
@include set-grid-item-position( 1, 14 );
}
2018-08-02 23:10:55 +00:00
}
}
.woocommerce-dashboard__widget {
display: flex;
align-items: center;
text-align: center;
}
.woocommerce-dashboard__widget-item {
flex: 1;
}
2019-04-30 00:35:37 +00:00
.woocommerce-dashboard-section__add-more {
margin: 0 auto;
width: 84px;
padding: 0 $gap-large $gap-large;
2019-04-30 00:35:37 +00:00
.components-popover__content {
padding: 0 $gap $gap-smaller;
}
}
.woocommerce-dashboard-section__add-more-choices {
display: flex;
justify-content: center;
}
.woocommerce-dashboard-section__add-more-btn {
display: flex;
flex-direction: column;
align-items: center;
padding: $gap;
margin: $gap-smaller;
.dashicons-arrow-right-alt {
transform: rotate(-45deg);
}
}
.woocommerce-dashboard-section__add-more-btn-title {
color: $core-grey-dark-300;
padding-top: 8px;
}
.woocommerce-dashboard-section-controls {
border-top: $border-width solid $core-grey-light-500;
padding-top: $gap-smaller;
.dashicon {
margin: 0 $gap-smaller 0 0;
vertical-align: bottom;
}
.woocommerce-ellipsis-menu__item {
padding-bottom: 10px;
}
}
.woocommerce-onboarding {
.woocommerce-stepper .woocommerce-stepper__step {
.woocommerce-stepper__step-label {
color: $muriel-gray-800;
}
&.is-active,
&.is-complete {
.woocommerce-stepper__step-icon {
background: $muriel-hot-purple-600;
color: $muriel-white;
}
.woocommerce-stepper__step-label {
color: $muriel-gray-900;
}
}
.woocommerce-spinner {
background: $muriel-hot-purple-600;
}
}
/* Muriel style overrides */
.muriel-component {
margin-top: $gap;
margin-bottom: $gap;
}
.components-base-control.has-error {
margin-bottom: $gap * 2 !important;
border-color: $muriel-red-500;
.components-base-control__help {
top: 100%;
position: absolute;
margin-top: $gap-smallest;
font-size: 12px;
font-style: normal;
color: $muriel-red-500;
}
}
.muriel-input-text {
&.empty {
.components-base-control__label {
display: none;
}
input {
top: 14px;
}
}
input[type='text']:focus {
box-shadow: none;
border: 0;
}
}
.muriel-input-text label,
.muriel-select label {
display: initial;
width: auto;
right: auto;
left: $gap;
}
.muriel-select select {
left: 15px;
}
.muriel-select.empty label {
top: 15px;
}
.muriel-select::after {
margin-top: -$gap-smallest;
}
.muriel-input-text,
.muriel-select {
&.with-value,
&.active {
label {
display: block;
top: 8px;
}
input,
select {
top: 24px;
}
}
}
.muriel-input-text.active,
.muriel-select.active {
box-shadow: 0 0 0 2px $muriel-hot-purple-600;
border-color: transparent;
}
.muriel-checkbox label.components-checkbox-control__label {
margin-left: $gap-smaller;
}
.muriel-checkbox input[type='checkbox'] {
width: 18px;
height: 18px;
}
.muriel-checkbox input[type='checkbox']:checked::before {
font-size: 18px;
margin-left: -3px;
margin-top: -1px;
}
.muriel-button.is-button {
height: 48px;
}
.muriel-checkbox input[type='checkbox']:checked {
background-color: $muriel-hot-purple-600;
border-color: $muriel-hot-purple-600;
}
.components-form-toggle {
display: inline-block;
label {
font-size: 14px;
}
.components-base-control {
display: inline-block;
}
.components-form-toggle__track {
width: 36px;
max-width: 36px;
height: 18px;
max-height: 18px;
}
.components-base-control__field {
margin-bottom: 0;
}
.muriel-checkbox label.components-checkbox-control__label {
margin-left: $gap-large;
}
&.is-checked {
.components-form-toggle__track {
background-color: $muriel-hot-purple-600;
border-color: $muriel-hot-purple-600;
}
}
}
}