300 Commits

Author SHA1 Message Date
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
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
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
e65b2df5a8 Improve error messages 2017-11-13 11:28:31 -05:00
Adam Wathan
f67665ff98 Merge master, fix conflicts 2017-11-11 10:42:51 -05:00
Adam Wathan
891271ff9d Add "prefix" and "important" options to config 2017-11-11 08:12:27 -05:00
Adam Wathan
c4305d0c07 Don't allow @applying classes that ever appear inside of an at-rule
This is too complex to easily support; better to explicitly error for
now vs. the current behavior which is just silently doing something
other than you probably expect.
2017-11-10 12:18:20 -05:00
Adam Wathan
fd95c5d90f Fix conflicts 2017-11-10 09:41:52 -05:00
Adam Wathan
3a976a60d7 Allow @tailwind screens directive inside an at-rule 2017-11-09 15:10:53 -05:00
Patrick Heller 💩
55f3f93f91 reduct code smells 2017-11-08 19:02:46 +01:00
Patrick Heller 💩
ed71ee438d fix code style issues 2017-11-08 18:48:48 +01:00
Patrick Heller 💩
498c53c582 Merge remote-tracking branch 'remotes/upstream/master' into fix-issue-18
# Conflicts:
#	__tests__/sanity.test.js
#	src/lib/substituteResponsiveAtRules.js
2017-11-08 18:46:47 +01:00
Patrick Heller 💩
44c0035dfa rename screen-utilities to screens 2017-11-08 18:30:59 +01:00
Adam Wathan
afc41252cf Merge branch 'master' into develop 2017-11-07 09:35:28 -05:00
Adam Wathan
8a86a3ef5e Push config file dependency message instead of replacing messages array 2017-11-07 09:17:52 -05:00
Adam Wathan
475ad19029 Support cascading border colors and styles 2017-11-06 15:29:40 -05:00
David Hemphill
06ed308c28 change print width to 100 characters 2017-11-06 15:02:02 -05:00
David Hemphill
79a2bb39e5 Reformat files 2017-11-06 15:02:02 -05:00
David Hemphill
9dbf5881cd fix eslint issues 2017-11-06 15:00:55 -05:00
David Hemphill
ec607968cf Add ESLinting and Prettier formatting and run an initial format on the codebase 2017-11-06 15:00:00 -05:00
Adam Wathan
78d66429bd Move list utilities to very top, fix tests 2017-11-06 11:37:01 -05:00
Adam Wathan
aee9e3c4c4 Merge branch 'fix-list-reset-overwrite' of https://github.com/jake-dohm/tailwindcss into jake-dohm-fix-list-reset-overwrite 2017-11-06 11:33:30 -05:00
Jonathan Reinink
0b0cb96fa9
Merge pull request #115 from tailwindcss/config-default
Support default values in config function
2017-11-06 10:36:32 -05:00
Adam Wathan
c7061e9228 Support default values in config function
Also add a bunch of tests, seems probably wise :)
2017-11-06 10:32:17 -05:00
Jake Dohm
8f8469fd62 Moved lists utility nearer to the top, so other utilities (padding, margin, etc.) would override; 2017-11-06 09:06:13 -05:00
Patrick Heller 💩
6cec22b523 make tests green 2017-11-04 00:07:02 +01:00
Patrick Heller 💩
8a42f279f6 code style and remove comment 2017-11-03 23:10:53 +01:00
Patrick Heller 💩
e5a9c8926f remove empty media queries 2017-11-03 20:52:16 +01:00
Patrick Heller 💩
73f0ee9826 Fixes #18 2017-11-03 19:43:40 +01:00
Adam Wathan
b2b95d5738 Register config file with Webpack for watching
This change tells Webpack (for those using it) that the config file
used should be tracked as a dependency and that the CSS should be
re-compiled if that config file changes.

It's careful to make sure the config file is loaded fresh every single
time to avoid weird caching issues.
2017-11-03 09:54:15 -04:00
Jonathan Reinink
2b1a6959d3 Rename "reset" to "preflight" 2017-10-31 17:05:10 -04:00
Jonathan Reinink
05a172f80d Inline normalize.css 2017-10-30 14:06:27 -04:00
Jonathan Reinink
96e9e67592 Rename tailwind() method to config()
Add basic tests for config(), @response and @apply.
2017-10-30 13:50:37 -04:00
Adam Wathan
eafac886fa Use lodash to extract keys safely 2017-10-24 12:13:25 -04:00
Adam Wathan
efe678ddf3 Add focusable at-rule
Allows you to wrap up classes to easily generate `.focus:{class}`
variants.
2017-10-21 11:15:25 -04:00
Adam Wathan
282c8c595c Fix hover utilities 2017-10-14 09:57:54 -04:00
Adam Wathan
56c0980158 Don't apply hover utilities on focus
I thought this was a good idea at first but in practice it feels wrong.
Not totally opposed to it, but I couldn't really find any other sites
that apply a button's hover state on focus for example.
2017-10-13 17:02:09 -04:00
Adam Wathan
09a56e794f Rename 'breakpoint' features to 'screens', support for 'raw' key 2017-10-13 11:39:55 -04:00
Adam Wathan
b41a5ae724 Rename appearance-none to input-reset, move docs 2017-10-13 11:17:53 -04:00
Adam Wathan
f1ad1d8a7a Add list-reset utility 2017-10-13 11:15:31 -04:00
Jonathan Reinink
7d785bf519 Fix breakpoint at rule 2017-10-12 12:06:51 -04:00
Adam Wathan
cd41069cba Extract reset to separate file, inline SUIT CSS Base, rename @tailwind at-rules 2017-10-11 09:35:04 -04:00
Adam Wathan
9552867050 Add pointer events utilities 2017-10-09 11:27:50 -04:00
Adam Wathan
ba04169e4e Add support for "tailwind" function to look up config values 2017-10-09 10:42:19 -04:00
Adam Wathan
b358390e8b Switch @ prefix for hover: prefix 2017-10-09 10:39:54 -04:00
Adam Wathan
1da5eb4d4c Add @tailwind-reset rule
...with basic reset support.

Might want to rename the rule because of that annoying Less issue where
it fails without any parameters, like `@tailwind reset` or something.
Super G and inconsistent with `@tailwind-utilities all` though. Who
knows.
2017-10-07 17:59:28 -04:00
Adam Wathan
9a880d43ea Escape class names provided in @apply
Without this, can't mixin stuff like .w-1/4.
2017-10-06 15:40:40 -04:00