oulu-rails 0.5.19 → 0.5.22

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: 791e4199f387d13a2d41e061a42f4a745262ecf2
4
- data.tar.gz: 0efc6a8d17928cfaa3093e744f5802070a5340e5
3
+ metadata.gz: a41503a22bfaa91c20a0822774a841b66bcc0d3f
4
+ data.tar.gz: 17b8f2144bd3c27d56cdebb3be47778aa18cd246
5
5
  SHA512:
6
- metadata.gz: fc8ec2b7c5ff847ba85eb017fb97440866888feec86c0cf251b7f110118845c2b5a90f4a49b026a0af3cce1a03d0c0b909b8ef241ac248947d70357f9eceb062
7
- data.tar.gz: 2815c292046ab30352e2d67392f60b95934d5f8f743cb51186b71893aadc504dbb8f761580d768b94aecb149883fbab350118ca3897cae87023b6bdd4079d6b0
6
+ metadata.gz: 58c59c6439d5143affc3770a3eaac125e20545c581714a78a67366b90b4672719f094aef77e400c96481358776323dc5c2355e47719f74cf23291db7920ab2af
7
+ data.tar.gz: 607c29b656b466f90cc973ca92a985c0707d7fe5a27c6b08e3885635bc734715212d6db061e98780825693db0823f42d31f90991c677e920890dc46f4a30442c
data/README.md CHANGED
@@ -1,23 +1,25 @@
1
- # oulu-rails
1
+ oulu-rails
2
+ ==========
2
3
 
3
4
  sass tools for machida.
4
5
 
5
- ## Docs
6
+ Docs
7
+ ----
6
8
 
7
- - [index](/docs/index.md)
9
+ - [index](/docs/index.md)
8
10
 
11
+ Installation
12
+ ------------
9
13
 
10
- ## Installation
14
+ - Add `source 'https://rails-assets.org'` at Gemfile.
15
+ - `$ bundle`
16
+ - Add `@import oulu` at app/assets/stylesheets/application.css.sass
11
17
 
12
- - Add `source 'https://rails-assets.org'` at Gemfile.
13
- - `$ bundle`
14
- - Add `@import oulu` at app/assets/stylesheets/application.css.sass
18
+ Contributing
19
+ ------------
15
20
 
16
-
17
- ## Contributing
18
-
19
- 1. Fork it
20
- 2. Create your feature branch (`git checkout -b my-new-feature`)
21
- 3. Commit your changes (`git commit -am 'Added some feature'`)
22
- 4. Push to the branch (`git push origin my-new-feature`)
23
- 5. Create new Pull Request
21
+ 1. Fork it
22
+ 2. Create your feature branch (`git checkout -b my-new-feature`\)
23
+ 3. Commit your changes (`git commit -am 'Added some feature'`\)
24
+ 4. Push to the branch (`git push origin my-new-feature`\)
25
+ 5. Create new Pull Request
@@ -1,3 +1,3 @@
1
1
  module OuluRails
2
- VERSION = "0.5.19"
2
+ VERSION = "0.5.22"
3
3
  end
@@ -1,13 +1,13 @@
1
1
  @function time($value)
2
2
  @if unit_number($value) and unit($value) == 's'
3
- @return ture
3
+ @return true
4
4
  @else
5
5
  @return null
6
6
 
7
7
  @function timing_function($value)
8
8
  @if string($value)
9
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 ture
10
+ @return true
11
11
  @else
12
12
  @return null
13
13
  @else
@@ -35,11 +35,11 @@
35
35
  @function transition-property($value)
36
36
  @if string($value)
37
37
  @if not transition_timing_function($value) or not transition_duration($value) or not transition_delay($value)
38
- @return ture
38
+ @return true
39
39
  @else
40
40
  @return null
41
41
  @else if list($value)
42
- @return ture
42
+ @return true
43
43
  @else
44
44
  @return null
45
45
 
@@ -58,33 +58,33 @@
58
58
 
59
59
  @function animation_iteration_count($value)
60
60
  @if unitless_number($value) or (string($value) and $value == 'infinite')
61
- @return ture
61
+ @return true
62
62
  @else
63
63
  @return null
64
64
 
65
65
  @function animation_direction($value)
66
66
  @if string($value) and ($value == 'normal' or $value == 'alternate')
67
- @return ture
67
+ @return true
68
68
  @else
69
69
  @return null
70
70
 
71
71
  @function animation_fill_mode($value)
72
72
  @if string($value) and ($value == 'nonel' or $value == 'forwards' or $value == 'backwards' or $value == 'both')
73
- @return ture
73
+ @return true
74
74
  @else
75
75
  @return null
76
76
 
77
77
  @function animation_play_state($value)
78
78
  @if string($value) and ($value == 'running' or $value == 'paused')
79
- @return ture
79
+ @return true
80
80
  @else
81
81
  @return null
82
82
 
83
83
  @function animation_name($value)
84
84
  @if string($value)
85
- @if not animation_timing_function($value) or not animation_duration($value) or not animation_iteration_count($value) or not animation_direction($value) or not animation_fill_mode($value) or not animation_play_state($value)
86
- @return ture
87
- @else
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)
88
86
  @return null
87
+ @else
88
+ @return true
89
89
  @else
90
90
  @return null
@@ -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,56 +1,45 @@
1
- // どこでも transition が書ける設定
2
- =transition-basics($value)
3
- @if transition_duration($value)
4
- +transition-duration($value)
5
- @else if transition_timing_function($value)
6
- +transition-timing-function($value)
7
- @else if transition_delay($value)
8
- +transition-delay(transition_delay($value))
9
- @else if transition_property($value)
10
- +transition-property($value)
11
-
12
- =transition($value)
13
- @for $i from 1 through length($value)
14
- +transition-basics(nth($value, $i))
15
-
16
- // どこでも animation が書ける設定
17
- =animation-basics($value)
18
- @if animation_name($value)
19
- +animation-name($value)
20
- $animation-name: $value
21
- @else if animation_duration($value)
22
- +animation-duration($value)
23
- @else if animation_timing_function($value)
24
- +animation-timing-function($value)
25
- @else if animation_delay($value)
26
- +animation-delay(animation_delay($value))
27
- @else if animation_iteration_count($value)
28
- +animation-iteration-count($value)
29
- @else if animation_direction($value)
30
- +animation-direction($value)
31
- @else if animation_fill_mode($value)
32
- +animation-fill-mode($value)
33
- @else if animation_play_state($value)
34
- +animation-play-state($value)
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)
35
17
 
36
- =animations($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
37
- $list: $value1 $value2 $value3 $value4 $value5 $value6
38
- $added-animation-names: null
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: ()
39
28
  @each $value in $list
40
29
  @for $i from 1 through length($value)
41
- @if animation_name(nth($value, $i))
42
- // +animation-name(nth($value, $i))
43
- @else if animation_duration(nth($value, $i))
44
- // +animation-duration(nth($value, $i))
45
- @else if animation_timing_function(nth($value, $i))
46
- // +animation-timing-function(nth($value, $i))
47
- @else if animation_delay(nth($value, $i))
48
- // +animation-delay(animation_delay(nth($value, $i)))
49
- @else if animation_iteration_count(nth($value, $i))
50
- // +animation-iteration-count(nth($value, $i))
51
- @else if animation_direction(nth($value, $i))
52
- // +animation-direction(nth($value, $i))
53
- @else if animation_fill_mode(nth($value, $i))
54
- // +animation-fill-mode(nth($value, $i))
55
- @else if animation_play_state(nth($value, $i))
56
- // +animation-play-state(nth($value, $i))
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)
@@ -110,6 +110,8 @@ $break-points: $break-point-xs-namespace, $break-point-sm-namespace, $break-poin
110
110
  #{$column-namespace}#{$break-point}#{$column-offset-namespace}#{$i}
111
111
  +column-offset($i)
112
112
 
113
+ function
114
+
113
115
  =grid-columns($columns-gutter-width: $gutter-width, $grid-columns-row-class-name: '.row')
114
116
  #{$grid-columns-row-class-name}
115
117
  // カラムのマージン分だけ両サイドにネガティブマージンを取る
@@ -9,3 +9,6 @@
9
9
  font-size: inherit
10
10
  color: inherit
11
11
  box-sizing: content-box
12
+ &:active,
13
+ &:focus
14
+ outline: none
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.5.19
4
+ version: 0.5.22
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-25 00:00:00.000000000 Z
11
+ date: 2014-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-rails