Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3965-update-the-settings-design-in-accordance-with-the-latest-figma-files

This commit is contained in:
Daniel Dudzic 2024-12-08 17:33:33 +08:00
commit cc8482c340
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
144 changed files with 5286 additions and 2141 deletions

View file

@ -18,7 +18,7 @@
}
}
&-image-badge {
.ppcp-r-badge-box__title-text:not(:empty) + .ppcp-r-badge-box__title-image-badge {
margin-left: 7px;
img {

View file

@ -5,16 +5,16 @@ button.components-button, a.components-button {
}
&:disabled {
color: $color-white;
color: $color-gray-700;
}
border-radius: 2px;
padding: 14px 17px;
border-radius: 50px;
padding: 15px 32px;
height: auto;
}
&.is-primary {
@include font(13, 20, 400);
@include font(14, 18, 900);
&:not(:disabled) {
background-color: $color-blueberry;

View file

@ -21,23 +21,25 @@
}
}
&__checkbox-value {
@include hide-input-field;
&__checkbox {
position: relative;
&:not(:checked) + .ppcp-r__checkbox-presentation img {
display: none;
input {
margin: 0;
border-color: $color-gray-600;
&:checked {
background-color: $color-blueberry;
border-color:$color-blueberry;
}
}
&:checked {
+ .ppcp-r__checkbox-presentation {
width: 20px;
height: 20px;
border: none;
.components-checkbox-control__input-container {
margin: 0;
}
img {
border-radius: 2px;
}
}
.components-base-control__field {
margin: 0;
}
}

View file

@ -15,7 +15,7 @@
&__content {
margin-top: 60px;
padding:0 24px 28px 24px;
padding: 0 24px 28px 24px;
}
}
@ -96,6 +96,36 @@
margin-top: 2px;
}
}
.components-radio-control {
.components-flex {
gap: 18px;
}
label {
@include font(14, 20, 400);
color: $color-black;
}
&__option {
gap: 18px;
}
&__input {
border-color: $color-gray-700;
margin-right: 0;
&:checked {
border: 1px solid $color-gray-700;
background-color: $color-white;
&::before {
transform: translate(3px, 3px);
border-width: 6px;
border-color: $color-blueberry;
}
}
}
}
}
.ppcp-r-modal__field-row--save button.is-primary {

View file

@ -2,13 +2,22 @@
display: flex;
align-items: center;
&__space,
&__line {
height: 1px;
background-color: $color-gray-600;
margin: 0;
display: block;
width: 100%;
}
&__line {
background-color: $color-gray-400;
height: 1px;
}
&__space {
margin-bottom: 48px;
}
&__text {
color: $color-gray;
@include font(12, 24, 500, 0.8px);

View file

@ -4,17 +4,7 @@
&__title {
text-align: center;
@include font(20, 28, 700);
margin: 0 0 32px 0;
}
&__description {
text-align: center;
@include font(14, 22, 400);
font-style: italic;
a {
color: $color-gray-700;
}
margin: 32px 0 32px 0;
}
&__wrapper {

View file

@ -1,7 +1,8 @@
body:has(.ppcp-r-container--onboarding) {
background-color: #fff !important;
.notice, .nav-tab-wrapper.woo-nav-tab-wrapper, .woocommerce-layout, .wrap.woocommerce form > h2, #screen-meta-links {
.notice, .nav-tab-wrapper.woo-nav-tab-wrapper, .woocommerce-layout__header, .wrap.woocommerce form > h2, #screen-meta-links {
display: none !important;
visibility: hidden;
}
}

View file

@ -1,6 +1,7 @@
@import './onboarding/step-welcome';
@import './onboarding/step-business';
@import './onboarding/step-products';
@import './onboarding/step-payment-methods';
.ppcp-r-tabs.onboarding,
.ppcp-r-container--onboarding {

View file

@ -49,6 +49,17 @@
}
}
.ppcp-r__checkbox {
.components-flex {
gap: 12px;
}
label {
@include font(13, 20, 400);
color: $color-blueberry;
}
}
&__description {
@include font(13, 20, 400);
color: $color-blueberry;

View file

@ -0,0 +1,38 @@
.ppcp-r-page-optional-payment-methods {
.ppcp-r-select-box:first-child {
.ppcp-r-select-box__title {
margin-bottom: 20px;
}
}
}
.ppcp-r-optional-payment-methods {
&__wrapper {
.ppcp-r-badge-box {
margin: 0 0 24px 0;
&:last-child {
margin: 0;
}
}
.ppcp-r-badge-box__description {
margin: 12px 0 0 0;
@include font(14, 20, 400);
}
}
&__description {
margin: 32px 0 0 0;
text-align: center;
@include font(14, 22, 400);
font-style: italic;
a {
color: $color-gray-700;
}
}
&__separator {
margin: 0 0 24px 0;
}
}

View file

@ -16,27 +16,22 @@
text-align: center;
}
.ppcp-r-page-welcome-or-separator {
margin: 0 0 16px 0;
}
.ppcp-r-page-welcome-mode-separator {
margin: 0 0 48px 0;
.ppcp-r-separator__line {
background-color: $color-gray-300;
}
}
.components-base-control__field {
margin: 0 0 24px 0;
}
.ppcp-r-toggle-block__toggled-content > button{
@include small-button;
color: $color-white;
border: none;
}
.client-id-error {
color: #cc1818;
margin: -16px 0 24px;
@include font(11, 16, 450);
}
.onboarding-advanced-options {
max-width: 800px;
}

View file

@ -0,0 +1,121 @@
.ppcp-r-styling {
display: flex;
border: 1px solid $color-gray-200;
border-radius: 8px;
overflow: hidden;
&__section:not(:last-child) {
border-bottom: 1px solid black;
padding-bottom: 24px;
margin-bottom: 28px;
border-bottom: 1px solid $color-gray-600;
}
&__main-title {
@include font(14, 20, 600);
color: $color-gray-800;
margin: 0 0 8px 0;
display: block;
}
&__description {
@include font(13, 20, 400);
color: $color-gray-800;
margin: 0 0 18px 0;
}
&__settings {
width: 422px;
background-color: $color-white;
padding: 48px;
}
&__preview {
width: calc(100% - 422px);
background-color: #FAF8F5;
display: flex;
align-items: center;
&-inner {
width: 100%;
padding: 24px;
}
}
&__section--rc {
.ppcp-r-styling__title {
@include font(13, 20, 600);
color: $color-black;
display: block;
margin: 0 0 18px 0;
}
}
&__section--empty.ppcp-r-styling__section {
padding-bottom: 0;
margin-bottom: 0;
border-bottom: none;
}
&__select {
label {
@include font(13, 16, 600);
color: $color-black;
margin: 0;
text-transform: none;
}
select {
@include font(13, 20, 400);
}
}
.ppcp-r__checkbox {
.components-checkbox-control {
&__label {
@include font(13, 20, 400);
color: $color-black;
}
}
.components-flex {
gap: 12px;
}
}
&__payment-method-checkboxes {
display: flex;
flex-direction: column;
gap: 24px;
}
}
.ppcp-r {
&__horizontal-control {
.components-flex {
flex-direction: row;
justify-content: flex-start;
gap: 32px;
}
.components-radio-control {
&__option {
gap: 12px;
input {
margin: 0;
}
label {
@include font(13, 20, 400);
color: $color-black;
}
}
input {
margin: 0;
}
}
}
}