538 Commits

Author SHA1 Message Date
Adam Wathan
dac591198f Provide a function for prefixing utilities in plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
87b291a258 Test utilities can be added without specifying variants 2018-03-05 09:58:35 -05:00
Adam Wathan
9573024a1b Expose config as a function to avoid mutation and make it easy to provide defaults 2018-03-05 09:58:35 -05:00
Adam Wathan
18d45b19cf Fix style 2018-03-05 09:58:35 -05:00
Adam Wathan
98f322920f Move processPlugins to separate module 2018-03-05 09:58:35 -05:00
Adam Wathan
a6342e60ce Add atRule helper for plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
24d184fbfc Pass escape function to plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
4d3bbcad95 Pass config to plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
e89fffbc3c Remove unnecessary array destructuring 2018-03-05 09:58:35 -05:00
Adam Wathan
47518404c0 Rename selector to rule, extract plugin processing 2018-03-05 09:58:35 -05:00
Adam Wathan
73a6b6da85 Sort imports 2018-03-05 09:58:35 -05:00
Adam Wathan
5f77aa0ec3 Implement basic plugin system 2018-03-05 09:58:35 -05:00
Adam Wathan
eacc4635b6 Match apply rules against a lookup table instead of searching 2018-02-28 20:34:16 -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
fedeTibaldo
b8ca236400 Add support for active state variant 2018-02-09 16:51:58 +01:00
Ryan Scherler
36ab6eafdf
Add move 2018-02-06 15:19:05 -08:00
Adam Wathan
d9bc4e658a Always use function for determining prefixes internally 2018-01-30 07:12:30 -05:00
Emil Tholin
357c87376e Add support for passing a function as the prefix 2018-01-28 15:55:21 -05:00
Nestor Vera
3f9fc5a989 Rename backgroundSize to backgroundSizes 2018-01-22 21:19:09 +01:00
Nestor Vera
829576693a Allow users to set their own backgroundSize 2018-01-22 21:17:30 +01:00
Nestor Vera
5acfa18d92 Add bg-auto to the backgroundSize generator 2018-01-22 20:39:34 +01:00
Adam Wathan
f4c905fcef Tweak Perfectionist configuration 2018-01-22 10:01:22 -05:00
Keith Damiani
eea8b54dfe Run perfectionist at end of PostCSS chain in place of stylefmt 2018-01-19 14:39:56 -05:00
Tobias Kündig
6837c8f46d
Added .cursor-wait 2017-12-24 13:47:13 +01:00
Adam Wathan
ec9b9b99bd Add support for making applied rules important 2017-12-13 13:00:37 -05:00
Adam Wathan
47a3b938de Fix style 2017-12-13 13:00:01 -05:00
Adam Wathan
88ff6bdbc3 Don't normalize custom property sets in at-apply 2017-12-13 12:51:35 -05:00
Adam Wathan
6984ba0b99 Add source map information to generated utilities 2017-12-12 15:24:59 -05:00
Jack McDade
c84886e32e Adjust syntax style to fit standards 2017-12-08 16:15:58 -05:00
Jack McDade
97ef316af8 Prevent @apply from adding !important. 2017-12-08 16:05:54 -05:00
Adam Wathan
d8698f6144 Switch from var to let
Closes #281.
2017-12-04 10:44:50 -05: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
Agustín Rodríguez
6179e6ac51 utility to make both axes resizables 2017-11-29 18:46:25 -05:00
Adam Wathan
45c1c4826f Merge branch 'master' into 0.3 2017-11-29 18:46:08 -05:00
Adam Wathan
be1f5b9156
[0.3] Add SVG Fill and Stroke utilities (#263) 2017-11-29 12:24:17 -05:00
Adam Wathan
7d6d0af65c Add more detail to @apply errors 2017-11-29 10:16:38 -05:00
Adam Wathan
ec19740eb0 Add support for hardcore bloat mode with modules: 'all'
Turns on every variant for every module :feelsgood:
2017-11-29 09:38:59 -05:00
Michaël De Boey
b50b8d4390 Add background repeat utilities 2017-11-28 14:45:54 -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
Adam Wathan
c165f1df57
[0.3] Add background attachment utilities (#243)
* Create backgroundAttachment.js generator

* Updated background-attachment utility

* Integrate background attachment utilities

* Add basic background attachment documentation
2017-11-28 14:44:18 -05:00
Adam Wathan
327e6d3cab Update tests, docs, and remove margin reset from list-reset 2017-11-28 08:13:11 -05:00
Adam Wathan
255c7b47e7 Move responsibility for appending nodes into variant generators themselves 2017-11-27 19:35:53 -05:00
Adam Wathan
831a3318de Pass all config options to each variants generator, not just separator 2017-11-27 19:32:11 -05:00
Adam Wathan
021ce94b7d Unwrap config in inner function
Unwrapping in the outer function causes it to get cached during watching.
2017-11-27 19:28:35 -05:00
Adam Wathan
0751431658 Remove useless variable 2017-11-26 14:56:39 -05:00
Adam Wathan
df8d80fbbf Defer unwrapping config until actually evaluating the config() function 2017-11-26 14:53:30 -05:00