4079 Commits

Author SHA1 Message Date
Adam Wathan
4a521bf81b
Merge pull request #533 from tailwindcss/preserve-zero-units
Preserve units for zero value properties
2018-08-15 03:10:28 +09:30
Adam Wathan
d82a7556c0 Preserve units for zero value properties 2018-08-14 13:37:08 -04:00
Adam Wathan
01e74f7b4c 0.6.4 v0.6.4 2018-07-16 08:47:45 -04:00
Adam Wathan
37493edfc7
Merge pull request #520 from tailwindcss/process-tailwind-features-together
Process tailwind features together
2018-07-16 22:17:25 +09:30
Adam Wathan
7201c4f51b Rename lazyConfig to getConfig 2018-07-16 08:37:23 -04:00
Adam Wathan
c0adb29f27 Be more defensive about fetching input source file 2018-07-16 08:35:58 -04:00
Adam Wathan
91286ad6bf Process all Tailwind features as one big plugin 2018-07-16 08:30:57 -04:00
Adam Wathan
25744172d1 Extract duplication to function 2018-07-12 11:05:09 -04:00
Adam Wathan
1a9b87f085 Fix style 2018-07-12 11:02:13 -04:00
Adam Wathan
80baf4aa17 Pass generated utilities around as array instead of root
When you do something like container.before(someRoot), PostCSS actually *mutates* someRoot, leaving it empty and moving its contents before the container. container.before(arrayOfNodes) on the other hand does no weird mutation.

This PR makes sure generatedUtilities is an array of nodes instead of a PostCSS container to avoid this unexpected mutation. It makes it a bit more work to walk those nodes if they need to be transformed, but I think it's worth the trade-off. Can always write a helper function around that if the boilerplate starts to feel repetitive.
2018-07-11 19:14:33 -04:00
Adam Wathan
89a18e272c 0.6.3 v0.6.3 2018-07-11 15:54:25 -04:00
Adam Wathan
597bad6ee5 Clone generatedUtilities before inserting 2018-07-11 15:54:11 -04:00
Adam Wathan
9afe6154be 0.6.2 v0.6.2 2018-07-11 12:35:23 -04:00
Adam Wathan
dd6fa7c4eb
Merge pull request #516 from tailwindcss/shadow-table
[Experiment] Allow `@apply`-ing utility classes that aren't explicitly defined but would be generated
2018-07-12 02:01:19 +09:30
Adam Wathan
ee6340af4a
Merge pull request #517 from tailwindcss/variant-plugin-flag
Move plugin variant features behind experiment
2018-07-12 01:59:48 +09:30
Adam Wathan
7846d2a228 Move plugin variant features behind experiment 2018-07-11 12:13:50 -04: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
38c211a164
Merge pull request #505 from tailwindcss/variant-plugins
Support creating new variants through plugins (WIP)
2018-07-11 22:28:30 +09:30
Adam Wathan
f974b8df03 Add support for writing variant plugins with raw PostCSS API 2018-06-26 13:44:47 -04:00
Adam Wathan
9b22ff3513 Only process plugins once 2018-06-26 13:44:47 -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
64cda2f44b Refactor duplication to use generateVariantFunction 2018-06-26 13:44:47 -04:00
Adam Wathan
d77bc055ee Support for basic variant generator plugins
Allows you to write a plugin that registers a new variant but only
allows you to modify the selector (like what our built-in generators
do.)

Next steps are to support variants that wrap rules with at-rules
(like @supports for example), variants that can modify properties
(as opposed to just selectors), and to give variant plugin authors
control over how responsive variants interact with their own variants.
2018-06-26 13:44:47 -04:00
Adam Wathan
9eca69ad83 Refactor process plugins to return an object 2018-06-26 13:44:47 -04:00
Adam Wathan
9d05910507 Generate variants based on the order specified in the modules config 2018-06-26 13:44:47 -04:00
Adam Wathan
bfaafffb3f Fix style 2018-06-26 13:44:38 -04:00
Adam Wathan
46ea06e6d6
Merge pull request #504 from tailwindcss/table-layout
Add table layout module
2018-06-26 05:10:25 +09:30
Adam Wathan
6fb772cb71 Test config can be passed as object instead of path 2018-06-25 08:35:01 -04:00
Benoît Rouleau
46058cf6c8 accept config as a js object 2018-06-22 21:01:18 -04:00
Adam Wathan
2eb49a8fb4 Add table layout module 2018-06-22 09:55:56 -04:00
Adam Wathan
c14076742b 0.6.1 v0.6.1 2018-06-22 07:53:23 -04:00
Adam Wathan
9b039c7ad3
Merge pull request #503 from tailwindcss/fix-shadow-outline
Fix shadow outline
2018-06-22 21:22:56 +09:30
Adam Wathan
06b1651b84 Update tests 2018-06-22 07:51:50 -04:00
Adam Wathan
12ecc8dbb9 Fix shadow-outline syntax 2018-06-22 07:48:15 -04:00
Adam Wathan
e8ca4d0be8 0.6.0 v0.6.0 2018-06-21 12:03:27 -04:00
Adam Wathan
f39e973fc3
Merge pull request #499 from tailwindcss/more-spacing-sizes
Add more default spacing sizes
2018-06-21 21:35:50 +09:30
Adam Wathan
bed2ddc223 Add more default spacing sizes
...and matching height/width where spacers had them but sizes didn't.
2018-06-20 15:10:21 -04:00
Adam Wathan
9339839f87
Merge pull request #498 from tailwindcss/add-more-default-variants
Enable more variants by default
2018-06-21 04:20:08 +09:30
Adam Wathan
7c8e6f9d25 Enable more variants by default 2018-06-20 14:34:50 -04:00
Adam Wathan
1fc8a85ffd
Merge pull request #491 from tailwindcss/no-outline
Add "outline-none" and "shadow-outline" utilities
2018-06-21 03:52:00 +09:30
Jonathan Reinink
38609128c1 Remove default tabindex="-1" outline style in Preflight 2018-06-20 13:46:41 -04:00
Jonathan Reinink
dd71f23bfa Enable focus varients for outlines by default 2018-06-20 13:41:48 -04:00
Jonathan Reinink
23a0151311 Enable focus varients for shadows by default 2018-06-20 13:40:26 -04:00
Jonathan Reinink
d4deb7f971 Rename "no-outline" to "outline-none" instead 2018-06-20 13:38:36 -04:00
Adam Wathan
7019ef3a8f
Merge pull request #426 from adevade/patch-1
Add height: auto; to img tag in preflight
2018-06-21 02:33:05 +09:30
Adam Wathan
490e378f64
Merge pull request #497 from tailwindcss/add-screen-prefix-to-last-class
Add variant prefix to last class in a selector, not the first
2018-06-21 02:27:39 +09:30
Adam Wathan
8333d46cae Add variant prefix to last class in a selector, not the first 2018-06-20 12:21:14 -04:00