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
@@ -0,0 +1,4 @@
1
+ @function list-second($list)
2
+ {
3
+ @return list-nth($list, 2);
4
+ }
@@ -0,0 +1,14 @@
1
+ @function number-approximate($number)
2
+ {
3
+ @return round($number * 100) / 100;
4
+ }
5
+
6
+ @function number-approximate-low($number)
7
+ {
8
+ @return floor($number * 100) / 100;
9
+ }
10
+
11
+ @function number-approximate-high($number)
12
+ {
13
+ @return ceil($number * 100) / 100;
14
+ }
@@ -0,0 +1,4 @@
1
+ @function number-ceiling($amt)
2
+ {
3
+ @return ceil($amt);
4
+ }
@@ -0,0 +1,7 @@
1
+ /** @param $amt The source.
2
+ * @returns the first digit after the decimal point.
3
+ */
4
+ @function number-decimal($amt)
5
+ {
6
+ @return number-round(number-fractional($amt) * 10);
7
+ }
@@ -0,0 +1,4 @@
1
+ @function number-floor($amt)
2
+ {
3
+ @return floor($amt);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function number-fractional($amt)
2
+ {
3
+ @return $amt - number-integral($amt);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function number-integral($amt)
2
+ {
3
+ @return number-floor($amt + 0.049999);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function number-of($amt, $n)
2
+ {
3
+ @return ($amt * 0) + $n;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function number-one($amt)
2
+ {
3
+ @return number-of($amt, 1);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function number-round($amt)
2
+ {
3
+ @return round($amt);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function number-squared($number)
2
+ {
3
+ @return $number * $number;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function number-unit($number)
2
+ {
3
+ @return unit($number);
4
+ }
File without changes
@@ -0,0 +1,11 @@
1
+ @function select-attribute($name, $value: null)
2
+ {
3
+ @if is-null($value)
4
+ {
5
+ @return select("[#{ $name }]");
6
+ }
7
+ @else
8
+ {
9
+ @return select("[#{ $name }='#{ $value }']");
10
+ }
11
+ }
@@ -0,0 +1,14 @@
1
+ @function select-buttons($buttons: '*')
2
+ {
3
+ @return select-either(
4
+ select-as-children(select-class(buttons) li $buttons),
5
+ select((a label) select-class(button) $buttons),
6
+ select(button $buttons),
7
+ select('input[type=submit]' $buttons)
8
+ );
9
+ }
10
+
11
+ @mixin select-buttons($buttons: '*')
12
+ {
13
+ #{ select-buttons($buttons) } { @content; }
14
+ }
@@ -0,0 +1,4 @@
1
+ @function select-children($selectors...)
2
+ {
3
+ @return select(">", $selectors...);
4
+ }
@@ -0,0 +1,9 @@
1
+ @function select-class($class)
2
+ {
3
+ @return select("." + string-hyphenate($class));
4
+ }
5
+
6
+ @mixin select-class($class)
7
+ {
8
+ @include select-class($class) { @content; }
9
+ }
@@ -0,0 +1,4 @@
1
+ @function select-descendants($selectors...)
2
+ {
3
+ @return select(" ", $selectors...);
4
+ }
File without changes
@@ -0,0 +1,4 @@
1
+ @function select-following($selectors...)
2
+ {
3
+ @return select("~", $selectors...);
4
+ }
@@ -0,0 +1,9 @@
1
+ @function select-inputs($inputs: '*')
2
+ {
3
+ @return select-either(select(input $inputs), select(textarea $inputs));
4
+ }
5
+
6
+ @mixin select-inputs($inputs: '*')
7
+ {
8
+ #{ select-inputs($inputs) } { @content; }
9
+ }
@@ -0,0 +1,9 @@
1
+ @function select-lists($lists: '*')
2
+ {
3
+ @return select((ul, ol) $lists);
4
+ }
5
+
6
+ @mixin select-lists($lists: '*')
7
+ {
8
+ @include select-lists($lists) { @content; }
9
+ }
@@ -0,0 +1,4 @@
1
+ @function select-next($selectors...)
2
+ {
3
+ @return select("+", $selectors...);
4
+ }
@@ -0,0 +1,9 @@
1
+ @function select-tables($tables: '*')
2
+ {
3
+ @return select(table $tables);
4
+ }
5
+
6
+ @mixin select-tables($tables: '*')
7
+ {
8
+ @include select-tables($tables) { @content; }
9
+ }
@@ -0,0 +1,9 @@
1
+ @function select-tabloids($tabloids: '*')
2
+ {
3
+ @return select-either(select-tables($tabloids), select-table-groups($tabloids));
4
+ }
5
+
6
+ @mixin select-tabloids($tabloids: '*')
7
+ {
8
+ @include select-tabloids($tabloids) { @content; }
9
+ }
@@ -0,0 +1,4 @@
1
+ @function select-as-children($selectors...)
2
+ {
3
+ @return select-as(">", $selectors...);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function select-as-descendants($selectors...)
2
+ {
3
+ @return select-as(" ", $selectors...);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function select-as-following($selectors...)
2
+ {
3
+ @return select-as("~", $selectors...);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function select-as-next($selectors...)
2
+ {
3
+ @return select-as("+", $selectors...);
4
+ }
@@ -0,0 +1,9 @@
1
+ @function select-attribute-prefix($name, $value)
2
+ {
3
+ @return select-either("[#{ $name }^='#{ $value }']", "[#{ $name }*=' #{ $value }']");
4
+ }
5
+
6
+ @mixin select-attribute-prefix($name, $value)
7
+ {
8
+ #{ select-attribute-prefix($name, $value) } { @content; }
9
+ }
@@ -0,0 +1,9 @@
1
+ @function select-attribute-suffix($name, $value)
2
+ {
3
+ @return select-either("[#{ $name }$='#{ $value }']", "[#{ $name }*='#{ $value } ']");
4
+ }
5
+
6
+ @mixin select-attribute-suffix($name, $value)
7
+ {
8
+ #{ select-attribute-suffix($name, $value) } { @content; }
9
+ }
@@ -0,0 +1,9 @@
1
+ @function select-class-prefix($class)
2
+ {
3
+ @return select-attribute-prefix(class, $class);
4
+ }
5
+
6
+ @mixin select-class-prefix($class)
7
+ {
8
+ #{ select-class-prefix($class) } { @content; }
9
+ }
@@ -0,0 +1,4 @@
1
+ @function select-class-suffix($class)
2
+ {
3
+ @return select-attribute-suffix(class, $class);
4
+ }
@@ -0,0 +1,9 @@
1
+ @function select-list-items($items: '*')
2
+ {
3
+ @return select-list-items('*', $items);
4
+ }
5
+
6
+ @mixin select-list-items($items: '*')
7
+ {
8
+ @include select-list-items($items) { @content; }
9
+ }
@@ -0,0 +1,9 @@
1
+ @function select-lists-items($lists: '*', $items: '*')
2
+ {
3
+ @return select($lists select-children(select(li $items)));
4
+ }
5
+
6
+ @mixin select-lists-items($lists: '*', $items: '*')
7
+ {
8
+ @include select-lists-items($lists, $items) { @content; }
9
+ }
@@ -0,0 +1,9 @@
1
+ @function select-table-cells($cells: '*')
2
+ {
3
+ @return select((th, td) $cells);
4
+ }
5
+
6
+ @mixin select-table-cells($cells: '*')
7
+ {
8
+ #{ select-table-cells($cells) } { @content; }
9
+ }
@@ -0,0 +1,4 @@
1
+ @function select-table-groups($groups: '*')
2
+ {
3
+ @return select((thead, tbody, tfoot) $groups);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function select-table-rows($rows: '*')
2
+ {
3
+ @return select(tr $rows);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function select-table-groups-rows($groups: '*', $rows: '*')
2
+ {
3
+ @return select-as('>', $groups select(tr, $rows));
4
+ }
@@ -0,0 +1,4 @@
1
+ @function select-table-groups-rows-cells($table-groups: '*', $rows: '*', $cells: '*')
2
+ {
3
+ @return select-as('>', select-table-groups-rows($table-groups, $rows) $cells);
4
+ }
@@ -0,0 +1,10 @@
1
+ @function select-tabloids-rows($tabloids: '*', $rows: '*')
2
+ {
3
+ @return select-either(select-as('>', select-table-groups($tabloids) $rows),
4
+ select-as('>', select-tables($tabloids) '*' $rows));
5
+ }
6
+
7
+ @mixin select-tabloids-rows($tabloids: '*', $rows: '*')
8
+ {
9
+ #{ select-tabloids-rows($tabloids, $rows) } { @content; }
10
+ }
@@ -0,0 +1,9 @@
1
+ @function select-tabloids-rows-cells($tabloids:'*', $rows:'*', $cells:'*')
2
+ {
3
+ @return select-as('>', select-tabloids-rows($tabloids, $rows) $cells);
4
+ }
5
+
6
+ @mixin select-tabloids-rows-cells($tabloids: '*', $rows: '*', $cells:'*')
7
+ {
8
+ #{ select-tabloids-rows-cells($tabloids, $rows, $cells) } { @content; }
9
+ }
@@ -0,0 +1,11 @@
1
+ @function select-text-inputs($input: '*')
2
+ {
3
+ // TODO: utilize $all-text-inputs...
4
+ //
5
+ @return select-either(select(('input[type=text]', 'input[type=password]') $input), select(textarea $input));
6
+ }
7
+
8
+ @mixin select-text-inputs($input: '*')
9
+ {
10
+ #{ select-text-inputs($input) } { @content; }
11
+ }
@@ -0,0 +1,10 @@
1
+ @mixin set-animation($arguments...)
2
+ {
3
+ @if 1 == length($arguments)
4
+ {
5
+ -webkit-animation: $arguments;
6
+ -moz-animation: $arguments;
7
+ -o-animation: $arguments;
8
+ animation: $arguments;
9
+ }
10
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-append($append)
2
+ {
3
+ @include set-margin(right, $append);
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-backspace($side, $amount)
2
+ {
3
+ @include set-margin($side, - $amount);
4
+ }
@@ -0,0 +1,13 @@
1
+ $set-clear-fix: fix content;
2
+
3
+ @mixin set-clear($value)
4
+ {
5
+ @if not is-null(index($set-clear-fix, $value))
6
+ {
7
+ &:after { content: " "; clear: both; display: block; visiblity: hidden; }
8
+ }
9
+ @else
10
+ {
11
+ clear: $value;
12
+ }
13
+ }
@@ -0,0 +1,11 @@
1
+ @mixin set-display($value)
2
+ {
3
+ @if tabular == $value
4
+ {
5
+ display: table; & > { display: table-cell; }
6
+ }
7
+ @else
8
+ {
9
+ display: $value; @if $value == inline-block { *display: inline; zoom: 1; }
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-float($side)
2
+ {
3
+ @include set(float, $side);
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-height($height)
2
+ {
3
+ @include set-rem(height, $height);
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-inner($side)
2
+ {
3
+ @include set-position($side, 0);
4
+ }
@@ -0,0 +1,7 @@
1
+ @mixin set-keyframes($name)
2
+ {
3
+ @-webkit-keyframes #{ $name } { @content; }
4
+ @-moz-keyframes #{ $name } { @content; }
5
+ @-o-keyframes #{ $name } { @content; }
6
+ @keyframes #{ $name } { @content; }
7
+ }
@@ -0,0 +1,5 @@
1
+ @mixin set-margin($side, $amount)
2
+ {
3
+ @if is-rem($amount) { @include set-margin($side, to-px($amount)) }
4
+ margin-#{ $side }: #{ $amount };
5
+ }
@@ -0,0 +1,9 @@
1
+ @mixin set-opacity($opacity)
2
+ {
3
+ @if is-percentage($opacity)
4
+ {
5
+ $opacity: $opacity / 100%;
6
+ }
7
+ @include set(opacity, $opacity);
8
+ filter: alpha(opacity=#{ round(100 * $opacity) });
9
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-outer($side)
2
+ {
3
+ @include set-position(get-opposite-side($side), 100%);
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-overflow($overflow)
2
+ {
3
+ @include set(overflow, $overflow);
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-pad($side, $amount)
2
+ {
3
+ @include set-padding($side, $amount);
4
+ }
@@ -0,0 +1,5 @@
1
+ @mixin set-padding($side, $amount)
2
+ {
3
+ @if is-rem($amount) { @include set-padding($side, to-px($amount)) }
4
+ padding-#{ $side }: #{ $amount };
5
+ }
@@ -0,0 +1,11 @@
1
+ @mixin set-position($position-or-side, $amount: null)
2
+ {
3
+ @if is-null($amount)
4
+ {
5
+ position: #{ $position-or-side };
6
+ }
7
+ @else
8
+ {
9
+ #{ $position-or-side }: $amount;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-prepend($prepend)
2
+ {
3
+ @include set-margin(left, $prepend);
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-pull($direction, $amount)
2
+ {
3
+ @include set-position(get-side-in-direction($direction), - $amount);
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-push($direction, $amount)
2
+ {
3
+ @include set-position(get-side-in-opposite-direction($direction), $amount);
4
+ }
@@ -0,0 +1,5 @@
1
+ @mixin set-rem($attribute, $value)
2
+ {
3
+ @if is-rem($value) { @include set($attribute, to-px($value)) }
4
+ #{ $attribute }: $value;
5
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-rgb($attribute, $color)
2
+ {
3
+ @include set($attribute, rgba($color, 1.0));
4
+ }
@@ -0,0 +1,8 @@
1
+ @mixin set-rgba($attribute, $color)
2
+ {
3
+ @if alpha($color) < 1.0
4
+ {
5
+ @include set-rgb($attribute, $color);
6
+ }
7
+ @include set($attribute, $color);
8
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-space($side, $amount)
2
+ {
3
+ @include set-margin($side, $amount);
4
+ }
@@ -0,0 +1,7 @@
1
+ @mixin set-transition($arguments)
2
+ {
3
+ -webkit-transition: $arguments;
4
+ -moz-transition: $arguments;
5
+ -o-transition: $arguments;
6
+ transition: $arguments;
7
+ }
@@ -0,0 +1,5 @@
1
+ @mixin set-tweening($arguments)
2
+ {
3
+ -webkit-transition-timing-function: $arguments;
4
+ transition-timing-function: $arguments;
5
+ }
@@ -0,0 +1,4 @@
1
+ @mixin set-width($width)
2
+ {
3
+ @include set-rem(width, $width);
4
+ }
@@ -0,0 +1,37 @@
1
+ // @mixin set-background-gradient($linear: null)
2
+ // {
3
+ // @if not is-null($linear)
4
+ // {
5
+ // background-image: -webkit-linear-gradient($):
6
+ // }
7
+ // }
8
+
9
+ // .gradient {
10
+
11
+ // /* Fallback (could use .jpg/.png alternatively) */
12
+ // background-color: red;
13
+
14
+ // /* SVG fallback for IE 9 (could be data URI, or could use filter) */
15
+ // background-image: url(fallback-gradient.svg);
16
+
17
+ // /* Safari 4, Chrome 1-9, iOS 3.2-4.3, Android 2.1-3.0 */
18
+ // background-image:
19
+ // -webkit-gradient(linear, left top, right top, from(red), to(#f06d06));
20
+
21
+ // /* Safari 5.1, iOS 5.0-6.1, Chrome 10-25, Android 4.0-4.3 */
22
+ // background-image:
23
+ // -webkit-linear-gradient(left, red, #f06d06);
24
+
25
+ // /* Firefox 3.6 - 15 */
26
+ // background-image:
27
+ // -moz-linear-gradient(left, red, #f06d06);
28
+
29
+ // /* Opera 11.1 - 12 */
30
+ // background-image:
31
+ // -o-linear-gradient(left, red, #f06d06);
32
+
33
+ // /* Opera 15+, Chrome 25+, IE 10+, Firefox 16+, Safari 6.1+, iOS 7+, Android 4.4+ */
34
+ // background-image:
35
+ // linear-gradient(to right, red, #f06d06);
36
+
37
+ // }
@@ -0,0 +1,6 @@
1
+ @mixin set-border-radius($corners)
2
+ {
3
+ -webkit-border-radius: $corners;
4
+ -moz-border-radius: $corners;
5
+ border-radius: $corners;
6
+ }
@@ -0,0 +1,6 @@
1
+ @mixin set-box-shadow($parameters)
2
+ {
3
+ -webkit-box-shadow: $parameters;
4
+ -moz-box-shadow: $parameters;
5
+ box-shadow: $parameters;
6
+ }
@@ -0,0 +1,6 @@
1
+ @mixin set-box-sizing($value)
2
+ {
3
+ -webkit-box-sizing: #{ $value };
4
+ -moz-box-sizing: #{ $value };
5
+ box-sizing: #{ $value };
6
+ }
@@ -0,0 +1,6 @@
1
+ @mixin set-column-count($count)
2
+ {
3
+ -webkit-column-count: $count;
4
+ -moz-column-count: $count;
5
+ column-count: $count;
6
+ }
@@ -0,0 +1,6 @@
1
+ @mixin set-column-fill($fill)
2
+ {
3
+ -webkit-column-fill: $fill;
4
+ -moz-column-fill: $fill;
5
+ column-fill: $fill;
6
+ }