middleman-oulu 0.5.16 → 0.5.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51b2a57a3b098e1d3e5d110d1bb9852bca678966
4
- data.tar.gz: 64a059b13ceda8f284c7716f29522e387325e055
3
+ metadata.gz: 0febf6f63d78eda0ea198c00c720b743531c6441
4
+ data.tar.gz: 839021750db54a9812c28e92c3615a2a6460d52c
5
5
  SHA512:
6
- metadata.gz: e22b7ca62ce39b495cc460b9dbd5149f3c67b02666a3b883d5b658c4ddab2b0fa925db2e51653e0863275bd958a6b0f96161ac6cc7ddf758d42871a180c5ebd5
7
- data.tar.gz: d360be28cac3111a95beb7c077c410ab685804b040d04c12639d588b861bdf729e9a6d8e5f35c672e01853d287312daa2ab13691d83c1c405fb6f8cd9ac2b938
6
+ metadata.gz: 0adda5b1eed07664764b86a16e82a0d4eedc8d3a3b5e80434c7350936c15165412233fa286e7d679594a8b23fb83590f965698f3119d33690a72271d3f28ee0d
7
+ data.tar.gz: 33bd389730c8c43f939b9f016798f76550a62461e774e426b46d61819cefe1109f657cdc83b8e0e3df6847b8ddca44aaff9053061546aa4c7b76f0577d488379
@@ -45,6 +45,7 @@
45
45
  @import settings/functions/image
46
46
  @import settings/functions/background
47
47
  @import settings/functions/border
48
+ @import settings/functions/animation
48
49
 
49
50
  // mixins
50
51
  ///////////////////
@@ -62,7 +63,6 @@
62
63
  @import settings/mixins/color
63
64
  @import settings/mixins/overlay
64
65
  @import settings/mixins/balloon-tale
65
- @import settings/mixins/sprite-background
66
66
  @import settings/mixins/margin-padding
67
67
  @import settings/mixins/animation
68
68
  @import settings/mixins/grids
@@ -71,6 +71,7 @@
71
71
  @import settings/mixins/line
72
72
  @import settings/mixins/button
73
73
  @import settings/mixins/image
74
+ @import settings/mixins/reset
74
75
 
75
76
  // http://sassmatic.com/
76
77
  // @import settings/mixins/sassmatic
@@ -11,3 +11,4 @@
11
11
  @import helper/typoglaphy
12
12
  @import helper/click-actions
13
13
  @import helper/fade-actions
14
+ @import helper/no-gutter-grids
@@ -0,0 +1,3 @@
1
+ body
2
+ .no-gutter-grids
3
+ +grid-columns(0)
@@ -0,0 +1,90 @@
1
+ @function time($value)
2
+ @if unit_number($value) and unit($value) == 's'
3
+ @return true
4
+ @else
5
+ @return null
6
+
7
+ @function timing_function($value)
8
+ @if string($value)
9
+ @if $value == 'ease' or $value == 'linear' or $value == 'ease-in' or $value == 'ease-out' or $value == 'ease-in-out' or str-slice($value, 1, 12) == 'cubic-bezier'
10
+ @return true
11
+ @else
12
+ @return null
13
+ @else
14
+ @return null
15
+
16
+ @function delay($value)
17
+ @if string($value) and str-slice($value, 1, 1) == '/' and str-slice($value, -1, -1) == 's'
18
+ @return str-slice($value, 2)
19
+ @else
20
+ @return null
21
+
22
+ //////////////////
23
+ // transition
24
+ //////////////////
25
+
26
+ @function transition_duration($value)
27
+ @return time($value)
28
+
29
+ @function transition_timing_function($value)
30
+ @return timing_function($value)
31
+
32
+ @function transition_delay($value)
33
+ @return delay($value)
34
+
35
+ @function transition-property($value)
36
+ @if string($value)
37
+ @if not transition_timing_function($value) or not transition_duration($value) or not transition_delay($value)
38
+ @return true
39
+ @else
40
+ @return null
41
+ @else if list($value)
42
+ @return true
43
+ @else
44
+ @return null
45
+
46
+ //////////////////
47
+ // animation
48
+ //////////////////
49
+
50
+ @function animation_duration($value)
51
+ @return time($value)
52
+
53
+ @function animation_timing_function($value)
54
+ @return timing_function($value)
55
+
56
+ @function animation_delay($value)
57
+ @return delay($value)
58
+
59
+ @function animation_iteration_count($value)
60
+ @if unitless_number($value) or (string($value) and $value == 'infinite')
61
+ @return true
62
+ @else
63
+ @return null
64
+
65
+ @function animation_direction($value)
66
+ @if string($value) and ($value == 'normal' or $value == 'alternate')
67
+ @return true
68
+ @else
69
+ @return null
70
+
71
+ @function animation_fill_mode($value)
72
+ @if string($value) and ($value == 'nonel' or $value == 'forwards' or $value == 'backwards' or $value == 'both')
73
+ @return true
74
+ @else
75
+ @return null
76
+
77
+ @function animation_play_state($value)
78
+ @if string($value) and ($value == 'running' or $value == 'paused')
79
+ @return true
80
+ @else
81
+ @return null
82
+
83
+ @function animation_name($value)
84
+ @if string($value)
85
+ @if animation_timing_function($value) or animation_duration($value) or animation_delay($value) or animation_iteration_count($value) or animation_direction($value) or animation_fill_mode($value) or animation_play_state($value)
86
+ @return null
87
+ @else
88
+ @return true
89
+ @else
90
+ @return null
@@ -23,7 +23,7 @@
23
23
  @if $value == 'auto' or $value == 'contain' or $value == 'cover'
24
24
  @return true
25
25
  @else if str-slice($value, 2) == 'auto' or $value == 'contain' or $value == 'cover'
26
- @return true
26
+ @return $value
27
27
  @else
28
28
  @return null
29
29
  @else if list($value)
@@ -1,14 +1,14 @@
1
1
  // $nのときにtrue
2
2
  @function equal_nth($value, $n)
3
3
  @if length($value) == $n
4
- @return ture
4
+ @return true
5
5
  @else
6
6
  @return null
7
7
 
8
8
  // $n以上のときにtrue
9
9
  @function or_more_nth($value, $n)
10
10
  @if length($value) >= $n
11
- @return ture
11
+ @return true
12
12
  @else
13
13
  @return null
14
14
 
@@ -1,5 +1,5 @@
1
1
  @function string($value)
2
- @if type-of($value) == string
2
+ @if type_of($value) == string
3
3
  @return true
4
4
  @else
5
5
  @return null
@@ -1,15 +1,45 @@
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
1
+ =transition($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null, $value7: null, $value8: null, $value9: null, $value10: null)
2
+ $list: $value1 $value2 $value3 $value4 $value5 $value6 $value7 $value8 $value9 $value10
3
+ $transition-properties: ()
4
+ $transition-durations: ()
5
+ $transition-timing-functions: ()
6
+ $transition-delays: ()
7
+ @each $value in $list
8
+ @for $i from 1 through length($value)
9
+ $transition-properties: append(transition-properties, if(transition_property(nth($value, $i)), nth($value, $i), null), comma)
10
+ $transition-durations: append($transition-durations, if(transition_duration(nth($value, $i)), nth($value, $i), null), comma)
11
+ $transition-timing-functions: append($transition-timing-functions, if(transition_timing_function(nth($value, $i)), nth($value, $i), null), comma)
12
+ $transition-delays: append($transition-delays, if(transition_delay(nth($value, $i)), transition_delay(nth($value, $i)), null), comma)
13
+ +transition-property($transition-properties)
14
+ +transition_duration($transition-durations)
15
+ +transition_timing_function($transition-timing-functions)
16
+ +transition-delay($transition-delays)
11
17
 
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)
18
+ =animations($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null, $value7: null, $value8: null, $value9: null, $value10: null)
19
+ $list: $value1 $value2 $value3 $value4 $value5 $value6 $value7 $value8 $value9 $value10
20
+ $animation-names: ()
21
+ $animation-durations: ()
22
+ $animation-timing-functions: ()
23
+ $animation-delays: ()
24
+ $animation-iteration-counts: ()
25
+ $animation-directions: ()
26
+ $animation-fill-modes: ()
27
+ $animation-play-states: ()
28
+ @each $value in $list
29
+ @for $i from 1 through length($value)
30
+ $animation-names: append($animation-names, if(animation_name(nth($value, $i)), nth($value, $i), null), comma)
31
+ $animation-durations: append($animation-durations, if(animation_duration(nth($value, $i)), nth($value, $i), null), comma)
32
+ $animation-timing-functions: append($animation-timing-functions, if(animation_timing_function(nth($value, $i)), nth($value, $i), null), comma)
33
+ $animation-delays: append($animation-delays, if(animation_delay(nth($value, $i)), animation_delay(nth($value, $i)), null), comma)
34
+ $animation-iteration-counts: append($animation-iteration-counts, if(animation_iteration_count(nth($value, $i)), nth($value, $i), null), comma)
35
+ $animation-directions: append($animation-directions, if(animation_direction(nth($value, $i)), nth($value, $i), null), comma)
36
+ $animation-fill-modes: append($animation-fill-modes, if(animation_fill_mode(nth($value, $i)), nth($value, $i), null), comma)
37
+ $animation-play-states: append($animation-play-states, if(animation_play_state(nth($value, $i)), nth($value, $i), null), comma)
38
+ +animation-name($animation-names)
39
+ +animation_duration($animation-durations)
40
+ +animation_timing_function($animation-timing-functions)
41
+ +animation-delay($animation-delays)
42
+ +animation-iteration-count($animation-iteration-counts)
43
+ +animation-direction($animation-directions)
44
+ +animation-fill-mode($animation-fill-modes)
45
+ +animation-play-state($animation-play-states)
@@ -1,3 +1,23 @@
1
+ // http://qiita.com/orangemittoo/items/1c9f32296836d3ea125e
2
+
3
+ $sprites-images-directory: sprites !default
4
+ $sprite-map: sprite-map("#{$sprites-images-directory}/*.png", $layout: smart)
5
+ $map-img: sprite-url($sprite-map)
6
+
7
+ =sprite-background($name, $background-size: null, $background-repeat: null)
8
+ // block;
9
+ background-image: $map-img
10
+ $pos: sprite-position($sprite-map, $name)
11
+ background-position: nth($pos, 1) / 2 nth($pos, 2) / 2
12
+ @if $background-size
13
+ +background-size($background-size)
14
+ @else
15
+ +background-size(ceil(image-width(sprite-path($sprite-map)) / 2) auto)
16
+ @if $background-repeat
17
+ background-repeat: $background-repeat
18
+ @else
19
+ background-repeat: no-repeat
20
+
1
21
  =bg-size($value)
2
22
  @if list($value)
3
23
  @if str-slice(nth($value, 1), 1, 1) == '/'
@@ -16,7 +16,6 @@
16
16
  font-weight: bold
17
17
  @if $text-rendering
18
18
  text-rendering: optimizelegibility
19
- font-style: italic
20
19
 
21
20
  =serif($text-rendering: true)
22
21
  font-family: $basic-serif
@@ -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)
@@ -1,9 +1,11 @@
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
1
+ // +ie-rgba(rgba(0, 0, 0, .4), white, background-color)
2
+ =ie-rgba($foreground, $backdrop: white, $property: "background-color")
8
3
  @if $property == "background-color"
9
4
  +rgba-background($foreground)
5
+ @else
6
+ #{$property}: mix(fade-in($foreground, 1), $backdrop, percentage(opacity($foreground)))
7
+ // Browsers without color opacity
8
+ #{$property}: $foreground
9
+ // Decent browsers
10
+ #{$property}: mix(fade-in($foreground, 1), $backdrop, percentage(opacity($foreground)))\9
11
+ // IE8
@@ -24,7 +24,7 @@ $screen-xs-max: ($screen-sm-min - 1) !default
24
24
  $screen-sm-max: ($screen-md-min - 1) !default
25
25
  $screen-md-max: ($screen-lg-min - 1) !default
26
26
 
27
- // devise
27
+ // device
28
28
  =screen-xs
29
29
  @media only screen and (max-width: $screen-xs)
30
30
  @content
@@ -0,0 +1,3 @@
1
+ =center-image
2
+ display: block
3
+ +margin(horizontal, auto)
@@ -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)
@@ -1,21 +1,22 @@
1
1
  // +list(12px 24px, fa '\f192', 12px 3px 8px)
2
+ // +list(margin-left margin-bottom, fa '\f192', icon-size top left)
2
3
  =list($margins: null, $list-style: null, $icon-position: null)
3
4
  +rem('margin-left', optional_nth($margins, 1))
4
5
  +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))
6
+ @if nth($list-style, 1) == "fa"
7
+ @for $i from 1 through length($list-style)
8
+ @if list_style_type(nth($list-style, $i))
9
+ list-style-type: nth($list-style, $i)
10
+ @else if list_style_position(nth($list-style, $i))
11
+ list-style-position: nth($list-style, $i)
12
+ @else if nth($list-style, $i) == "fa"
13
+ list-style-type: none
14
+ >li
15
+ +relative
16
+ display: block
17
+ +rem('padding-left', optional_nth($icon-position, 1) + optional_nth($icon-position, 3))
18
+ &:before
19
+ +fa
20
+ +text-block(optional_nth($icon-position, 1) optional_nth($icon-position, 1))
21
+ content: '#{optional_nth($list-style, $i + 1)}'
22
+ +absolute(left 0, top optional_nth($icon-position, 2))
@@ -1,5 +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)
1
+ =overlay($overlay-color: null, $overlay-z-index: null)
2
+ @if $overlay-color
3
+ +fixed(left 0, top 0, $overlay-z-index)
4
+ +size(100%)
5
+ +rgba-background($overlay-color)
@@ -0,0 +1,14 @@
1
+ =reset-select
2
+ +appearance(none)
3
+ +border(none)
4
+ border: none
5
+ margin: 0
6
+ padding: 0
7
+ background: none transparent
8
+ vertical-align: middle
9
+ font-size: inherit
10
+ color: inherit
11
+ box-sizing: content-box
12
+ &:active,
13
+ &:focus
14
+ outline: none
@@ -1,12 +1,15 @@
1
1
  =table-cell-assign($value)
2
- $padding: if(list($value), if(unit_number(nth($value, 1)), $value, null), if(unit_number($value), $value, null))
2
+ @if list($value)
3
+ @if unit_number(nth($value, 1))
4
+ +rem('padding', $value)
5
+ @if direction(nth($value, 1))
6
+ +padding(nth($value, 1), nth($value, 2))
3
7
  white-space: if(white_space($value), $value, null)
4
8
  background-color: if(color($value), $value, null)
5
9
  vertical-align: if(vertical_align($value), $value, null)
6
- +rem('padding', $padding)
7
10
 
8
11
  // +table-row($white #eeeeee, (bottom, solid 1px black))
9
- =table-row($value1, $value2)
12
+ =table-row($value1: nul, $value2: nul)
10
13
  @if $value1
11
14
  @if list($value1)
12
15
  &:nth-child(odd)
@@ -19,7 +22,7 @@
19
22
  +border(nth($value2, 1), nth($value2, 2))
20
23
 
21
24
  // +table-cell(middle (12px 16px) no_wrap $white, (14px 1.8 1.4em, black bold center), (bottom, solid 1px black))
22
- =table-cell($value1, $value2, $value3)
25
+ =table-cell($value1: null, $value2: null, $value3: null)
23
26
  +box-sizing(border-box)
24
27
  @if $value1
25
28
  @for $i from 1 through length($value1)
@@ -18,8 +18,9 @@ $rgbapng_px_size: 8 !default
18
18
  // layout
19
19
  ////////////////
20
20
 
21
- $wrapper-max-width: 768px
22
- $wrapper-horizontal-padding: 16px
21
+ $wrapper-class-name: wrapper !default
22
+ $wrapper-max-width: 1100px !default
23
+ $wrapper-horizontal-padding: 16px !default
23
24
 
24
25
  /////////////////
25
26
  // selection
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Oulu
3
- VERSION = "0.5.16"
3
+ VERSION = "0.5.20"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-oulu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.16
4
+ version: 0.5.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - machida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-05 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -221,6 +221,7 @@ files:
221
221
  - assets/stylesheets/helper/_click-actions.css.sass
222
222
  - assets/stylesheets/helper/_fade-actions.css.sass
223
223
  - assets/stylesheets/helper/_margin-padding.css.sass
224
+ - assets/stylesheets/helper/_no-gutter-grids.css.sass
224
225
  - assets/stylesheets/helper/_typoglaphy.css.sass
225
226
  - assets/stylesheets/options/amazlet/_amazlet.css.sass
226
227
  - assets/stylesheets/options/glitch/_glitch.css.sass
@@ -243,6 +244,7 @@ files:
243
244
  - assets/stylesheets/options/web-fonts/_tauri.css.sass
244
245
  - assets/stylesheets/options/web-fonts/_ubuntu-mono.css.sass
245
246
  - assets/stylesheets/options/web-fonts/_ubuntu.css.sass
247
+ - assets/stylesheets/settings/functions/_animation.css.sass
246
248
  - assets/stylesheets/settings/functions/_background.css.sass
247
249
  - assets/stylesheets/settings/functions/_bool.css.sass
248
250
  - assets/stylesheets/settings/functions/_border.css.sass
@@ -265,18 +267,22 @@ files:
265
267
  - assets/stylesheets/settings/mixins/_basic-font.css.sass
266
268
  - assets/stylesheets/settings/mixins/_block.css.sass
267
269
  - assets/stylesheets/settings/mixins/_border.css.sass
270
+ - assets/stylesheets/settings/mixins/_button.css.sass
268
271
  - assets/stylesheets/settings/mixins/_color.css.sass
269
272
  - assets/stylesheets/settings/mixins/_filters.css.sass
270
273
  - assets/stylesheets/settings/mixins/_form.css.sass
271
274
  - assets/stylesheets/settings/mixins/_grids.css.sass
272
275
  - assets/stylesheets/settings/mixins/_html5-input-types.scss
273
276
  - assets/stylesheets/settings/mixins/_ie-hacks.css.sass
277
+ - assets/stylesheets/settings/mixins/_image.css.sass
278
+ - assets/stylesheets/settings/mixins/_line.css.sass
274
279
  - assets/stylesheets/settings/mixins/_link.css.sass
275
280
  - assets/stylesheets/settings/mixins/_list.css.sass
276
281
  - assets/stylesheets/settings/mixins/_margin-padding.css.sass
277
282
  - assets/stylesheets/settings/mixins/_overlay.css.sass
278
283
  - assets/stylesheets/settings/mixins/_positions.css.sass
279
284
  - assets/stylesheets/settings/mixins/_rem.css.sass
285
+ - assets/stylesheets/settings/mixins/_reset.css.sass
280
286
  - assets/stylesheets/settings/mixins/_resets.css.sass
281
287
  - assets/stylesheets/settings/mixins/_responsive-utilities.css.sass
282
288
  - assets/stylesheets/settings/mixins/_sassmatic.css.sass