Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with padding/margins #1336

Open
marceljar opened this issue May 29, 2024 · 0 comments
Open

Issues with padding/margins #1336

marceljar opened this issue May 29, 2024 · 0 comments

Comments

@marceljar
Copy link

Question

Is it possible to add some margins or padding to the slides? In other words, can Flexbox margin or padding be applied to the slides themselves? Whenever I use margins or padding, I can only see them applied to the FullScreen and AnimatedProgress components. But, not to the Slides.

Background Info/Attempts

// SPECTACLE_CLI_TEMPLATE_START
const template = () => (
  <FlexBox
    alignContent="start"
    justifyContent="space-between"
    position="absolute"
    bottom={10}
    width={1}
    top={5} //this only affects FullScreen and AnimatedProgress. The text in my slides is not changed.
  >
    <Box padding="10px 1em">
      <FullScreen />
    </Box>

    <Box padding="1em">
      <AnimatedProgress />
    </Box>
  </FlexBox>
);


function NewSlides() {
  return (
    <Deck theme={theme} template={template}>
      <MarkdownSlideSet>{mdContent}</MarkdownSlideSet>
    </Deck>
  );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant