oulu 0.12.2 → 0.12.3

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: 78c4ad66bac400f34e7d6c83bfd611549d61e49f
4
- data.tar.gz: 467bbbed280d3b4b2fcf985268d843c6e01f59ac
3
+ metadata.gz: eee1b0784f86c82ec69467bab7169a71cab30e4f
4
+ data.tar.gz: 8cfb2238d0d88e8433dd106cfe5ea4d8c0db1ee9
5
5
  SHA512:
6
- metadata.gz: a3470c208741550a86a7c2d584409e221ee4a49d230369e13e4ed3bacd544c75a66c2ed267e60cbaf55f77bc9ac8d76cb87d98b0035832c5a5dc33fe75a0c3ee
7
- data.tar.gz: b3fe8cc6132a4fc9c967872a28ee8a369c73cdd96e8ad3099186bde5b8a4459420ca529ef6984fdc38cc29479a530e915e0253d319f5019b11636f39584c91a8
6
+ metadata.gz: 89bd4febe99cf0c9e9125c3611ff83275dbeba6b1fe4f67df0bbf43fc5b2703614e8338c999f7cdbede484dc8f51acdee59669572da70ceadf981d54489f11c8
7
+ data.tar.gz: 173a6812baec6ea87b69f10ffb8f4ad8f7ed66a15d55e32559a60ea73764acc1baeea6fadb63da58b518d827d5e095eb1c61938fb97e479480fec26b312281ca
@@ -8,6 +8,8 @@
8
8
  @if list($value)
9
9
  @if string(nth($value, 1)) and not str-index(nth($value, 1), '/')
10
10
  @return true
11
+ @else if string(nth($value, 1)) and not str-index(nth($value, 1), '\/')
12
+ @return true
11
13
  @else if number(nth($value, 1))
12
14
  @return true
13
15
  @else
@@ -16,27 +18,38 @@
16
18
  @return null
17
19
 
18
20
  @function background_size($value)
19
- @if string($value)
20
- @if $value == 'auto' or $value == 'contain' or $value == 'cover'
21
- @return unquote('/') $value
22
- @else
23
- @return null
21
+ @if $value == auto or $value == contain or $value == cover
22
+ @return true
24
23
  @else if list($value)
25
- @if string(nth($value, 1)) and str-index(nth($value, 1), '/')
26
- @return $value
24
+ @if string(nth($value, 1)) and str-index(nth($value, 1), '\/')
25
+ @return ture
26
+ @else if string(nth($value, 1)) and str-index(nth($value, 1), '/')
27
+ @return ture
27
28
  @else
28
29
  @return null
29
30
  @else
30
31
  @return null
31
32
 
33
+ @function background_size_value($value)
34
+ @if background_size($value)
35
+ @if list($value)
36
+ @if string(nth($value, 1)) and str-index(nth($value, 1), '\/')
37
+ @return unquote(str-replace(nth($value, 1), '\\/', '/') + ' ' + nth($value, 2))
38
+ @else
39
+ @return unquote('/' + $value)
40
+ @else
41
+ @return unquote('/' + $value)
42
+ @else
43
+ @return null
44
+
32
45
  @function background_repeat($value)
33
- @if $value == 'no-repeat' or $value == 'repeat' or $value == 'repeat-x' or $value == 'repeat-y'
46
+ @if $value == no-repeat or $value == repeat or $value == repeat-x or $value == repeat-y
34
47
  @return true
35
48
  @else
36
49
  @return null
37
50
 
38
51
  @function background_attachment($value)
39
- @if $value == 'fixed' or $value == 'scroll'
52
+ @if $value == fixed or $value == scroll
40
53
  @return true
41
54
  @else
42
55
  @return null
@@ -57,10 +70,7 @@
57
70
  @return null
58
71
 
59
72
  @function background_clip($value)
60
- @if string($value)
61
- @if $value == 'border' or $value == 'padding' or $value == 'content' or $value == 'text'
62
- @return true
63
- @else
64
- @return null
73
+ @if $value == \"border" or $value == \"padding" or $value == \"content" or $value == \"text"
74
+ @return true
65
75
  @else
66
76
  @return null
@@ -24,7 +24,7 @@
24
24
  @else if background_attachment($property)
25
25
  $background-attachment: $property
26
26
  @else if background_size($property)
27
- $background-size: background_size($property)
27
+ $background-size: background_size_value($property)
28
28
  @else if background_clip($property)
29
29
  $background-clip: $property
30
30
  @if background-size != () and $background-position == ()
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
data/lib/oulu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oulu
2
- VERSION = "0.12.2"
2
+ VERSION = "0.12.3"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oulu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - machida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-13 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor