Adam Wathan
a4b30a0115
Safeguard against trailing slash in purge matches ( #2364 )
2020-09-10 14:44:48 -04:00
Adam Wathan
45cf3c595e
Fix issue where inserting extra PurgeCSS control comments could break integrated PurgeCSS support ( #2331 )
2020-09-05 23:35:16 -04:00
Adam Wathan
58781b517d
Only warn about conservative purge mode once per process
2020-09-05 17:41:05 -04:00
Robin Malfait
4c4c5a3834
Fix purging in 1.8 ( #2320 )
...
* re-add missing `@layer`'s for responsive rules
* use toMatchCss for better diffing
* do not wrap user `@responsive` rules in an `@layer`
2020-09-04 18:36:50 -04:00
Adam Wathan
09bd7d43f4
Move custom CSS within layers to corresponding Tailwind layer ( #2312 )
...
* Move custom CSS within layers to corresponding Tailwind layer
* Update changelog
2020-09-04 14:21:56 -04:00
Adam Wathan
d44e75fc79
Purge layers by default, deprecate conservative mode ( #2288 )
...
* Purge `layers` by default, deprecate `conservative` mode
* Ensure base styles are wrapped in @layer
* Update processPlugins test
2020-09-02 14:42:27 -04:00
Adam Wathan
956133a7a4
Don't associate custom CSS with a layer by default
2020-09-02 13:57:44 -04:00
Adam Wathan
aae71c5249
Preserve HTML elements by default when purging unused styles ( #2283 )
2020-09-01 16:20:16 -04:00
Adam Wathan
5701d7847b
Add dark mode variant ( #2279 )
...
* Initial dark mode prototype
* Isolate dark mode logic to config extension
* Update fixtures
* Fix lint warnings
2020-09-01 13:16:00 -04:00
Adam Wathan
2d090feb98
Only log purge notice once per process
2020-08-19 10:56:51 -04:00
Adam Wathan
ef149cfafb
Optimize rebuilds in long-running processes
2020-08-19 10:21:26 -04:00
Adam Wathan
f32ae238ef
Merge branch 'master' of github.com:tailwindlabs/tailwindcss
2020-08-18 09:06:35 -04:00
Adam Wathan
fdf468998f
Fix issue where motion variants incorrectly stack with group-hover variants
2020-08-18 09:03:32 -04:00
Robin Malfait
8ae2a32a0c
hoist selectorParser setup code
...
No need to re-create the selectorParser in every call.
2020-08-18 08:21:33 -04:00
Adam Wathan
cef0b84abf
Reorganize prototype code
2020-08-14 12:23:28 -04:00
Adam Wathan
8646c94dd5
Prepend a shadow lookup table when no @tailwind rules are in the tree
2020-08-13 20:16:56 -04:00
Adam Wathan
c252e33254
Get shadow lookup working-ish with new apply approach
2020-08-13 12:14:26 -04:00
Adam Wathan
36fc03b16d
Add initial support for applying variants and other complex classes
2020-08-12 19:47:21 -04:00
Adam Wathan
a84deb4ac5
Fix bug where theme('fontSize.xl') breaks with default line-height
2020-08-07 14:32:47 -04:00
Adam Wathan
77ccb5c957
Rename motion-reduced to motion-reduce
2020-07-28 10:15:50 -04:00
Adam Wathan
66619011d6
Make motion variants stackable
2020-07-27 15:23:56 -04:00
Adam Wathan
9f39277607
Rename reduced-motion to motion-reduced, add motion-safe
2020-07-27 14:36:10 -04:00
Adam Wathan
5dcb9f9035
Add reduce-motion variant
2020-07-24 15:26:55 -04:00
Adam Wathan
3edd89bd76
Handle explicit @tailwind screens properly
2020-07-15 09:41:47 -04:00
Adam Wathan
5b19a41195
Convert layers to control comments before processing @apply rules
2020-07-15 09:41:19 -04:00
Adam Wathan
b69e46cc1b
Rename buckets to layers, handle copying layer information to responsive variants
2020-07-15 09:25:22 -04:00
Adam Wathan
c184e5b7b3
Don't remove comments that are never added
2020-07-14 20:57:04 -04:00
Adam Wathan
bc6b17250d
Don't convert @tailwind screens to @screens utilities
2020-07-14 20:56:11 -04:00
Adam Wathan
4169bb1ac2
Simplify implementation, remove unnecessary new features
2020-07-14 20:53:18 -04:00
Adam Wathan
fc1d4c4cb1
Intermingle component and utility screens
2020-07-14 16:41:41 -04:00
Adam Wathan
9959b1f691
Add first-class support for "responsive" components and bucket children
2020-07-14 14:32:14 -04:00
Adam Wathan
20e5695165
Merge pull request #1285 from GeoffSelby/add-checked-variant
...
Add `checked` variant
2020-07-08 12:27:09 -04:00
Adam Wathan
f120967d95
Merge pull request #1824 from austin94/austin94/add-focus-visible-variant
...
Add :focus-visible variant
2020-06-27 14:21:08 -04:00
Austin Green
4187e6db70
Add :focus-visible variant
2020-05-26 11:10:03 -07:00
frederikhors
822689f38b
Unnecessary escape character
...
Unnecessary escape character: [. (eslint: no-useless-escape)
2020-05-24 16:47:23 +02:00
Adam Wathan
f79b5c2675
Improve PurgeCSS warning
2020-05-06 08:48:55 -04:00
Adam Wathan
9d6e8bc8b3
Fix style
2020-05-05 07:47:57 -04:00
Dave Wasmer
93cddddaa0
Improve error message for missing variant
2020-05-04 22:26:55 -06:00
Adam Wathan
ab52a8c082
Support purge: false, add more info to console warning
2020-05-01 08:25:45 -04:00
lihbr
9863723390
style: lint changes
2020-04-30 19:08:06 +02:00
lihbr
14113707df
fix: purgeEnabled evaluating to true when config.purge.enabled is false
2020-04-30 18:43:56 +02:00
Adam Wathan
9032ff33ed
Improve support for purging Haml even more
2020-04-30 08:40:42 -04:00
Adam Wathan
cdef9c8d4d
Improve support for purging Haml templates
2020-04-30 08:33:05 -04:00
Adam Wathan
77d3f7590e
Don't purge components, don't purge if paths empty, add empty purge to config stub
2020-04-29 16:14:08 -04:00
Adam Wathan
64b6c955c7
Improve PurgeCSS integration
...
- Add better Pug support
- Add "modes", with "all" and "conservative" by default
- Allow passing options through to PurgeCSS
- Rename `paths` to `content` to match PurgeCSS
2020-04-28 09:51:27 -04:00
Adam Wathan
b0ac3c50cb
Support purging Pug templates a bit better
2020-04-27 22:18:21 -04:00
Adam Wathan
4c3e97c9d4
Make PurgeCSS regex compatible with node 8
2020-04-27 21:43:28 -04:00
Adam Wathan
ec0b7a2be1
Integrate PurgeCSS directly into Tailwind
2020-04-27 21:24:49 -04:00
Adam Wathan
ebd157f16e
Add group-focus variant
2020-04-16 12:51:12 -04:00
Adam Wathan
08c69116ef
Support import syntax even if not using postcss-import
2020-01-25 12:14:01 -05:00