middleman-oulu 0.7.1 → 0.7.2

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: 1c9d3bcb5c6f1e4d8e9a8832b9c73149db59cfe9
4
- data.tar.gz: d001f4bd9dbc64adb784e56f0beefeaa5e803ec8
3
+ metadata.gz: 01da387a6834d0b5b75d0e520bf60f159a1d4948
4
+ data.tar.gz: 33ff11ae07c8c7383642f3a432aeb64fea89bf91
5
5
  SHA512:
6
- metadata.gz: 153f0455829228f4af0ec547c0eade1782b1f8b7f3598e3d1a019ed3f5f04afab5229862d7a990a25242841b578c328d414809ae0b714026479f8bc6eef830e5
7
- data.tar.gz: ab7494ac8117864a4bb9924a6e7de7833b19baafae7f92404d1796263f7e9c8137cb64266264d88109bd146314e0afc15b75a90bb036b54c6ebf25c72260d985
6
+ metadata.gz: 52bd27caedbd786e2b88c2331a129af588a9852eba7557d24e935722db0e999b511c1437e0a5def94a5ebf292bc2a1b048b0aa6c0e685782734f7a354792b970
7
+ data.tar.gz: 9d2d21e41a5ec2f44c2c9f7f07f8fe59501e598a36bb6bdf293c9b18cb7f859ee61d916367a5fb4b98bc4d8a0888d5e22d0659f4c9b4d21cab5f760ce9754ea8
@@ -1,7 +1,7 @@
1
1
  body
2
2
  // layout
3
3
  .has-no-gutter-grids
4
- +gird(0)
4
+ +grid(0)
5
5
  .is-horizontal-center-block
6
6
  display: block
7
7
  +margin(horizontal, auto)
@@ -59,7 +59,7 @@ body
59
59
  +fixed(left 0, top 0)
60
60
  width: 100%
61
61
  .is-z-index-100
62
- +relative(100)
62
+ +position(relative, 100)
63
63
 
64
64
  // vertical-align
65
65
  .is-vertical-middle
@@ -48,10 +48,10 @@
48
48
  +rem('margin-left', $font-size/3)
49
49
  &.is-input-container
50
50
  padding: 0
51
- +relative
51
+ position: relative
52
52
  i,
53
53
  .is-button-icon
54
- +absolute(left $height/2, top 0)
54
+ +position(absolute, left $height/2, top 0)
55
55
  +rem('line-height', $height - ($border-width*2))
56
56
  input
57
57
  +padding(horizontal, ($height + if($font-size > 28, $font-size/4, $font-size/3)) $height/2)
@@ -1,10 +1,10 @@
1
1
  =waves-effect($color: black)
2
- +relative(1)
2
+ +position(relative, 1)
3
3
  overflow: hidden
4
4
  will-change: opacity, transform
5
5
  +transition(all .3s ease-out)
6
6
  .waves-ripple
7
- +absolute
7
+ position: absolute
8
8
  border-radius: 50%
9
9
  +block-size(20px)
10
10
  +rem('margin-top', -10px)
@@ -75,7 +75,7 @@
75
75
  border-radius: 0.2em
76
76
  vertical-align: bottom
77
77
  .waves-button-input
78
- +relative(1, top 0, left 0)
78
+ +position(relative, 1, top 0, left 0)
79
79
  .waves-circle
80
80
  text-align: center
81
81
  +size(2.5em)
@@ -8,13 +8,13 @@ $tabs-nav-current-font-color: red !default
8
8
 
9
9
  .tabs-nav__items
10
10
  font-size: 0
11
- +relative
11
+ position: relative
12
12
  &:before
13
13
  content: ""
14
14
  display: block
15
15
  +block-size(100% $tabs-nav-border-width)
16
16
  background-color: $tabs-nav-border-color
17
- +absolute(left 0, bottom 0)
17
+ +position(absolute, left 0, bottom 0)
18
18
  .tabs-nav__item
19
19
  +inline-block(bottom)
20
20
  +rem('margin-right', 8px)
@@ -27,12 +27,12 @@ $tabs-nav-current-font-color: red !default
27
27
  +text-block($tabs-nav-font-size round($tabs-nav-font-size*2.6), center $tabs-nav-font-color)
28
28
  +padding(horizontal, $tabs-nav-font-size*1.6)
29
29
  box-sizing: border-box
30
- +relative
30
+ position: relative
31
31
  &:before
32
32
  display: block
33
33
  +block-size(100% $tabs-nav-border-width)
34
34
  background-color: $tabs-nav-background-color
35
- +absolute(left 0, bottom 0)
35
+ +position(absolute, left 0, bottom 0)
36
36
  &.is-current
37
37
  color: $tabs-nav-current-font-color
38
38
  &:before
@@ -10,7 +10,7 @@
10
10
  clip: rect(random(100) + px, 9999px, random(100) + px, 0)
11
11
 
12
12
  =glitch($cl: white, $bg-col: black)
13
- +relative
13
+ position: relative
14
14
  overflow: hidden
15
15
  display: inline-block
16
16
  color: $cl
@@ -22,10 +22,10 @@
22
22
  overflow: hidden
23
23
  clip: rect(0, 900px, 0, 0)
24
24
  &:after
25
- +absolute(left 1px, top 0)
25
+ +position(absolute, left 1px, top 0)
26
26
  +rem('text-shadow', -1px 0 0 rgba(red, 0.4))
27
27
  +animation(noise-anim 2s infinite linear alternate-reverse)
28
28
  &:before
29
- +absolute(left -1px, top 0)
29
+ +position(absolute, left -1px, top 0)
30
30
  +rem('text-shadow', 1px 0 0 rgba(blue, 0.4))
31
31
  +animation(noise-anim-2 3s infinite linear alternate-reverse)
@@ -1,4 +1,4 @@
1
- =fa
1
+ =fa($icon: null)
2
2
  display: inline-block
3
3
  font-family: FontAwesome
4
4
  font-style: normal
@@ -6,12 +6,12 @@
6
6
  line-height: 1
7
7
  -webkit-font-smoothing: antialiased
8
8
  -moz-osx-font-smoothing: grayscale
9
+ content: "#{$icon}"
9
10
 
10
11
  =fa-icon($icon: '\f105', $size: 16px 12px, $options: null, $position1:null, $position2: null)
11
12
  &:before
12
- +fa
13
- content: "#{$icon}"
13
+ +fa($icon)
14
14
  @if $position1
15
- +absolute(if($position1, $position1, null), if($position2, $position2, null))
15
+ +position(absolute, if($position1, $position1, null), if($position2, $position2, null))
16
16
  @if $size
17
17
  +text-block($size, $options)
@@ -15,6 +15,8 @@
15
15
  display: block
16
16
  body
17
17
  line-height: 1
18
+ *
19
+ box-sizing: border-box
18
20
  ol, ul
19
21
  list-style: none
20
22
  blockquote, q
@@ -81,8 +81,8 @@
81
81
  [class^="col-"]
82
82
  box-sizing: border-box
83
83
 
84
- =gird($gutter-size)
84
+ =grid($gutter-size)
85
85
  &.row
86
86
  +margin(horizontal, $gutter-size/2 * -1)
87
- >[class^="col-"]
87
+ >*
88
88
  +padding(horizontal, $gutter-size/2)
@@ -7,14 +7,13 @@
7
7
  @if nth($list-style, $i) == "fa"
8
8
  list-style-type: none
9
9
  >li
10
- +relative
10
+ position: relative
11
11
  display: block
12
12
  +rem('padding-left', optional_nth($icon-position, 1) + optional_nth($icon-position, 3))
13
13
  &:before
14
- +fa
14
+ +fa(optional_nth($list-style, $i + 1))
15
15
  +text-block(optional_nth($icon-position, 1) optional_nth($icon-position, 1))
16
- content: '#{optional_nth($list-style, $i + 1)}'
17
- +absolute(left 0, top optional_nth($icon-position, 2))
16
+ +position(absolute, left 0, top optional_nth($icon-position, 2))
18
17
  @else if list_style_type(nth($list-style, $i))
19
18
  list-style-type: nth($list-style, $i)
20
19
  @else if list_style_position(nth($list-style, $i))
@@ -1,28 +1,33 @@
1
- =position-list($value1, $value2, $value3, $value4, $value5)
2
- $values: $value1 $value2 $value3 $value4 $value5
1
+ =position-list($value1, $value2, $value3, $value4, $value5, $value6)
2
+ $values: $value1 $value2 $value3 $value4 $value5 $value6
3
3
  @each $value in $values
4
4
  @if optional_nth($value, 2)
5
5
  +rem(nth($value, 1), nth($value, 2))
6
- @else
6
+ @else if unitless_number($value)
7
7
  z-index: nth($value, 1)
8
+ @else
9
+ position: $value
8
10
 
9
- =absolute($value1: null, $value2: null, $value3: null, $value4: null, $value5: null)
11
+ =absolute($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
10
12
  position: absolute
11
- +position-list($value1, $value2, $value3, $value4, $value5)
13
+ +position-list($value1, $value2, $value3, $value4, $value5, $value6)
12
14
 
13
- =fixed($value1: null, $value2: null, $value3: null, $value4: null, $value5: null)
15
+ =fixed($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
14
16
  position: fixed
15
- +position-list($value1, $value2, $value3, $value4, $value5)
17
+ +position-list($value1, $value2, $value3, $value4, $value5, $value6)
16
18
 
17
- =relative($value1: null, $value2: null, $value3: null, $value4: null, $value5: null)
19
+ =relative($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
18
20
  position: relative
19
- +position-list($value1, $value2, $value3, $value4, $value5)
21
+ +position-list($value1, $value2, $value3, $value4, $value5, $value6)
22
+
23
+ =position($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
24
+ +position-list($value1, $value2, $value3, $value4, $value5, $value6)
20
25
 
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)
26
+ =top($position, $z-index: null)
27
+ +relative(top $position, $z-index)
28
+ =bottom($position, $z-index: null)
29
+ +relative(bottom $position, $z-index)
30
+ =left($position, $z-index: null)
31
+ +relative(left $position, $z-index)
32
+ =right($position, $z-index: null)
33
+ +relative(right $position, $z-index)
@@ -12,7 +12,7 @@ $baseline-px: 10px !default
12
12
  font-size: strip_unit($baseline-px / 10) * 1rem
13
13
 
14
14
  =rem($property, $px-values, $important: null)
15
- @if px($px-values) or list($px-values)
15
+ @if $rem == true and px($px-values) or list($px-values)
16
16
  @if $property == "font-size" and $px-values < 10px
17
17
  // 9px以下のfont-sizeを使う設定(IE8不可)
18
18
  +base-font-size
@@ -1,3 +1,9 @@
1
+ /////////////////
2
+ // rem
3
+ ////////////////
4
+
5
+ $rem: false
6
+
1
7
  /////////////////
2
8
  // positions
3
9
  ////////////////
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Oulu
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - machida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-11 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.4.5
228
+ rubygems_version: 2.4.8
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: My assets gem for middleman.