@mollahdev/cssom-lite
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@mollahdev/cssom-lite", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"author": "Ashraf Mollah <mollah.dev@gmail.com> (https://mollah.dev)", | ||
@@ -5,0 +5,0 @@ "description": "Generate css with javascript", |
@@ -38,2 +38,4 @@ ## Installation | ||
## Add rule | ||
CSSOM-lite ignores these properties/values, undefined, null, false, true, NaN, '' | ||
```jsx | ||
@@ -44,2 +46,14 @@ sheet.addRule('.selector-a', 'background: orange'); | ||
## Add rule and remove old value | ||
By using "remove" property like the example, you can remove already added value, | ||
note: remove property will be ignored in the final css ouput | ||
```jsx | ||
sheet.addRule('.selector-a', 'background: orange'); | ||
sheet.addRule('.selector-a', ` | ||
color: white; text-decoration:none; | ||
remove: background, border, fill; | ||
`); | ||
``` | ||
## Add responsive rule | ||
@@ -46,0 +60,0 @@ ```jsx |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10092
71