mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Merge remote-tracking branch 'origin/trunk' into PCP-3882-Create-settings-placeholder-page-in-new-settings-module
# Conflicts: # modules/ppcp-settings/resources/css/_global.scss # modules/ppcp-settings/resources/js/Components/ReusableComponents/OnboardingSettingsToggleBlock.js # modules/ppcp-settings/resources/js/Components/Screens/Onboarding/StepWelcome.js # yarn.lock
This commit is contained in:
commit
cf543bb6a1
50 changed files with 1702 additions and 7606 deletions
|
@ -0,0 +1,27 @@
|
|||
.ppcp-r-accordion {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
&--title {
|
||||
@include font(14, 32, 450);
|
||||
color: $color-gray-900;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin: 24px auto;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&--content {
|
||||
margin: 24px 0 0;
|
||||
}
|
||||
|
||||
&.ppcp--is-open {
|
||||
.ppcp-r-accordion--icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -12,12 +12,10 @@ button.components-button, a.components-button {
|
|||
border-radius: 2px;
|
||||
padding: 14px 17px;
|
||||
height: auto;
|
||||
|
||||
|
||||
}
|
||||
|
||||
&.is-primary {
|
||||
@include font(13, 16, 500);
|
||||
@include font(13, 20, 400);
|
||||
color:$color-white;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,19 +1,65 @@
|
|||
.ppcp-r-navigation {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
.ppcp-r-navigation-container {
|
||||
padding: 24px 48px;
|
||||
margin: 0 -20px 48px -20px;
|
||||
border-bottom: 1px solid $color-gray-300;
|
||||
position: relative;
|
||||
|
||||
.is-primary {
|
||||
min-width: 196px;
|
||||
justify-content: center;
|
||||
.ppcp-r-navigation {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
button.is-primary {
|
||||
padding: 10px 18px;
|
||||
justify-content: center;
|
||||
margin: 0 0 0 12px;
|
||||
&:not(:disabled) {
|
||||
background-color: $color-blueberry;
|
||||
}
|
||||
}
|
||||
|
||||
button.is-tertiary {
|
||||
@include font(16, 24, 600);
|
||||
color: $color-gray-900;
|
||||
&:hover{
|
||||
background-color:none;
|
||||
background:none;
|
||||
}
|
||||
}
|
||||
|
||||
&--left {
|
||||
&__link {
|
||||
@include font(20, 28, 400);
|
||||
color: $color-gray-900;
|
||||
text-decoration: none;
|
||||
padding: 0 0 0 18px;
|
||||
}
|
||||
}
|
||||
|
||||
&--right a{
|
||||
@include font(13, 20, 400);
|
||||
color: $color-blueberry;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&--progress-bar {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0;
|
||||
background-color: $color-blueberry;
|
||||
height: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.is-tertiary {
|
||||
padding: 10px 17px;
|
||||
@media screen and (max-width: 480px) {
|
||||
padding: 24px 35px;
|
||||
.ppcp-r-navigation {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 8px;
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
&--progress-bar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
&__description {
|
||||
@include font(14, 22, 400);
|
||||
margin: 0;
|
||||
margin: 0 20%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
.ppcp-r-toggle-block {
|
||||
position: relative;
|
||||
|
||||
&__wrapper {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
gap: 12px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&__switch {
|
||||
|
@ -16,6 +19,7 @@
|
|||
display: block;
|
||||
margin: 0 0 4px 0;
|
||||
color: $color-gray-900;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&__content-description {
|
||||
|
@ -27,4 +31,10 @@
|
|||
&__toggled-content {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
&.ppcp--is-loading {
|
||||
pointer-events: none;
|
||||
|
||||
--spinner-overlay-color: #fff4;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
.ppcp-r-spinner-overlay {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
background: var(--spinner-overlay-color);
|
||||
|
||||
.components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
.ppcp-r-welcome-docs {
|
||||
margin: 0 0 48px 0;
|
||||
|
||||
&__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;
|
||||
}
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
padding: 8px;
|
||||
margin: 0 0 48px 0;
|
||||
|
||||
&--one-col .ppcp-r-badge-box {
|
||||
margin: 0 0 24px 0;
|
||||
}
|
||||
|
||||
&:not(&--one-col) {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
flex: 1;
|
||||
|
||||
> p {
|
||||
margin: 0;
|
||||
@include font(13, 16, 400);
|
||||
color: $color-gray-700;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
padding-right: 48px;
|
||||
border-right: 1px solid $color-gray-200;
|
||||
margin-right: 48px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
border-right: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
|
||||
&:not(:last-child) {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ppcp-r-page-welcome-mode-separator {
|
||||
margin: 8px 0 24px 0 !important;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
body:has(.ppcp-r-container--onboarding) {
|
||||
background-color: #fff !important;
|
||||
|
||||
.notice, .nav-tab-wrapper.woo-nav-tab-wrapper, .woocommerce-layout, .wrap.woocommerce form > h2 {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
|
@ -36,6 +36,10 @@
|
|||
color: $color-white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.onboarding-advanced-options {
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
.ppcp-r-welcome-features {
|
||||
|
@ -84,69 +88,3 @@
|
|||
}
|
||||
}
|
||||
|
||||
.ppcp-r-welcome-docs {
|
||||
margin: 0 0 48px 0;
|
||||
|
||||
&__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;
|
||||
}
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 8px;
|
||||
margin: 0 0 48px 0;
|
||||
}
|
||||
|
||||
&__col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
flex: 1;
|
||||
|
||||
> p {
|
||||
margin: 0;
|
||||
@include font(13, 16, 400);
|
||||
color: $color-gray-700;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
padding-right: 48px;
|
||||
border-right: 1px solid $color-gray-200;
|
||||
margin-right: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
.ppcp-r-page-welcome-mode-separator {
|
||||
margin: 8px 0 16px 0;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 8px;
|
||||
&__col {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid $color-gray-200;
|
||||
border-right: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue