dashy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/_dashy.scss +1 -14
  3. data/app/assets/stylesheets/dashy/_select.scss +3 -121
  4. data/app/assets/stylesheets/dashy/_set.scss +3 -76
  5. data/app/assets/stylesheets/dashy/all/_clears.scss +1 -0
  6. data/app/assets/stylesheets/dashy/all/_corners.scss +1 -0
  7. data/app/assets/stylesheets/dashy/all/_dimensions.scss +1 -0
  8. data/app/assets/stylesheets/dashy/all/_directions.scss +1 -0
  9. data/app/assets/stylesheets/dashy/all/_displays.scss +1 -0
  10. data/app/assets/stylesheets/dashy/all/_orientations.scss +1 -0
  11. data/app/assets/stylesheets/dashy/all/_overflows.scss +1 -0
  12. data/app/assets/stylesheets/dashy/all/_positions.scss +1 -0
  13. data/app/assets/stylesheets/dashy/all/_sides.scss +2 -0
  14. data/app/assets/stylesheets/dashy/all/font/_styles.scss +1 -0
  15. data/app/assets/stylesheets/dashy/all/font/_weights.scss +1 -0
  16. data/app/assets/stylesheets/dashy/all/horizontal/_dimensions.scss +1 -0
  17. data/app/assets/stylesheets/dashy/all/horizontal/_directions.scss +1 -0
  18. data/app/assets/stylesheets/dashy/all/horizontal/_sides.scss +1 -0
  19. data/app/assets/stylesheets/dashy/all/text/_aligns.scss +1 -0
  20. data/app/assets/stylesheets/dashy/all/text/_decorations.scss +1 -0
  21. data/app/assets/stylesheets/dashy/all/text/_inputs.scss +1 -0
  22. data/app/assets/stylesheets/dashy/all/text/_transforms.scss +1 -0
  23. data/app/assets/stylesheets/dashy/all/vertical/_aligns.scss +1 -0
  24. data/app/assets/stylesheets/dashy/all/vertical/_dimensions.scss +1 -0
  25. data/app/assets/stylesheets/dashy/all/vertical/_directions.scss +1 -0
  26. data/app/assets/stylesheets/dashy/all/vertical/_sides.scss +1 -0
  27. data/app/assets/stylesheets/dashy/default/font/_size.scss +1 -0
  28. data/app/assets/stylesheets/dashy/default/line/_height.scss +1 -0
  29. data/app/assets/stylesheets/dashy/default/page/_width.scss +1 -0
  30. data/app/assets/stylesheets/dashy/default/text/_align.scss +1 -0
  31. data/app/assets/stylesheets/dashy/default/vertical/_align.scss +1 -0
  32. data/app/assets/stylesheets/dashy/define/_append.scss +53 -0
  33. data/app/assets/stylesheets/dashy/define/_backspace.scss +15 -0
  34. data/app/assets/stylesheets/dashy/define/_clear.scss +15 -0
  35. data/app/assets/stylesheets/dashy/define/_display.scss +15 -0
  36. data/app/assets/stylesheets/dashy/define/_float.scss +15 -0
  37. data/app/assets/stylesheets/dashy/define/_gutter.scss +21 -0
  38. data/app/assets/stylesheets/dashy/define/_height.scss +15 -0
  39. data/app/assets/stylesheets/dashy/define/_inner.scss +15 -0
  40. data/app/assets/stylesheets/dashy/define/_opacity.scss +53 -0
  41. data/app/assets/stylesheets/dashy/define/_outer.scss +15 -0
  42. data/app/assets/stylesheets/dashy/define/_overflow.scss +15 -0
  43. data/app/assets/stylesheets/dashy/define/_pad.scss +15 -0
  44. data/app/assets/stylesheets/dashy/define/_position.scss +15 -0
  45. data/app/assets/stylesheets/dashy/define/_prepend.scss +53 -0
  46. data/app/assets/stylesheets/dashy/define/_pull.scss +17 -0
  47. data/app/assets/stylesheets/dashy/define/_push.scss +22 -0
  48. data/app/assets/stylesheets/dashy/define/_space.scss +15 -0
  49. data/app/assets/stylesheets/dashy/define/_width.scss +53 -0
  50. data/app/assets/stylesheets/dashy/define/column/_count.scss +15 -0
  51. data/app/assets/stylesheets/dashy/define/column/_fill.scss +15 -0
  52. data/app/assets/stylesheets/dashy/define/column/_gap.scss +15 -0
  53. data/app/assets/stylesheets/dashy/define/column/break/_inside.scss +15 -0
  54. data/app/assets/stylesheets/dashy/define/font/_size.scss +15 -0
  55. data/app/assets/stylesheets/dashy/define/font/_style.scss +15 -0
  56. data/app/assets/stylesheets/dashy/define/font/_weight.scss +15 -0
  57. data/app/assets/stylesheets/dashy/define/line/_height.scss +17 -0
  58. data/app/assets/stylesheets/dashy/define/max/_height.scss +15 -0
  59. data/app/assets/stylesheets/dashy/define/max/_width.scss +15 -0
  60. data/app/assets/stylesheets/dashy/define/min/_height.scss +15 -0
  61. data/app/assets/stylesheets/dashy/define/min/_width.scss +15 -0
  62. data/app/assets/stylesheets/dashy/define/text/_align.scss +15 -0
  63. data/app/assets/stylesheets/dashy/define/text/_color.scss +15 -0
  64. data/app/assets/stylesheets/dashy/define/text/_decoration.scss +15 -0
  65. data/app/assets/stylesheets/dashy/define/text/_transform.scss +15 -0
  66. data/app/assets/stylesheets/dashy/define/vertical/_align.scss +15 -0
  67. data/app/assets/stylesheets/dashy/get/_direction.scss +6 -0
  68. data/app/assets/stylesheets/dashy/get/_side.scss +11 -0
  69. data/app/assets/stylesheets/dashy/get/opposite/_corner.scss +6 -0
  70. data/app/assets/stylesheets/dashy/get/opposite/_direction.scss +6 -0
  71. data/app/assets/stylesheets/dashy/get/opposite/_side.scss +6 -0
  72. data/app/assets/stylesheets/dashy/initialize/_pull.scss +14 -0
  73. data/app/assets/stylesheets/dashy/initialize/_push.scss +14 -0
  74. data/app/assets/stylesheets/dashy/is/_blank.scss +5 -0
  75. data/app/assets/stylesheets/dashy/is/_boolean.scss +4 -0
  76. data/app/assets/stylesheets/dashy/is/_color.scss +4 -0
  77. data/app/assets/stylesheets/dashy/is/_em.scss +4 -0
  78. data/app/assets/stylesheets/dashy/is/_empty.scss +5 -0
  79. data/app/assets/stylesheets/dashy/is/_ex.scss +4 -0
  80. data/app/assets/stylesheets/dashy/is/_list.scss +4 -0
  81. data/app/assets/stylesheets/dashy/is/_nothing.scss +4 -0
  82. data/app/assets/stylesheets/dashy/is/_null.scss +4 -0
  83. data/app/assets/stylesheets/dashy/is/_number.scss +4 -0
  84. data/app/assets/stylesheets/dashy/is/_percentage.scss +4 -0
  85. data/app/assets/stylesheets/dashy/is/_px.scss +4 -0
  86. data/app/assets/stylesheets/dashy/is/_rem.scss +4 -0
  87. data/app/assets/stylesheets/dashy/is/_round.scss +4 -0
  88. data/app/assets/stylesheets/dashy/is/_something.scss +4 -0
  89. data/app/assets/stylesheets/dashy/is/_string.scss +4 -0
  90. data/app/assets/stylesheets/dashy/is/_unit.scss +4 -0
  91. data/app/assets/stylesheets/dashy/is/_unitful.scss +4 -0
  92. data/app/assets/stylesheets/dashy/is/_unitless.scss +4 -0
  93. data/app/assets/stylesheets/dashy/list/_append.scss +4 -0
  94. data/app/assets/stylesheets/dashy/list/_first.scss +4 -0
  95. data/app/assets/stylesheets/dashy/list/_last.scss +4 -0
  96. data/app/assets/stylesheets/dashy/list/_length.scss +4 -0
  97. data/app/assets/stylesheets/dashy/list/_nth.scss +5 -0
  98. data/app/assets/stylesheets/dashy/list/_second.scss +4 -0
  99. data/app/assets/stylesheets/dashy/number/_approximate.scss +14 -0
  100. data/app/assets/stylesheets/dashy/number/_ceiling.scss +4 -0
  101. data/app/assets/stylesheets/dashy/number/_decimal.scss +7 -0
  102. data/app/assets/stylesheets/dashy/number/_floor.scss +4 -0
  103. data/app/assets/stylesheets/dashy/number/_fractional.scss +4 -0
  104. data/app/assets/stylesheets/dashy/number/_integral.scss +4 -0
  105. data/app/assets/stylesheets/dashy/number/_of.scss +4 -0
  106. data/app/assets/stylesheets/dashy/number/_one.scss +4 -0
  107. data/app/assets/stylesheets/dashy/number/_round.scss +4 -0
  108. data/app/assets/stylesheets/dashy/number/_squared.scss +4 -0
  109. data/app/assets/stylesheets/dashy/number/_unit.scss +4 -0
  110. data/app/assets/stylesheets/dashy/select/_as.scss +0 -0
  111. data/app/assets/stylesheets/dashy/select/_attribute.scss +11 -0
  112. data/app/assets/stylesheets/dashy/select/_buttons.scss +14 -0
  113. data/app/assets/stylesheets/dashy/select/_children.scss +4 -0
  114. data/app/assets/stylesheets/dashy/select/_class.scss +9 -0
  115. data/app/assets/stylesheets/dashy/select/_descendants.scss +4 -0
  116. data/app/assets/stylesheets/dashy/select/_either.scss +0 -0
  117. data/app/assets/stylesheets/dashy/select/_following.scss +4 -0
  118. data/app/assets/stylesheets/dashy/select/_inputs.scss +9 -0
  119. data/app/assets/stylesheets/dashy/select/_lists.scss +9 -0
  120. data/app/assets/stylesheets/dashy/select/_next.scss +4 -0
  121. data/app/assets/stylesheets/dashy/select/_pseudoclass.scss +0 -0
  122. data/app/assets/stylesheets/dashy/select/_tables.scss +9 -0
  123. data/app/assets/stylesheets/dashy/select/_tabloids.scss +9 -0
  124. data/app/assets/stylesheets/dashy/select/as/_children.scss +4 -0
  125. data/app/assets/stylesheets/dashy/select/as/_descendants.scss +4 -0
  126. data/app/assets/stylesheets/dashy/select/as/_following.scss +4 -0
  127. data/app/assets/stylesheets/dashy/select/as/_next.scss +4 -0
  128. data/app/assets/stylesheets/dashy/select/attribute/_prefix.scss +9 -0
  129. data/app/assets/stylesheets/dashy/select/attribute/_suffix.scss +9 -0
  130. data/app/assets/stylesheets/dashy/select/class/_prefix.scss +9 -0
  131. data/app/assets/stylesheets/dashy/select/class/_suffix.scss +4 -0
  132. data/app/assets/stylesheets/dashy/select/list/_items.scss +9 -0
  133. data/app/assets/stylesheets/dashy/select/lists/_items.scss +9 -0
  134. data/app/assets/stylesheets/dashy/select/table/_cells.scss +9 -0
  135. data/app/assets/stylesheets/dashy/select/table/_groups.scss +4 -0
  136. data/app/assets/stylesheets/dashy/select/table/_rows.scss +4 -0
  137. data/app/assets/stylesheets/dashy/select/table/groups/_rows.scss +4 -0
  138. data/app/assets/stylesheets/dashy/select/table/groups/rows/_cells.scss +4 -0
  139. data/app/assets/stylesheets/dashy/select/tabloids/_rows.scss +10 -0
  140. data/app/assets/stylesheets/dashy/select/tabloids/rows/_cells.scss +9 -0
  141. data/app/assets/stylesheets/dashy/select/text/_inputs.scss +11 -0
  142. data/app/assets/stylesheets/dashy/set/_animation.scss +10 -0
  143. data/app/assets/stylesheets/dashy/set/_append.scss +4 -0
  144. data/app/assets/stylesheets/dashy/set/_backspace.scss +4 -0
  145. data/app/assets/stylesheets/dashy/set/_clear.scss +13 -0
  146. data/app/assets/stylesheets/dashy/set/_display.scss +11 -0
  147. data/app/assets/stylesheets/dashy/set/_float.scss +4 -0
  148. data/app/assets/stylesheets/dashy/set/_height.scss +4 -0
  149. data/app/assets/stylesheets/dashy/set/_inner.scss +4 -0
  150. data/app/assets/stylesheets/dashy/set/_keyframes.scss +7 -0
  151. data/app/assets/stylesheets/dashy/set/_margin.scss +5 -0
  152. data/app/assets/stylesheets/dashy/set/_opacity.scss +9 -0
  153. data/app/assets/stylesheets/dashy/set/_outer.scss +4 -0
  154. data/app/assets/stylesheets/dashy/set/_overflow.scss +4 -0
  155. data/app/assets/stylesheets/dashy/set/_pad.scss +4 -0
  156. data/app/assets/stylesheets/dashy/set/_padding.scss +5 -0
  157. data/app/assets/stylesheets/dashy/set/_position.scss +11 -0
  158. data/app/assets/stylesheets/dashy/set/_prepend.scss +4 -0
  159. data/app/assets/stylesheets/dashy/set/_pull.scss +4 -0
  160. data/app/assets/stylesheets/dashy/set/_push.scss +4 -0
  161. data/app/assets/stylesheets/dashy/set/_rem.scss +5 -0
  162. data/app/assets/stylesheets/dashy/set/_rgb.scss +4 -0
  163. data/app/assets/stylesheets/dashy/set/_rgba.scss +8 -0
  164. data/app/assets/stylesheets/dashy/set/_space.scss +4 -0
  165. data/app/assets/stylesheets/dashy/set/_transition.scss +7 -0
  166. data/app/assets/stylesheets/dashy/set/_tweening.scss +5 -0
  167. data/app/assets/stylesheets/dashy/set/_width.scss +4 -0
  168. data/app/assets/stylesheets/dashy/set/background/gradient.scss +37 -0
  169. data/app/assets/stylesheets/dashy/set/border/_radius.scss +6 -0
  170. data/app/assets/stylesheets/dashy/set/box/_shadow.scss +6 -0
  171. data/app/assets/stylesheets/dashy/set/box/_sizing.scss +6 -0
  172. data/app/assets/stylesheets/dashy/set/column/_count.scss +6 -0
  173. data/app/assets/stylesheets/dashy/set/column/_fill.scss +6 -0
  174. data/app/assets/stylesheets/dashy/set/column/_gap.scss +6 -0
  175. data/app/assets/stylesheets/dashy/set/column/break/_inside.scss +6 -0
  176. data/app/assets/stylesheets/dashy/set/font/_size.scss +4 -0
  177. data/app/assets/stylesheets/dashy/set/font/_style.scss +4 -0
  178. data/app/assets/stylesheets/dashy/set/font/_weight.scss +4 -0
  179. data/app/assets/stylesheets/dashy/set/line/_height.scss +4 -0
  180. data/app/assets/stylesheets/dashy/set/max/_height.scss +4 -0
  181. data/app/assets/stylesheets/dashy/set/max/_width.scss +4 -0
  182. data/app/assets/stylesheets/dashy/set/min/_height.scss +7 -0
  183. data/app/assets/stylesheets/dashy/set/min/_width.scss +4 -0
  184. data/app/assets/stylesheets/dashy/set/text/_align.scss +4 -0
  185. data/app/assets/stylesheets/dashy/set/text/_color.scss +4 -0
  186. data/app/assets/stylesheets/dashy/set/text/_decoration.scss +4 -0
  187. data/app/assets/stylesheets/dashy/set/text/_transform.scss +4 -0
  188. data/app/assets/stylesheets/dashy/set/vertical/_align.scss +4 -0
  189. data/app/assets/stylesheets/dashy/string/_hyphenate.scss +4 -0
  190. data/app/assets/stylesheets/dashy/string/_join.scss +0 -0
  191. data/app/assets/stylesheets/dashy/to/_dimension.scss +11 -0
  192. data/app/assets/stylesheets/dashy/to/_fraction.scss +12 -0
  193. data/app/assets/stylesheets/dashy/to/_number.scss +9 -0
  194. data/app/assets/stylesheets/dashy/to/_orientation.scss +11 -0
  195. data/app/assets/stylesheets/dashy/to/_percentage.scss +9 -0
  196. data/app/assets/stylesheets/dashy/to/_px.scss +9 -0
  197. data/app/assets/stylesheets/dashy/to/_unitless.scss +4 -0
  198. data/lib/dashy/version.rb +1 -1
  199. data/lib/dashy.rb +1 -0
  200. data/lib/sass/script/functions/dashy.rb +80 -271
  201. data/lib/sass/script/value/string/dashy.rb +25 -0
  202. metadata +197 -15
  203. data/app/assets/stylesheets/dashy/_color.scss +0 -5
  204. data/app/assets/stylesheets/dashy/_corner.scss +0 -15
  205. data/app/assets/stylesheets/dashy/_default.scss +0 -14
  206. data/app/assets/stylesheets/dashy/_define.scss +0 -158
  207. data/app/assets/stylesheets/dashy/_direction.scss +0 -36
  208. data/app/assets/stylesheets/dashy/_font-family.scss +0 -36
  209. data/app/assets/stylesheets/dashy/_is.scss +0 -81
  210. data/app/assets/stylesheets/dashy/_line-height.scss +0 -10
  211. data/app/assets/stylesheets/dashy/_list.scss +0 -161
  212. data/app/assets/stylesheets/dashy/_number.scss +0 -79
  213. data/app/assets/stylesheets/dashy/_opposite.scss +0 -36
  214. data/app/assets/stylesheets/dashy/_side.scss +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c08b11379b7751916a6e456a4e7c435ef52c998
4
- data.tar.gz: 40e2f13a9566ab716975a357d6a8b2dce5bfc0a3
3
+ metadata.gz: 3914515b02fbf7aa131162a0c991be970d1fcd93
4
+ data.tar.gz: f94b80d3e3e229ed6a66c171911b09887deb4e0f
5
5
  SHA512:
6
- metadata.gz: 82451fa0a98c000f3e4427df0e6f937f36d21e422f5f3cf1774b54f3ca2aebd22a9104ca4803cadec59a3aa43a420b28f51f3045492a956710b87489ccebae3c
7
- data.tar.gz: f0e7fd2f26d29801eb65e58603dd7ccb6e6a45359d3a256d2f8f0135a313db82f6a1d019732a2a2647b346ff6a59d313b44ac4e18b3350bb7c481ceb40117d8c
6
+ metadata.gz: 0ec3851b693a8234244da6f7bed18be44b6802002c0f2b924f32989875070aa6080ae479ac86798b613c5be7ba8827c706b7ee6659a4733f221631d56137e9dd
7
+ data.tar.gz: aae2305d5518c04a2a564ea76e44feb83a9dbb86c0a95deaf1b8077e0bc9da4cdb97fc797efc6d0dc343c58f47fcbb6d8ecb07354822e63024f27760cde6111a
@@ -1,14 +1 @@
1
- @import "dashy/color";
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
- @function select-buttons($button: '*')
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
- // select-grids ///////////////////////////////////////////////////////////////////////////////////
102
- //
103
- @function select-grids($grid:'*', $gutter-width:'', $gutter-height-ratio:'')
3
+ @mixin select($selector)
104
4
  {
105
- @if is($gutter-width) and default != $gutter-width { $grid: select($grid select-class(gutter-width $gutter-width)); }
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-box-shadow($parameters)
1
+ @mixin set($attribute, $value)
2
2
  {
3
- -webkit-box-shadow: $parameters;
4
- -moz-box-shadow: $parameters;
5
- box-shadow: $parameters;
3
+ #{ $attribute }: $value;
6
4
  }
7
5
 
8
- @mixin set-border-radius($corners)
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,2 @@
1
+ $all-sides: top left right bottom;
2
+
@@ -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-clear($clear)
2
+ {
3
+ #{ select-class(clear $clear) }
4
+ {
5
+ @include set-clear($clear);
6
+ }
7
+ }
8
+
9
+ @mixin define-clears($clears: $all-clears)
10
+ {
11
+ @each $clear in $clears
12
+ {
13
+ @include define-clear($clear);
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,15 @@
1
+ @mixin define-float($side)
2
+ {
3
+ #{ select-class(float $side) }
4
+ {
5
+ @include set-float($side);
6
+ }
7
+ }
8
+
9
+ @mixin define-floats($sides: $all-horizontal-sides)
10
+ {
11
+ @each $side in $sides
12
+ {
13
+ @include define-float($side);
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,15 @@
1
+ @mixin define-height($height)
2
+ {
3
+ #{ select-class(height $height) }
4
+ {
5
+ @include set-height($height);
6
+ }
7
+ }
8
+
9
+ @mixin define-heights($heights)
10
+ {
11
+ @each $height in list-series($heights)
12
+ {
13
+ @include define-height($height);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-inner($side)
2
+ {
3
+ .inner-fill, #{ select-class(inner $side) }
4
+ {
5
+ @include set-inner($side);
6
+ }
7
+ }
8
+
9
+ @mixin define-inners($sides: $all-sides)
10
+ {
11
+ @each $side in $sides
12
+ {
13
+ @include define-inner($side);
14
+ }
15
+ }
@@ -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-outer($side)
2
+ {
3
+ #{ select-class(outer $side) }
4
+ {
5
+ @include set-outer($side);
6
+ }
7
+ }
8
+
9
+ @mixin define-outers($sides: $all-sides)
10
+ {
11
+ @each $side in $sides
12
+ {
13
+ @include define-outer($side);
14
+ }
15
+ }
@@ -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
+ }