oulu-rails 0.7.1 → 0.7.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f1c93be9431f5462d4e20157fa35c3b0c8a5104
4
- data.tar.gz: d812a338c8cc9ad57f78f49f3c3849ae78e8bc62
3
+ metadata.gz: 922e23d43b6228f5a8194de080d3e0185014f7e7
4
+ data.tar.gz: 81c893903c14c2d1dd8c94f88877d33800d54a8a
5
5
  SHA512:
6
- metadata.gz: dc02cc17f7d94f2d8ddb6042aaf474e958b98e52ee628744186f506a9ed3bbfef92f0647c6e45973ac361c70ae709590128fc2f7364cf94142db30951a761404
7
- data.tar.gz: 56146d3acc15802ef3bad9ea225d731572a7eded3aa30bbd227b03b34fd08dc77fe153f29b8e9b331490301dbf9b0d8516c8acc7e6a4d3584fbfabc0dda45b9d
6
+ metadata.gz: 0e394db7a1a4eb8788a694f932b2dc78df62141e1b438cdc9fd8670f88c7807964c66a8c9af37488de60c1f91182058dc2439d45c9c4b44b9dd527ac035bf6ca
7
+ data.tar.gz: 99a5c97c34348f43e095a8f7fda6ec8e829650eb4a68d76d41070722d318a042dc13aa1f5595e70acaf76f70cf6976bd483c5ad13bef8e04f9f2ef93698cfb7b
@@ -1,3 +1,3 @@
1
1
  module OuluRails
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -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
  ////////////////
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oulu-rails
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-10 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: sass-rails
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.4.5
195
+ rubygems_version: 2.4.8
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: A mixin library for Sass.