Commit graph

23 commits

Author SHA1 Message Date
Adam Wathan
e5ec718e13 Merge pull request #52 from adamwathan/border-width-generator
Generate border widths instead of hard-coding
2017-08-04 11:23:10 -04:00
Adam Wathan
4386d98e92 Null -> none, whoops 2017-08-04 11:21:48 -04:00
Adam Wathan
b054dbd835 Generate border widths instead of hard-coding
Sadly we are forced to expose a global @default-border-color variable
but what can you do. Trying to match against the border-colors scale
was too insane; I either polluted the scope and broke a bunch of other
utilities or I made the border width utilities non-mix-in-able which is
also grim af.
2017-08-04 10:57:20 -04:00
Adam Wathan
f1e4324c37 Make grid generator parameterized instead of using globals
Also makes it possible to opt-out of responsive grid
2017-08-04 09:20:00 -04:00
Adam Wathan
dc73e0a578 Add extract-match mixin
Works similar to apply-match but exports the @__match variable to the
parent scope instead of accepting a ruleset. I have a suspicion that
this will generally be easier to wield and produce more predictable
results than all the crazy extra scoping bullshit I always have to try
and do when using the "closure"-ish approach I use with apply-match.
2017-08-04 09:19:17 -04:00
Adam Wathan
d7a0db958f Rename define-selector to define-class, extract to file 2017-08-04 09:17:22 -04:00
Adam Wathan
e74d29f34e Define all border colors at once 2017-08-03 22:00:55 -04:00
Adam Wathan
a750de4c5a Define all text colors at once to prevent responsive order bugs 2017-08-03 21:37:12 -04:00
Adam Wathan
baa7450e25 Generate all background colors at once 2017-08-03 21:01:22 -04:00
Adam Wathan
bc3664f1a1 Use generic generators for border colors 2017-08-03 15:42:56 -04:00
Adam Wathan
25cceb5a16 Use generic generators for bg colors 2017-08-03 15:42:56 -04:00
Adam Wathan
250600eae8 Rename class-variants generator file 2017-08-03 15:42:56 -04:00
Adam Wathan
3af24750ab Use the right property 2017-08-03 15:42:56 -04:00
Adam Wathan
bde4d1c983 Use generic generators for text colors 2017-08-03 15:42:56 -04:00
Adam Wathan
6cf77cfeed Group media query declarations 2017-08-03 15:42:56 -04:00
Adam Wathan
669ec1b558 Working on moving things to generic generators 2017-08-03 15:42:46 -04:00
Adam Wathan
4c93b3f1ce Add responsive constrain generator 2017-08-03 11:49:24 -04:00
Adam Wathan
2906194cf5 Add constrain generators 2017-08-03 10:42:58 -04:00
Adam Wathan
1b4630c74b Extract spacer generators, use parameter instead of global var 2017-08-02 18:52:06 -04:00
Jonathan Reinink
4c640e608a Remove quotes around default variants. 2017-08-02 10:36:30 -04:00
Adam Wathan
a812d9649a Solve generated mixin bug by adding quotes 🙌🏻 2017-08-02 10:04:32 -04:00
Adam Wathan
06360a8094 More generator work
About to go down dark path of parameterized mixins.
2017-08-02 08:51:24 -04:00
Adam Wathan
5319c64822 Start extracting generators 2017-08-01 18:59:26 -04:00