oulu-rails 0.5.7

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 (194) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +22 -0
  3. data/README.md +23 -0
  4. data/lib/oulu-rails/version.rb +3 -0
  5. data/lib/oulu-rails.rb +27 -0
  6. data/vendor/assets/javascripts/oulu/dev/positions-p.js.coffee +34 -0
  7. data/vendor/assets/javascripts/oulu/dev/positions-pp.js.coffee +57 -0
  8. data/vendor/assets/javascripts/oulu/dev/positions.js.coffee +6 -0
  9. data/vendor/assets/javascripts/oulu/helpers/js-autosize.js.coffee +2 -0
  10. data/vendor/assets/javascripts/oulu/helpers/js-checkbox.js.coffee +6 -0
  11. data/vendor/assets/javascripts/oulu/helpers/js-click-animate.js.coffee +8 -0
  12. data/vendor/assets/javascripts/oulu/helpers/js-delay-hidden.js.coffee +4 -0
  13. data/vendor/assets/javascripts/oulu/helpers/js-focused.js.coffee +7 -0
  14. data/vendor/assets/javascripts/oulu/helpers/js-hack.js.coffee +8 -0
  15. data/vendor/assets/javascripts/oulu/helpers/js-hide-after.j.coffee +5 -0
  16. data/vendor/assets/javascripts/oulu/helpers/js-hover-z-index.js.coffee +5 -0
  17. data/vendor/assets/javascripts/oulu/helpers/js-hovered.js.coffee +17 -0
  18. data/vendor/assets/javascripts/oulu/helpers/js-one-animate.js.coffee +5 -0
  19. data/vendor/assets/javascripts/oulu/helpers/js-open-children.js.coffee +28 -0
  20. data/vendor/assets/javascripts/oulu/helpers/js-open.js.coffee +51 -0
  21. data/vendor/assets/javascripts/oulu/helpers/js-scroll-to-top.js.coffee +11 -0
  22. data/vendor/assets/javascripts/oulu/helpers/js-scroll.js.coffee +9 -0
  23. data/vendor/assets/javascripts/oulu/helpers/js-side-slide.js.coffee +6 -0
  24. data/vendor/assets/javascripts/oulu/helpers/js-window-loading.js.coffee +15 -0
  25. data/vendor/assets/javascripts/oulu/helpers/js-window-sizes.js.coffee +6 -0
  26. data/vendor/assets/javascripts/oulu/helpers/open-close.js.coffee +23 -0
  27. data/vendor/assets/javascripts/oulu/ie/PIE_IE678.js +72 -0
  28. data/vendor/assets/javascripts/oulu/ie/PIE_IE9.js +46 -0
  29. data/vendor/assets/javascripts/oulu/ie/ie-selectors.js.coffee +3 -0
  30. data/vendor/assets/javascripts/oulu/ie/ie8-selectors.js.coffee +3 -0
  31. data/vendor/assets/javascripts/oulu/ie/ie9-selectors.js.coffee +6 -0
  32. data/vendor/assets/javascripts/oulu/ie/jquery.belatedPNG.min.js +29 -0
  33. data/vendor/assets/javascripts/oulu/ie/jquery.linkscubber.js +7 -0
  34. data/vendor/assets/javascripts/oulu/ie/svgeezy.min.js +12 -0
  35. data/vendor/assets/javascripts/oulu/plugins/check-box.js.coffee +34 -0
  36. data/vendor/assets/javascripts/oulu/plugins/footerFixed.js +74 -0
  37. data/vendor/assets/javascripts/oulu/plugins/jquery.autosize.min.js +7 -0
  38. data/vendor/assets/javascripts/oulu/plugins/jquery.cheat-code.js +63 -0
  39. data/vendor/assets/javascripts/oulu/plugins/jquery.css3form.js +195 -0
  40. data/vendor/assets/javascripts/oulu/plugins/jquery.depend.min.js +13 -0
  41. data/vendor/assets/javascripts/oulu/plugins/sns-buttons.js +339 -0
  42. data/vendor/assets/javascripts/oulu-ie8.js +6 -0
  43. data/vendor/assets/javascripts/oulu-ie9.js +2 -0
  44. data/vendor/assets/javascripts/oulu.js +2 -0
  45. data/vendor/assets/stylesheets/_oulu-base.css.sass +86 -0
  46. data/vendor/assets/stylesheets/_oulu.css.sass +13 -0
  47. data/vendor/assets/stylesheets/bootcamp/CHANGELOG.md +70 -0
  48. data/vendor/assets/stylesheets/bootcamp/CONTRIBUTING.md +72 -0
  49. data/vendor/assets/stylesheets/bootcamp/Gruntfile.coffee +34 -0
  50. data/vendor/assets/stylesheets/bootcamp/LICENSE.md +7 -0
  51. data/vendor/assets/stylesheets/bootcamp/README.md +52 -0
  52. data/vendor/assets/stylesheets/bootcamp/bower.json +15 -0
  53. data/vendor/assets/stylesheets/bootcamp/dist/_bootcamp.scss +46 -0
  54. data/vendor/assets/stylesheets/bootcamp/dist/bootcamp.coffee +101 -0
  55. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_actual.scss +3 -0
  56. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_error.scss +29 -0
  57. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_expect.scss +6 -0
  58. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_not-to.scss +5 -0
  59. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_should.scss +6 -0
  60. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_to.scss +5 -0
  61. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_describe.scss +31 -0
  62. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_it.scss +31 -0
  63. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_runner.scss +28 -0
  64. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_should.scss +46 -0
  65. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_xdescribe.scss +9 -0
  66. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_xit.scss +9 -0
  67. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_helpers.scss +5 -0
  68. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_settings.scss +2 -0
  69. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_should.scss +6 -0
  70. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_trackers.scss +6 -0
  71. data/vendor/assets/stylesheets/bootcamp/dist/lib/_sassyjson.scss +1075 -0
  72. data/vendor/assets/stylesheets/bootcamp/dist/matchers/_be.scss +3 -0
  73. data/vendor/assets/stylesheets/bootcamp/dist/matchers/_equal.scss +3 -0
  74. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_be-empty.scss +3 -0
  75. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_be-longer-than.scss +3 -0
  76. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_be-shorter-than.scss +3 -0
  77. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_contain.scss +3 -0
  78. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_deep-contain.scss +3 -0
  79. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_deep-equal.scss +47 -0
  80. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_have-length-of.scss +3 -0
  81. data/vendor/assets/stylesheets/bootcamp/dist/matchers/numbers/_be-close-to.scss +12 -0
  82. data/vendor/assets/stylesheets/bootcamp/dist/matchers/numbers/_be-greater-than.scss +12 -0
  83. data/vendor/assets/stylesheets/bootcamp/dist/matchers/numbers/_be-less-than.scss +12 -0
  84. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_be-falsy.scss +3 -0
  85. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_be-null.scss +3 -0
  86. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_be-truthy.scss +3 -0
  87. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_have-type-of.scss +3 -0
  88. data/vendor/assets/stylesheets/bootcamp/dist/utils/_contain.scss +15 -0
  89. data/vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss +23 -0
  90. data/vendor/assets/stylesheets/bootcamp/dist/utils/_list-join.scss +35 -0
  91. data/vendor/assets/stylesheets/bootcamp/dist/utils/_power.scss +15 -0
  92. data/vendor/assets/stylesheets/bootcamp/package.json +63 -0
  93. data/vendor/assets/stylesheets/bootcamp/tasks/bootcamp.coffee +83 -0
  94. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_actual.scss +10 -0
  95. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_expect.scss +6 -0
  96. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_not-to.scss +5 -0
  97. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_should.scss +10 -0
  98. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_to.scss +5 -0
  99. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_describe.scss +11 -0
  100. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_it.scss +5 -0
  101. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_should.scss +5 -0
  102. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_xdescribe.scss +28 -0
  103. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_xit.scss +12 -0
  104. data/vendor/assets/stylesheets/bootcamp/test/matchers/_be.scss +90 -0
  105. data/vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss +33 -0
  106. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_be-empty.scss +12 -0
  107. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_be-longer-than.scss +29 -0
  108. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_be-shorter-than.scss +29 -0
  109. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_contain.scss +39 -0
  110. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_deep-contain.scss +51 -0
  111. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_deep-equal.scss +151 -0
  112. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_have-length-of.scss +31 -0
  113. data/vendor/assets/stylesheets/bootcamp/test/matchers/numbers/_be-close-to.scss +24 -0
  114. data/vendor/assets/stylesheets/bootcamp/test/matchers/numbers/_be-greater-than.scss +16 -0
  115. data/vendor/assets/stylesheets/bootcamp/test/matchers/numbers/_be-less-than.scss +16 -0
  116. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_be-falsy.scss +14 -0
  117. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_be-null.scss +13 -0
  118. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_be-truthy.scss +13 -0
  119. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_have-type-of.scss +17 -0
  120. data/vendor/assets/stylesheets/bootcamp/test/specs.scss +45 -0
  121. data/vendor/assets/stylesheets/bootcamp/test/utils/_contain.scss +41 -0
  122. data/vendor/assets/stylesheets/bootcamp/test/utils/_equal.scss +79 -0
  123. data/vendor/assets/stylesheets/bootcamp/test/utils/_list-join.scss +39 -0
  124. data/vendor/assets/stylesheets/bootcamp/test/utils/_power.scss +13 -0
  125. data/vendor/assets/stylesheets/helper/_base-helper.css.sass +133 -0
  126. data/vendor/assets/stylesheets/helper/_click-actions.css.sass +188 -0
  127. data/vendor/assets/stylesheets/helper/_fade-actions.css.sass +30 -0
  128. data/vendor/assets/stylesheets/helper/_margin-padding.css.sass +16 -0
  129. data/vendor/assets/stylesheets/helper/_typoglaphy.css.sass +9 -0
  130. data/vendor/assets/stylesheets/options/amazlet/_amazlet.css.sass +32 -0
  131. data/vendor/assets/stylesheets/options/glitch/_glitch.css.sass +31 -0
  132. data/vendor/assets/stylesheets/options/oulu-buttons/_button-basic.css.sass +31 -0
  133. data/vendor/assets/stylesheets/options/web-fonts/_cousine.css.sass +12 -0
  134. data/vendor/assets/stylesheets/options/web-fonts/_font-awsome.css.sass +8 -0
  135. data/vendor/assets/stylesheets/options/web-fonts/_icomoon.css.sass +10 -0
  136. data/vendor/assets/stylesheets/options/web-fonts/_lato.css.sass +12 -0
  137. data/vendor/assets/stylesheets/options/web-fonts/_montserrat.css.sass +13 -0
  138. data/vendor/assets/stylesheets/options/web-fonts/_old-standard.css.sass +12 -0
  139. data/vendor/assets/stylesheets/options/web-fonts/_open-sans.css.sass +11 -0
  140. data/vendor/assets/stylesheets/options/web-fonts/_podkova.css.sass +12 -0
  141. data/vendor/assets/stylesheets/options/web-fonts/_pt-sans.css.sass +12 -0
  142. data/vendor/assets/stylesheets/options/web-fonts/_roboto.css.sass +11 -0
  143. data/vendor/assets/stylesheets/options/web-fonts/_satisfy.css.sass +13 -0
  144. data/vendor/assets/stylesheets/options/web-fonts/_source-code-pro.css.sass +13 -0
  145. data/vendor/assets/stylesheets/options/web-fonts/_source-sans-pro.css.sass +13 -0
  146. data/vendor/assets/stylesheets/options/web-fonts/_special-elite.css.sass +12 -0
  147. data/vendor/assets/stylesheets/options/web-fonts/_tauri.css.sass +11 -0
  148. data/vendor/assets/stylesheets/options/web-fonts/_ubuntu.css.sass +12 -0
  149. data/vendor/assets/stylesheets/settings/functions/_background.css.sass +60 -0
  150. data/vendor/assets/stylesheets/settings/functions/_bool.css.sass +5 -0
  151. data/vendor/assets/stylesheets/settings/functions/_border.css.sass +47 -0
  152. data/vendor/assets/stylesheets/settings/functions/_color.css.sass +65 -0
  153. data/vendor/assets/stylesheets/settings/functions/_content.css.sass +5 -0
  154. data/vendor/assets/stylesheets/settings/functions/_cursor.css.sass +5 -0
  155. data/vendor/assets/stylesheets/settings/functions/_direction.css.sass +8 -0
  156. data/vendor/assets/stylesheets/settings/functions/_image.css.sass +8 -0
  157. data/vendor/assets/stylesheets/settings/functions/_length.css.sass +20 -0
  158. data/vendor/assets/stylesheets/settings/functions/_list.css.sass +11 -0
  159. data/vendor/assets/stylesheets/settings/functions/_map.css.sass +5 -0
  160. data/vendor/assets/stylesheets/settings/functions/_number.css.sass +63 -0
  161. data/vendor/assets/stylesheets/settings/functions/_position.css.sass +47 -0
  162. data/vendor/assets/stylesheets/settings/functions/_reverse.css.sass +22 -0
  163. data/vendor/assets/stylesheets/settings/functions/_string.css.sass +5 -0
  164. data/vendor/assets/stylesheets/settings/functions/_text.css.sass +34 -0
  165. data/vendor/assets/stylesheets/settings/initializers/_reset.css.sass +85 -0
  166. data/vendor/assets/stylesheets/settings/mixins/_animation.css.sass +15 -0
  167. data/vendor/assets/stylesheets/settings/mixins/_background.css.sass +33 -0
  168. data/vendor/assets/stylesheets/settings/mixins/_balloon-tale.css.sass +111 -0
  169. data/vendor/assets/stylesheets/settings/mixins/_basic-font.css.sass +40 -0
  170. data/vendor/assets/stylesheets/settings/mixins/_block.css.sass +30 -0
  171. data/vendor/assets/stylesheets/settings/mixins/_border.css.sass +28 -0
  172. data/vendor/assets/stylesheets/settings/mixins/_button-base.css.sass +27 -0
  173. data/vendor/assets/stylesheets/settings/mixins/_clear-type.css.sass +4 -0
  174. data/vendor/assets/stylesheets/settings/mixins/_color.css.sass +9 -0
  175. data/vendor/assets/stylesheets/settings/mixins/_filters.css.sass +5 -0
  176. data/vendor/assets/stylesheets/settings/mixins/_form.css.sass +7 -0
  177. data/vendor/assets/stylesheets/settings/mixins/_grids.css.sass +149 -0
  178. data/vendor/assets/stylesheets/settings/mixins/_html5-input-types.scss +118 -0
  179. data/vendor/assets/stylesheets/settings/mixins/_ie-hacks.css.sass +8 -0
  180. data/vendor/assets/stylesheets/settings/mixins/_lines.css.sass +18 -0
  181. data/vendor/assets/stylesheets/settings/mixins/_link.css.sass +11 -0
  182. data/vendor/assets/stylesheets/settings/mixins/_list.css.sass +21 -0
  183. data/vendor/assets/stylesheets/settings/mixins/_margin-padding.css.sass +69 -0
  184. data/vendor/assets/stylesheets/settings/mixins/_overlay.css.sass +5 -0
  185. data/vendor/assets/stylesheets/settings/mixins/_positions.css.sass +28 -0
  186. data/vendor/assets/stylesheets/settings/mixins/_rem.css.sass +53 -0
  187. data/vendor/assets/stylesheets/settings/mixins/_resets.css.sass +17 -0
  188. data/vendor/assets/stylesheets/settings/mixins/_responsive-utilities.css.sass +160 -0
  189. data/vendor/assets/stylesheets/settings/mixins/_sassmatic.css.sass +172 -0
  190. data/vendor/assets/stylesheets/settings/mixins/_sprite-background.css.sass +18 -0
  191. data/vendor/assets/stylesheets/settings/mixins/_tables.css.sass +14 -0
  192. data/vendor/assets/stylesheets/settings/mixins/_text.css.sass +21 -0
  193. data/vendor/assets/stylesheets/settings/variables/_default.css.sass +69 -0
  194. metadata +362 -0
@@ -0,0 +1,111 @@
1
+ // +balloon-tale(top red 12px 16px 1px, null, null)
2
+ =balloon-tale($tale, $tale-position-manual: null, $tale-border: null)
3
+ // $tale
4
+ $tale-direction: optional_nth($tale, 1)
5
+ $tale-color: optional_nth($tale, 2)
6
+ $tale-width: optional_nth($tale, 3)
7
+ $tale-height: optional_nth($tale, 4)
8
+ $parent-boder-width: optional_nth($tale, 5, 0)
9
+ //$tale-position-manual
10
+ $tale-position-manual-direction1: optional_nth($tale-position-manual, 1)
11
+ $tale-position-manual-value1: optional_nth($tale-position-manual, 2)
12
+ $tale-position-manual-direction2: optional_nth($tale-position-manual, 3)
13
+ $tale-position-manual-value2: optional_nth($tale-position-manual, 4)
14
+ //$tale-border
15
+ $tale-border-color: optional_nth($tale-border, 1)
16
+ $tale-border-width: optional_nth($tale-border, 2)
17
+ &:#{if($tale-border, after, before)}
18
+ position: absolute
19
+ content: ""
20
+ display: block
21
+ +border(all, solid transparent)
22
+ +border(horizontal, $tale-width)
23
+ +border(vertical, $tale-height)
24
+ +border(reverse($tale-direction), $tale-color)
25
+ @if position_vertical($tale-direction)
26
+ // 矢印の向きが上下
27
+ @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_vertical($tale-position-manual-direction1))
28
+ // manual が 一つだけ指定 上下方向 の場合
29
+ left: 50%
30
+ +rem('margin-left', $tale-width*-1)
31
+ +rem($tale-direction, $tale-height*-1*2 - if($tale-border, 0, $parent-boder-width))
32
+ @if $tale-position-manual
33
+ $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
34
+ @each $key, $value in $tale-position-manuals
35
+ @if position_horizontal($key)
36
+ // manual が left or right の場合
37
+ +rem($key, $value - if($tale-border, 0, $parent-boder-width))
38
+ @else if $tale-direction == $key
39
+ // 矢印の向きと manual で指定する方向が同じ場合
40
+ +rem($key, $value - $tale-height - if($tale-border, 0, $parent-boder-width))
41
+ @else if reverse($tale-direction) == $key
42
+ // 上向き矢印 で manual が bottom の場合 or 下向き矢印 で manual が top の場合
43
+ +rem($key, $value - if($tale-border, 0, $parent-boder-width))
44
+ @if position_horizontal($tale-direction)
45
+ // 矢印の向きが左右
46
+ @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_horizontal($tale-position-manual-direction1))
47
+ // manual が 一つだけ指定 上下方向 の場合
48
+ top: 50%
49
+ +rem('margin-top', $tale-height*-1)
50
+ +rem($tale-direction, $tale-width*-1*2 - if($tale-border, 0, $parent-boder-width))
51
+ @if $tale-position-manual
52
+ $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
53
+ @each $key, $value in $tale-position-manuals
54
+ @if position_vertical($key)
55
+ // manual が top or bottom の場合
56
+ +rem($key, $value)
57
+ @else if $tale-direction == $key
58
+ // 矢印の向きと manual で指定する方向が同じ場合
59
+ +rem($key, $value - $tale-width - if($tale-border, 0, $parent-boder-width))
60
+ @else if reverse($tale-direction) == $key
61
+ // 左向き矢印 で manual が right の場合 or 右向き矢印 で manual が left の場合
62
+ +rem($key, $value - if($tale-border, 0, $parent-boder-width))
63
+
64
+ @if $tale-border
65
+ // tale border があるとき - 以下 tale-border の設定
66
+ &:before
67
+ position: absolute
68
+ content: ""
69
+ display: block
70
+ +border(all, solid transparent)
71
+ +border(horizontal, $tale-width + $tale-border-width)
72
+ +border(vertical, $tale-height + $tale-border-width)
73
+ +border(reverse($tale-direction), $tale-border-color)
74
+ @if position_vertical($tale-direction)
75
+ // 矢印の向きが上下
76
+ @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_vertical($tale-position-manual-direction1))
77
+ // manual が 一つだけ指定 上下方向 の場合
78
+ left: 50%
79
+ +rem('margin-left', $tale-width*-1 - $tale-border-width)
80
+ +rem($tale-direction, $tale-height*-1*2 - $tale-border-width*2)
81
+ @if $tale-position-manual
82
+ $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
83
+ @each $key, $value in $tale-position-manuals
84
+ @if position_horizontal($key)
85
+ // manual が left or right の場合
86
+ +rem($key, $value - $tale-border-width)
87
+ @else if $tale-direction == $key
88
+ // 矢印の向きと manual で指定する方向が同じ場合
89
+ +rem($key, $value - $tale-height - $tale-border-width*2)
90
+ @else if reverse($tale-direction) == $key
91
+ // 上向き矢印 で manual が bottom の場合 or 下向き矢印 で manual が top の場合
92
+ +rem($key, $value)
93
+ @if position_horizontal($tale-direction)
94
+ // 矢印の向きが左右
95
+ @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_horizontal($tale-position-manual-direction1))
96
+ // manual が 一つだけ指定 上下方向 の場合
97
+ top: 50%
98
+ +rem('margin-top', $tale-height*-1 - $tale-border-width)
99
+ +rem($tale-direction, $tale-width*-1*2 - $tale-border-width*2)
100
+ @if $tale-position-manual
101
+ $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
102
+ @each $key, $value in $tale-position-manuals
103
+ @if position_vertical($key)
104
+ // manual が top or bottom の場合
105
+ +rem($key, $value - $tale-border-width)
106
+ @else if $tale-direction == $key
107
+ // 矢印の向きと manual で指定する方向が同じ場合
108
+ +rem($key, $value - $tale-width - $tale-border-width*2)
109
+ @else if reverse($tale-direction) == $key
110
+ // 左向き矢印 で manual が right の場合 or 右向き矢印 で manual が left の場合
111
+ +rem($key, $value)
@@ -0,0 +1,40 @@
1
+ =basic-font($text-rendering: true)
2
+ font-family: $basic-sans-serif
3
+ *font-family: $basic-legacy-ie-sans-serif
4
+ @if $text-rendering
5
+ text-rendering: optimizelegibility
6
+
7
+ =sans-serif($text-rendering: true)
8
+ font-family: $basic-sans-serif
9
+ *font-family: $basic-legacy-ie-sans-serif
10
+ @if $text-rendering
11
+ text-rendering: optimizelegibility
12
+
13
+ =bold-ja($text-rendering: true)
14
+ font-family: $basic-bold-sans-serif
15
+ *font-family: $basic-legacy-ie-sans-serif
16
+ font-weight: bold
17
+ @if $text-rendering
18
+ text-rendering: optimizelegibility
19
+
20
+ =serif($text-rendering: true)
21
+ font-family: $basic-serif
22
+ *font-family: $basic-legacy-ie-sans-serif
23
+ @if $text-rendering
24
+ text-rendering: optimizelegibility
25
+
26
+ =is-ja
27
+ &.is-ja
28
+ @content
29
+
30
+ =is-bold-ja
31
+ &.is-bold-ja
32
+ @content
33
+
34
+ =webfont-ja-sans-selif
35
+ @if $fw == 'bold' or $fw > 500
36
+ +is-bold-ja
37
+ +basic-bold-font
38
+ @else
39
+ +is-ja
40
+ +basic-font
@@ -0,0 +1,30 @@
1
+ =size($values)
2
+ @if equal_nth($values, 2)
3
+ +rem('height', nth($values, 1))
4
+ +rem('width', nth($values, 2))
5
+ @else
6
+ +rem('width', nth($values, 1))
7
+ +rem('height', nth($values, 1))
8
+
9
+ =center-block($values)
10
+ $block-width: optional_nth($values, 1)
11
+ $block-height: optional_nth($values, 2)
12
+ $block-z-index: optional_nth($values, 3)
13
+ +size($block-height $block-width)
14
+ +fixed(left 50%, top 50%, $block-z-index)
15
+ +rem('margin-top', $block-height / 2 * -1)
16
+ +rem('margin-left', $block-width / 2 * -1)
17
+ +box-sizing(border-box)
18
+
19
+ =square-block($values)
20
+ $square-block-size: optional_nth($values, 1)
21
+ $square-block-height: optional_nth($values, 2)
22
+ $square-block-line-height: optional_nth($values, 3)
23
+ +rem('width', $square-block-size)
24
+ +rem('height', if($square-block-height, $square-block-height, $square-block-size))
25
+ @if $square-block-line-height
26
+ +rem('line-height', $square-block-line-height)
27
+ @else if $square-block-height
28
+ +rem('line-height', $square-block-height)
29
+ @else
30
+ +rem('line-height', $square-block-size)
@@ -0,0 +1,28 @@
1
+ =assign-border-position($border-position, $border-values)
2
+ #{if($border-position, border-#{$border-position}, border)}:
3
+ @for $i from 1 through length($border-values)
4
+ @if border-width(nth($border-values, $i))
5
+ +rem('width', nth($border-values, $i))
6
+ @else if border-style(nth($border-values, $i))
7
+ style: nth($border-values, $i)
8
+ @else if border-color(nth($border-values, $i))
9
+ color: nth($border-values, $i)
10
+
11
+ // 使い方
12
+ // +border(vertical left, solid white 4px)
13
+ =border($value1: null, $value2: null)
14
+ @for $i from 1 through length($value1)
15
+ @if all(nth($value1, $i))
16
+ +assign-border-position(false, $value2)
17
+ @else if vertical(nth($value1, $i))
18
+ $border-positions: $vertical
19
+ @each $border-position in $border-positions
20
+ +assign-border-position($border-position, $value2)
21
+ @else if horizontal(nth($value1, $i))
22
+ $border-positions: $horizontal
23
+ @each $border-position in $border-positions
24
+ +assign-border-position($border-position, $value2)
25
+ @else if four_direction(nth($value1, $i))
26
+ $border-positions: nth($value1, $i)
27
+ @each $border-position in $border-positions
28
+ +assign-border-position($border-position, $value2)
@@ -0,0 +1,27 @@
1
+ =button-base($font-size: 12px, $height: 30px, $font-weight: bold, $width: auto, $is-block: null, $is-center: null, $icon-font-size: 14px, $icon-position: null)
2
+ +rem('font-size', $font-size)
3
+ +rem('height', $height)
4
+ +rem('line-height', $height)
5
+ font-weight: $font-weight
6
+ +rem('width', $width)
7
+ text-decoration: none
8
+ +relative(1)
9
+ text-align: center
10
+ @if $is-block == "true"
11
+ display: block
12
+ @else
13
+ +inline-block
14
+ @if $is-center == "true"
15
+ +margin(horizontal, auto)
16
+ @if $icon-font-size
17
+ i
18
+ +text-block($icon-font-size, $height)
19
+ +rem('width', $height)
20
+ display: block
21
+ text-align: center
22
+ @if $icon-position == "left"
23
+ i
24
+ +absolute(left, 0, top, 0)
25
+ @else if $icon-position == "right"
26
+ i
27
+ +absolute(right, 0, top, 0)
@@ -0,0 +1,4 @@
1
+ =clear-type
2
+ +transform-origin(0, 0)
3
+ +scale(1, 1.01)
4
+ -ms-transform: scale(1, 1.02)
@@ -0,0 +1,9 @@
1
+ =rgba($foreground, $backdrop: white, $property: "background-color")
2
+ #{$property}: mix(fade-in($foreground, 1), $backdrop, percentage(opacity($foreground)))
3
+ // Browsers without color opacity
4
+ #{$property}: $foreground
5
+ // Decent browsers
6
+ #{$property}: mix(fade-in($foreground, 1), $backdrop, percentage(opacity($foreground)))\9
7
+ // IE8
8
+ @if $property == "background-color"
9
+ +rgba-background($foreground)
@@ -0,0 +1,5 @@
1
+ // https://gist.github.com/chriseppstein/2884618
2
+ // 例 +filter(sepia(100%) hue-rotate(33deg) contrast(69%) unquote("saturate(2)"))
3
+
4
+ =filter($var)
5
+ +experimental('filter', $var)
@@ -0,0 +1,7 @@
1
+ =placeholder
2
+ &::-webkit-input-placeholder
3
+ @content
4
+ &:-moz-placeholder
5
+ @content
6
+ &.placeholder
7
+ @content
@@ -0,0 +1,149 @@
1
+ // Extra small screen / phone
2
+ //** Deprecated `$screen-xs-min` as of v3.2.0
3
+ $screen-xs-min: $screen-xs !default
4
+ //** Deprecated `$screen-phone` as of v3.0.1
5
+ $screen-phone: $screen-xs-min !default
6
+
7
+ // Small screen / tablet
8
+ $screen-sm-min: $screen-sm !default
9
+ //** Deprecated `$screen-tablet` as of v3.0.1
10
+ $screen-tablet: $screen-sm-min !default
11
+
12
+ // Medium screen / desktop
13
+ $screen-md-min: $screen-md !default
14
+ //** Deprecated `$screen-desktop` as of v3.0.1
15
+ $screen-desktop: $screen-md-min !default
16
+
17
+ // Large screen / wide desktop
18
+ $screen-lg-min: $screen-lg !default
19
+ //** Deprecated `$screen-lg-desktop` as of v3.0.1
20
+ $screen-lg-desktop: $screen-lg-min !default
21
+
22
+ // So media queries don't overlap when required, provide a maximum
23
+ $screen-xs-max: ($screen-sm-min - 1) !default
24
+ $screen-sm-max: ($screen-md-min - 1) !default
25
+ $screen-md-max: ($screen-lg-min - 1) !default
26
+
27
+ // devise
28
+ =screen-xs
29
+ @media only screen and (max-width: $screen-xs)
30
+ @content
31
+ =screen-sm
32
+ @media only screen and (max-width: $screen-sm)
33
+ @content
34
+ =screen-md
35
+ @media only screen and (max-width: $screen-md)
36
+ @content
37
+ =screen-lg
38
+ @media only screen and (max-width: $screen-lg)
39
+ @content
40
+
41
+
42
+ // カラムのラッパーのクラス名
43
+ $row-class-name: '.row' !default
44
+ // カラムのネームスペース ※classの".(カンマ)"もネームスペースの一部
45
+ $column-namespace: '.col-' !default
46
+ // オフセットカラムのネームスペース
47
+ $column-offset-namespace: 'offset-' !default
48
+ // ブレイクポイントごとのカラムのプレフィックスのネームスペース
49
+ $break-point-xs-namespace: 'xs-' !default
50
+ $break-point-sm-namespace: 'sm-' !default
51
+ $break-point-md-namespace: 'md-' !default
52
+ $break-point-lg-namespace: 'lg-' !default
53
+
54
+ // ブレイクポイントを配列にする
55
+ $break-points: $break-point-xs-namespace, $break-point-sm-namespace, $break-point-md-namespace, $break-point-lg-namespace
56
+
57
+ // デバイスごとの media query を作る
58
+ =break-points($break-point: $break-point-xs-namespace)
59
+ @if $screen-xs and $break-point == $break-point-xs-namespace
60
+ @content
61
+ @else if $screen-sm and $break-point == $break-point-sm-namespace
62
+ @media only screen and (min-width: $screen-xs)
63
+ @content
64
+ @else if $screen-md and $break-point == $break-point-md-namespace
65
+ @media only screen and (min-width: $screen-sm)
66
+ @content
67
+ @else if $screen-lg and $break-point == $break-point-lg-namespace
68
+ @media only screen and (min-width: $screen-md)
69
+ @content
70
+ @else if $screen-xl and $break-point == $break-point-xl-namespace
71
+ @media only screen and (min-width: $screen-lg)
72
+ @content
73
+
74
+ // カラムのラッパーの設定
75
+ #{$row-class-name}
76
+ // カラムのマージン分だけ両サイドにネガティブマージンを取る
77
+ +margin(horizontal, ($gutter-width / 2) * -1)
78
+ // clearfix
79
+ +rem('min-height', 1px)
80
+ &:before,
81
+ &:after
82
+ display: table
83
+ content: " "
84
+ &:after
85
+ clear: both
86
+
87
+ // カラムの基本設定
88
+ =column($number, $columns-gutter-width: $gutter-width)
89
+ +rem('width', 100 / $columns-count * $number * 1%)
90
+ +rem('min-height', 1px)
91
+ +padding(horizontal, $columns-gutter-width / 2)
92
+ float: left
93
+ +box-sizing(border-box)
94
+
95
+ // カラムをサイズごとに作る
96
+ @each $break-point in $break-points
97
+ +break-points(#{$break-point})
98
+ @for $i from 1 through $columns-count
99
+ #{$column-namespace}#{$break-point}#{$i}
100
+ +column($i)
101
+
102
+ // オフセットカラムの基本設定
103
+ =column-offset($number)
104
+ +rem('margin-left', 100 / $columns-count * $number * 1%)
105
+
106
+ // オフセットカラムをサイズごとに作る
107
+ @each $break-point in $break-points
108
+ +break-points(#{$break-point})
109
+ @for $i from 1 through $columns-count
110
+ #{$column-namespace}#{$break-point}#{$column-offset-namespace}#{$i}
111
+ +column-offset($i)
112
+
113
+ =grid-columns($columns-gutter-width: $gutter-width, $grid-columns-row-class-name: '.row')
114
+ #{$grid-columns-row-class-name}
115
+ // カラムのマージン分だけ両サイドにネガティブマージンを取る
116
+ +margin(horizontal, ($columns-gutter-width / 2) * -1)
117
+ // clearfix
118
+ +rem('min-height', 1px)
119
+ &:before,
120
+ &:after
121
+ display: table
122
+ content: " "
123
+ &:after
124
+ clear: both
125
+ // カラムをサイズごとに作る
126
+ @each $break-point in $break-points
127
+ +break-points(#{$break-point})
128
+ @for $i from 1 through $columns-count
129
+ #{$column-namespace}#{$break-point}#{$i}
130
+ +column($i, $columns-gutter-width)
131
+
132
+ =grid-column-offsets($columns-gutter-width: $gutter-width, $grid-columns-row-class-name: '.row')
133
+ #{$grid-columns-row-class-name}
134
+ // カラムのマージン分だけ両サイドにネガティブマージンを取る
135
+ +margin(horizontal, ($columns-gutter-width / 2) * -1)
136
+ // clearfix
137
+ +rem('min-height', 1px)
138
+ &:before,
139
+ &:after
140
+ display: table
141
+ content: " "
142
+ &:after
143
+ clear: both
144
+ // オフセットカラムをサイズごとに作る
145
+ @each $break-point in $break-points
146
+ +break-points(#{$break-point})
147
+ @for $i from 1 through $columns-count
148
+ #{$column-namespace}#{$break-point}#{$column-offset-namespace}#{$i}
149
+ +column-offset($i)
@@ -0,0 +1,118 @@
1
+ // https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_assign.scss
2
+
3
+ @function assign-inputs($inputs, $pseudo: null) {
4
+ $list : ();
5
+
6
+ @each $input in $inputs {
7
+ $input: unquote($input);
8
+ $input: if($pseudo, $input + ":" + $pseudo, $input);
9
+ $list: append($list, $input, comma);
10
+ }
11
+
12
+ @return $list;
13
+ }
14
+
15
+ //************************************************************************//
16
+ // Generate a variable ($all-text-inputs) with a list of all html5
17
+ // input types that have a text-based input, excluding textarea.
18
+ // http://diveintohtml5.org/forms.html
19
+ //************************************************************************//
20
+ $inputs-list: 'input[type="email"]',
21
+ 'input[type="number"]',
22
+ 'input[type="password"]',
23
+ 'input[type="search"]',
24
+ 'input[type="tel"]',
25
+ 'input[type="text"]',
26
+ 'input[type="url"]',
27
+
28
+ // Webkit & Gecko may change the display of these in the future
29
+ 'input[type="color"]',
30
+ 'input[type="date"]',
31
+ 'input[type="datetime"]',
32
+ 'input[type="datetime-local"]',
33
+ 'input[type="month"]',
34
+ 'input[type="time"]',
35
+ 'input[type="week"]';
36
+
37
+ $inputs-en-list: 'input[type="email"]',
38
+ 'input[type="number"]',
39
+ 'input[type="search"]',
40
+ 'input[type="tel"]',
41
+ 'input[type="url"]',
42
+
43
+ // Webkit & Gecko may change the display of these in the future
44
+ 'input[type="color"]',
45
+ 'input[type="date"]',
46
+ 'input[type="datetime"]',
47
+ 'input[type="datetime-local"]',
48
+ 'input[type="time"]';
49
+
50
+
51
+ // Bare inputs
52
+ //************************************************************************//
53
+ $all-text-inputs: assign-inputs($inputs-list);
54
+
55
+ // English inputs
56
+ //************************************************************************//
57
+ $all-en-text-inputs: assign-inputs($inputs-en-list);
58
+
59
+ // Hover Pseudo-class
60
+ //************************************************************************//
61
+ $all-text-inputs-hover: assign-inputs($inputs-list, hover);
62
+
63
+ // Focus Pseudo-class
64
+ //************************************************************************//
65
+ $all-text-inputs-focus: assign-inputs($inputs-list, focus);
66
+
67
+
68
+
69
+ // You must use interpolation on the variable:
70
+ // #{$all-text-inputs}
71
+ // #{$all-text-inputs-hover}
72
+ // #{$all-text-inputs-focus}
73
+
74
+ // Example
75
+ //************************************************************************//
76
+ // #{$all-text-inputs}, textarea {
77
+ // border: 1px solid red;
78
+ // }
79
+
80
+
81
+
82
+ //************************************************************************//
83
+ // Generate a variable ($all-button-inputs) with a list of all html5
84
+ // input types that have a button-based input, excluding button.
85
+ //************************************************************************//
86
+ $inputs-button-list: 'input[type="button"]',
87
+ 'input[type="reset"]',
88
+ 'input[type="submit"]';
89
+
90
+ // Bare inputs
91
+ //************************************************************************//
92
+ $all-button-inputs: assign-inputs($inputs-button-list);
93
+
94
+ // Hover Pseudo-class
95
+ //************************************************************************//
96
+ $all-button-inputs-hover: assign-inputs($inputs-button-list, hover);
97
+
98
+ // Focus Pseudo-class
99
+ //************************************************************************//
100
+ $all-button-inputs-focus: assign-inputs($inputs-button-list, focus);
101
+
102
+ // Active Pseudo-class
103
+ //************************************************************************//
104
+ $all-button-inputs-active: assign-inputs($inputs-button-list, active);
105
+
106
+
107
+
108
+ // You must use interpolation on the variable:
109
+ // #{$all-button-inputs}
110
+ // #{$all-button-inputs-hover}
111
+ // #{$all-button-inputs-focus}
112
+ // #{$all-button-inputs-active}
113
+
114
+ // Example
115
+ //************************************************************************//
116
+ // #{$all-button-inputs}, button {
117
+ // border: 1px solid red;
118
+ // }
@@ -0,0 +1,8 @@
1
+ +ie($versions: all)
2
+ @if $versions == 'all'
3
+ &.is-ie
4
+ @content
5
+ @else
6
+ @each $version in $versions
7
+ &.is-ie#{$version}
8
+ @content
@@ -0,0 +1,18 @@
1
+ =dotted-line($color: rgba(#000, 1.0), $stripe: null)
2
+ $stripe-width: if(length($stripe) >= 1, nth($stripe, 1), 1px)
3
+ $gatter-width: if(length($stripe) >= 2, nth($stripe, 2), 4px)
4
+ $size: if(length($stripe) >= 3, nth($stripe, 3), 1px)
5
+ +background-image(linear-gradient(left, color-stops($color, $color (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent 100%)))
6
+ +background-size(($stripe-width + $gatter-width) ($stripe-width + $gatter-width))
7
+ +rem('height', $size)
8
+
9
+ // http://codepen.io/anon/pen/tGhLp を改造
10
+ =striped-line($stripe-color: #000000, $size: 20px)
11
+ @if length($stripe-color) == 1
12
+ +background-image(linear-gradient(-45deg, $stripe-color 25%, transparent 25%, transparent 50%, $stripe-color 50%, $stripe-color 75%, transparent 75%, transparent))
13
+ @else
14
+ $mix-stripe-color: darken(nth($stripe-color, 1), nth($stripe-color, 2))
15
+ +background-image(linear-gradient(-45deg, $mix-stripe-color 25%, transparent 25%, transparent 50%, $mix-stripe-color 50%, $mix-stripe-color 75%, transparent 75%, transparent))
16
+ background-color: $background-color
17
+ +background-size($size $size)
18
+ +rem('height', $size)
@@ -0,0 +1,11 @@
1
+ =block-link
2
+ display: block
3
+ text-decoration: none
4
+
5
+ =hover-link-reverse($modifire-class: null)
6
+ text-decoration: underline
7
+ &:hover,
8
+ &:active
9
+ text-decoration: none
10
+ @if $modifire-class
11
+ #{$modifire-class}: none
@@ -0,0 +1,21 @@
1
+ // +list(12px 24px, fa '\f192', 12px 3px 8px)
2
+ =list($margins: null, $list-style: null, $icon-position: null)
3
+ +rem('margin-left', optional_nth($margins, 1))
4
+ +rem('margin-bottom', optional_nth($margins, 2))
5
+ content: nth($list-style, 1) == "fa"
6
+ @for $i from 1 through length($list-style)
7
+ @if list_style_type(nth($list-style, $i))
8
+ list-style-type: nth($list-style, $i)
9
+ @else if list_style_position(nth($list-style, $i))
10
+ list-style-position: nth($list-style, $i)
11
+ @else if nth($list-style, $i) == "fa"
12
+ list-style-type: none
13
+ >li
14
+ +relative
15
+ display: block
16
+ +rem('padding-left', optional_nth($icon-position, 1) + optional_nth($icon-position, 3))
17
+ &:before
18
+ +fa
19
+ +text-block(optional_nth($icon-position, 1) optional_nth($icon-position, 1))
20
+ content: '#{optional_nth($list-style, $i + 1)}'
21
+ +absolute(left 0, top optional_nth($icon-position, 2))
@@ -0,0 +1,69 @@
1
+ =margin($value1, $value2: null)
2
+ @if number(nth($value1, 1)) or nth($value1, 1) == 'auto'
3
+ @if equal_nth($value1, 1)
4
+ +rem('margin', $value1)
5
+ @else if equal_nth($value1, 2)
6
+ +rem('margin-top', nth($value1, 1))
7
+ +rem('margin-bottom', nth($value1, 2))
8
+ @else if equal_nth($value1, 3)
9
+ +rem('margin-top', nth($value1, 1))
10
+ +rem('margin-bottom', nth($value1, 3))
11
+ +margin(horizontal, nth($value1, 2))
12
+ @else if equal_nth($value1, 4)
13
+ +rem('margin-top', nth($value1, 1))
14
+ +rem('margin-right', nth($value1, 2))
15
+ +rem('margin-bottom', nth($value1, 3))
16
+ +rem('margin-left', nth($value1, 4))
17
+ @else if length($value1) == 1 and nth($value1, 1) == 'vertical'
18
+ +rem('margin-top', if(list($value2), nth($value2, 1), $value2))
19
+ +rem('margin-bottom', if(list($value2),nth($value2, 2), $value2))
20
+ @else if length($value1) == 1 and nth($value1, 1) == 'horizontal'
21
+ +rem('margin-left', if(list($value2), nth($value2, 1), $value2))
22
+ +rem('margin-right', if(list($value2),nth($value2, 2), $value2))
23
+ @else
24
+ @each $position in $value1
25
+ @if $position == 'all'
26
+ +rem('margin', $value2)
27
+ @else if $position == 'vertical'
28
+ +rem('margin-top', $value2)
29
+ +rem('margin-bottom', $value2)
30
+ @else if $position == 'horizontal'
31
+ +rem('margin-left', $value2)
32
+ +rem('margin-right', $value2)
33
+ @else
34
+ +rem('margin-#{$position}', $value2)
35
+
36
+ =padding($value1: null, $value2: null)
37
+ @if number(nth($value1, 1)) or nth($value1, 1) == 'auto'
38
+ @if equal_nth($value1, 1)
39
+ +rem('padding', $value1)
40
+ @else if equal_nth($value1, 2)
41
+ +rem('padding-top', nth($value1, 1))
42
+ +rem('padding-bottom', nth($value1, 2))
43
+ @else if equal_nth($value1, 3)
44
+ +rem('padding-top', nth($value1, 1))
45
+ +rem('padding-bottom', nth($value1, 3))
46
+ +padding(horizontal, nth($value1, 2))
47
+ @else if equal_nth($value1, 4)
48
+ +rem('padding-top', nth($value1, 1))
49
+ +rem('padding-right', nth($value1, 2))
50
+ +rem('padding-bottom', nth($value1, 3))
51
+ +rem('padding-left', nth($value1, 4))
52
+ @else if length($value1) == 1 and nth($value1, 1) == 'vertical'
53
+ +rem('padding-top', if(list($value2), nth($value2, 1), $value2))
54
+ +rem('padding-bottom', if(list($value2),nth($value2, 2), $value2))
55
+ @else if length($value1) == 1 and nth($value1, 1) == 'horizontal'
56
+ +rem('padding-left', if(list($value2), nth($value2, 1), $value2))
57
+ +rem('padding-right', if(list($value2),nth($value2, 2), $value2))
58
+ @else
59
+ @each $position in $value1
60
+ @if $position == 'all'
61
+ +rem('padding', $value2)
62
+ @else if $position == 'vertical'
63
+ +rem('padding-top', $value2)
64
+ +rem('padding-bottom', $value2)
65
+ @else if $position == 'horizontal'
66
+ +rem('padding-left', $value2)
67
+ +rem('padding-right', $value2)
68
+ @else
69
+ +rem('padding-#{$position}', $value2)