We have been designing websites for years and strive to optimize our actions. We often create websites that have dozens or hundreds of subpages, so minor changes allow for efficient management.
Let me give you an example:
By seting default padding for sections in CSS styles, we can modify this value even if we already have dozens of PageBuilder subpages prepared:
:root{
--padding-top: 70px;
--padding-right: 0;
--padding-bottom: 70px;
--padding-left: 0;
}
@media (max-width:767px){
:root{
--padding-top: 30px;
--padding-right: 0;
--padding-bottom: 30px;
--padding-left: 0;
}
}
.sppb-section { padding: var(--padding-top) var(--padding-right) var(--padding-bottom) var(--padding-left); }
Of course, each section is individual, so for many sections, the padding must be corrected manually. For example, the section above the footer may require more bottom padding. If we enter only bottom padding for it in SP Page Builder, only that should be processed. The rest of the parameters should still be inherited from global styles.
This is not important for websites with 3 subpages, but it is crucial for managing websites with dozens or hundreds of subpages based on SpPageBuilder.