25 Commits

Author SHA1 Message Date
Adam Wathan
5ade923fa4 Fix tests and lint warnings 2019-01-14 15:43:12 -05:00
Adam Wathan
146b984617 Accept plugins as separate processPlugins arg 2019-01-14 15:43:12 -05:00
Adam Wathan
1e8a70b68c Promote pluginVariants from experiment to feature 2018-10-31 15:52:32 -04:00
Adam Wathan
eeb788661c Add test for generating variants for multi-selector rules 2018-09-15 09:01:30 -04:00
Adam Wathan
1a8383c08d
Merge branch 'master' into feature/focus-within 2018-09-13 21:41:16 +09:30
Adam Wathan
7846d2a228 Move plugin variant features behind experiment 2018-07-11 12:13:50 -04:00
Adam Wathan
f974b8df03 Add support for writing variant plugins with raw PostCSS API 2018-06-26 13:44:47 -04:00
Adam Wathan
9b22ff3513 Only process plugins once 2018-06-26 13:44:47 -04:00
Adam Wathan
b21d258f63 Wrap Tailwind plugins in new plugin to only unwrap config once 2018-06-26 13:44:47 -04:00
Adam Wathan
d77bc055ee Support for basic variant generator plugins
Allows you to write a plugin that registers a new variant but only
allows you to modify the selector (like what our built-in generators
do.)

Next steps are to support variants that wrap rules with at-rules
(like @supports for example), variants that can modify properties
(as opposed to just selectors), and to give variant plugin authors
control over how responsive variants interact with their own variants.
2018-06-26 13:44:47 -04:00
Adam Wathan
9d05910507 Generate variants based on the order specified in the modules config 2018-06-26 13:44:47 -04:00
Paulo
9e4e8a6d05 Add focus-within variant 2018-05-04 14:47:28 +02:00
Adam Wathan
cc968d1791 Fix conflics, refactor variant generator 2018-03-13 08:12:20 -04:00
Adam Wathan
fa0e06c2dd Generate focus variants last and group-hover variants first 2018-03-12 15:34:14 -04:00
Adam Wathan
bc05473b37 Add dependencies, fix warnings 2018-03-07 09:37:01 -05:00
fedeTibaldo
b7cb21360d Update priority order to (from the highest): active-hover-focus 2018-02-19 17:23:22 +01:00
fedeTibaldo
62cf25f718 Change priority order to (from the highest): focus-active-hover 2018-02-16 18:09:20 +01:00
fedeTibaldo
2e4e4a79e2 Revert output order from hover-active-focus to focus-active-hover 2018-02-09 20:57:34 +01:00
fedeTibaldo
1f57fbfbaf Add tests for active state variant 2018-02-09 20:20:24 +01:00
Adam Wathan
858b725896
[0.3] Rename parent-hover to group-hover (#271) 2017-12-01 08:14:58 -05:00
Adam Wathan
ad48de9500
[0.3] Escape separator string (#270) 2017-11-30 15:55:06 -05:00
Adam Wathan
ed550b3c5c
[0.3] Add parent-hover variant (#251)
* Add parent-hover variant

* Don't enable parent-hover on textColors module by default

* Add tests, move parent-hover declarations to separate rules

* Prettier-ignore long selector string
2017-11-28 14:44:43 -05:00
dumconstantin
013f845281 Make the hoverable, focusable and responsive separator (default '\:') configurable. 2017-11-24 16:26:40 +02:00
Adam Wathan
28f73f2bf5 Add support for including responsive in variants list 2017-11-23 09:58:42 -05:00
Adam Wathan
12dd81b906 Working on @variants at-rule
Currently supports focus and hover, need to add responsive which will be a whole horrible can of worms.
2017-11-22 18:44:30 -05:00