Adam Wathan
704396b892
Remove hoverable and focusable at-rules in favor of variants at-rule
2017-11-24 15:11:16 -05:00
Adam Wathan
65efe91911
Merge pull request #236 from tailwindcss/pin-none
...
[0.3] Add `pin-none` utility to reset positioning at higher breakpoints
2017-11-24 15:03:44 -05:00
Adam Wathan
a2f1cf099f
Merge pull request #241 from tailwindcss/mark-options-as-advanced
...
[0.3] Remove redundant default option fallbacks
2017-11-24 15:03:22 -05:00
Adam Wathan
798d2ccd17
Merge pull request #235 from dumconstantin/master
...
[0.3] Make a configurable separator (default ':')
2017-11-24 15:03:01 -05:00
Adam Wathan
e20f340ba5
Remove redundant default fallbacks
2017-11-24 14:15:11 -05:00
Adam Wathan
f84507457f
Extract mergeConfigWithDefaults for easier testability
2017-11-24 12:34:09 -05:00
Adam Wathan
944dd00160
Move modules key out of options and up to top level
2017-11-24 12:08:43 -05:00
Adam Wathan
37f5a0a0d4
Sort pin utilities from general to specific
2017-11-24 09:56:36 -05:00
Adam Wathan
6899a4913b
Add pin-none utility, remove width/height from pin
2017-11-24 09:42:01 -05:00
dumconstantin
013f845281
Make the hoverable, focusable and responsive separator (default '\:') configurable.
2017-11-24 16:26:40 +02:00
Adam Wathan
e603a22f5e
Invert conditional to guard clause
2017-11-23 15:36:20 -05:00
Adam Wathan
8171ca79ff
Rename substitutePreflight to substituteTailwindPreflight
2017-11-23 15:04:21 -05:00
Adam Wathan
1a5c09c14d
Fix style
2017-11-23 15:03:34 -05:00
Adam Wathan
62a9894a53
Rename generateUtilities to substituteTailwindUtilitiesAtRules
2017-11-23 15:02:55 -05:00
Adam Wathan
b586c6d8ed
Refactor generateUtilities to use generateModules
2017-11-23 15:01:22 -05:00
Adam Wathan
936a4eeefd
Extract function for generating modules
...
Fully parameterized, makes it easy to test module options behavior
without testing against the entire default module list.
2017-11-23 15:00:52 -05:00
Adam Wathan
0a6c4cc5c6
Use @variants to generate variants specified in config
...
...instead of using variant generators directly.
2017-11-23 12:01:04 -05:00
Adam Wathan
5870489f38
Don't include module if explicitly disabled in config
2017-11-23 11:16:44 -05:00
Adam Wathan
9202ecf104
Merge user config with default config
...
Not recursively so values won't get combined, but missing keys will get
their default values which makes upgrading a non-breaking change if we
add new options.
2017-11-23 11:16:44 -05:00
Adam Wathan
89300a60db
Remove some duplication in favor of voodoo array wizardry
2017-11-23 11:16:44 -05:00
Adam Wathan
ea8915bef2
Generate responsive/hover variants based on config instead of hard-coded
2017-11-23 11:16:44 -05:00
Adam Wathan
98d5a55c47
Apply responsive and hover at the per-module level, in the main generator
2017-11-23 11:16:44 -05:00
Adam Wathan
d1828c9dd9
Rename generators to match planned module names
2017-11-23 11:16:44 -05:00
Adam Wathan
28f73f2bf5
Add support for including responsive in variants list
2017-11-23 09:58:42 -05:00
Adam Wathan
ebb8633809
Fix tests and style
2017-11-23 09:58:25 -05:00
Adam Wathan
12dd81b906
Working on @variants at-rule
...
Currently supports focus and hover, need to add responsive which will be a whole horrible can of worms.
2017-11-22 18:44:30 -05:00
Adam Wathan
0dbc2200d5
Generate hover variants as separate rules
2017-11-22 15:54:25 -05:00
Adam Wathan
37b06c8dc9
Generate focus variants as separate declarations
2017-11-22 15:52:32 -05:00
Adam Wathan
fc0e99e598
Fix style errors
2017-11-17 10:50:14 -05:00
Adam Wathan
8f3e80e961
Throw error when trying to access defaultConfig the deprecated way to be nice guys
2017-11-17 10:37:57 -05:00
Adam Wathan
436f485897
Merge pull request #214 from tailwindcss/reorder-border-widths
...
[0.2] Sort border width utilities from most general to most specific
2017-11-17 09:33:43 -05:00
Adam Wathan
80281a3646
Merge pull request #213 from tailwindcss/reorder-radius
...
[0.2] Reorder rounded utilities from most general to most specific
2017-11-17 09:33:34 -05:00
Adam Wathan
9685c77647
Merge pull request #211 from tailwindcss/reorder-spacing-utilities
...
[0.2] Define spacing utilities from most general to most specific
2017-11-17 09:33:25 -05:00
Adam Wathan
2b93b55587
Merge pull request #209 from tailwindcss/error-on-media-apply
...
[0.2] Be more strict about which classes can be `@apply`'d
2017-11-17 09:33:12 -05:00
Adam Wathan
ddfa8de684
Sort border width utilities from most general to most specific
2017-11-17 08:54:43 -05:00
Adam Wathan
985fa90ad1
Reorder rounded utilities from most general to most specific
2017-11-16 16:15:18 -05:00
Adam Wathan
4390f30283
Fix style
2017-11-16 13:27:29 -05:00
Adam Wathan
9c6e829438
Define spacing utilities from most general to most specific
2017-11-16 13:14:39 -05:00
Adam Wathan
447bc873d8
Prettier-ignore long error strings
2017-11-16 08:16:59 -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
6807e45e1e
Expect onError function is always provided
...
This can't really be optional.
2017-11-16 07:51:56 -05:00
Adam Wathan
6f6f1cc318
Fix conflicts
2017-11-15 09:36:21 -05:00
Adam Wathan
a94dcc5f78
Rename radius back to rounded 😂
2017-11-15 09:30:30 -05:00
Jonathan Reinink
1faabc82b1
Switch to separate config import
...
Import default config from separate path (require('tailwindcss/defaultConfig')) to allow importing the default config without importing all of Tailwind, which causes errors with Webpack due to a dynamic require.
2017-11-14 08:03:31 -05:00
Jonathan Reinink
d3817c7071
Tweak order of border radius corner utilities
2017-11-13 16:52:58 -05:00
Adam Wathan
5ef221cb64
Reintroduce radius-{side} utilities
2017-11-13 14:56:11 -05:00
Adam Wathan
924986f7ec
Switch rounded to radius, target corners instead of sides
2017-11-13 12:13:00 -05:00
Adam Wathan
e65b2df5a8
Improve error messages
2017-11-13 11:28:31 -05:00
Adam Wathan
d1deaba4c5
Combine sides and sizes for rounded utilities, like we do with border width
2017-11-11 13:27:15 -05:00
Adam Wathan
f67665ff98
Merge master, fix conflicts
2017-11-11 10:42:51 -05:00