woocommerce/plugins/woocommerce-admin/client/profile-wizard/style.scss

465 lines
8.2 KiB
SCSS

.woocommerce-profile-wizard__body {
.woocommerce-profile-wizard__container a {
color: $studio-pink-50;
}
.woocommerce-profile-wizard__continue {
line-height: 32px;
}
.woocommerce-card {
margin-top: $gap;
h1,
h2,
h3 {
color: $studio-gray-80;
}
color: $studio-gray-60;
text-align: left;
button.is-button {
display: flex;
margin: $gap-smaller auto 0;
width: 310px;
max-width: 100%;
justify-content: center;
}
.business-competitors .woocommerce-select-control__listbox {
max-height: unset;
}
}
.woocommerce-profile-wizard__card-actions {
text-align: center;
.components-button {
margin-top: $gap-small;
}
}
.woocommerce-profile-wizard__header {
height: 56px;
border-bottom: 1px solid $studio-gray-5;
display: flex;
align-items: center;
justify-content: center;
background: $studio-white;
}
.woocommerce-profile-wizard__header-title {
color: $studio-gray-80;
font-size: 24px;
line-height: 32px;
font-weight: 400;
margin-bottom: $gap-smaller;
}
.woocommerce-profile-wizard__header-subtitle {
color: $studio-gray-60;
font-size: 16px;
line-height: 24px;
font-weight: 400;
margin-top: $gap-smaller;
margin-bottom: $gap;
}
.woocommerce-profile-wizard__intro-paragraph {
margin-top: 5px;
margin-bottom: 18px;
}
.woocommerce-profile-wizard__container {
margin-top: $gap-larger;
margin-left: auto;
margin-right: auto;
> * {
max-width: 476px;
margin-left: auto;
margin-right: auto;
}
@include breakpoint( '<782px' ) {
padding-left: $gap;
padding-right: $gap;
margin-bottom: 56 + $gap; /* 56px is height of footer */
margin-top: 0;
}
p,
div {
font-size: 16px;
line-height: 24px;
font-weight: 400;
}
.woocommerce-card ~ p {
font-size: 14px;
}
}
#woocommerce-layout__primary {
text-align: center;
margin: 0;
width: 100%;
}
.woocommerce-layout .woocommerce-layout__main {
padding-right: 0;
}
.woocommerce-profile-wizard__error {
display: block;
padding: $gap;
font-size: 12px;
color: $studio-red-50;
}
.woocommerce-profile-wizard__benefit {
display: flex;
svg:first-child {
width: 24px;
min-width: 24px;
margin-right: $gap-large;
}
.woocommerce-profile-wizard__benefit-title {
font-size: 16px;
font-weight: 400;
margin-top: 0;
margin-bottom: $gap-smaller;
}
.woocommerce-profile-wizard__benefit-content {
margin-left: $gap;
p {
padding-bottom: $gap;
margin-top: 0;
border-bottom: 1px solid $studio-gray-5;
font-size: 14px;
}
}
.woocommerce-profile-wizard__benefit-toggle {
padding-top: $gap-larger;
margin-left: $gap;
}
&:last-child p {
border-bottom: 0;
margin-bottom: 0;
}
}
.woocommerce-profile-wizard__benefits {
display: grid;
grid-gap: $gap;
grid-auto-columns: 1fr;
grid-auto-flow: column;
@include breakpoint( '<960px' ) {
justify-items: center;
grid-auto-flow: row;
}
}
.woocommerce-profile-wizard__benefits-logo {
display: block;
margin: 0 auto;
}
.woocommerce-profile-wizard__benefit-card {
display: flex;
flex-direction: column;
background: $studio-gray-0;
width: 100%;
max-width: 295px;
overflow: hidden;
text-align: left;
.woocommerce-profile-wizard__benefit-card-title {
font-size: 16px;
font-weight: 600;
margin-top: 0;
margin-bottom: $gap-smaller;
}
.woocommerce-profile-wizard__benefit-card-content {
padding: #{$gap-small * 2} #{$gap * 2} #{$gap * 2} #{$gap * 2};
p {
padding: 0;
margin: 0;
font-size: 14px;
}
}
}
.woocommerce-profile-wizard__business-extension {
background: #f6f6f6;
padding-right: 4px;
padding-left: 4px;
height: 100%;
padding-top: 12px;
padding-bottom: 12px;
img {
box-sizing: unset;
max-width: 100px;
max-height: 50%;
vertical-align: middle;
}
}
.woocommerce-profile-wizard__tracking {
.woocommerce-profile-wizard__tracking-checkbox {
margin-top: $gap;
.components-checkbox-control__input[type='checkbox']:checked {
background-color: $studio-woocommerce-purple-60;
border-color: $studio-woocommerce-purple-60;
}
}
.components-form-toggle {
display: none;
}
@include breakpoint( '<782px' ) {
.components-form-toggle {
display: inline-block;
}
.components-checkbox-control__input {
display: none;
}
display: flex;
flex-direction: row-reverse;
align-items: center;
justify-content: flex-end;
}
}
.woocommerce-profile-wizard__client {
margin-bottom: $gap-large;
}
.woocommerce-profile-wizard__checkbox-group {
margin: #{-$gap} #{-$gap} 0 -#{$gap};
.woocommerce-profile-wizard__checkbox {
margin-top: 0;
margin-bottom: 0;
position: relative;
padding: $gap-small $gap;
min-height: 56px;
.components-base-control {
position: relative;
}
.components-base-control__field {
margin: 0;
}
.components-checkbox-control__input {
position: absolute;
top: 0;
left: 3px;
}
label.components-checkbox-control__label {
color: $studio-gray-80;
margin-top: $gap-smallest;
}
label.components-checkbox-control__label {
margin-left: $gap-large - $gap-smallest;
}
.components-base-control__help {
margin-left: $gap-largest + $gap-smaller;
font-style: normal;
}
.components-base-control__help {
color: $studio-gray-60;
font-size: 14px;
line-height: 20px;
margin-top: 3px;
margin-bottom: 0;
}
&:last-of-type {
&::after {
display: none;
}
}
}
.woocommerce-profile-wizard__text {
margin: 0 16px 10px;
}
svg.dashicon.components-checkbox-control__checked {
left: 1px;
top: -1px;
}
}
@include breakpoint( '<600px' ) {
svg.dashicon.components-checkbox-control__checked {
left: -2px;
top: -1px;
width: 21px;
height: 21px;
}
}
.woocommerce-select-control__control {
margin: $gap 0;
padding-right: $gap + 24px;
&.is-active {
box-shadow: 0 0 0 1px $studio-woocommerce-purple-60;
border-color: $studio-woocommerce-purple-60;
}
.components-base-control__label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - #{$gap * 2} - 24px);
}
&::after {
display: block;
pointer-events: none;
cursor: pointer;
position: absolute;
float: right;
line-height: 56px;
font-family: dashicons, sans-serif;
font-size: 20px;
content: '\f140';
z-index: 1;
height: 24px;
width: 24px;
margin-top: 0;
top: 0;
right: $gap;
bottom: $gap;
color: $studio-black;
}
}
#wpadminbar {
display: none;
}
#wpbody {
padding-top: 0;
}
}
.woocommerce-profile-wizard__benefits-card.woocommerce-card {
display: inline-block;
max-width: 100%;
text-align: center;
.woocommerce-card__body {
padding: $gap-large * 2;
}
.woocommerce-profile-wizard__header-title {
margin-top: $gap-large;
margin-bottom: $gap-large;
}
.woocommerce-profile-wizard__card-actions {
margin-top: $gap;
display: inline-flex;
.components-button {
width: auto;
&:first-child {
margin-right: $gap;
}
}
}
.woocommerce-profile-wizard__benefits-install-notice {
margin-top: $gap-large;
margin-bottom: 0;
font-size: 14px;
color: $studio-gray-40;
}
}
.woocommerce-profile-wizard__plugins-card {
.woocommerce-profile-wizard__plugins-actions {
text-align: left;
margin-left: $gap-largest + $gap-smallest;
button.is-button {
margin: $gap 0 0;
height: 40px;
min-width: auto;
display: initial;
margin-right: $gap-small;
}
}
}
.woocommerce-profile-wizard__header {
svg > g {
transform: initial;
}
@include breakpoint( '<782px' ) {
position: fixed;
z-index: 999;
width: 100%;
bottom: 0;
border-top: 1px solid $studio-gray-5;
border-bottom: none;
}
.woocommerce-stepper {
margin: 0 $gap 0 $gap;
width: 100%;
}
.woocommerce-stepper__steps {
margin: 0;
}
}
.components-modal__frame.woocommerce-profile-wizard__usage-modal {
width: 600px;
max-width: 100%;
.components-modal__header {
border-bottom: 0;
margin-bottom: 0;
}
.woocommerce-profile-wizard__usage-wrapper {
flex-grow: 1;
display: flex;
flex-direction: column;
a {
color: $studio-gray-60;
}
button.is-primary {
align-self: flex-end;
}
}
}