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

Non-invasive by default and invasive with class #30

Open
icmx opened this issue Dec 7, 2020 · 0 comments
Open

Non-invasive by default and invasive with class #30

icmx opened this issue Dec 7, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@icmx
Copy link
Owner

icmx commented Dec 7, 2020

By default Amine is non-invasive, i.e. limited to its pseudonamespace .am-*. As a result, one have to use .am-* on ANY element, even some basics like <h1> and <p>s. It's not really good so there should be a class for invasive mode. It should work like this:

.am-invasive h1,
.am-h1 {
  // styles for element that intended to be h1
}
<body class="... am-invasive">
  <h1>This will be styled as .am-h1</h1>
</body>
@icmx icmx added the enhancement New feature or request label Dec 7, 2020
@icmx icmx self-assigned this Dec 7, 2020
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