💄 Adjust SCSS to address new component hierarchy

This commit is contained in:
Philipp Stracker 2024-10-28 17:57:05 +01:00
parent 2bf9832844
commit 0f523d7aae
No known key found for this signature in database
6 changed files with 18 additions and 9 deletions

View file

@ -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);
}

View file

@ -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;
}

View file

@ -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;

View file

@ -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);
}
}

View file

@ -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;

View file

@ -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;