Adam Wathan
1b1139ec0b
Standardize on camelCase module names
2017-08-27 18:02:41 -04:00
Adam Wathan
a3196a5358
Add shadows and flex generators, extract defineClass(es)
2017-08-27 18:02:40 -04:00
Adam Wathan
c04a3b26c6
Add support for mixed "plain color string" and "color map" background defintitions
...
Lets you do this:
```
backgroundColors: [
'blue',
'purple',
'pink',
{
primary: 'white',
secondary: 'orange',
},
]
```
2017-08-27 18:02:40 -04:00
Adam Wathan
c84f0ec4b7
Support colors not in map
...
If you specify a background color that isn't a key in the colors map,
we just assume it's an actual color value and let you use it.
2017-08-27 18:02:40 -04:00
Adam Wathan
8e7b2dc1fa
Add basic background color generator
...
Supports specifying background colors as an array of colors, or an
object where the label is what you want to name that color as a
background utility, and the value is the color to use.
Everything can be specified as either camelCase or kebab-case so you
don't need to quote the shit out of everything but classes will always
be rendered as kebab-case.
2017-08-27 18:02:40 -04:00
Adam Wathan
cacff2ac21
Move Less files
...
Keep them around for easy reference right now but don't want them in my
JS bizniz.
2017-08-27 18:02:40 -04:00
Adam Wathan
53bec217a8
Remove grid generator file
2017-08-27 18:00:48 -04:00
Adam Wathan
ad36272906
Replace grid with percent width helpers
2017-08-27 18:00:04 -04:00
Adam Wathan
eac5577c5e
Remove flex-basis definition from constrain helpers
2017-08-23 14:39:12 -04:00
Adam Wathan
fdcdc97d18
Add border hovers
2017-08-19 10:01:56 -04:00
Adam Wathan
8b515020d8
Use @ instead of hover-
2017-08-18 14:57:38 -04:00
Adam Wathan
1b048a1f10
Make buttons generatable, add text hovers
2017-08-18 14:44:08 -04:00
Adam Wathan
1a2383e612
Add colors and hover utilities
2017-08-18 10:09:24 -04:00
Adam Wathan
6e26f14d0a
Merge pull request #78 from adamwathan/group-spacing-breakpoints
...
Group media queries for padding and pull utilities
2017-08-16 09:00:22 -04:00
Adam Wathan
f406938373
Group media queries for padding and pull utilities
2017-08-15 14:08:25 -04:00
Adam Wathan
d3e0facc13
Define mx-auto alongside scale variants to group media queries
2017-08-15 14:06:00 -04:00
Adam Wathan
bf12f68673
Add rounded border generators
2017-08-14 19:55:17 -04:00
Adam Wathan
9017c838cd
Letter spacing not line height dumb fuck
2017-08-08 15:09:59 -04:00
Adam Wathan
c6e93a05f6
Merge pull request #64 from adamwathan/tracking
...
Add basic tracking utilities
2017-08-08 15:09:10 -04:00
Adam Wathan
7d8559b8fd
Add shadow utilities
2017-08-06 08:13:33 -04:00
Adam Wathan
e023065480
Set min-width on non-responsive auto columns
...
Had already done this on responsive variants, missed adding it to the
base variant. Without this, auto columns are not forced to the same
width.
2017-08-06 07:59:16 -04:00
Adam Wathan
ecd66cd2a6
Move responsive mixins; support disabling responsiveness
2017-08-06 07:56:53 -04:00
Adam Wathan
9f987a168f
Add basic tracking utilities
2017-08-05 20:47:43 -04:00
Adam Wathan
82833d2631
Fix incorrect auto column class name
2017-08-05 20:47:27 -04:00
Adam Wathan
b9612fbb74
Add leading generator
2017-08-04 14:35:12 -04:00
Adam Wathan
f7b9812843
Merge pull request #55 from adamwathan/size-utilities
...
Add width/height sizing utilities
2017-08-04 14:21:33 -04:00
Adam Wathan
51bad776a5
Removed unused mixin parameters
2017-08-04 13:00:51 -04:00
Adam Wathan
a2ce542038
Consolidate some media queries
2017-08-04 12:58:48 -04:00
Adam Wathan
2e45fa3f91
Move zero to border scale, don't include style/color in zero variants
2017-08-04 12:57:27 -04:00
Adam Wathan
6cf851f139
Add width/height sizing utilities
2017-08-04 12:42:00 -04:00
Adam Wathan
d0e782c877
Merge pull request #53 from adamwathan/spacing-parameterized
...
Refactor spacing generators to take screens as a parameter
2017-08-04 11:23:16 -04:00
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
6ac139b1c0
Refactor spacing generators to take screens as a parameter
...
Makes it easier to disable responsiveness per helper and just makes the
code easier to reason about since it's localized.
2017-08-04 11:16:55 -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