middleman-oulu 0.5.15 → 0.5.16

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: 9a0d8b2f29947eec860b2ff8b47e25c87d524c0b
4
- data.tar.gz: 0ef88be79fcdbacbacff3c059b71d06d40b71c01
3
+ metadata.gz: 51b2a57a3b098e1d3e5d110d1bb9852bca678966
4
+ data.tar.gz: 64a059b13ceda8f284c7716f29522e387325e055
5
5
  SHA512:
6
- metadata.gz: 61f015dbb045f7354dae1d9ad53a0c7da49f502b068dba8d31372e6040881c6ea94bba85aa77df79150e893f977ec78d1d869c15699be140ea5c627463f75b70
7
- data.tar.gz: c1128e7e6bef1cbe9a5c7da177a8bf3bb9c346f7e836e81b2062e7e91f0810ee7bca7ec686f75f32ddfb70d28c6cf2eb5ea4ab5aec5c673d5a350582f0ea9d35
6
+ metadata.gz: e22b7ca62ce39b495cc460b9dbd5149f3c67b02666a3b883d5b658c4ddab2b0fa925db2e51653e0863275bd958a6b0f96161ac6cc7ddf758d42871a180c5ebd5
7
+ data.tar.gz: d360be28cac3111a95beb7c077c410ab685804b040d04c12639d588b861bdf729e9a6d8e5f35c672e01853d287312daa2ab13691d83c1c405fb6f8cd9ac2b938
@@ -68,8 +68,9 @@
68
68
  @import settings/mixins/grids
69
69
  @import settings/mixins/responsive-utilities
70
70
  @import settings/mixins/background
71
- @import settings/mixins/lines
72
- @import settings/mixins/button-base
71
+ @import settings/mixins/line
72
+ @import settings/mixins/button
73
+ @import settings/mixins/image
73
74
 
74
75
  // http://sassmatic.com/
75
76
  // @import settings/mixins/sassmatic
@@ -40,6 +40,12 @@
40
40
  @if number($number)
41
41
  @return $number / ($number * 0 + 1)
42
42
 
43
+ @function unit_number($value)
44
+ @if number($value) and not unitless($value)
45
+ @return true
46
+ @else
47
+ @return null
48
+
43
49
  @function unitless_number($value)
44
50
  @if number($value) and unitless($value)
45
51
  @return true
@@ -4,6 +4,12 @@
4
4
  @else
5
5
  @return null
6
6
 
7
+ @function vertical_align($value)
8
+ @if $value == "baseline" or $value == "top" or $value == "middle" or $value == "bottom" or $value == "text-top" or $value == "text-bottom" or $value == "super" or $value == "sub" or $value == "sub"
9
+ @return true
10
+ @else
11
+ @return null
12
+
7
13
  @function font_weight($value)
8
14
  @if $value == "bold" or $value == "normal"
9
15
  @return true
@@ -32,3 +38,9 @@
32
38
  @return true
33
39
  @else
34
40
  @return null
41
+
42
+ @function white_space($value)
43
+ @if $value == "normal" or $value == "pre" or $value == "nowrap"
44
+ @return true
45
+ @else
46
+ @return null
@@ -13,7 +13,6 @@
13
13
  $tale-position-manual-value2: optional_nth($tale-position-manual, 4)
14
14
  //$tale-border
15
15
  $tale-border-color: optional_nth($tale-border, 1)
16
- $tale-border-width: optional_nth($tale-border, 2, 0)
17
16
  &:#{if($tale-border, after, before)}
18
17
  position: absolute
19
18
  content: ""
@@ -24,14 +23,11 @@
24
23
  +border(reverse($tale-direction), $tale-color)
25
24
  @if position_vertical($tale-direction)
26
25
  // 矢印の向きが上下
26
+ +rem($tale-direction, $tale-height*2*-1 - if($tale-border, 0, $parent-boder-width))
27
27
  @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_vertical($tale-position-manual-direction1))
28
28
  // manual が 一つだけ指定 上下方向 の場合
29
29
  left: 50%
30
30
  +rem('margin-left', $tale-width*-1)
31
- @if $tale-direction == top
32
- +rem($tale-direction, $tale-height*-1*2 + $parent-boder-width)
33
- @else
34
- +rem($tale-direction, $tale-height*-1*2 + $parent-boder-width*2)
35
31
  @if $tale-position-manual
36
32
  $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
37
33
  @each $key, $value in $tale-position-manuals
@@ -46,11 +42,11 @@
46
42
  +rem($key, $value - if($tale-border, 0, $parent-boder-width))
47
43
  @if position_horizontal($tale-direction)
48
44
  // 矢印の向きが左右
45
+ +rem($tale-direction, $tale-width*2*-1 - if($tale-border, 0, $parent-boder-width))
49
46
  @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_horizontal($tale-position-manual-direction1))
50
47
  // manual が 一つだけ指定 上下方向 の場合
51
48
  top: 50%
52
49
  +rem('margin-top', $tale-height*-1)
53
- +rem($tale-direction, $tale-width*-1*2 - if($tale-border, 0, $parent-boder-width))
54
50
  @if $tale-position-manual
55
51
  $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
56
52
  @each $key, $value in $tale-position-manuals
@@ -67,51 +63,50 @@
67
63
  @if $tale-border
68
64
  // tale border があるとき - 以下 tale-border の設定
69
65
  &:before
66
+ $tale-border-width: $tale-width + round($parent-boder-width*1.5)
67
+ $tale-border-height: $tale-height + round($parent-boder-width*1.5)
70
68
  position: absolute
71
69
  content: ""
72
70
  display: block
73
71
  +border(all, solid transparent)
74
- +border(horizontal, $tale-width + $tale-border-width)
75
- +border(vertical, $tale-height + $tale-border-width)
72
+ +border(horizontal, $tale-border-width)
73
+ +border(vertical, $tale-border-height)
76
74
  +border(reverse($tale-direction), $tale-border-color)
77
75
  @if position_vertical($tale-direction)
78
76
  // 矢印の向きが上下
77
+ +rem($tale-direction, $tale-border-height*2*-1)
79
78
  @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_vertical($tale-position-manual-direction1))
80
- // manual 一つだけ指定 上下方向 の場合
79
+ // manual なし もしくは 一つだけ指定 上下方向 の場合
81
80
  left: 50%
82
- +rem('margin-left', $tale-width*-1 - $tale-border-width)
83
- @if $tale-direction == top
84
- +rem($tale-direction, $tale-height*-1*2 - $tale-border-width*1.5)
85
- @else
86
- +rem($tale-direction, $tale-height*-1*2 - $tale-border-width)
81
+ +rem('margin-left', $tale-border-width*-1)
87
82
  @if $tale-position-manual
88
83
  $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
89
84
  @each $key, $value in $tale-position-manuals
90
85
  @if position_horizontal($key)
91
86
  // manual が left or right の場合
92
- +rem($key, $value - $tale-border-width)
87
+ +rem($key, $value - $parent-boder-width*1.5)
93
88
  @else if $tale-direction == $key
94
89
  // 矢印の向きと manual で指定する方向が同じ場合
95
- +rem($key, $value - $tale-height - $tale-border-width*2)
90
+ +rem($key, $value - $tale-height - $parent-boder-width*3)
96
91
  @else if reverse($tale-direction) == $key
97
92
  // 上向き矢印 で manual が bottom の場合 or 下向き矢印 で manual が top の場合
98
93
  +rem($key, $value)
99
94
  @if position_horizontal($tale-direction)
100
95
  // 矢印の向きが左右
96
+ +rem($tale-direction, $tale-border-width*2*-1)
101
97
  @if not $tale-position-manual or (length($tale-position-manual) == 2 and position_horizontal($tale-position-manual-direction1))
102
- // manual 一つだけ指定 上下方向 の場合
98
+ // manual なし もしくは 一つだけ指定 左右方向 の場合
103
99
  top: 50%
104
- +rem('margin-top', $tale-height*-1 - $tale-border-width)
105
- +rem($tale-direction, $tale-width*-1*2 - $tale-border-width*2)
100
+ +rem('margin-top', $tale-border-height*-1)
106
101
  @if $tale-position-manual
107
102
  $tale-position-manuals: ($tale-position-manual-direction1: $tale-position-manual-value1, $tale-position-manual-direction2: $tale-position-manual-value2)
108
103
  @each $key, $value in $tale-position-manuals
109
104
  @if position_vertical($key)
110
105
  // manual が top or bottom の場合
111
- +rem($key, $value - $tale-border-width)
106
+ +rem($key, $value - $parent-boder-width*1.5)
112
107
  @else if $tale-direction == $key
113
108
  // 矢印の向きと manual で指定する方向が同じ場合
114
- +rem($key, $value - $tale-width - $tale-border-width*2)
109
+ +rem($key, $value - $tale-width - $parent-boder-width*3)
115
110
  @else if reverse($tale-direction) == $key
116
111
  // 左向き矢印 で manual が right の場合 or 右向き矢印 で manual が left の場合
117
112
  +rem($key, $value)
@@ -1,14 +1,30 @@
1
- =table($margin-bottom: 24px, $table-scroll: null)
2
- min-width: 100%
3
- +rem('margin-bottom', $margin-bottom)
4
- @if $table-scroll
5
- min-width: 100%
6
- @else
7
- width: 100%
8
-
9
- =table-cell($vertical-align: middle, $padding: 8px 12px, $is-nowrap: null)
1
+ =table-cell-assign($value)
2
+ $padding: if(list($value), if(unit_number(nth($value, 1)), $value, null), if(unit_number($value), $value, null))
3
+ white-space: if(white_space($value), $value, null)
4
+ background-color: if(color($value), $value, null)
5
+ vertical-align: if(vertical_align($value), $value, null)
10
6
  +rem('padding', $padding)
11
- vertical-align: $vertical-align
7
+
8
+ // +table-row($white #eeeeee, (bottom, solid 1px black))
9
+ =table-row($value1, $value2)
10
+ @if $value1
11
+ @if list($value1)
12
+ &:nth-child(odd)
13
+ background-color: nth($value1, 1)
14
+ &:nth-child(even)
15
+ background-color: nth($value1, 2)
16
+ @else if color($value1)
17
+ background-color: nth($value1, 1)
18
+ @if $value2
19
+ +border(nth($value2, 1), nth($value2, 2))
20
+
21
+ // +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)
12
23
  +box-sizing(border-box)
13
- @if $is-nowrap
14
- white-space: nowrap
24
+ @if $value1
25
+ @for $i from 1 through length($value1)
26
+ +table-cell-assign(nth($value1, $i))
27
+ @if $value2
28
+ +text-block(nth($value2, 1), optional_nth($value2, 2, false))
29
+ @if $value3
30
+ +border(nth($value3, 1), nth($value3, 2))
@@ -3,6 +3,7 @@
3
3
  font-weight: if(font_weight($value), $value, null)
4
4
  text-align: if(text_align($value), $value, null)
5
5
  color: if(color($value), $value, null)
6
+ white-space: if(white_space($value), $value, null)
6
7
  @if px($value)
7
8
  +top($value, null)
8
9
 
@@ -18,9 +18,8 @@ $rgbapng_px_size: 8 !default
18
18
  // layout
19
19
  ////////////////
20
20
 
21
- $wrapper-class-name: wrapper !default
22
- $wrapper-max-width: 1100px !default
23
- $wrapper-horizontal-padding: 16px !default
21
+ $wrapper-max-width: 768px
22
+ $wrapper-horizontal-padding: 16px
24
23
 
25
24
  /////////////////
26
25
  // selection
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Oulu
3
- VERSION = "0.5.15"
3
+ VERSION = "0.5.16"
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.15
4
+ version: 0.5.16
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-02 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -265,14 +265,12 @@ files:
265
265
  - assets/stylesheets/settings/mixins/_basic-font.css.sass
266
266
  - assets/stylesheets/settings/mixins/_block.css.sass
267
267
  - assets/stylesheets/settings/mixins/_border.css.sass
268
- - assets/stylesheets/settings/mixins/_button-base.css.sass
269
268
  - assets/stylesheets/settings/mixins/_color.css.sass
270
269
  - assets/stylesheets/settings/mixins/_filters.css.sass
271
270
  - assets/stylesheets/settings/mixins/_form.css.sass
272
271
  - assets/stylesheets/settings/mixins/_grids.css.sass
273
272
  - assets/stylesheets/settings/mixins/_html5-input-types.scss
274
273
  - assets/stylesheets/settings/mixins/_ie-hacks.css.sass
275
- - assets/stylesheets/settings/mixins/_lines.css.sass
276
274
  - assets/stylesheets/settings/mixins/_link.css.sass
277
275
  - assets/stylesheets/settings/mixins/_list.css.sass
278
276
  - assets/stylesheets/settings/mixins/_margin-padding.css.sass
@@ -1,27 +0,0 @@
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,18 +0,0 @@
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)