mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
💄 Adjust SCSS to address new component hierarchy
This commit is contained in:
parent
2bf9832844
commit
0f523d7aae
6 changed files with 18 additions and 9 deletions
|
@ -17,11 +17,13 @@ $color-gradient-dark: #001435;
|
|||
$gradient-header: linear-gradient(87.03deg, #003087 -0.49%, #001E51 29.22%, $color-gradient-dark 100%);
|
||||
|
||||
$max-width-onboarding: 1024px;
|
||||
$max-width-onboarding-content: 662px;
|
||||
$max-width-settings: 938px;
|
||||
|
||||
#ppcp-settings-container {
|
||||
--max-width-settings: #{$max-width-settings};
|
||||
--max-width-onboarding: #{$max-width-onboarding};
|
||||
--max-width-onboarding-content: #{$max-width-onboarding-content};
|
||||
|
||||
--max-tabbar-width: var(--max-width-settings);
|
||||
--max-container-width: var(--max-width-settings);
|
||||
}
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
.ppcp-r {
|
||||
&-container {
|
||||
max-width: var(--max-container-width, none);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&-inner-container {
|
||||
width: 652px;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 0 16px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
--wp-components-color-accent: #{$color-blueberry};
|
||||
--wp-admin-border-width-focus: 3px;
|
||||
|
||||
max-width: var(--max-tabbar-width);
|
||||
max-width: var(--max-container-width);
|
||||
margin: 0 auto;
|
||||
transition: max-width 0.2s;
|
||||
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
@import './onboarding/step-business';
|
||||
@import './onboarding/step-products';
|
||||
|
||||
.ppcp-r-tabs.onboarding {
|
||||
--max-tabbar-width: var(--max-width-onboarding);
|
||||
.ppcp-r-tabs.onboarding,
|
||||
.ppcp-r-container--onboarding {
|
||||
--max-container-width: var(--max-width-onboarding);
|
||||
|
||||
.ppcp-r-inner-container {
|
||||
max-width: var(--max-width-onboarding-content);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
.ppcp-r-page-business {
|
||||
.ppcp-r-inner-container {
|
||||
width: 622px;
|
||||
padding-bottom: 84px;
|
||||
@media screen and (max-width: 480px) {
|
||||
padding-bottom: 42px;
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
.ppcp-r-page-products {
|
||||
.ppcp-r-inner-container {
|
||||
width: 622px;
|
||||
padding-bottom: 48px;
|
||||
@media screen and (max-width: 480px) {
|
||||
padding-bottom: 24px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue