dashy 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,53 @@
1
+ @mixin define-prepend($prepend)
2
+ {
3
+ @if is-unitless($prepend)
4
+ {
5
+ @include define-elastic-prepend(to-percentage-from-unitless($prepend));
6
+ }
7
+ @else if is-percentage($prepend)
8
+ {
9
+ @include define-elastic-prepend($prepend);
10
+ }
11
+ @else
12
+ {
13
+ @include define-fixed-prepend($prepend);
14
+ }
15
+ }
16
+
17
+ @mixin define-elastic-prepend($prepend-percentage)
18
+ {
19
+ $prepend-fraction: to-fraction-from-percentage($prepend-percentage);
20
+ $approximate-prepend-percentage: number-approximate-low($prepend-percentage);
21
+
22
+ @if is-round($approximate-prepend-percentage)
23
+ {
24
+ #{ select-class(prepend $approximate-prepend-percentage) },
25
+ #{ select-class(prepend $prepend-fraction) }
26
+ {
27
+ @include set-prepend($approximate-prepend-percentage);
28
+ }
29
+ }
30
+ @else
31
+ {
32
+ #{ select-class(prepend $prepend-fraction) }
33
+ {
34
+ @include set-prepend($approximate-prepend-percentage);
35
+ }
36
+ }
37
+ }
38
+
39
+ @mixin define-fixed-prepend($prepend)
40
+ {
41
+ #{ select-class(prepend $prepend) }
42
+ {
43
+ @include set-prepend($prepend);
44
+ }
45
+ }
46
+
47
+ @mixin define-prepends($prepends)
48
+ {
49
+ @each $prepend in list-series($prepends)
50
+ {
51
+ @include define-prepend($prepend);
52
+ }
53
+ }
@@ -0,0 +1,17 @@
1
+ @mixin define-pull($direction, $amount)
2
+ {
3
+ @include initialize-pull;
4
+
5
+ #{ select-class(pull $direction $amount) }
6
+ {
7
+ @include set-pull($direction, $amount);
8
+ }
9
+ }
10
+
11
+ @mixin define-pulls($directions, $amounts)
12
+ {
13
+ @each $direction in $directions { @each $amount in list-series($amounts)
14
+ {
15
+ @include define-pull($direction, $amount);
16
+ }}
17
+ }
@@ -0,0 +1,22 @@
1
+ @mixin define-push($direction, $amount)
2
+ {
3
+ @include initialize-push;
4
+
5
+ #{ select-class(push $direction $amount) }
6
+ {
7
+ @include set-push($direction, $amount);
8
+ }
9
+ }
10
+
11
+ @mixin define-pushs($directions, $amounts)
12
+ {
13
+ @each $direction in $directions { @each $amount in list-series($amounts)
14
+ {
15
+ @include define-push($direction, $amount);
16
+ }}
17
+ }
18
+
19
+ @mixin define-pushes($directions, $amounts)
20
+ {
21
+ @include define-pushs($directions, $amounts);
22
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-space($side, $amount)
2
+ {
3
+ #{ select-class(space $side $amount) }
4
+ {
5
+ @include set-space($side, $amount);
6
+ }
7
+ }
8
+
9
+ @mixin define-spaces($sides, $amounts)
10
+ {
11
+ @each $side in $sides { @each $amount in list-series($amounts)
12
+ {
13
+ @include define-space($side, $amount);
14
+ }}
15
+ }
@@ -0,0 +1,53 @@
1
+ @mixin define-width($width)
2
+ {
3
+ @if is-unitless($width)
4
+ {
5
+ @include define-elastic-width(to-percentage-from-unitless($width));
6
+ }
7
+ @else if is-percentage($width)
8
+ {
9
+ @include define-elastic-width($width);
10
+ }
11
+ @else
12
+ {
13
+ @include define-fixed-width($width);
14
+ }
15
+ }
16
+
17
+ @mixin define-elastic-width($width-percentage)
18
+ {
19
+ $width-fraction: to-fraction-from-percentage($width-percentage);
20
+ $approximate-width-percentage: number-approximate-low($width-percentage);
21
+
22
+ @if is-round($approximate-width-percentage)
23
+ {
24
+ #{ select-class(width $approximate-width-percentage) },
25
+ #{ select-class(width $width-fraction) }
26
+ {
27
+ @include set-width($approximate-width-percentage);
28
+ }
29
+ }
30
+ @else
31
+ {
32
+ #{ select-class(width $width-fraction) }
33
+ {
34
+ @include set-width($approximate-width-percentage);
35
+ }
36
+ }
37
+ }
38
+
39
+ @mixin define-fixed-width($width)
40
+ {
41
+ #{ select-class(width $width) }
42
+ {
43
+ @include set-width($width);
44
+ }
45
+ }
46
+
47
+ @mixin define-widths($widths)
48
+ {
49
+ @each $width in list-series($widths)
50
+ {
51
+ @include define-width($width);
52
+ }
53
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-column-count($count)
2
+ {
3
+ #{ select-class(column-count $count) }
4
+ {
5
+ @include set-column-count($count);
6
+ }
7
+ }
8
+
9
+ @mixin define-column-counts($counts)
10
+ {
11
+ @each $count in list-series($counts)
12
+ {
13
+ @include define-column-count($count);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-column-fill($fill)
2
+ {
3
+ #{ select-class(column-fill $fill) }
4
+ {
5
+ @include set-column-fill($fill);
6
+ }
7
+ }
8
+
9
+ @mixin define-column-fills($fills)
10
+ {
11
+ @each $fill in $fills
12
+ {
13
+ @include define-column-fill($fill);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-column-gap($gap)
2
+ {
3
+ #{ select-class(column-gap $gap) }
4
+ {
5
+ @include set-column-gap($gap);
6
+ }
7
+ }
8
+
9
+ @mixin define-column-gaps($gaps)
10
+ {
11
+ @each $gap in $gaps
12
+ {
13
+ @include define-column-gap($gap);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-column-break-inside($break)
2
+ {
3
+ #{ select-class(column-break-inside $break) }
4
+ {
5
+ @include set-column-break-inside($break);
6
+ }
7
+ }
8
+
9
+ @mixin define-column-break-insides($breaks)
10
+ {
11
+ @each $break in $breaks
12
+ {
13
+ @include define-column-break-inside($break);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-font-size($size)
2
+ {
3
+ #{ select-class(font-size $size) }, #{ select-class(font $size) }
4
+ {
5
+ @include set-font-size($size);
6
+ }
7
+ }
8
+
9
+ @mixin define-font-sizes($sizes)
10
+ {
11
+ @each $size in list-series($sizes)
12
+ {
13
+ @include define-font-size($size);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-font-style($style)
2
+ {
3
+ #{ select-class(font-style $style) }, #{ select-class(font $style) }
4
+ {
5
+ @include set-font-style($style);
6
+ }
7
+ }
8
+
9
+ @mixin define-font-styles($styles: $all-font-styles)
10
+ {
11
+ @each $style in $styles
12
+ {
13
+ @include define-font-style($style);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-font-weight($weight)
2
+ {
3
+ #{ select-class(font-weight $weight) }, #{ select-class(font $weight) }
4
+ {
5
+ @include set-font-weight($weight);
6
+ }
7
+ }
8
+
9
+ @mixin define-font-weights($weights)
10
+ {
11
+ @each $weight in list-series($weights)
12
+ {
13
+ @include define-font-weight($weight);
14
+ }
15
+ }
@@ -0,0 +1,17 @@
1
+ @mixin define-line-height($height)
2
+ {
3
+ $approximate-height: number-approximate($height);
4
+
5
+ #{ select-class(line-height $approximate-height) }, #{ select-class(line $approximate-height) }
6
+ {
7
+ @include set-line-height($height);
8
+ }
9
+ }
10
+
11
+ @mixin define-line-heights($heights)
12
+ {
13
+ @each $height in list-series($heights)
14
+ {
15
+ @include define-line-height($height);
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-max-height($height)
2
+ {
3
+ #{ select-class(max-height $height) }
4
+ {
5
+ @include set-max-height($height);
6
+ }
7
+ }
8
+
9
+ @mixin define-max-heights($heights)
10
+ {
11
+ @each $height in list-series($heights)
12
+ {
13
+ @include define-max-height($height);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-max-width($width)
2
+ {
3
+ #{ select-class(max-width $width) }
4
+ {
5
+ @include set-max-width($width);
6
+ }
7
+ }
8
+
9
+ @mixin define-max-widths($widths)
10
+ {
11
+ @each $width in list-series($widths)
12
+ {
13
+ @include define-max-width($width);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-min-height($height)
2
+ {
3
+ #{ select-class(min-height $height) }
4
+ {
5
+ @include set-min-height($height);
6
+ }
7
+ }
8
+
9
+ @mixin define-min-heights($heights)
10
+ {
11
+ @each $height in list-series($heights)
12
+ {
13
+ @include define-min-height($height);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-min-width($width)
2
+ {
3
+ #{ select-class(min-width $width) }
4
+ {
5
+ @include set-min-width($width);
6
+ }
7
+ }
8
+
9
+ @mixin define-min-widths($widths)
10
+ {
11
+ @each $width in list-series($widths)
12
+ {
13
+ @include define-min-width($width);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-text-align($align)
2
+ {
3
+ #{ select-class(text-align $align) }, #{ select-class(text $align) }, #{ select-class(align $align) }
4
+ {
5
+ @include set-text-align($align);
6
+ }
7
+ }
8
+
9
+ @mixin define-text-aligns($aligns: $all-text-aligns)
10
+ {
11
+ @each $align in $aligns
12
+ {
13
+ @include define-text-align($align);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-text-color($color)
2
+ {
3
+ #{ select-class(text-color $color) }, #{ select-class(text $color) }
4
+ {
5
+ @include set-text-color($color);
6
+ }
7
+ }
8
+
9
+ @mixin define-text-colors($colors)
10
+ {
11
+ @each $color in $colors
12
+ {
13
+ @include define-text-color($color);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-text-decoration($decoration)
2
+ {
3
+ #{ select-class(text-decoration $decoration) }, #{ select-class(text $decoration) }
4
+ {
5
+ @include set-text-decoration($decoration);
6
+ }
7
+ }
8
+
9
+ @mixin define-text-decorations($decorations: $all-text-decorations)
10
+ {
11
+ @each $decoration in $decorations
12
+ {
13
+ @include define-text-decoration($decoration);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-text-transform($transform)
2
+ {
3
+ #{ select-class(text-transform $transform) }, #{ select-class(text $transform) }
4
+ {
5
+ @include set-text-transform($transform);
6
+ }
7
+ }
8
+
9
+ @mixin define-text-transforms($transforms: $all-text-transforms)
10
+ {
11
+ @each $transform in $transforms
12
+ {
13
+ @include define-text-transform($transform);
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ @mixin define-vertical-align($align)
2
+ {
3
+ #{ select-class(vertical-align $align) }, #{ select-class(vertical $align) }, #{ select-class(align $align) }
4
+ {
5
+ @include set-vertical-align($align);
6
+ }
7
+ }
8
+
9
+ @mixin define-vertical-aligns($aligns: $all-vertical-aligns)
10
+ {
11
+ @each $align in $aligns
12
+ {
13
+ @include define-vertical-align($align);
14
+ }
15
+ }
@@ -0,0 +1,6 @@
1
+ $get-direction-of-side: (top: up, left: left, right: right, bottom: down);
2
+
3
+ @function get-direction-of-side($side)
4
+ {
5
+ @return map-get($get-direction-of-side, $side);
6
+ }
@@ -0,0 +1,11 @@
1
+ $get-side-in-direction: (up: top, down: bottom, left: left, right: right);
2
+
3
+ @function get-side-in-direction($direction)
4
+ {
5
+ @return map-get($get-side-in-direction, $direction);
6
+ }
7
+
8
+ @function get-side-in-opposite-direction($direction)
9
+ {
10
+ @return get-side-in-direction(get-opposite-direction($direction));
11
+ }
@@ -0,0 +1,6 @@
1
+ $get-opposite-corner: (top-left: bottom-right, bottom-right: top-left, top-right: bottom-left, bottom-left: top-right);
2
+
3
+ @function get-opposite-corner($corner)
4
+ {
5
+ @return map-get($get-opposite-corner, $corner);
6
+ }
@@ -0,0 +1,6 @@
1
+ $get-opposite-direction: (up: down, down: up, left: right, right: left);
2
+
3
+ @function get-opposite-direction($direction)
4
+ {
5
+ @return map-get($get-opposite-direction, $direction);
6
+ }
@@ -0,0 +1,6 @@
1
+ $get-opposite-side: (top: bottom, bottom: top, left: right, right: left);
2
+
3
+ @function get-opposite-side($side)
4
+ {
5
+ @return map-get($get-opposite-side, $side);
6
+ }
@@ -0,0 +1,14 @@
1
+ $initialize-pull: true;
2
+
3
+ @mixin initialize-pull
4
+ {
5
+ @if $initialize-pull
6
+ {
7
+ $initialize-pull: false !global;
8
+
9
+ #{ select-class-prefix(pull-) }
10
+ {
11
+ @include set-position(relative);
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ $initialize-push: true;
2
+
3
+ @mixin initialize-push
4
+ {
5
+ @if $initialize-push
6
+ {
7
+ $initialize-push: false !global;
8
+
9
+ #{ select-class-prefix(push-) }
10
+ {
11
+ @include set-position(relative);
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,5 @@
1
+ @function is-blank($val)
2
+ {
3
+ @if is-string($val) { @return $val == ""; }
4
+ @return false;
5
+ }
@@ -0,0 +1,4 @@
1
+ @function is-boolean($val)
2
+ {
3
+ @return type-of($val) == bool;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-color($val)
2
+ {
3
+ @return type-of($val) == color;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-em($val)
2
+ {
3
+ @return is-unit(em, $val);
4
+ }
@@ -0,0 +1,5 @@
1
+ @function is-empty($val)
2
+ {
3
+ @if is-list($val) { @return list-length($val) == 0; }
4
+ @return false;
5
+ }
@@ -0,0 +1,4 @@
1
+ @function is-ex($val)
2
+ {
3
+ @return is-unit(ex, $val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-list($val)
2
+ {
3
+ @return type-of($val) == list;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-nothing($val)
2
+ {
3
+ @return is-null($val) or is-blank($val) or is-empty($val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-null($val)
2
+ {
3
+ @return null == $val;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-number($val)
2
+ {
3
+ @return type-of($val) == number;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-percentage($val)
2
+ {
3
+ @return is-unit("%", $val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-px($val)
2
+ {
3
+ @return is-unit(px, $val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-rem($val)
2
+ {
3
+ @return is-unit(rem, $val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-round($number)
2
+ {
3
+ @return round($number) == $number;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-something($val)
2
+ {
3
+ @return not is-nothing($val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-string($val)
2
+ {
3
+ @return type-of($val) == string;
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-unit($unit, $val)
2
+ {
3
+ @return is-number($val) and $unit == unit($val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-unitful($val)
2
+ {
3
+ @return is-number($val) and not is-blank(unit($val));
4
+ }
@@ -0,0 +1,4 @@
1
+ @function is-unitless($val)
2
+ {
3
+ @return is-number($val) and unitless($val);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function list-append($list, $value, $separator:comma)
2
+ {
3
+ @return append($list, $value, $separator);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function list-first($list)
2
+ {
3
+ @return list-nth($list, 1);
4
+ }
@@ -0,0 +1,4 @@
1
+ @function list-last($list)
2
+ {
3
+ @return list-nth($list, list-length($list));
4
+ }
@@ -0,0 +1,4 @@
1
+ @function list-length($list)
2
+ {
3
+ @return length($list);
4
+ }
@@ -0,0 +1,5 @@
1
+ @function list-nth($list, $index)
2
+ {
3
+ @if list-length($list) < $i { @return null; }
4
+ @return nth($list, $index);
5
+ }