Adam Wathan
ff013c5e9c
Add missing grid alignment utilities ( #2306 )
...
* added suppot for justify-self
* Update fixtures
* Add remaining grid alignment utilities
* Update changelog
Co-authored-by: Felix Alcala <felix.alcala@gmail.com>
2020-09-04 10:54:13 -04:00
Adam Wathan
b3270a5b31
Add fontVariantNumeric utilities ( #2305 )
...
* Add fontVariantNumeric utilities
* Don't generate fontVariantNumeric utilities in IE11 target mode
2020-09-03 15:04:29 -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
Keunbae Park
455b56164b
fix typo ( #2276 )
...
* fix typo
* Update purgeUnusedStyles.test.js
2020-08-31 09:11:24 -04:00
Robin Malfait
ce75f65347
use explicit .then and .catch instead of .finally for node 8.x
2020-08-28 15:32:42 +02:00
Robin Malfait
62eaac4b08
suppress console.warn logs in tests
...
This makes the test output a bit nicer to look at
2020-08-28 08:53:39 -04:00
Adam Wathan
5974f24eda
Add test for applying hover class with !important
2020-08-28 08:17:25 -04:00
Adam Wathan
ed3edf9129
Merge pull request #2225 from tailwindlabs/add-postcss-init-option
...
add tailwind -p init option to generate a postcss file
2020-08-22 08:38:35 -04:00
Adam Wathan
634a0e6a5f
Merge pull request #2211 from tailwindlabs/apply-to-rule-with-multiple-selectors
...
Fix issue where couldn't apply variant classes to rule with multiple selectors
2020-08-22 08:36:44 -04:00
Robin Malfait
939346d8b3
add tailwind -p init option to generate a postcss file
2020-08-22 01:43:47 +02:00
Robin Malfait
c79b0b936f
Merge pull request #2224 from tailwindlabs/fix-multiline-apply
...
Fix multiline @apply values
2020-08-22 00:23:36 +02:00
Robin Malfait
f15cace373
ensure we expect the correct amount of assertions
...
It is a bit of noise but it will ensure that we don't have false
positives. For example when you have the following code:
```js
it('should fail', () => {
return promise.catch((err) => {
expect(err).toBeInstanceOf(Error)
});
});
```
You would expect that the test passes because we have an expect in the
`.catch` block. However if the promise just resolves it means that no
assertions are executed and the test is considered successful. So in
this case it will _also_ call but for the incorrect reasons!
2020-08-22 00:10:34 +02:00
Robin Malfait
3bf6348523
split @apply values by spaces, tabs and newlines
...
Fixes : #2222
2020-08-22 00:09:46 +02:00
Adam Wathan
86288cd90b
Fix issue where couldn't apply variant classes to rule with multiple selectors
2020-08-20 16:29:07 -04:00
Adam Wathan
2903811767
Add test coverage for purging with important string
2020-08-20 13:25:18 -04:00
Adam Wathan
2f7daa6d8b
Add bg-none utility
2020-08-20 10:12:58 -04:00
Adam Wathan
a7e19ca131
Pass opacityValue to gradient colors for transparency support, do not pass opacityVariable since unused
2020-08-19 11:38:22 -04:00
Adam Wathan
28930f4799
Merge branch 'fix/color-object-closures' of git://github.com/innocenzi/tailwindcss into innocenzi-fix/color-object-closures
2020-08-19 11:25:13 -04:00
Adam Wathan
ef149cfafb
Optimize rebuilds in long-running processes
2020-08-19 10:21:26 -04:00
Enzo Innocenzi
f6fc9630d5
test(gradientColorStops): ensure opacity variables are generated
2020-08-18 23:26:29 +02:00
Adam Wathan
6230cc3119
Add responsive divide style utilities
2020-08-18 13:22:56 -04:00
Adam Wathan
fdf468998f
Fix issue where motion variants incorrectly stack with group-hover variants
2020-08-18 09:03:32 -04:00
Adam Wathan
053ab65cee
Update flagged fixture
2020-08-18 08:21:22 -04:00
Adam Wathan
7945f0f7c8
Merge pull request #2176 from tailwindlabs/gradients
...
Add background gradient support
2020-08-18 08:06:50 -04:00
Adam Wathan
1d2dd1a5f4
Merge pull request #1965 from juno-w/master
...
Divide border style
2020-08-17 21:13:49 -04:00
Adam Wathan
926b6b1fab
Rename mid color stop to via
2020-08-17 13:25:18 -04:00
Adam Wathan
18873e896a
Add "to" to gradient background class names
2020-08-17 11:50:35 -04:00
Adam Wathan
8d87445b81
Improve API, support auto-transparent to, rename gradientColor plugin
2020-08-17 11:05:06 -04:00
Adam Wathan
7fb5d4a579
Add support for background images and 2/3-color-stop gradients
2020-08-16 15:23:49 -04:00
Adam Wathan
488c0e35c9
Don't include vendor prefix for background-clip: text
...
Better to rely on autoprefixer for this for now. If we want to start shipping prefixes we should do it across the board, not just in one spot.
2020-08-15 16:24:21 -04:00
Adam Wathan
5b82b6f5ac
Add background-clip utilities
2020-08-15 16:20:33 -04:00
Adam Wathan
8a066c27a2
Merge branch 'apply-complex-classes'
2020-08-15 15:39:48 -04:00
Adam Wathan
cebed0e4e0
Only include contents class in modern builds, update fixtures
2020-08-15 15:22:31 -04:00
Adam Wathan
7371ea992b
Merge pull request #1676 from innocenzi/color-closure
...
Allow colors to be defined as closures
2020-08-15 09:09:46 -04:00
Adam Wathan
e37b665b60
Support applying classes that occur multiple times in a single selector
2020-08-14 19:12:45 -04:00
Adam Wathan
cef0b84abf
Reorganize prototype code
2020-08-14 12:23:28 -04:00
Adam Wathan
577f536eeb
Update tests that relied on changed implementation details
2020-08-14 12:23:18 -04:00
Adam Wathan
b527dcf301
Improve test name
2020-08-14 11:26:01 -04:00
Adam Wathan
23ffa25e8a
Avoid accidentally forgetting getProcessedPlugins arg when customizing config
2020-08-14 11:25:55 -04:00
Adam Wathan
b518dc3e4c
Test applying classes with a prefix configured
2020-08-14 11:15:45 -04:00
Adam Wathan
e03db68ff9
Fix test typo
2020-08-14 11:15:17 -04:00
Adam Wathan
2cbc8e90af
Add tests for all the new scenarios @apply now supports
2020-08-13 20:46:27 -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
ba9ee0600b
Remove unused expected
2020-08-13 09:01:58 -04:00
Adam Wathan
3d156cc81f
Explicitly don't support legacy cssnext @apply rules
2020-08-13 07:51:46 -04:00
Adam Wathan
d6e22b944e
Remove leading dot from apply case in sanity test
2020-08-13 07:44:59 -04:00