dashy 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/_dashy.scss +1 -14
- data/app/assets/stylesheets/dashy/_select.scss +3 -121
- data/app/assets/stylesheets/dashy/_set.scss +3 -76
- data/app/assets/stylesheets/dashy/all/_clears.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_corners.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_dimensions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_directions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_displays.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_orientations.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_overflows.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_positions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_sides.scss +2 -0
- data/app/assets/stylesheets/dashy/all/font/_styles.scss +1 -0
- data/app/assets/stylesheets/dashy/all/font/_weights.scss +1 -0
- data/app/assets/stylesheets/dashy/all/horizontal/_dimensions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/horizontal/_directions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/horizontal/_sides.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_aligns.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_decorations.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_inputs.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_transforms.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_aligns.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_dimensions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_directions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_sides.scss +1 -0
- data/app/assets/stylesheets/dashy/default/font/_size.scss +1 -0
- data/app/assets/stylesheets/dashy/default/line/_height.scss +1 -0
- data/app/assets/stylesheets/dashy/default/page/_width.scss +1 -0
- data/app/assets/stylesheets/dashy/default/text/_align.scss +1 -0
- data/app/assets/stylesheets/dashy/default/vertical/_align.scss +1 -0
- data/app/assets/stylesheets/dashy/define/_append.scss +53 -0
- data/app/assets/stylesheets/dashy/define/_backspace.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_clear.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_display.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_float.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_gutter.scss +21 -0
- data/app/assets/stylesheets/dashy/define/_height.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_inner.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_opacity.scss +53 -0
- data/app/assets/stylesheets/dashy/define/_outer.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_overflow.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_pad.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_position.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_prepend.scss +53 -0
- data/app/assets/stylesheets/dashy/define/_pull.scss +17 -0
- data/app/assets/stylesheets/dashy/define/_push.scss +22 -0
- data/app/assets/stylesheets/dashy/define/_space.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_width.scss +53 -0
- data/app/assets/stylesheets/dashy/define/column/_count.scss +15 -0
- data/app/assets/stylesheets/dashy/define/column/_fill.scss +15 -0
- data/app/assets/stylesheets/dashy/define/column/_gap.scss +15 -0
- data/app/assets/stylesheets/dashy/define/column/break/_inside.scss +15 -0
- data/app/assets/stylesheets/dashy/define/font/_size.scss +15 -0
- data/app/assets/stylesheets/dashy/define/font/_style.scss +15 -0
- data/app/assets/stylesheets/dashy/define/font/_weight.scss +15 -0
- data/app/assets/stylesheets/dashy/define/line/_height.scss +17 -0
- data/app/assets/stylesheets/dashy/define/max/_height.scss +15 -0
- data/app/assets/stylesheets/dashy/define/max/_width.scss +15 -0
- data/app/assets/stylesheets/dashy/define/min/_height.scss +15 -0
- data/app/assets/stylesheets/dashy/define/min/_width.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_align.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_color.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_decoration.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_transform.scss +15 -0
- data/app/assets/stylesheets/dashy/define/vertical/_align.scss +15 -0
- data/app/assets/stylesheets/dashy/get/_direction.scss +6 -0
- data/app/assets/stylesheets/dashy/get/_side.scss +11 -0
- data/app/assets/stylesheets/dashy/get/opposite/_corner.scss +6 -0
- data/app/assets/stylesheets/dashy/get/opposite/_direction.scss +6 -0
- data/app/assets/stylesheets/dashy/get/opposite/_side.scss +6 -0
- data/app/assets/stylesheets/dashy/initialize/_pull.scss +14 -0
- data/app/assets/stylesheets/dashy/initialize/_push.scss +14 -0
- data/app/assets/stylesheets/dashy/is/_blank.scss +5 -0
- data/app/assets/stylesheets/dashy/is/_boolean.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_color.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_em.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_empty.scss +5 -0
- data/app/assets/stylesheets/dashy/is/_ex.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_list.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_nothing.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_null.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_number.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_percentage.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_px.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_rem.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_round.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_something.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_string.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_unit.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_unitful.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_unitless.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_append.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_first.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_last.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_length.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_nth.scss +5 -0
- data/app/assets/stylesheets/dashy/list/_second.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_approximate.scss +14 -0
- data/app/assets/stylesheets/dashy/number/_ceiling.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_decimal.scss +7 -0
- data/app/assets/stylesheets/dashy/number/_floor.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_fractional.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_integral.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_of.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_one.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_round.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_squared.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_unit.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_as.scss +0 -0
- data/app/assets/stylesheets/dashy/select/_attribute.scss +11 -0
- data/app/assets/stylesheets/dashy/select/_buttons.scss +14 -0
- data/app/assets/stylesheets/dashy/select/_children.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_class.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_descendants.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_either.scss +0 -0
- data/app/assets/stylesheets/dashy/select/_following.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_inputs.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_lists.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_next.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_pseudoclass.scss +0 -0
- data/app/assets/stylesheets/dashy/select/_tables.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_tabloids.scss +9 -0
- data/app/assets/stylesheets/dashy/select/as/_children.scss +4 -0
- data/app/assets/stylesheets/dashy/select/as/_descendants.scss +4 -0
- data/app/assets/stylesheets/dashy/select/as/_following.scss +4 -0
- data/app/assets/stylesheets/dashy/select/as/_next.scss +4 -0
- data/app/assets/stylesheets/dashy/select/attribute/_prefix.scss +9 -0
- data/app/assets/stylesheets/dashy/select/attribute/_suffix.scss +9 -0
- data/app/assets/stylesheets/dashy/select/class/_prefix.scss +9 -0
- data/app/assets/stylesheets/dashy/select/class/_suffix.scss +4 -0
- data/app/assets/stylesheets/dashy/select/list/_items.scss +9 -0
- data/app/assets/stylesheets/dashy/select/lists/_items.scss +9 -0
- data/app/assets/stylesheets/dashy/select/table/_cells.scss +9 -0
- data/app/assets/stylesheets/dashy/select/table/_groups.scss +4 -0
- data/app/assets/stylesheets/dashy/select/table/_rows.scss +4 -0
- data/app/assets/stylesheets/dashy/select/table/groups/_rows.scss +4 -0
- data/app/assets/stylesheets/dashy/select/table/groups/rows/_cells.scss +4 -0
- data/app/assets/stylesheets/dashy/select/tabloids/_rows.scss +10 -0
- data/app/assets/stylesheets/dashy/select/tabloids/rows/_cells.scss +9 -0
- data/app/assets/stylesheets/dashy/select/text/_inputs.scss +11 -0
- data/app/assets/stylesheets/dashy/set/_animation.scss +10 -0
- data/app/assets/stylesheets/dashy/set/_append.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_backspace.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_clear.scss +13 -0
- data/app/assets/stylesheets/dashy/set/_display.scss +11 -0
- data/app/assets/stylesheets/dashy/set/_float.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_height.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_inner.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_keyframes.scss +7 -0
- data/app/assets/stylesheets/dashy/set/_margin.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_opacity.scss +9 -0
- data/app/assets/stylesheets/dashy/set/_outer.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_overflow.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_pad.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_padding.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_position.scss +11 -0
- data/app/assets/stylesheets/dashy/set/_prepend.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_pull.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_push.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_rem.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_rgb.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_rgba.scss +8 -0
- data/app/assets/stylesheets/dashy/set/_space.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_transition.scss +7 -0
- data/app/assets/stylesheets/dashy/set/_tweening.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_width.scss +4 -0
- data/app/assets/stylesheets/dashy/set/background/gradient.scss +37 -0
- data/app/assets/stylesheets/dashy/set/border/_radius.scss +6 -0
- data/app/assets/stylesheets/dashy/set/box/_shadow.scss +6 -0
- data/app/assets/stylesheets/dashy/set/box/_sizing.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/_count.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/_fill.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/_gap.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/break/_inside.scss +6 -0
- data/app/assets/stylesheets/dashy/set/font/_size.scss +4 -0
- data/app/assets/stylesheets/dashy/set/font/_style.scss +4 -0
- data/app/assets/stylesheets/dashy/set/font/_weight.scss +4 -0
- data/app/assets/stylesheets/dashy/set/line/_height.scss +4 -0
- data/app/assets/stylesheets/dashy/set/max/_height.scss +4 -0
- data/app/assets/stylesheets/dashy/set/max/_width.scss +4 -0
- data/app/assets/stylesheets/dashy/set/min/_height.scss +7 -0
- data/app/assets/stylesheets/dashy/set/min/_width.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_align.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_color.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_decoration.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_transform.scss +4 -0
- data/app/assets/stylesheets/dashy/set/vertical/_align.scss +4 -0
- data/app/assets/stylesheets/dashy/string/_hyphenate.scss +4 -0
- data/app/assets/stylesheets/dashy/string/_join.scss +0 -0
- data/app/assets/stylesheets/dashy/to/_dimension.scss +11 -0
- data/app/assets/stylesheets/dashy/to/_fraction.scss +12 -0
- data/app/assets/stylesheets/dashy/to/_number.scss +9 -0
- data/app/assets/stylesheets/dashy/to/_orientation.scss +11 -0
- data/app/assets/stylesheets/dashy/to/_percentage.scss +9 -0
- data/app/assets/stylesheets/dashy/to/_px.scss +9 -0
- data/app/assets/stylesheets/dashy/to/_unitless.scss +4 -0
- data/lib/dashy/version.rb +1 -1
- data/lib/dashy.rb +1 -0
- data/lib/sass/script/functions/dashy.rb +80 -271
- data/lib/sass/script/value/string/dashy.rb +25 -0
- metadata +197 -15
- data/app/assets/stylesheets/dashy/_color.scss +0 -5
- data/app/assets/stylesheets/dashy/_corner.scss +0 -15
- data/app/assets/stylesheets/dashy/_default.scss +0 -14
- data/app/assets/stylesheets/dashy/_define.scss +0 -158
- data/app/assets/stylesheets/dashy/_direction.scss +0 -36
- data/app/assets/stylesheets/dashy/_font-family.scss +0 -36
- data/app/assets/stylesheets/dashy/_is.scss +0 -81
- data/app/assets/stylesheets/dashy/_line-height.scss +0 -10
- data/app/assets/stylesheets/dashy/_list.scss +0 -161
- data/app/assets/stylesheets/dashy/_number.scss +0 -79
- data/app/assets/stylesheets/dashy/_opposite.scss +0 -36
- data/app/assets/stylesheets/dashy/_side.scss +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3914515b02fbf7aa131162a0c991be970d1fcd93
|
4
|
+
data.tar.gz: f94b80d3e3e229ed6a66c171911b09887deb4e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ec3851b693a8234244da6f7bed18be44b6802002c0f2b924f32989875070aa6080ae479ac86798b613c5be7ba8827c706b7ee6659a4733f221631d56137e9dd
|
7
|
+
data.tar.gz: aae2305d5518c04a2a564ea76e44feb83a9dbb86c0a95deaf1b8077e0bc9da4cdb97fc797efc6d0dc343c58f47fcbb6d8ecb07354822e63024f27760cde6111a
|
@@ -1,14 +1 @@
|
|
1
|
-
@import "dashy
|
2
|
-
@import "dashy/corner";
|
3
|
-
@import "dashy/default";
|
4
|
-
@import "dashy/define";
|
5
|
-
@import "dashy/direction";
|
6
|
-
@import "dashy/font-family";
|
7
|
-
@import "dashy/is";
|
8
|
-
@import "dashy/line-height";
|
9
|
-
@import "dashy/list";
|
10
|
-
@import "dashy/number";
|
11
|
-
@import "dashy/opposite";
|
12
|
-
@import "dashy/select";
|
13
|
-
@import "dashy/set";
|
14
|
-
@import "dashy/side";
|
1
|
+
@import "dashy/**/*";
|
@@ -1,124 +1,6 @@
|
|
1
|
-
@
|
2
|
-
{
|
3
|
-
@return select-either(
|
4
|
-
select-as-children('ol.buttons' $button),
|
5
|
-
select('a.button' $button),
|
6
|
-
select(button $button),
|
7
|
-
select('input[type=submit]' $button)
|
8
|
-
);
|
9
|
-
}
|
10
|
-
|
11
|
-
@function select-inputs($input: '*')
|
12
|
-
{
|
13
|
-
@return select-either(select(input $input), select(textarea $input));
|
14
|
-
}
|
15
|
-
|
16
|
-
@function select-text-inputs($input: '*')
|
17
|
-
{
|
18
|
-
@return select-either(select(('input[type=text]', 'input[type=password]') $input), select(textarea $input));
|
19
|
-
}
|
20
|
-
|
21
|
-
@function select-headings($heading: '*')
|
22
|
-
{
|
23
|
-
@return select-either(select-main-headings($heading), select-subheadings($heading));
|
24
|
-
}
|
25
|
-
|
26
|
-
@function select-main-headings($heading: '*')
|
27
|
-
{
|
28
|
-
@return select(h1 $heading);
|
29
|
-
}
|
30
|
-
|
31
|
-
@function select-subheadings($heading: '*')
|
32
|
-
{
|
33
|
-
@return select-either(select(h2 $heading),
|
34
|
-
select(h3 $heading),
|
35
|
-
select(h4 $heading),
|
36
|
-
select(h5 $heading),
|
37
|
-
select(h6 $heading));
|
38
|
-
}
|
39
|
-
|
40
|
-
@function select-lists($list:'*')
|
41
|
-
{
|
42
|
-
@return select((ul, ol) $list);
|
43
|
-
}
|
44
|
-
|
45
|
-
@function select-list-items($list-items:'*')
|
46
|
-
{
|
47
|
-
@return select-lists-items('*', $list-items);
|
48
|
-
}
|
49
|
-
|
50
|
-
@function select-lists-items($list:'*', $items:'*')
|
51
|
-
{
|
52
|
-
@return select($list select-children(select(li $items)));
|
53
|
-
}
|
54
|
-
|
55
|
-
@function select-tables($table:'*')
|
56
|
-
{
|
57
|
-
@return select(table $table);
|
58
|
-
}
|
59
|
-
|
60
|
-
@function select-table-groups($group:'*')
|
61
|
-
{
|
62
|
-
@return select((thead, tbody, tfoot) $group);
|
63
|
-
}
|
64
|
-
|
65
|
-
@function select-tabloids($tabloid:'*')
|
66
|
-
{
|
67
|
-
@return select-either(select-tables($tabloid), select-table-groups($tabloid));
|
68
|
-
}
|
69
|
-
|
70
|
-
@function select-tabloids-rows($tabloid:'*', $row:'*')
|
71
|
-
{
|
72
|
-
@return select-either(select-as('>', select-table-groups($tabloid) $row),
|
73
|
-
select-as('>', select-tables($tabloid) '*' $row));
|
74
|
-
}
|
75
|
-
|
76
|
-
@function select-table-groups-rows($table-group:'*', $row:'*')
|
77
|
-
{
|
78
|
-
@return select-as('>', $table-group select(tr, $row));
|
79
|
-
}
|
80
|
-
|
81
|
-
@function select-tabloids-rows-cells($tabloid:'*', $row:'*', $cell:'*')
|
82
|
-
{
|
83
|
-
@return select-as('>', select-tabloids-rows($tabloid, $row) $cell);
|
84
|
-
}
|
85
|
-
|
86
|
-
@function select-table-groups-rows-cells($table-group:'*', $row:'*', $cell:'*')
|
87
|
-
{
|
88
|
-
@return select-as('>', select-table-groups-rows($table-group, $row) $cell);
|
89
|
-
}
|
90
|
-
|
91
|
-
@function select-table-rows($row:'*')
|
92
|
-
{
|
93
|
-
@return select(tr $row);
|
94
|
-
}
|
95
|
-
|
96
|
-
@function select-table-cells($cell:'*')
|
97
|
-
{
|
98
|
-
@return select((th, td) $cell);
|
99
|
-
}
|
1
|
+
@import "./select/*";
|
100
2
|
|
101
|
-
|
102
|
-
//
|
103
|
-
@function select-grids($grid:'*', $gutter-width:'', $gutter-height-ratio:'')
|
3
|
+
@mixin select($selector)
|
104
4
|
{
|
105
|
-
|
106
|
-
@if is($gutter-height-ratio) and default != $gutter-height-ratio { $grid: select($grid select-class(gutter-height-ratio $gutter-height-ratio)); }
|
107
|
-
@return select($grid, '.grid');
|
5
|
+
#{ $selector } { @content; }
|
108
6
|
}
|
109
|
-
|
110
|
-
// select-grid-cells //////////////////////////////////////////////////////////////////////////////
|
111
|
-
//
|
112
|
-
@function select-grid-cells($cell:'*', $span:'', $columns:'')
|
113
|
-
{
|
114
|
-
@return select-grids-cells('*', $cell, $span:$span, $columns:$columns);
|
115
|
-
}
|
116
|
-
|
117
|
-
// select-grids-cells /////////////////////////////////////////////////////////////////////////////
|
118
|
-
//
|
119
|
-
@function select-grids-cells($grid:'*', $cell:'*', $gutter-width:'', $gutter-height-ratio:'', $span:'', $columns:'')
|
120
|
-
{
|
121
|
-
@if is($span) and default != $span { $cell: select(select-parameter(grid-cell, width, $span + '/' + $columns), $cell); }
|
122
|
-
@return select-as-children(select-grids($grid, $gutter-width, $gutter-height-ratio) $cell);
|
123
|
-
}
|
124
|
-
|
@@ -1,79 +1,6 @@
|
|
1
|
-
@mixin set
|
1
|
+
@mixin set($attribute, $value)
|
2
2
|
{
|
3
|
-
|
4
|
-
-moz-box-shadow: $parameters;
|
5
|
-
box-shadow: $parameters;
|
3
|
+
#{ $attribute }: $value;
|
6
4
|
}
|
7
5
|
|
8
|
-
@
|
9
|
-
{
|
10
|
-
-webkit-border-radius: $corners;
|
11
|
-
-moz-border-radius: $corners;
|
12
|
-
border-radius: $corners;
|
13
|
-
}
|
14
|
-
|
15
|
-
@mixin set-box-sizing($prefix)
|
16
|
-
{
|
17
|
-
-webkit-box-sizing: #{ $prefix }-box;
|
18
|
-
-moz-box-sizing: #{ $prefix }-box;
|
19
|
-
box-sizing: #{ $prefix }-box;
|
20
|
-
}
|
21
|
-
|
22
|
-
@mixin set-min-height($height:100%)
|
23
|
-
{
|
24
|
-
min-height:$height; height:auto!important; height:$height;
|
25
|
-
}
|
26
|
-
|
27
|
-
@mixin set-max-width($width)
|
28
|
-
{
|
29
|
-
max-width:$width;
|
30
|
-
}
|
31
|
-
|
32
|
-
@mixin set-display($value)
|
33
|
-
{
|
34
|
-
display:$value; @if $value == inline-block { *display:inline; zoom:1; }
|
35
|
-
}
|
36
|
-
|
37
|
-
@mixin set-keyframes($name)
|
38
|
-
{
|
39
|
-
@-webkit-keyframes #{ $name } { @content; }
|
40
|
-
@-moz-keyframes #{ $name } { @content; }
|
41
|
-
@-o-keyframes #{ $name } { @content; }
|
42
|
-
@keyframes #{ $name } { @content; }
|
43
|
-
}
|
44
|
-
|
45
|
-
@mixin set-transition($arguments...)
|
46
|
-
{
|
47
|
-
@if 1 == length($arguments)
|
48
|
-
{
|
49
|
-
-webkit-transition: $arguments;
|
50
|
-
-moz-transition: $arguments;
|
51
|
-
-o-transition: $arguments;
|
52
|
-
transition: $arguments;
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
@mixin animation($arguments...)
|
57
|
-
{
|
58
|
-
@if 1 == length($arguments)
|
59
|
-
{
|
60
|
-
-webkit-animation: $arguments;
|
61
|
-
-moz-animation: $arguments;
|
62
|
-
-o-animation: $arguments;
|
63
|
-
animation: $arguments;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
@mixin set-border-radius($arguments...)
|
68
|
-
{
|
69
|
-
-webkit-border-radius: $arguments;
|
70
|
-
-moz-border-radius: $arguments;
|
71
|
-
border-radius: $arguments;
|
72
|
-
}
|
73
|
-
|
74
|
-
@mixin set-inner-box-shadow($arguments)
|
75
|
-
{
|
76
|
-
-webkit-box-shadow: inset $arguments;
|
77
|
-
-moz-box-shadow: inset $arguments;
|
78
|
-
box-shadow: inset $arguments;
|
79
|
-
}
|
6
|
+
@import "./set/*";
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-clears: both left right content;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-corners: top-left top-right bottom-right bottom-left;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-dimensions: width height;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-directions: up down left right;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-displays: inline inline-block block tabular; // TODO: expand...
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-orientations: horizontal vertical;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-overflows: visible hidden scroll auto;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-positions: static fixed relative absolute;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-font-styles: normal italic oblique;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-font-weights: 100 200 300 400 500 600 700;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-horizontal-dimensions: width;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-horizontal-directions: up down;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-horizontal-sides: left right;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-text-aligns: left center right; // TODO: expand...
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-text-decorations: none overline underline line-through;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-text-inputs: email tel text password;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-text-transforms: lowercase uppercase capitalize;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-vertical-aligns: top middle baseline bottom;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-vertical-dimensions: height;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-vertical-directions: left right;
|
@@ -0,0 +1 @@
|
|
1
|
+
$all-vertical-sides: top bottom;
|
@@ -0,0 +1 @@
|
|
1
|
+
$default-font-size: 16px !default;
|
@@ -0,0 +1 @@
|
|
1
|
+
$default-line-height: 1.618 !default;
|
@@ -0,0 +1 @@
|
|
1
|
+
$default-page-width: 840px !default;
|
@@ -0,0 +1 @@
|
|
1
|
+
$default-text-align: left !default;
|
@@ -0,0 +1 @@
|
|
1
|
+
$default-vertical-align: top !default;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
@mixin define-append($append)
|
2
|
+
{
|
3
|
+
@if is-unitless($append)
|
4
|
+
{
|
5
|
+
@include define-elastic-append(to-percentage-from-unitless($append));
|
6
|
+
}
|
7
|
+
@else if is-percentage($append)
|
8
|
+
{
|
9
|
+
@include define-elastic-append($append);
|
10
|
+
}
|
11
|
+
@else
|
12
|
+
{
|
13
|
+
@include define-fixed-append($append);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin define-elastic-append($append-percentage)
|
18
|
+
{
|
19
|
+
$append-fraction: to-fraction-from-percentage($append-percentage);
|
20
|
+
$approximate-append-percentage: number-approximate-low($append-percentage);
|
21
|
+
|
22
|
+
@if is-round($approximate-append-percentage)
|
23
|
+
{
|
24
|
+
#{ select-class(append $approximate-append-percentage) },
|
25
|
+
#{ select-class(append $append-fraction) }
|
26
|
+
{
|
27
|
+
@include set-append($approximate-append-percentage);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
@else
|
31
|
+
{
|
32
|
+
#{ select-class(append $append-fraction) }
|
33
|
+
{
|
34
|
+
@include set-append($approximate-append-percentage);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin define-fixed-append($append)
|
40
|
+
{
|
41
|
+
#{ select-class(append $append) }
|
42
|
+
{
|
43
|
+
@include set-append($append);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin define-appends($appends)
|
48
|
+
{
|
49
|
+
@each $append in list-series($appends)
|
50
|
+
{
|
51
|
+
@include define-append($append);
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-backspace($side, $amount)
|
2
|
+
{
|
3
|
+
#{ select-class(backspace $side $amount) }
|
4
|
+
{
|
5
|
+
@include set-backspace($side, $amount);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-backspaces($sides, $amounts)
|
10
|
+
{
|
11
|
+
@each $side in $sides { @each $amount in list-series($amounts)
|
12
|
+
{
|
13
|
+
@include define-backspace($side, $amount);
|
14
|
+
}}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-display($display)
|
2
|
+
{
|
3
|
+
#{ select-class(display $display) }
|
4
|
+
{
|
5
|
+
@include set-display($display);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-displays($displays: $all-displays)
|
10
|
+
{
|
11
|
+
@each $display in $displays
|
12
|
+
{
|
13
|
+
@include define-display($display);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
$define-gutter-dimensions-sides: (width: left, height: top);
|
2
|
+
|
3
|
+
@mixin define-gutter($dimension, $amount)
|
4
|
+
{
|
5
|
+
$side: map-get($define-gutter-dimensions-sides, $dimension);
|
6
|
+
|
7
|
+
#{ select-class(gutter $dimension $amount) },
|
8
|
+
#{ select(select-class(to-orientation($dimension)), select-class(gutter $amount)) }
|
9
|
+
{
|
10
|
+
@include set-margin($side, - $amount);
|
11
|
+
> * { @include set-padding($side, $amount); }
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin define-gutters($dimensions, $amounts)
|
16
|
+
{
|
17
|
+
@each $dimension in $dimensions { @each $amount in list-series($amounts)
|
18
|
+
{
|
19
|
+
@include define-gutter($dimension, $amount);
|
20
|
+
}}
|
21
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
@mixin define-opacity($opacity)
|
2
|
+
{
|
3
|
+
@if is-unitless($opacity)
|
4
|
+
{
|
5
|
+
@include define-elastic-opacity(to-percentage-from-unitless($opacity));
|
6
|
+
}
|
7
|
+
@else if is-percentage($opacity)
|
8
|
+
{
|
9
|
+
@include define-elastic-opacity($opacity);
|
10
|
+
}
|
11
|
+
@else
|
12
|
+
{
|
13
|
+
@include define-fixed-opacity($opacity);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin define-elastic-opacity($opacity-percentage)
|
18
|
+
{
|
19
|
+
$opacity-fraction: to-fraction-from-percentage($opacity-percentage);
|
20
|
+
$approximate-opacity-percentage: number-approximate-low($opacity-percentage);
|
21
|
+
|
22
|
+
@if is-round($approximate-opacity-percentage)
|
23
|
+
{
|
24
|
+
#{ select-class(opacity $approximate-opacity-percentage) },
|
25
|
+
#{ select-class(opacity $opacity-fraction) }
|
26
|
+
{
|
27
|
+
@include set-opacity($approximate-opacity-percentage);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
@else
|
31
|
+
{
|
32
|
+
#{ select-class(opacity $opacity-fraction) }
|
33
|
+
{
|
34
|
+
@include set-opacity($approximate-opacity-percentage);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin define-fixed-opacity($opacity)
|
40
|
+
{
|
41
|
+
#{ select-class(opacity $opacity) }
|
42
|
+
{
|
43
|
+
@include set-opacity($opacity);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin define-opacities($opacities)
|
48
|
+
{
|
49
|
+
@each $opacity in list-series($opacities)
|
50
|
+
{
|
51
|
+
@include define-opacity($opacity);
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-overflow($overflow)
|
2
|
+
{
|
3
|
+
#{ select-class(overflow $overflow) }
|
4
|
+
{
|
5
|
+
@include set-overflow($overflow);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-overflows($overflows: $all-overflows)
|
10
|
+
{
|
11
|
+
@each $overflow in $overflows
|
12
|
+
{
|
13
|
+
@include define-overflow($overflow);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-pad($side, $amount)
|
2
|
+
{
|
3
|
+
#{ select-class(pad $side $amount) }
|
4
|
+
{
|
5
|
+
@include set-pad($side, $amount);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-pads($sides, $amounts)
|
10
|
+
{
|
11
|
+
@each $side in list-series($sides) { @each $amount in list-series($amounts)
|
12
|
+
{
|
13
|
+
@include define-pad($side, $amount);
|
14
|
+
}}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-position($position)
|
2
|
+
{
|
3
|
+
#{ select-class(position $position) }
|
4
|
+
{
|
5
|
+
@include set-position($position);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-positions($positions: $all-positions)
|
10
|
+
{
|
11
|
+
@each $position in $positions
|
12
|
+
{
|
13
|
+
@include define-position($position);
|
14
|
+
}
|
15
|
+
}
|