feat: refactoring project
This commit is contained in:
41
node_modules/postcss-modules-local-by-default/README.md
generated
vendored
41
node_modules/postcss-modules-local-by-default/README.md
generated
vendored
@@ -4,6 +4,8 @@
|
||||
|
||||
Transformation examples:
|
||||
|
||||
Selectors (mode `local`, by default)::
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
```css
|
||||
.foo { ... } /* => */ :local(.foo) { ... }
|
||||
@@ -28,6 +30,45 @@ Transformation examples:
|
||||
```
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
Declarations (mode `local`, by default):
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
```css
|
||||
.foo {
|
||||
animation-name: fadeInOut, global(moveLeft300px), local(bounce);
|
||||
}
|
||||
|
||||
.bar {
|
||||
animation: rotate 1s, global(spin) 3s, local(fly) 6s;
|
||||
}
|
||||
|
||||
/* => */
|
||||
|
||||
:local(.foo) {
|
||||
animation-name: :local(fadeInOut), moveLeft300px, :local(bounce);
|
||||
}
|
||||
|
||||
:local(.bar) {
|
||||
animation: :local(rotate) 1s, spin 3s, :local(fly) 6s;
|
||||
}
|
||||
```
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
## Pure Mode
|
||||
|
||||
In pure mode, all selectors must contain at least one local class or id
|
||||
selector
|
||||
|
||||
To ignore this rule for a specific selector, add the following comment in front
|
||||
of the selector:
|
||||
|
||||
```css
|
||||
/* cssmodules-pure-ignore */
|
||||
:global(#modal-backdrop) {
|
||||
...;
|
||||
}
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user