485 Commits

Author SHA1 Message Date
Adam Wathan
c3f021a0c9 Prefix all classes in a selector, don't assume single class 2018-03-07 09:37:01 -05:00
Adam Wathan
d1423bab63 Drop shitty rule/atRule syntax for pure object syntax 2018-03-07 09:37:01 -05:00
Adam Wathan
10be05a167 Get object style parsing working without the insanity 2018-03-07 09:37:01 -05:00
Adam Wathan
bc05473b37 Add dependencies, fix warnings 2018-03-07 09:37:01 -05:00
Adam Wathan
6450748351 WIP 2018-03-07 09:37:01 -05:00
Adam Wathan
2feac441e7 Style fixes 2018-03-05 09:58:35 -05:00
Adam Wathan
9234df388e Add utility helper for creating utility rules that are automatically escaped and respect prefix/important options 2018-03-05 09:58:35 -05:00
Adam Wathan
960275cc86 Add container classes as utilities not components
Just for now so that this feature can be introduced into the codebase
without forcing a BC break. The container classes will eventually be
moved to a built-in plugin that adds them as components.
2018-03-05 09:58:35 -05:00
Adam Wathan
dac591198f Provide a function for prefixing utilities in plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
87b291a258 Test utilities can be added without specifying variants 2018-03-05 09:58:35 -05:00
Adam Wathan
9573024a1b Expose config as a function to avoid mutation and make it easy to provide defaults 2018-03-05 09:58:35 -05:00
Adam Wathan
18d45b19cf Fix style 2018-03-05 09:58:35 -05:00
Adam Wathan
98f322920f Move processPlugins to separate module 2018-03-05 09:58:35 -05:00
Adam Wathan
a6342e60ce Add atRule helper for plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
24d184fbfc Pass escape function to plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
4d3bbcad95 Pass config to plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
e89fffbc3c Remove unnecessary array destructuring 2018-03-05 09:58:35 -05:00
Adam Wathan
47518404c0 Rename selector to rule, extract plugin processing 2018-03-05 09:58:35 -05:00
Adam Wathan
73a6b6da85 Sort imports 2018-03-05 09:58:35 -05:00
Adam Wathan
5f77aa0ec3 Implement basic plugin system 2018-03-05 09:58:35 -05:00
Adam Wathan
eacc4635b6 Match apply rules against a lookup table instead of searching 2018-02-28 20:34:16 -05:00
Adam Wathan
d9bc4e658a Always use function for determining prefixes internally 2018-01-30 07:12:30 -05:00
Emil Tholin
357c87376e Add support for passing a function as the prefix 2018-01-28 15:55:21 -05:00
Adam Wathan
f4c905fcef Tweak Perfectionist configuration 2018-01-22 10:01:22 -05:00
Keith Damiani
eea8b54dfe Run perfectionist at end of PostCSS chain in place of stylefmt 2018-01-19 14:39:56 -05:00
Adam Wathan
ec9b9b99bd Add support for making applied rules important 2017-12-13 13:00:37 -05:00
Adam Wathan
47a3b938de Fix style 2017-12-13 13:00:01 -05:00
Adam Wathan
88ff6bdbc3 Don't normalize custom property sets in at-apply 2017-12-13 12:51:35 -05:00
Adam Wathan
6984ba0b99 Add source map information to generated utilities 2017-12-12 15:24:59 -05:00
Jack McDade
c84886e32e Adjust syntax style to fit standards 2017-12-08 16:15:58 -05:00
Jack McDade
97ef316af8 Prevent @apply from adding !important. 2017-12-08 16:05:54 -05:00
Adam Wathan
d8698f6144 Switch from var to let
Closes #281.
2017-12-04 10:44:50 -05:00
Adam Wathan
858b725896
[0.3] Rename parent-hover to group-hover (#271) 2017-12-01 08:14:58 -05:00
Adam Wathan
ad48de9500
[0.3] Escape separator string (#270) 2017-11-30 15:55:06 -05:00
Agustín Rodríguez
6179e6ac51 utility to make both axes resizables 2017-11-29 18:46:25 -05:00
Adam Wathan
45c1c4826f Merge branch 'master' into 0.3 2017-11-29 18:46:08 -05:00
Adam Wathan
be1f5b9156
[0.3] Add SVG Fill and Stroke utilities (#263) 2017-11-29 12:24:17 -05:00
Adam Wathan
7d6d0af65c Add more detail to @apply errors 2017-11-29 10:16:38 -05:00
Adam Wathan
ec19740eb0 Add support for hardcore bloat mode with modules: 'all'
Turns on every variant for every module :feelsgood:
2017-11-29 09:38:59 -05:00
Michaël De Boey
b50b8d4390 Add background repeat utilities 2017-11-28 14:45:54 -05:00
Adam Wathan
ed550b3c5c
[0.3] Add parent-hover variant (#251)
* Add parent-hover variant

* Don't enable parent-hover on textColors module by default

* Add tests, move parent-hover declarations to separate rules

* Prettier-ignore long selector string
2017-11-28 14:44:43 -05:00
Adam Wathan
c165f1df57
[0.3] Add background attachment utilities (#243)
* Create backgroundAttachment.js generator

* Updated background-attachment utility

* Integrate background attachment utilities

* Add basic background attachment documentation
2017-11-28 14:44:18 -05:00
Adam Wathan
327e6d3cab Update tests, docs, and remove margin reset from list-reset 2017-11-28 08:13:11 -05:00
Adam Wathan
255c7b47e7 Move responsibility for appending nodes into variant generators themselves 2017-11-27 19:35:53 -05:00
Adam Wathan
831a3318de Pass all config options to each variants generator, not just separator 2017-11-27 19:32:11 -05:00
Adam Wathan
021ce94b7d Unwrap config in inner function
Unwrapping in the outer function causes it to get cached during watching.
2017-11-27 19:28:35 -05:00
Adam Wathan
0751431658 Remove useless variable 2017-11-26 14:56:39 -05:00
Adam Wathan
df8d80fbbf Defer unwrapping config until actually evaluating the config() function 2017-11-26 14:53:30 -05:00
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