ecrmnn
66e75b89ab
Replaces use of Lodash isArray with built-in Array.isArray
2019-07-13 16:52:07 +02:00
Adam Wathan
b1242a0810
Fix conflicts
2019-07-10 08:29:58 -04:00
Adam Wathan
5080129b71
Merge pull request #732 from GeoffSelby/add-disabled-variant
...
Add `disabled` variant
2019-07-10 08:27:23 -04:00
Adam Wathan
79761b89f9
Merge pull request #964 from tailwindcss/sr-only-utilities
...
Add sr-only and not-sr-only utilities
2019-07-10 08:25:18 -04:00
Adam Wathan
b87aedb80f
Merge pull request #991 from AlexVipond/fix-invisible-hr
...
Add border-width: 1px for horizontal rules
2019-07-10 08:21:13 -04:00
AlexVipond
2304f64119
add hr css
2019-06-27 19:20:25 -06:00
Adam Wathan
a80720a8c6
Remove unused import
2019-06-20 11:24:54 -04:00
Christopher Willard
1efc5d1d44
Add support for :visited state variant
2019-06-18 07:27:40 -04:00
Adam Wathan
eeb2947204
Properly handle pseudo-elements with group-hover variant
2019-06-13 07:52:37 -04:00
Adam Wathan
737f1ecde0
Append variant pseudo-selectors after classes instead of replacing entire selector
2019-06-12 09:15:06 -04:00
Adam Wathan
9b94cc1ed2
Add sr-only and not-sr-only utilities
2019-06-10 19:39:25 -04:00
Adam Wathan
1d10f20b48
Error when someone tries to use
2019-06-01 15:51:02 -04:00
Adam Wathan
5e7c263e0a
Add test, fix style
2019-05-27 08:05:51 +02:00
Benoît Rouleau
6ce2cfe349
Bubble @screen at-rules when adding styles through plugins
2019-05-26 21:40:23 -04:00
Adam Wathan
0183b86b45
Fix global variants not working when configs are merged
2019-05-13 12:44:19 -04:00
Stidges
4cbe959000
Fix container plugin screen order and duplication
2019-05-12 18:50:03 -04:00
Adam Wathan
0fac54f8f1
Remove select-contain due to limited browser support
2019-05-11 07:06:32 -04:00
Jarek Radosz
23b720bb31
Allow accessing deep paths with function values via theme helper
...
Example:
```js
theme: {
spacing: {
'0': '0',
},
width: theme => ({
...theme('spacing'),
'1/3': '33.33333%',
}),
minWidth: theme => ({
'1/3': theme('width.1/3'),
}),
}
```
2019-05-08 22:11:10 +02:00
Adam Wathan
c5f00a316b
Merge pull request #885 from tailwindcss/more-user-select-utilities
...
Add remaining user select utilities
2019-04-29 08:37:43 -04:00
Adam Wathan
82456a6731
Add remaining user select utilities
2019-04-29 08:28:55 -04:00
Benoît Rouleau
ce1812a244
Add bg-repeat-round and bg-repeat-space utilities
2019-04-28 17:13:12 -04:00
Adam Wathan
aac25d6a7a
Fix bug where config utils was not passed through to nested closures
2019-04-27 16:55:21 -04:00
Adam Wathan
a92faeefac
Fix conflicts, update tests
2019-04-27 11:37:20 -04:00
Adam Wathan
2104a4e006
Add support for negative prefixes in zIndex plugin
2019-04-26 08:57:55 -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
e8b64fdb62
Move negative margin logic into a helper
...
Adds a new `utils` bucket that's passed as a second arg when using a closure for theme values. The idea is you can destructure useful helper functions out of this argument, in this case a `negative` function that converts a positive scale to negative values. That's the only helper function right now, but making it a destructurable arg so we can add more if necessary without adding a bunch of positional arguments.
2019-04-24 15:15:30 -04:00
Adam Wathan
a7ec9c2396
Remove negativeMargin plugin, handle negative values in regular margin plugin
2019-04-23 20:04:35 -04:00
Kyle Coburn
5056363090
Fix formatting empty root
2019-04-19 20:32:54 -07:00
Michaël De Boey
d4b2b8b755
Make theme config directly accessible in the plugins
2019-04-18 23:29:07 +02:00
Adam Wathan
0e0ab3ab7a
Make it possible to whitelist core plugins by passing an array
2019-04-18 10:31:14 -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
Adam Wathan
27cef23a2c
Support disabling all corePlugins with corePlugins: false
2019-04-17 08:15:37 -04:00
Adam Wathan
93184084c6
Rename formatNodes to formatCSS
2019-04-17 08:07:42 -04:00
Adam Wathan
de1884fdd9
Fix formatting
2019-04-16 11:49:12 -04:00
Adam Wathan
c98cc12d35
Remove dependency on perfectionist, implement simple formatting from scratch
2019-04-16 11:43:17 -04:00
David Hemphill
12afd6e8a1
fix stroke utility generation
2019-04-02 15:55:19 -05:00
David Hemphill
6190fe52d4
Fix fill color utility generation
2019-04-02 15:23:40 -05:00
Brad Cornes
caa687a59b
account for function values in theme function
2019-03-24 20:10:15 +00:00
Adam Wathan
f5e8c74639
Don't mutate variants in user's config
2019-03-22 13:13:39 -04:00
Adam Wathan
7e1113561a
Don't mutate the user's config when resolving
2019-03-22 12:47:21 -04:00
mattstypa
26e4007428
Few CLI tweaks
2019-03-20 08:17:56 -05:00
Adam Wathan
6d1533e9a8
Revert #745 , always default to bolder for strong tags
2019-03-18 13:10:54 -04:00
Adam Wathan
aee1e44431
Fix code style
2019-03-18 11:42:56 -04:00
Adam Wathan
509b698bfc
Simplify resolveConfig slightly, try to catch more in tests
2019-03-18 11:21:32 -04:00
Jarek Radosz
62972a7693
Lazily evaluate values in the extend section
...
In a way this combines PRs #655 and #774 .
2019-03-17 05:31:35 +01:00
Adam Wathan
fcd0f364db
Pass theme to closures as function instead of object
2019-03-16 16:22:31 -04:00
Adam Wathan
048bd040b7
Fix @screen not working, add simple test
2019-03-16 14:19:22 -04:00
Adam Wathan
b1a8f27b0a
Merge pull request #769 from tailwindcss/make-replaced-elements-block
...
Make replaced elements block by default, preserve aspect ratio
2019-03-15 11:30:42 -04:00