Adam Wathan
21d4b8c787
Apply new prettier defaults
2020-10-17 20:34:11 -04:00
Adam Wathan
38b4eeb288
Prettier likes parens a lot now
...
git blame is now broken forever.
2020-10-16 15:39:44 -04:00
Adam Wathan
e3ed12782f
Update prettier
2020-10-16 13:30:06 -04:00
Adam Wathan
4d6e1e7e92
Don't escape keyframes ( #2432 )
...
* Don't escape keyframes
* Update changelog
2020-10-07 14:12:41 -04:00
Adam Wathan
0b48b4cd8c
Test that plugins can extend variants
2020-09-06 11:50:20 -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
577f536eeb
Update tests that relied on changed implementation details
2020-08-14 12:23:18 -04:00
Adam Wathan
7dc0261bc6
Only wrap with variants if rules don't already contain any variants
2020-07-15 17:28:33 -04:00
Adam Wathan
54f07e2a9b
Update tests to account for new layer at-rule
2020-07-15 10:44:17 -04:00
Adam Wathan
f25b0925a3
Update test
...
Still wrong but less wrong
2020-07-14 21:05:44 -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
ad850ac491
Throw if contains a class
2020-05-08 13:23:26 -04:00
Adam Wathan
652100e2d5
Add corePlugins function to plugin API
2020-05-01 14:41:12 -04:00
Adam Wathan
b3a7f7788a
Test making config function optional, refactor to default parameter
2020-01-04 12:35:12 -05:00
Adam Wathan
26337bc39f
Add new plugin and plugin.withOptions functions for creating plugins
2019-12-20 10:53:27 -05:00
Adam Wathan
94a1d30809
Make handler optional in object plugins
2019-10-12 13:46:51 -04:00
Adam Wathan
33e5546e9b
Fix style
2019-10-12 13:05:08 -04:00
Adam Wathan
e130771c32
Allow plugins to modify the config
2019-10-12 13:04:02 -04:00
Adam Wathan
763ee71033
Ensure all selectors in a rule receive important scope
2019-08-06 08:14:16 -04:00
James Wee
12ba0c8916
Changed important (string) to important (selector)
2019-07-11 19:36:48 +12:00
James Wee
382075731d
Added Prefix Selector support via important config
2019-07-11 17:07:24 +12:00
Adam Wathan
6f441a47a2
Add test case for issue fixed by postcss-js 2.0.2
2019-07-06 06:16:40 -04:00
Adam Wathan
0735e3d27e
Remove 'className' from plugin API
...
Certain plugins behave differently and the rules about `default` meaning "no suffix" are not universal (see the cursor plugin). The simplest thing to do right now is keep things as they are, which means only certain plugins respect the default option and only certain other plugins respect the negative prefix convention.
2019-04-26 08:19:23 -04:00
Adam Wathan
8fb2351463
Make second parameter to className optional
2019-04-25 07:59:47 -04:00
Adam Wathan
c6ae957aff
Support negative values for inset
2019-04-24 16:37:13 -04:00
Adam Wathan
f0bc35a896
Support configuring a single list of variants to apply to all relevant plugins
2019-04-18 09:42:21 -04:00
Nestor Vera
233d5bdcbd
Fix undefined var in one test
2019-02-22 16:59:56 +01:00
Adam Wathan
db7f1e6728
Merge branch 'master' into next
2019-02-22 10:05:31 -05:00
Adam Wathan
10aa36533f
Pass postcss to plugins explicitly
2019-02-22 09:50:36 -05:00
Adam Wathan
76c40e4394
Fix style
2019-02-07 15:13:17 -05:00
Adam Wathan
4007fc4d32
Test plugins can add base styles with raw PostCSS nodes
2019-02-07 14:06:24 -05:00
Adam Wathan
1d0b4cd31c
Test plugins can add base styles with object syntax
2019-02-07 14:05:00 -05:00
Adam Wathan
e8d16fcdb5
Move separator to top level config option
2019-02-01 12:32:50 -05:00
Adam Wathan
1a46f6b47d
Move important to top level option
2019-02-01 12:32:50 -05:00
Adam Wathan
664f923312
Move prefix option to top-level in config
2019-02-01 12:32:16 -05:00
Adam Wathan
fe1b30b2d2
Remove prefixTree, update relevant tests
2019-01-14 15:43:12 -05:00
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
9eca69ad83
Refactor process plugins to return an object
2018-06-26 13:44:47 -04:00
Adam Wathan
dbb4802fb6
Fix style
2018-03-07 09:37:01 -05:00
Adam Wathan
db8e06c282
Add test for nested rules
2018-03-07 09:37:01 -05:00
Adam Wathan
3be6a04d54
Add test to make sure we're not stupidly flattening styles too early
2018-03-07 09:37:01 -05:00
Adam Wathan
8e8f47c58d
Respect user prefix by default when creating component classes
2018-03-07 09:37:01 -05:00
Adam Wathan
7a8f8d9877
Style fixes
2018-03-07 09:37:01 -05:00
Adam Wathan
7d589dd542
Fix style + kill unused code
2018-03-07 09:37:01 -05:00
Adam Wathan
c3f021a0c9
Prefix all classes in a selector, don't assume single class
2018-03-07 09:37:01 -05:00
Adam Wathan
d1423bab63
Drop shitty rule/atRule syntax for pure object syntax
2018-03-07 09:37:01 -05:00
Adam Wathan
9fec0b11c2
Fix style
2018-03-05 09:58:35 -05:00
Adam Wathan
c67912af66
Add test to document checking the user's !important preference
2018-03-05 09:58:35 -05:00
Adam Wathan
2feac441e7
Style fixes
2018-03-05 09:58:35 -05:00