1200 Commits

Author SHA1 Message Date
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
9c72969b7c
Merge pull request #232 from tailwindcss/variants-rule
Add `@variants` at-rule for generating multiple variants
2017-11-23 11:15:02 -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
7746f64806
Merge pull request #229 from tailwindcss/badge-alert
Add badge alert example
2017-11-21 16:55:10 -05:00
Adam Wathan
c9a12a6624 Include more context in code sample 2017-11-21 15:56:36 -05:00
Adam Wathan
770966ca76 Add badge alert example 2017-11-21 15:54:00 -05:00
Adam Wathan
4ca1ed387e
Merge pull request #228 from darrylhein/patch-1
minor docs tabbing correction
2017-11-21 15:04:41 -05:00
Darryl Hein
9c0c864fdb
minor tabbing fix 2017-11-21 12:54:56 -07:00
Adam Wathan
d037a60128 Update remaining docs pages to use class table partial 2017-11-20 09:57:46 -05:00
Adam Wathan
705e048bec Remove note about customizing sides from border radius docs
Not as relevant anymore now that sides/sizes are combined.
2017-11-20 09:15:46 -05:00
Adam Wathan
2659f0100c Use class table partial for display documentation 2017-11-19 16:31:50 -05:00
Adam Wathan
f725301ae8 Use class table partial for border radius docs 2017-11-19 16:28:07 -05:00
Adam Wathan
91fc6d75c2 Use class table for float docs 2017-11-19 16:08:47 -05:00
Adam Wathan
2b28e89533 Use class table partial for z-index docs 2017-11-19 15:56:31 -05:00
Adam Wathan
123109b766 Use class table partial for visibility docs 2017-11-19 15:56:20 -05:00
Adam Wathan
cf34d0d772 Use class table partial for vertical alignment docs 2017-11-19 15:56:11 -05:00
Adam Wathan
6518e8265a Use class table partial for sizing docs pages 2017-11-19 15:55:58 -05:00
Adam Wathan
dafbd7d128 Swap hand-coded tables for class table partial in typography docs pages 2017-11-19 15:36:54 -05:00
Adam Wathan
65319df7ca v0.2.2 v0.2.2 2017-11-19 12:22:17 -05:00
Adam Wathan
6ccac3d54e 0.2.1 v0.2.1 2017-11-18 10:52:08 -05:00
Adam Wathan
ae94ac9f1f
Merge pull request #216 from tailwindcss/revert-button-reset
Revert trying to reset Chrome 62 default button styles
2017-11-18 10:50:33 -05:00
Adam Wathan
7305bac176 Reset radius applied by Chrome 62 using low specificity selectors 2017-11-18 10:45:29 -05:00
Adam Wathan
b9114478d4 Revert trying to reset Chrome 62 default button styles 2017-11-18 10:30:00 -05:00
Adam Wathan
d9c3f7b6cf Fix typo in border radius example 2017-11-17 16:19:37 -05:00
Adam Wathan
be3f9d3850 0.2.0 v0.2.0 2017-11-17 16:04:53 -05:00
Adam Wathan
e197420fea Merge branch 'master' into develop 2017-11-17 10:52:38 -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
2fe2a38080
Merge pull request #206 from tailwindcss/add-options-key-to-default-key
[0.2] Add options key to default config and document
2017-11-17 09:32:44 -05:00
Adam Wathan
108d5d94de
Merge pull request #207 from tailwindcss/class-table-partial
Add class-table partial to make class tables more maintainable
2017-11-17 09:27:55 -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
a379d80aa7 Merge branch 'master' into develop 2017-11-17 08:39:33 -05:00
Adam Wathan
3bc4631924 Only send Google Analytics data if analytics was loaded successfully
Prevent errors in local environment and if people are using blockers.
2017-11-17 08:22:06 -05:00
Adam Wathan
60e1a9d8b3 Update Hemphill's Twitter pic 2017-11-16 18:06:20 -05:00
Adam Wathan
5ad847b113 Replace state on initial page load so it's reloadable on popstate 2017-11-16 17:30:24 -05:00