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

401 lines
7.3 KiB
SCSS
Raw Normal View History

/** @format */
.woocommerce-profile-wizard__body {
.woocommerce-profile-wizard__container a {
color: $studio-pink-50;
}
.woocommerce-profile-wizard__skip.components-button.is-link {
color: $studio-gray-60;
margin-top: 0;
margin-bottom: 0;
font-weight: normal;
}
.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;
.muriel-button {
display: flex;
margin: $gap-smaller auto 0;
width: 310px;
max-width: 100%;
justify-content: center;
}
}
.woocommerce-profile-wizard__container {
.woocommerce-profile-wizard__tos {
font-size: 12px;
margin-top: 0;
margin-bottom: $gap-large;
padding: $gap-smaller;
a {
color: $studio-gray-60;
}
}
}
.woocommerce-profile-wizard__header {
height: 56px;
border-bottom: 1px solid $studio-gray-5;
display: flex;
align-items: center;
justify-content: center;
background: $studio-white;
svg.woocommerce-profile-wizard__header-logo > g {
transform: translateX(12%);
}
svg.woocommerce-profile-wizard__header-logo-with-jetpack > g {
transform: translateX(25%);
}
.woocommerce-profile-wizard__plus {
stroke: $studio-gray-80;
}
}
.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;
}
}
.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%;
}
}
.woocommerce-profile-wizard__tracking {
.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;
.muriel-checkbox label.components-checkbox-control__label {
display: inline-block;
margin-left: $gap-small;
}
}
}
.woocommerce-profile-wizard__checkbox-group {
margin: #{-$gap} #{-$gap} 0 -#{$gap};
.muriel-checkbox {
margin-top: 0;
margin-bottom: 0;
position: relative;
padding: $gap-small $gap;
min-height: 56px;
input[type='checkbox']:checked::before {
left: -1px;
top: 0;
}
&::after {
content: '';
position: absolute;
left: $gap-large * 2 + $gap;
width: calc(100% - #{$gap-large * 2 + $gap});
height: 1px;
background-color: $studio-gray-5;
bottom: 0;
}
.components-base-control {
position: relative;
}
.components-base-control__field {
margin: 0;
}
.components-checkbox-control__input {
position: absolute;
top: 7px;
left: 3px;
}
label.components-checkbox-control__label {
color: $studio-gray-80;
margin-top: $gap-smallest;
}
label.components-checkbox-control__label,
.components-base-control__help {
margin-left: $gap-large * 2;
}
.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-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__plugins-card {
.woocommerce-profile-wizard__plugins-actions {
text-align: left;
margin-left: 44px;
min-height: 28px;
button.muriel-button {
margin: 0;
height: 40px;
min-width: auto;
display: initial;
margin-right: $gap-small;
}
}
}
.woocommerce-profile-wizard__header.is-stepper {
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 {
min-width: 160px;
align-self: flex-end;
margin-bottom: 0;
}
.muriel-checkbox input[type='checkbox']:checked {
content: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($studio-white)}%27%2F%3E%3C%2Fsvg%3E');
}
.muriel-checkbox label.components-checkbox-control__label {
font-size: 13px;
}
}
}