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

mediaquery doesn't support margin #307

Open
rbickel opened this issue Jan 6, 2025 · 0 comments
Open

mediaquery doesn't support margin #307

rbickel opened this issue Jan 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rbickel
Copy link

rbickel commented Jan 6, 2025

Hi,
I am using the mediaquery to change the grid layout depending on the device. I would like to remove the margin for smaller devices, however it seems the mediaquery block doesn't support setting the margin for smaller devices.

Desired state:

margin: 0px 50px
grid-template-columns: 10% auto auto 15%
grid-template-rows: auto
grid-gap: 50px
grid-template-areas: |
  "header header header header"
  "nav1 main1 main2 nav2"
  "footer footer footer footer"
mediaquery:
  "(max-width: 600px)":
    grid-template-columns: 100%
    grid-template-areas: |
      "header"
      "main1"
      "nav1"
      "main2"
      "nav2"
    grid-gap: 0
    margin: 0
  "(max-width: 800px)":
    grid-template-columns: 50% 50%
    grid-template-areas: |
      "header header"
      "main1 nav1"
      "main2 nav2"
    grid-gap: 0
    margin: 0

In the example above margin: 0 is ignored

@rbickel rbickel added the enhancement New feature or request label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant