purgetss 3.0.4 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +1 -1
- package/README.md +3 -3
- package/assets/fonts/bootstrap-icons.ttf +0 -0
- package/assets/fonts/tabler-icons.ttf +0 -0
- package/assets/images/blend-modes.png +0 -0
- package/assets/images/shadow.png +0 -0
- package/bin/purgetss +6 -5
- package/dist/bootstrapicons.js +1714 -0
- package/dist/bootstrapicons.tss +1692 -0
- package/dist/tablericons.js +95 -1
- package/dist/tablericons.tss +94 -0
- package/dist/tailwind.tss +3242 -411
- package/docs/configuring-guide.md +18 -5
- package/docs/glossary.md +3 -4
- package/docs/new-glossary.md +8313 -0
- package/docs/whats-new/v2.5.0.md +6 -6
- package/docs/whats-new/v3.0.4.md +7 -6
- package/docs/whats-new/v3.0.5.md +136 -0
- package/docs/whats-new/v3.1.0.md +614 -0
- package/docs/whats-new/v3.1.1.md +262 -0
- package/index.js +397 -246
- package/lib/build-bootstrap-icons-js.js +64 -0
- package/lib/build-bootstrap-icons-tss.js +50 -0
- package/lib/build-fonts-folder.js +7 -0
- package/lib/build-tailwind.js +78 -16
- package/lib/helpers.js +2027 -764
- package/lib/templates/bootstrap-icons/bootstrap-icons.css +1705 -0
- package/lib/templates/bootstrap-icons/bootstrap-icons.ttf +0 -0
- package/lib/templates/bootstrap-icons/reset.tss +6 -0
- package/lib/templates/bootstrap-icons/template.js +4 -0
- package/lib/templates/bootstrap-icons/template.tss +2 -0
- package/lib/templates/custom-template.tss +1 -1
- package/lib/templates/tablericons/template.js +1 -1
- package/lib/templates/tailwind/custom-template.tss +1 -1
- package/lib/templates/tailwind/template.tss +1 -1
- package/lib/test-function.js +9 -0
- package/package.json +8 -5
- package/purgetss.config.js +950 -0
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
- [**Overriding, extending or disabling properties**](#overriding-extending-or-disabling-properties)
|
|
30
30
|
- [Overriding properties](#overriding-properties)
|
|
31
31
|
- [Extending properties](#extending-properties)
|
|
32
|
-
- [Disabling
|
|
33
|
-
- [**Core
|
|
32
|
+
- [Disabling an entire core plugin](#disabling-an-entire-core-plugin)
|
|
33
|
+
- [**Core Plugins**](#core-plugins)
|
|
34
34
|
- [Background Colors](#background-colors)
|
|
35
35
|
- [Border Colors](#border-colors)
|
|
36
36
|
- [Border Radius](#border-radius)
|
|
@@ -796,19 +796,32 @@ module.exports = {
|
|
|
796
796
|
}
|
|
797
797
|
```
|
|
798
798
|
|
|
799
|
-
## Disabling
|
|
800
|
-
If you don
|
|
799
|
+
## Disabling an entire core plugin
|
|
800
|
+
If you don’t want to generate any classes for a certain core plugin, it’s better to set that plugin to false or add them to an array in your `corePlugins` configuration than to provide an empty object for that key in your `theme` configuration.
|
|
801
801
|
|
|
802
|
+
Setting false to a set of objects to disable a core plugin:
|
|
802
803
|
```javascript
|
|
803
804
|
// ./purgetss/config.js
|
|
804
805
|
module.exports = {
|
|
805
806
|
'corePlugins': {
|
|
806
807
|
'opacity': false,
|
|
808
|
+
'borderRadius': false
|
|
807
809
|
}
|
|
808
810
|
}
|
|
809
811
|
```
|
|
810
812
|
|
|
811
|
-
|
|
813
|
+
Using and array to disable a core plugin:
|
|
814
|
+
```javascript
|
|
815
|
+
// ./purgetss/config.js
|
|
816
|
+
module.exports = {
|
|
817
|
+
'corePlugins': [
|
|
818
|
+
'opacity',
|
|
819
|
+
'borderRadius'
|
|
820
|
+
]
|
|
821
|
+
}
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
# **Core Plugins**
|
|
812
825
|
|
|
813
826
|
### Background Colors
|
|
814
827
|
Utilities for controlling an element's background color.
|
package/docs/glossary.md
CHANGED
|
@@ -4584,8 +4584,8 @@ The following is a list of all the properties and their repective class name.
|
|
|
4584
4584
|
|
|
4585
4585
|
### pagingControlOnTop Property
|
|
4586
4586
|
```css
|
|
4587
|
-
'.paging-on-top': { pagingControlOnTop: true }
|
|
4588
|
-
'.paging-on-bottom': { pagingControlOnTop: false }
|
|
4587
|
+
'.paging-control-on-top': { pagingControlOnTop: true }
|
|
4588
|
+
'.paging-control-on-bottom': { pagingControlOnTop: false }
|
|
4589
4589
|
```
|
|
4590
4590
|
|
|
4591
4591
|
### pagingControlTimeout Property
|
|
@@ -6851,8 +6851,7 @@ The following is a list of all the properties and their repective class name.
|
|
|
6851
6851
|
|
|
6852
6852
|
## Debug Mode Property
|
|
6853
6853
|
```css
|
|
6854
|
-
'.debug
|
|
6855
|
-
'.debug-off': { debug: false }
|
|
6854
|
+
'.debug': { debug: true }
|
|
6856
6855
|
```
|
|
6857
6856
|
|
|
6858
6857
|
## delay Property
|