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

Utiliser le sélection :where() pour simplifier la feuille de styles #33

Open
te2dy opened this issue Jun 29, 2022 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@te2dy
Copy link
Owner

te2dy commented Jun 29, 2022

Exemple :

#site-header .widget h2,
#site-sidebar .widget h2,
#site-header .widget h3,
#site-sidebar .widget h3,
#site-header .widget h4,
#site-sidebar .widget h4

Deviendrait :

:where(#site-header, #site-sidebar) .widget :where(h2, h3, h4) {

Voir la documentation : https://developer.mozilla.org/en-US/docs/Web/CSS/:where

@te2dy te2dy added the enhancement New feature or request label Jun 29, 2022
@te2dy te2dy self-assigned this Jun 29, 2022
@te2dy
Copy link
Owner Author

te2dy commented Jul 6, 2022

En cours. Poursuivre.

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