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

Compose class inside media query #384

Open
tilnea opened this issue Oct 28, 2022 · 0 comments
Open

Compose class inside media query #384

tilnea opened this issue Oct 28, 2022 · 0 comments

Comments

@tilnea
Copy link

tilnea commented Oct 28, 2022

Hi,

So, I have

in variables.module.css:

@value large-spacing: 30px;

.itemSpace {
  margin-bottom: large-spacing;
}

in my component.module.css:

.section {
  margin-bottom: 15px;
}

@media screen and (min-width: 480px) {
  .section {
    composes: itemSpace from spacing;
  }
}

but on screens bigger than 480px I get

Screenshot 2022-10-28 at 08 43 47

How can I solve this?

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

No branches or pull requests

1 participant