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
+ =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
41
+
42
+ =clear-type
43
+ +transform-origin(0, 0)
44
+ +scale(1, 1.01)
45
+ -ms-transform: scale(1, 1.02)
@@ -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_positions(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,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)
@@ -0,0 +1,5 @@
1
+ =overlay($overlay-color: rgba(0, 0, 0, .4), $overlay-z-index: 10)
2
+ +absolute(left 0, top 0, $overlay-z-index)
3
+ width: 100%
4
+ height: 100%
5
+ +rgba-background($overlay-color)
@@ -0,0 +1,28 @@
1
+ =position-list($value1, $value2, $value3, $value4, $value5)
2
+ $values: $value1 $value2 $value3 $value4 $value5
3
+ @each $value in $values
4
+ @if optional_nth($value, 2)
5
+ +rem(nth($value, 1), nth($value, 2))
6
+ @else
7
+ z-index: nth($value, 1)
8
+
9
+ =absolute($value1: null, $value2: null, $value3: null, $value4: null, $value5: null)
10
+ position: absolute
11
+ +position-list($value1, $value2, $value3, $value4, $value5)
12
+
13
+ =fixed($value1: null, $value2: null, $value3: null, $value4: null, $value5: null)
14
+ position: fixed
15
+ +position-list($value1, $value2, $value3, $value4, $value5)
16
+
17
+ =relative($value1: null, $value2: null, $value3: null, $value4: null, $value5: null)
18
+ position: relative
19
+ +position-list($value1, $value2, $value3, $value4, $value5)
20
+
21
+ =top($position-value, $z-index: null)
22
+ +relative(top $position-value, $z-index)
23
+ =bottom($position-value, $z-index: null)
24
+ +relative(bottom $position-value, $z-index)
25
+ =left($position-value, $z-index: null)
26
+ +relative(left $position-value, $z-index)
27
+ =right($position-value, $z-index: null)
28
+ +relative(right $position-value, $z-index)
@@ -0,0 +1,56 @@
1
+ // Baseline, measured in pixels
2
+ // The value should be the same as the font-size value for the html element
3
+ // If the html element's font-size is set to 62.5% (of the browser's default font-size of 16px),
4
+ // then the variable below would be 10px.
5
+ // original https://github.com/bitmanic/rem
6
+ // customize by machida
7
+
8
+ $baseline-px: 10px !default
9
+
10
+ =base-font-size
11
+ font-size: $baseline-px
12
+ font-size: strip_unit($baseline-px / 10) * 1rem
13
+
14
+ =rem($property, $px-values, $important: null)
15
+ @if px($px-values) or list($px-values)
16
+ @if $property == "font-size" and $px-values < 10px
17
+ // 9px以下のfont-sizeを使う設定(IE8不可)
18
+ +base-font-size
19
+ +scale3d(strip_unit($px-values / strip_unit($baseline-px)), strip_unit($px-values/ strip_unit($baseline-px)), 1)
20
+ +transform-origin(0, 0)
21
+ @else
22
+ // Convert the baseline into rems
23
+ $baseline-rem: $baseline-px / 1rem
24
+ // remが使えないブラウザ用にpx版を出力
25
+ @if $important
26
+ #{$property}: $px-values !important
27
+ @else
28
+ #{$property}: $px-values
29
+ // remで出力
30
+ @if px($px-values) and $px-values >= 1
31
+ @if $important
32
+ #{$property}: $px-values / $baseline-rem !important
33
+ @else
34
+ #{$property}: $px-values / $baseline-rem
35
+ @else
36
+ // Create an empty list that we can dump values into
37
+ $rem-values: ()
38
+ @each $value in $px-values
39
+ @if px($value)
40
+ // If the value is zero or not a number, return it
41
+ @if strip_unit($value) == 0 or type-of( $value ) != "number"
42
+ $rem-values: append($rem-values, $value)
43
+ @else
44
+ $rem-values: append($rem-values, $value / $baseline-rem)
45
+ @else
46
+ $rem-values: append($rem-values, $value)
47
+ // Return the property and its list of converted values
48
+ @if $important
49
+ #{$property}: $rem-values !important
50
+ @else
51
+ #{$property}: $rem-values
52
+ @else
53
+ @if $important
54
+ #{$property}: $px-values !important
55
+ @else
56
+ #{$property}: $px-values