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

Rule suggestion: block-no-media-child-block #691

Open
devyeshtandon opened this issue Oct 24, 2022 · 0 comments
Open

Rule suggestion: block-no-media-child-block #691

devyeshtandon opened this issue Oct 24, 2022 · 0 comments
Labels
Help wanted 🙋 Help is needed New rule 👌 Ready to be created as a new rule

Comments

@devyeshtandon
Copy link

Something like this will be good to have:

GOOD Example (Valid):

.class-name {
    background-color: green;
}

@media only screen and (max-width: 600px) {
  .class-name {
    background-color: lightblue;
  }
}

BAD Example (Invalid):

.class-name {
    background-color: green;

    @media only screen and (max-width: 600px) {  
        background-color: light-blue;
    }
}
@kristerkari kristerkari added Help wanted 🙋 Help is needed New rule 👌 Ready to be created as a new rule labels Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted 🙋 Help is needed New rule 👌 Ready to be created as a new rule
Development

No branches or pull requests

2 participants