middleman-oulu 0.5.10

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 (119) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +31 -0
  6. data/Rakefile +1 -0
  7. data/assets/javascripts/oulu/dev/positions-p.js.coffee +34 -0
  8. data/assets/javascripts/oulu/dev/positions-pp.js.coffee +57 -0
  9. data/assets/javascripts/oulu/dev/positions.js.coffee +6 -0
  10. data/assets/javascripts/oulu/helpers/js-autosize.js.coffee +2 -0
  11. data/assets/javascripts/oulu/helpers/js-checkbox.js.coffee +6 -0
  12. data/assets/javascripts/oulu/helpers/js-click-animate.js.coffee +8 -0
  13. data/assets/javascripts/oulu/helpers/js-delay-hidden.js.coffee +4 -0
  14. data/assets/javascripts/oulu/helpers/js-focused.js.coffee +7 -0
  15. data/assets/javascripts/oulu/helpers/js-hack.js.coffee +8 -0
  16. data/assets/javascripts/oulu/helpers/js-hide-after.j.coffee +5 -0
  17. data/assets/javascripts/oulu/helpers/js-hover-z-index.js.coffee +5 -0
  18. data/assets/javascripts/oulu/helpers/js-hovered.js.coffee +17 -0
  19. data/assets/javascripts/oulu/helpers/js-one-animate.js.coffee +5 -0
  20. data/assets/javascripts/oulu/helpers/js-open-children.js.coffee +28 -0
  21. data/assets/javascripts/oulu/helpers/js-open.js.coffee +51 -0
  22. data/assets/javascripts/oulu/helpers/js-scroll-to-top.js.coffee +11 -0
  23. data/assets/javascripts/oulu/helpers/js-scroll.js.coffee +9 -0
  24. data/assets/javascripts/oulu/helpers/js-side-slide.js.coffee +6 -0
  25. data/assets/javascripts/oulu/helpers/js-window-loading.js.coffee +15 -0
  26. data/assets/javascripts/oulu/helpers/js-window-sizes.js.coffee +6 -0
  27. data/assets/javascripts/oulu/helpers/open-close.js.coffee +23 -0
  28. data/assets/javascripts/oulu/ie/PIE_IE678.js +72 -0
  29. data/assets/javascripts/oulu/ie/PIE_IE9.js +46 -0
  30. data/assets/javascripts/oulu/ie/ie-selectors.js.coffee +3 -0
  31. data/assets/javascripts/oulu/ie/ie8-selectors.js.coffee +3 -0
  32. data/assets/javascripts/oulu/ie/ie9-selectors.js.coffee +6 -0
  33. data/assets/javascripts/oulu/ie/jquery.belatedPNG.min.js +29 -0
  34. data/assets/javascripts/oulu/ie/jquery.linkscubber.js +7 -0
  35. data/assets/javascripts/oulu/ie/svgeezy.min.js +12 -0
  36. data/assets/javascripts/oulu/plugins/check-box.js.coffee +34 -0
  37. data/assets/javascripts/oulu/plugins/footerFixed.js +74 -0
  38. data/assets/javascripts/oulu/plugins/jquery.autosize.min.js +7 -0
  39. data/assets/javascripts/oulu/plugins/jquery.cheat-code.js +63 -0
  40. data/assets/javascripts/oulu/plugins/jquery.css3form.js +195 -0
  41. data/assets/javascripts/oulu/plugins/jquery.depend.min.js +13 -0
  42. data/assets/javascripts/oulu/plugins/sns-buttons.js +339 -0
  43. data/assets/javascripts/oulu-ie8.js +6 -0
  44. data/assets/javascripts/oulu-ie9.js +2 -0
  45. data/assets/javascripts/oulu.js +2 -0
  46. data/assets/stylesheets/_oulu-base.css.sass +84 -0
  47. data/assets/stylesheets/_oulu.css.sass +13 -0
  48. data/assets/stylesheets/helper/_base-helper.css.sass +133 -0
  49. data/assets/stylesheets/helper/_click-actions.css.sass +188 -0
  50. data/assets/stylesheets/helper/_fade-actions.css.sass +30 -0
  51. data/assets/stylesheets/helper/_margin-padding.css.sass +20 -0
  52. data/assets/stylesheets/helper/_typoglaphy.css.sass +9 -0
  53. data/assets/stylesheets/options/amazlet/_amazlet.css.sass +32 -0
  54. data/assets/stylesheets/options/glitch/_glitch.css.sass +31 -0
  55. data/assets/stylesheets/options/oulu-buttons/_button-basic.css.sass +31 -0
  56. data/assets/stylesheets/options/web-fonts/_cousine.css.sass +12 -0
  57. data/assets/stylesheets/options/web-fonts/_font-awsome.css.sass +17 -0
  58. data/assets/stylesheets/options/web-fonts/_icomoon.css.sass +10 -0
  59. data/assets/stylesheets/options/web-fonts/_lato.css.sass +12 -0
  60. data/assets/stylesheets/options/web-fonts/_montserrat.css.sass +13 -0
  61. data/assets/stylesheets/options/web-fonts/_old-standard.css.sass +12 -0
  62. data/assets/stylesheets/options/web-fonts/_open-sans.css.sass +11 -0
  63. data/assets/stylesheets/options/web-fonts/_podkova.css.sass +12 -0
  64. data/assets/stylesheets/options/web-fonts/_pt-sans.css.sass +12 -0
  65. data/assets/stylesheets/options/web-fonts/_roboto-condensed.css.sass +12 -0
  66. data/assets/stylesheets/options/web-fonts/_roboto.css.sass +11 -0
  67. data/assets/stylesheets/options/web-fonts/_satisfy.css.sass +13 -0
  68. data/assets/stylesheets/options/web-fonts/_source-code-pro.css.sass +13 -0
  69. data/assets/stylesheets/options/web-fonts/_source-sans-pro.css.sass +13 -0
  70. data/assets/stylesheets/options/web-fonts/_special-elite.css.sass +12 -0
  71. data/assets/stylesheets/options/web-fonts/_tauri.css.sass +11 -0
  72. data/assets/stylesheets/options/web-fonts/_ubuntu.css.sass +12 -0
  73. data/assets/stylesheets/settings/functions/_background.css.sass +54 -0
  74. data/assets/stylesheets/settings/functions/_bool.css.sass +5 -0
  75. data/assets/stylesheets/settings/functions/_border.css.sass +45 -0
  76. data/assets/stylesheets/settings/functions/_color.css.sass +83 -0
  77. data/assets/stylesheets/settings/functions/_content.css.sass +5 -0
  78. data/assets/stylesheets/settings/functions/_cursor.css.sass +5 -0
  79. data/assets/stylesheets/settings/functions/_image.css.sass +8 -0
  80. data/assets/stylesheets/settings/functions/_length.css.sass +20 -0
  81. data/assets/stylesheets/settings/functions/_list.css.sass +11 -0
  82. data/assets/stylesheets/settings/functions/_map.css.sass +5 -0
  83. data/assets/stylesheets/settings/functions/_number.css.sass +81 -0
  84. data/assets/stylesheets/settings/functions/_position.css.sass +80 -0
  85. data/assets/stylesheets/settings/functions/_reverse.css.sass +22 -0
  86. data/assets/stylesheets/settings/functions/_string.css.sass +5 -0
  87. data/assets/stylesheets/settings/functions/_text.css.sass +34 -0
  88. data/assets/stylesheets/settings/initializers/_reset.css.sass +85 -0
  89. data/assets/stylesheets/settings/mixins/_animation.css.sass +15 -0
  90. data/assets/stylesheets/settings/mixins/_background.css.sass +33 -0
  91. data/assets/stylesheets/settings/mixins/_balloon-tale.css.sass +111 -0
  92. data/assets/stylesheets/settings/mixins/_basic-font.css.sass +45 -0
  93. data/assets/stylesheets/settings/mixins/_block.css.sass +30 -0
  94. data/assets/stylesheets/settings/mixins/_border.css.sass +28 -0
  95. data/assets/stylesheets/settings/mixins/_button-base.css.sass +27 -0
  96. data/assets/stylesheets/settings/mixins/_color.css.sass +9 -0
  97. data/assets/stylesheets/settings/mixins/_filters.css.sass +5 -0
  98. data/assets/stylesheets/settings/mixins/_form.css.sass +7 -0
  99. data/assets/stylesheets/settings/mixins/_grids.css.sass +149 -0
  100. data/assets/stylesheets/settings/mixins/_html5-input-types.scss +118 -0
  101. data/assets/stylesheets/settings/mixins/_ie-hacks.css.sass +8 -0
  102. data/assets/stylesheets/settings/mixins/_lines.css.sass +18 -0
  103. data/assets/stylesheets/settings/mixins/_link.css.sass +11 -0
  104. data/assets/stylesheets/settings/mixins/_list.css.sass +21 -0
  105. data/assets/stylesheets/settings/mixins/_margin-padding.css.sass +69 -0
  106. data/assets/stylesheets/settings/mixins/_overlay.css.sass +5 -0
  107. data/assets/stylesheets/settings/mixins/_positions.css.sass +28 -0
  108. data/assets/stylesheets/settings/mixins/_rem.css.sass +56 -0
  109. data/assets/stylesheets/settings/mixins/_resets.css.sass +43 -0
  110. data/assets/stylesheets/settings/mixins/_responsive-utilities.css.sass +160 -0
  111. data/assets/stylesheets/settings/mixins/_sassmatic.css.sass +172 -0
  112. data/assets/stylesheets/settings/mixins/_sprite-background.css.sass +18 -0
  113. data/assets/stylesheets/settings/mixins/_tables.css.sass +14 -0
  114. data/assets/stylesheets/settings/mixins/_text.css.sass +21 -0
  115. data/assets/stylesheets/settings/variables/_default.css.sass +69 -0
  116. data/lib/middleman-oulu/version.rb +5 -0
  117. data/lib/middleman-oulu.rb +13 -0
  118. data/middleman-oulu.gemspec +34 -0
  119. metadata +316 -0
@@ -0,0 +1,45 @@
1
+ @function border_color($value)
2
+ @if optional_color_list($value)
3
+ @return true
4
+ @else
5
+ @return null
6
+
7
+ @function border_width($value)
8
+ @if number($value)
9
+ @return true
10
+ @else if $value == 'thin' or $value == 'medium' or $value == 'thick'
11
+ @return true
12
+ @else if list($value)
13
+ @each $assign in $value
14
+ @if $assign == 'thin' or $assign == 'medium' or $assign == 'thick'
15
+ @return true
16
+ @else if number($assign)
17
+ @return true
18
+ @else
19
+ @return null
20
+ @else
21
+ @return null
22
+
23
+ @function border_style($value)
24
+ @if $value == 'none' or $value == 'hidden' or $value == 'solid' or $value == 'double' or $value == 'groove' or $value == 'ridge' or $value == 'inset' or $value == 'outset' or $value == 'dashed' or $value == 'dotted'
25
+ @return true
26
+ @else if list($value)
27
+ @each $assign in $value
28
+ @if $value == 'none' or $value == 'hidden' or $value == 'solid' or $value == 'double' or $value == 'groove' or $value == 'ridge' or $value == 'inset' or $value == 'outset' or $value == 'dashed' or $value == 'dotted'
29
+ @return true
30
+ @else
31
+ @return null
32
+ @else
33
+ @return null
34
+
35
+ @function border_position($value)
36
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right" or $value == "all" or $value == "horizontal" or $value == "vertical"
37
+ @return true
38
+ @else if list($value)
39
+ @each $assign in $value
40
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right" or $value == "all" or $value == "horizontal" or $value == "vertical"
41
+ @return true
42
+ @else
43
+ @return null
44
+ @else
45
+ @return null
@@ -0,0 +1,83 @@
1
+ @function color($value)
2
+ @if type-of($value) == color
3
+ @return true
4
+ @else
5
+ @return null
6
+
7
+ @function color_list($values)
8
+ @if list($values)
9
+ @each $value in $values
10
+ @if color($value)
11
+ @return true
12
+ @else
13
+ @return null
14
+ @else
15
+ @return null
16
+
17
+ @function optional_color_list($values)
18
+ @if color($values)
19
+ @return true
20
+ @else if color_list($values)
21
+ @return true
22
+ @else
23
+ @return null
24
+
25
+ @function luma($color)
26
+ // Adapted from: https://gist.github.com/voxpelli/6304812
27
+ $rgba: red($color), green($color), blue($color)
28
+ $rgba2: ()
29
+ @for $i from 1 through 3
30
+ $rgb: nth($rgba, $i)
31
+ $rgb: $rgb / 255
32
+ $rgb: if($rgb < 0.03928, $rgb / 12.92, pow(($rgb + 0.055) / 1.055, 2.4))
33
+ $rgba2: append($rgba2, $rgb)
34
+ @return (0.2126 * nth($rgba2, 1) + 0.7152 * nth($rgba2, 2) + 0.0722 * nth($rgba2, 3)) * 100
35
+
36
+ $ruma-threshold: 100 / pi() !default
37
+
38
+ @function luma_contrast($color-1, $color-2: null)
39
+ @if $color-2
40
+ @if abs(luma($color-1) - luma($color-2)) > $ruma-threshold
41
+ @return true
42
+ @else
43
+ @return null
44
+ @else
45
+ @return if(luma($color-1) < 51, dark, bright)
46
+
47
+ @function luma_value($color-1, $color-2: null)
48
+ @if $color-2
49
+ @return abs(luma($color-1) - luma($color-2))
50
+ @else
51
+ @return luma($color-1)
52
+
53
+ @function luma_which($color)
54
+ @return if(luma($color-1) < 51, dark, bright)
55
+
56
+ @function luma_bright($color)
57
+ @if luma($color) < 51
58
+ @return null
59
+ @else
60
+ @return true
61
+
62
+ @function luma_dark($color)
63
+ @if luma($color) < 51
64
+ @return true
65
+ @else
66
+ @return null
67
+
68
+ @function luma_contrast_color($color)
69
+ $luma-contrast-bright-color: #000000 !default
70
+ $luma-contrast-dark-color: #ffffff !default
71
+ @if luma_which($color) == bright
72
+ @return $luma-contrast-bright-color
73
+ @else
74
+ @return $luma-contrast-dark-color
75
+
76
+ @function luma_add_contrast($background-color, $candidate-color)
77
+ @if luma_contrast($background-color, $candidate-color)
78
+ @return $candidate-color
79
+ @else
80
+ @if luma_dark($background-color)
81
+ @return tint($candidate-color, reverse(percentage(luma_value($background-color, $candidate-color)*0.01))/1.618)
82
+ @else
83
+ @return shade($candidate-color, reverse(percentage(luma_value($background-color, $candidate-color)*0.01))/1.618)
@@ -0,0 +1,5 @@
1
+ @function content($value)
2
+ @if $value == 'after' or $value == 'before'
3
+ @return true
4
+ @else
5
+ @return null
@@ -0,0 +1,5 @@
1
+ @function cursor($value)
2
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right" or $value == "all" or $value == "horizontal" or $value == "vertical"
3
+ @return true
4
+ @else
5
+ @return null
@@ -0,0 +1,8 @@
1
+ @function image($value)
2
+ @if string($value)
3
+ @if number(str-index(to-lower-case($value), '.jpg')) or number(str-index(to-lower-case($value), '.jpeg')) or number(str-index(to-lower-case($value), '.gif')) or number(str-index(to-lower-case($value), '.png')) or number(str-index(to-lower-case($value), '.tiff')) or number(str-index(to-lower-case($value), '.tif')) or number(str-index(to-lower-case($value), '.bmp')) or number(str-index(to-lower-case($value), '.pct')) or number(str-index(to-lower-case($value), '.jpe')) or number(str-index(to-lower-case($value), '.jfif')) or number(str-index(to-lower-case($value), '.dib'))
4
+ @return true
5
+ @else
6
+ @return null
7
+ @else
8
+ @return null
@@ -0,0 +1,20 @@
1
+ // $nのときにtrue
2
+ @function equal_nth($value, $n)
3
+ @if length($value) == $n
4
+ @return ture
5
+ @else
6
+ @return null
7
+
8
+ // $n以上のときにtrue
9
+ @function or_more_nth($value, $n)
10
+ @if length($value) >= $n
11
+ @return ture
12
+ @else
13
+ @return null
14
+
15
+ // $n以上のときだけ$valueを出す
16
+ @function optional_nth($value, $n, $false-value: null)
17
+ @if or_more_nth($value, $n)
18
+ @return nth($value, $n)
19
+ @else
20
+ @return $false-value
@@ -0,0 +1,11 @@
1
+ @function list($value)
2
+ @if type-of($value) == list
3
+ @return true
4
+ @else
5
+ @return null
6
+
7
+ @function first_order($values, $value)
8
+ @if index($values, $value) == 1
9
+ @return true
10
+ @else
11
+ @return null
@@ -0,0 +1,5 @@
1
+ @function map($value)
2
+ @if type-of($value) == map
3
+ @return true
4
+ @else
5
+ @return null
@@ -0,0 +1,81 @@
1
+ @function number($number)
2
+ @if type-of($number) == number
3
+ @return true
4
+ @else
5
+ @return null
6
+
7
+ @function number_list($values)
8
+ @if list($values)
9
+ @each $value in $values
10
+ @if number($value)
11
+ @return true
12
+ @else
13
+ @return null
14
+ @else
15
+ @return null
16
+
17
+ @function optional_number_list($values)
18
+ @if type-of($values) == number
19
+ @return true
20
+ @else if number_list($values)
21
+ @return true
22
+ @else
23
+ @return null
24
+
25
+ @function odd($number)
26
+ @if ceil($number/2) != $number/2
27
+ @return true
28
+ @else
29
+ @return null
30
+
31
+ @function even($number)
32
+ @if ceil($number/2) == $number/2
33
+ @return true
34
+ @else
35
+ @return null
36
+
37
+ @function strip_unit($number)
38
+ // strip the units
39
+ // That works. strip_unit(13.48cm) will return 13.48
40
+ @if number($number)
41
+ @return $number / ($number * 0 + 1)
42
+
43
+ @function unitless_number($value)
44
+ @if number($value) and unitless($value)
45
+ @return true
46
+ @else
47
+ @return null
48
+
49
+ @function px($value)
50
+ @if number($value) and unit($value) == "px"
51
+ @return true
52
+ @else
53
+ @return null
54
+
55
+ @function em($value)
56
+ @if number($value) and unit($value) == "em"
57
+ @return true
58
+ @else
59
+ @return null
60
+
61
+ @function percent($value)
62
+ @if number($value) and unit($value) == "%"
63
+ @return true
64
+ @else
65
+ @return null
66
+
67
+ @function px_to_em($px, $base-px)
68
+ @if strip_unit($px) == 0
69
+ @return 0
70
+ @else if px($px)
71
+ @return (strip_unit($px) / strip_unit($base-px)) * 1em
72
+ @else if em($px)
73
+ @return $px
74
+
75
+ @function em_to_px($em, $base-px: $baseline-px)
76
+ @if $em == 0
77
+ @return 0
78
+ @else if em($em)
79
+ @return (strip_unit($em) * strip_unit($base-px)) * 1px
80
+ @else if px($em)
81
+ @return $em
@@ -0,0 +1,80 @@
1
+ @function position($value)
2
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right" or $value == "center"
3
+ @return true
4
+ @else
5
+ @return null
6
+
7
+ @function direction($value)
8
+ @if string($value)
9
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right" or $value == "horizontal" or $value == "vertical" or $value == "all"
10
+ @return true
11
+ @else
12
+ @return null
13
+ @else
14
+ @return null
15
+
16
+ @function four_position($value)
17
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right"
18
+ @return true
19
+ @else
20
+ @return null
21
+
22
+ @function top($value)
23
+ @if $value == "top"
24
+ @return true
25
+ @else
26
+ @return null
27
+
28
+ @function bottom($value)
29
+ @if $value == "bottom"
30
+ @return true
31
+ @else
32
+ @return null
33
+
34
+ @function left($value)
35
+ @if $value == "left"
36
+ @return true
37
+ @else
38
+ @return null
39
+
40
+ @function right($value)
41
+ @if $value == "right"
42
+ @return true
43
+ @else
44
+ @return null
45
+
46
+ @function center($value)
47
+ @if $value == "center"
48
+ @return true
49
+ @else
50
+ @return null
51
+
52
+ @function position_vertical($value)
53
+ @if $value == 'bottom' or $value == 'top'
54
+ @return true
55
+ @else
56
+ @return null
57
+
58
+ @function position_horizontal($value)
59
+ @if $value == 'left' or $value == 'right'
60
+ @return true
61
+ @else
62
+ @return null
63
+
64
+ @function all($value)
65
+ @if $value == "all"
66
+ @return true
67
+ @else
68
+ @return null
69
+
70
+ @function horizontal($value)
71
+ @if $value == "horizontal"
72
+ @return true
73
+ @else
74
+ @return null
75
+
76
+ @function vertical($value)
77
+ @if $value == "vertical"
78
+ @return true
79
+ @else
80
+ @return null
@@ -0,0 +1,22 @@
1
+ @function reverse($value)
2
+ @if type-of($value) == string
3
+ @if $value == 'top'
4
+ @return 'bottom'
5
+ @else if $value == 'bottom'
6
+ @return 'top'
7
+ @else if $value == 'left'
8
+ @return 'right'
9
+ @else if $value == 'right'
10
+ @return 'left'
11
+ @else if number($value)
12
+ @if unit($value) == '%'
13
+ @return (100 - $value)
14
+ @else
15
+ @return $value*-1
16
+ @else if bool($value)
17
+ @if $value == true
18
+ @return false
19
+ @else if $value == false
20
+ @return true
21
+ @else if color($value)
22
+ @return invert($value)
@@ -0,0 +1,5 @@
1
+ @function string($value)
2
+ @if type-of($value) == string
3
+ @return true
4
+ @else
5
+ @return null
@@ -0,0 +1,34 @@
1
+ @function text_align($value)
2
+ @if $value == "left" or $value == "right" or $value == "center"
3
+ @return true
4
+ @else
5
+ @return null
6
+
7
+ @function font_weight($value)
8
+ @if $value == "bold" or $value == "normal"
9
+ @return true
10
+ @else if unitless_number($value)
11
+ @if $value >= 100
12
+ @return true
13
+ @else
14
+ @return null
15
+ @else
16
+ @return null
17
+
18
+ @function font_style($value)
19
+ @if $value == "normal" or $value == "italic" or $value == "oblique"
20
+ @return true
21
+ @else
22
+ @return null
23
+
24
+ @function list_style_type($value)
25
+ @if $value == "disc" or $value == "circle" or $value == "square" or $value == "lower-roman" or $value == "upper-roman" or $value == "lower-greek" or $value == "decimal" or $value == "decimal-leading-zero" or $value == "lower-latin" or $value == "lower-alpha" or $value == "upper-latin" or $value == "upper-alpha" or $value == "cjk-ideographic" or $value == "hiragana" or $value == "katakana" or $value == "hiragana-iroha" or $value == "katakana-iroha" or $value == "hebrew" or $value == "armenian" or $value == "georgian"
26
+ @return true
27
+ @else
28
+ @return null
29
+
30
+ @function list_style_position($value)
31
+ @if $value == "outside" or $value == "inside"
32
+ @return true
33
+ @else
34
+ @return null
@@ -0,0 +1,85 @@
1
+ html
2
+ font-size: 62.5%
3
+ +basic-font
4
+ +experimental(backface-visibility, hidden)
5
+
6
+ .mobile
7
+ // 自動文字サイズ調整
8
+ +experimental(text-size-adjust, 100%)
9
+ // タップ時のハイライトカラー
10
+ +experimental(tap-highlight-color, rgba(0, 0, 0, 0))
11
+ // input以外はテキスト、画像の選択不可に
12
+ *:not(input)
13
+ +experimental(user-select, none)
14
+ // リンクの長時間タップでリンク内容をポップアップで表示させない場合
15
+ +experimental(touch-callout, none)
16
+
17
+ input,
18
+ button,
19
+ textarea
20
+ margin: 0
21
+ padding: 0
22
+ border: none
23
+ background-color: transparent
24
+ outline: none
25
+ +basic-font
26
+
27
+ img
28
+ vertical-align: bottom
29
+
30
+ body.windows
31
+ +clear-type
32
+
33
+ a
34
+ outline: none
35
+
36
+ hr
37
+ border: none
38
+
39
+ strong
40
+ font-weight: bold
41
+
42
+ .pie
43
+ zoom: 1
44
+ position: relative
45
+
46
+ // form
47
+ #{$all-button-inputs},
48
+ button
49
+ cursor: pointer
50
+
51
+ button::-moz-focus-inner,
52
+ input::-moz-focus-inner
53
+ border: 0
54
+ padding: 0
55
+
56
+ input,
57
+ textarea
58
+ border: none
59
+ +box-sizing(border-box)
60
+
61
+ button, x:-moz-any-link,
62
+ input[type=button], x:-moz-any-link,
63
+ input[type=submit], x:-moz-any-link
64
+ line-height: normal !important
65
+
66
+ input[type="file"]::-webkit-file-upload-button
67
+ cursor: pointer !important
68
+
69
+ // selection
70
+
71
+ *::selection
72
+ background: $selection-bg-color
73
+ color: $selection-tx-color
74
+ *::-moz-selection
75
+ background: $selection-bg-color
76
+ color: $selection-tx-color
77
+
78
+ #{$all-text-inputs},
79
+ textarea
80
+ &::selection
81
+ background: $input-selection-bg-color
82
+ color: $input-selection-tx-color
83
+ &::-moz-selection
84
+ background: $input-selection-bg-color
85
+ color: $input-selection-tx-color
@@ -0,0 +1,15 @@
1
+ // https://gist.github.com/ericam/1607696
2
+ =keyframes($name)
3
+ @-webkit-keyframes #{$name}
4
+ @content
5
+ @-moz-keyframes #{$name}
6
+ @content
7
+ @-ms-keyframes #{$name}
8
+ @content
9
+ @keyframes #{$name}
10
+ @content
11
+
12
+ =transition($transition-duration: .5s, $transition-property: all, $transition-timing: ease-in)
13
+ +transition-property($transition-property)
14
+ +transition-duration($transition-duration)
15
+ +transition-timing-function($transition-timing)
@@ -0,0 +1,33 @@
1
+ =bg-size($value)
2
+ @if list($value)
3
+ @if str-slice(nth($value, 1), 1, 1) == '/'
4
+ $bg-size-value: str-slice(nth($value, 1), 2) nth($value, 2)
5
+ +background-size($bg-size-value)
6
+ @else
7
+ +background-size($value)
8
+ @else
9
+ @if str-slice(nth($value, 1), 1, 1) == '/'
10
+ $bg-size-value: str-slice(nth($value, 1), 2)
11
+ +background-size($bg-size-value)
12
+ @else
13
+ +background-size($value)
14
+
15
+ // どこでも background-color と background-image と background-position と background-repeat が書ける設定
16
+ =background-basics($value)
17
+ @if background_color($value)
18
+ background-color: $value
19
+ @else if background_image($value)
20
+ background-image: image_url("#{$value}")
21
+ @else if background_position($value)
22
+ background-position: $value
23
+ @else if background_repeat($value)
24
+ background-repeat: $value
25
+ @else if background_attachment($value)
26
+ background-attachment: $value
27
+ @else if background_size($value)
28
+ +bg-size($value)
29
+
30
+ // +bg(black 'image.png' (left center) no-repeat fixed (/ 20px 30px))
31
+ =bg($value)
32
+ @for $i from 1 through length($value)
33
+ +background-basics(nth($value, $i))
@@ -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)