Tim Whitbeck
d64b859715
use word-wrap instead of overflow-wrap when targeting ie11 ( #2391 )
2020-10-12 14:15:56 -04:00
Adam Wathan
003d94bea1
Support closures for colors in all circumstances ( #2536 )
2020-10-09 21:03:23 -04:00
Adam Wathan
326a4af8cc
Rename max-content and min-content to max and min in experimental spacing scale ( #2532 )
...
* Rename max-content and min-content to max and min in experimental spacing scale
* Update changelog
2020-10-09 13:29:43 -04:00
Adam Wathan
69845d6f4f
Add new utilities for grid-auto-columns and grid-auto-rows ( #2531 )
...
* Add grid-auto-columns/rows utilities
* Add responsive variants for auto-cols/rows utilities
* Update changelog
2020-10-09 13:11:57 -04:00
Adam Wathan
0feb064054
Support disabling dark mode globally ( #2530 )
...
* Support disabling dark mode globally
* Update changelog
2020-10-09 10:37:15 -04:00
Adam Wathan
b4259b1f4d
Add xl, 2xl, and 3xl border radius values ( #2529 )
2020-10-09 08:23:23 -04:00
Adam Wathan
8eb938bdd2
Add smaller rotate and skew values ( #2528 )
2020-10-09 08:13:48 -04:00
Adam Wathan
f3a1d5f93c
Improve accessibility story for custom focus styles ( #2460 )
...
* Improve accessibility story for custom focus styles
* Update fixtures
* Make outline configurable, add white/black dotted outlines
* Update changelog
2020-10-08 15:48:07 -04:00
Adam Wathan
b299b6fbe1
Support new presets key + extending core plugins config ( #2474 )
...
* WIP
* Support array for Tailwind config
* Drop array format for `presets` key instead
* Update changelog
2020-10-08 11:21:39 -04:00
swyx
50fc4417bb
add col- and row- span-full utility ( #2471 )
...
* add col- and row- span-full utility
add `col-span-full` and `row-span-full` per @flybayer in https://github.com/tailwindlabs/tailwindcss/discussions/2467#discussioncomment-87761
* fixtures
Co-authored-by: swyx <wanshawn@amazon.com>
2020-10-07 14:12:42 -04:00
Adam Wathan
d01636caff
Add experimental 2xl breakpoint ( #2468 )
2020-10-07 14:12:42 -04:00
Adam Wathan
4d6e1e7e92
Don't escape keyframes ( #2432 )
...
* Don't escape keyframes
* Update changelog
2020-10-07 14:12:41 -04:00
Dexter Marks-Barber
f72158c87f
Automatically add featureFlags.future flags to the configuration files whenever the init command is ran ( #2379 )
...
* Add --future flag to CLI
* Remove early exit
* Always add future flags but commented out
- Update replace regex
- Remove future CLI flag
- Update tests
2020-10-07 14:12:41 -04:00
Adam Wathan
19333add01
Set color opacity variable when colors are defined as functions ( #2515 )
...
* Always set color opacity variable, even if color cannot be parsed
* Only set color opacity when it might be used
2020-10-07 14:08:39 -04:00
Adam Wathan
32eac19858
Allow variant plugins to tell Tailwind they should stack ( #2382 )
...
* Fix unwanted stacking behavior on any non-darkModeVariant "dark" variant (#2380 )
* Add failing tests for non-darkModeVariant "dark" variant stacking behavior
* Fix unwanted non-darkModeVariant "dark" variant stacking (by making the failing test pass)
* Add unstable_stack option for variants to tell Tailwind they should stack
* Update eslint to allow unstable_ variables
* Update changelog
Co-authored-by: Navith <28162694+JakeNavith@users.noreply.github.com>
2020-09-14 09:12:36 -04:00
Adam Wathan
416fb4d06b
Don't propogate apply !important option to non-apply rules ( #2376 )
...
* Don't propogate apply !important option to non-apply rules
Fixes #2362 .
* Update changelog
2020-09-13 09:44:19 -04:00
Kenton Glass
da02dc8e63
Add negative spacing values to inset plugin ( #2358 )
2020-09-11 12:33:28 -04:00
Adam Wathan
a4b30a0115
Safeguard against trailing slash in purge matches ( #2364 )
2020-09-10 14:44:48 -04:00
Adam Wathan
b49d80e6c1
Fix issue where container padding not applied when using object syntax ( #2353 )
2020-09-09 09:59:16 -04:00
Robin Malfait
3a25c4bee9
Complex apply stuck ( #2271 )
...
* dry-up duplication
* fix: apply inside a nested structure
2020-09-06 20:36:09 -04:00
Adam Wathan
0cf76cdd8b
Fix issue where dark variant in 'class' mode was incompatible with 'group-hover' variant ( #2337 )
...
* Fix issue where dark variant in 'class' mode was incompatible with 'group-hover' variant
* Update changelog
2020-09-06 20:34:35 -04:00
Adam Wathan
0b48b4cd8c
Test that plugins can extend variants
2020-09-06 11:50:20 -04:00
Adam Wathan
30a4e513ef
Rename hairline and thin font weights to thin and extralight ( #2333 )
...
* Add standardFontWeights flag for update thin/extralight font weight names
* Update changelog
2020-09-06 07:06:58 -04:00
Adam Wathan
45cf3c595e
Fix issue where inserting extra PurgeCSS control comments could break integrated PurgeCSS support ( #2331 )
2020-09-05 23:35:16 -04:00
Adam Wathan
f3660ceed3
Do atrocious things to sneak past minifiers for font-variant-numeric utilities
2020-09-05 17:36:12 -04:00
Adam Wathan
02eb6a695c
Fix issue where dark mode experiment won't work if user has plugins array in config ( #2322 )
2020-09-04 19:58:02 -04:00
Robin Malfait
4c4c5a3834
Fix purging in 1.8 ( #2320 )
...
* re-add missing `@layer`'s for responsive rules
* use toMatchCss for better diffing
* do not wrap user `@responsive` rules in an `@layer`
2020-09-04 18:36:50 -04:00
Robin Malfait
88174ff524
fix(font-variant-numeric): drop extra s ( #2318 )
...
* drop extra s
* update changelog
2020-09-04 23:53:30 +02:00
Adam Wathan
09bd7d43f4
Move custom CSS within layers to corresponding Tailwind layer ( #2312 )
...
* Move custom CSS within layers to corresponding Tailwind layer
* Update changelog
2020-09-04 14:21:56 -04:00
Adam Wathan
476950ce40
Support defining variants as functions for easier extending ( #2309 )
...
* Support defining variants as functions for easier extending
* Fix style
* Remove commented code
* Add 'without' helper to variant function API
* Update changelog
2020-09-04 10:59:02 -04:00
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