Adam Wathan
8331d9fb24
Support applying non-prefixed class when using important scope
2019-08-06 08:23:47 -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
mattstypa
92b3b0c0a1
Updated CLI init commend
2019-03-14 15:51:21 -05:00
Adam Wathan
51e60071cf
Fix test
2019-02-28 14:39:59 -05:00
Adam Wathan
3797220c44
Extract padding/margin values to spacing
2019-02-16 20:33:05 -05:00
Adam Wathan
b036cac4b5
Fix code style
2019-02-01 12:32:50 -05:00
Adam Wathan
95bb283a69
Rename defaultPlugins to corePlugins
2019-02-01 12:32:50 -05:00
Adam Wathan
fd22dea5ad
Always load core plugins by default
2019-02-01 12:32:50 -05:00
Adam Wathan
99b5e90710
Move all config values back to single file
...
Temporary intermediate step.
2019-02-01 12:32:50 -05:00
Adam Wathan
2f9172cf8d
Update every plugin to accept its config as a parameter
2019-02-01 12:32:50 -05:00
Adam Wathan
326f35a72a
Remove options key from config
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
d9b675eb78
Removed unused references to experiments
2019-01-18 09:28:27 -05:00
Adam Wathan
5ade923fa4
Fix tests and lint warnings
2019-01-14 15:43:12 -05:00
Adam Wathan
6352843cde
Port zIndex module to default plugin
2019-01-14 15:43:12 -05:00
Adam Wathan
750b62c5d2
Enable shadowLookup by default
2018-09-21 14:55:54 -04:00
Adam Wathan
3e55b9a78a
Test no prefix apply with function prefix
2018-09-15 08:26:24 -04:00
Adam Wathan
39ec3b14cc
Use existing prefixSelector function
2018-09-14 16:22:49 -04:00
Rouven Hurling
d7d715a94e
fix code, test and style
2018-09-14 17:04:54 +02:00
Rouven Hurling
582aeec575
Fix test for optional prefix (missing dash)
2018-09-14 15:31:21 +02:00
Rouven Hurling
f8dfd04600
Add test for optional prefix
2018-09-14 15:20:29 +02:00
Adam Wathan
4078aa8be1
Remove duplicate test
2018-07-11 12:03:29 -04:00
Adam Wathan
24e1385aca
Only enable shadow lookup if shadowLookup experiment is enabled
2018-07-11 11:51:47 -04:00
Adam Wathan
cfe492220c
Refactor duplication
2018-07-11 11:45:45 -04:00
Adam Wathan
cdbea36564
Fallback to shadow table
2018-07-11 09:56:11 -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
c678d91fe0
Test that class names in apply directives are escaped
2018-06-04 08:49:36 -04:00
Adam Wathan
bc05473b37
Add dependencies, fix warnings
2018-03-07 09:37:01 -05:00
Adam Wathan
eacc4635b6
Match apply rules against a lookup table instead of searching
2018-02-28 20:34:16 -05:00
Adam Wathan
ec9b9b99bd
Add support for making applied rules important
2017-12-13 13:00:37 -05:00
Adam Wathan
3df41b5e89
Add test to prove cssnext custom property sets are preserved
2017-12-12 07:28:58 -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
538a854a73
Don't allow applying classes that appear in multiple rulesets
...
This can result in unexpected behavior, so explicitly erroring is best.
We can of course add support for this later if we see real value in it
and can come up with predictable rules for how it should work.
2017-11-16 07:54:40 -05:00
Adam Wathan
afee4495d5
Add test to document that applying classes with pseudo-selectors is not supported
2017-11-16 07:52:30 -05:00
Adam Wathan
c4305d0c07
Don't allow @applying classes that ever appear inside of an at-rule
...
This is too complex to easily support; better to explicitly error for
now vs. the current behavior which is just silently doing something
other than you probably expect.
2017-11-10 12:18:20 -05:00
David Hemphill
ec607968cf
Add ESLinting and Prettier formatting and run an initial format on the codebase
2017-11-06 15:00:00 -05:00
Adam Wathan
f80537a85d
Update tests
2017-11-03 10:04:48 -04:00
David Hemphill
4f2713fae6
change to es6 import
2017-10-14 12:12:56 -05:00
David Hemphill
ee1659ab76
prevent rules inside media queries from being used as a mixin
2017-10-14 00:11:19 -05:00