oulu-rails 0.5.19 → 0.5.22
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 +4 -4
- data/README.md +17 -15
- data/lib/oulu-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/settings/functions/_animation.css.sass +11 -11
- data/vendor/assets/stylesheets/settings/functions/_length.css.sass +2 -2
- data/vendor/assets/stylesheets/settings/mixins/_animation.css.sass +42 -53
- data/vendor/assets/stylesheets/settings/mixins/_grids.css.sass +2 -0
- data/vendor/assets/stylesheets/settings/mixins/_reset.css.sass +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a41503a22bfaa91c20a0822774a841b66bcc0d3f
|
4
|
+
data.tar.gz: 17b8f2144bd3c27d56cdebb3be47778aa18cd246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c59c6439d5143affc3770a3eaac125e20545c581714a78a67366b90b4672719f094aef77e400c96481358776323dc5c2355e47719f74cf23291db7920ab2af
|
7
|
+
data.tar.gz: 607c29b656b466f90cc973ca92a985c0707d7fe5a27c6b08e3885635bc734715212d6db061e98780825693db0823f42d31f90991c677e920890dc46f4a30442c
|
data/README.md
CHANGED
@@ -1,23 +1,25 @@
|
|
1
|
-
|
1
|
+
oulu-rails
|
2
|
+
==========
|
2
3
|
|
3
4
|
sass tools for machida.
|
4
5
|
|
5
|
-
|
6
|
+
Docs
|
7
|
+
----
|
6
8
|
|
7
|
-
-
|
9
|
+
- [index](/docs/index.md)
|
8
10
|
|
11
|
+
Installation
|
12
|
+
------------
|
9
13
|
|
10
|
-
|
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
|
-
|
13
|
-
|
14
|
-
- Add `@import oulu` at app/assets/stylesheets/application.css.sass
|
18
|
+
Contributing
|
19
|
+
------------
|
15
20
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
data/lib/oulu-rails/version.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
@function time($value)
|
2
2
|
@if unit_number($value) and unit($value) == 's'
|
3
|
-
@return
|
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
|
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
|
38
|
+
@return true
|
39
39
|
@else
|
40
40
|
@return null
|
41
41
|
@else if list($value)
|
42
|
-
@return
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
11
|
+
@return true
|
12
12
|
@else
|
13
13
|
@return null
|
14
14
|
|
@@ -1,56 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
@
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
$
|
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
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
|
// カラムのマージン分だけ両サイドにネガティブマージンを取る
|
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.
|
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-
|
11
|
+
date: 2014-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass-rails
|