Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

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

@te2dy

Description

@te2dy

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions