Browse Source

landing-blocks/src: added pagePadding

master landing-blocks_1.0.53
remorses 1 year ago
parent
commit
e721c5d279
2 changed files with 5 additions and 3 deletions
  1. +4
    -2
      landing-blocks/src/LandingProvider.tsx
  2. +1
    -1
      landing-blocks/src/layout.tsx

+ 4
- 2
landing-blocks/src/LandingProvider.tsx View File

@ -85,6 +85,9 @@ export function LandingProvider({
sizes: {
pageContainer: pageWidth,
},
space: {
pagePadding: '20px',
},
fonts: {
body: fontFamily,
heading: fontFamily,
@ -104,7 +107,7 @@ export function LandingProvider({
return (
<PropagatedThemeProvider theme={theme}>
<Global styles={globalStyles} />
<Mode>
<Mode>
{/* TODO propagate the color mode context from above, setting it to dark if dark=true */}
<CSSReset />
<Stack
@ -120,7 +123,6 @@ export function LandingProvider({
>
{children}
</Stack>
</Mode>
</PropagatedThemeProvider>
)

+ 1
- 1
landing-blocks/src/layout.tsx View File

@ -86,7 +86,7 @@ export const PageContainer: FC = forwardRef(
position='relative'
ref={ref}
width='100%'
px='10px'
px='pagePadding'
align='center'
{...styles}
{...props}

Loading…
Cancel
Save