oulu-rails 0.5.7 → 0.5.8

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: 7f4cbeda3274d8fbb51eb7b83388271864a91765
4
- data.tar.gz: aa2a7ae32edf4c599c79f5c6ed8238252b9629a4
3
+ metadata.gz: 72b2b6d73e0b993646a3339c1a62a25ecd7f3319
4
+ data.tar.gz: a9e457da1913f9dbd3e7bd9ddcaa73413cb0f30a
5
5
  SHA512:
6
- metadata.gz: fabd64236291cf3830f8aa311eaa782059c812bba759205b7b0cf55448303a1516d347fb3f2709f875f92e5931897c205809b379d35b52b38774b121faa80879
7
- data.tar.gz: a8e07e7f5bf4a6259c8b833549e8fbe53367c6616902e7839108e5147509b94b2ef382721de068868d9c107f44e9b7041a6d35f74ad1bdc38d501954084534f2
6
+ metadata.gz: 5ef10eccbde6368a667f5395141cf3516504c928243be07c7fe1177f2894bdda12a93ebb5a1bc70f6b627578ce9ac9cf8cf458bc38d85897044cb4fb5fb8ef2b
7
+ data.tar.gz: 033407c0aee65550a8cce1aad9759b8e948eac69031cc1c07ff8c1cf988965b420c69d99494fcff34fbef684d1a7df21d85d7786c3a75e8376df0b1086e4dc1d
@@ -1,3 +1,3 @@
1
1
  module OuluRails
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.8"
3
3
  end
@@ -22,7 +22,7 @@
22
22
  @if string($value)
23
23
  @if $value == 'auto' or $value == 'contain' or $value == 'cover'
24
24
  @return true
25
- @else if str-slice($value, 2)== 'auto' or $value == 'contain' or $value == 'cover'
25
+ @else if str-slice($value, 2) == 'auto' or $value == 'contain' or $value == 'cover'
26
26
  @return true
27
27
  @else
28
28
  @return null
@@ -36,11 +36,8 @@
36
36
  @return null
37
37
 
38
38
  @function background_repeat($value)
39
- @if string($value)
40
- @if $value == 'no-repeat' or $value == 'repeat' or $value == 'repeat-x' or $value == 'repeat-y'
41
- @return true
42
- @else
43
- @return null
39
+ @if $value == 'no-repeat' or $value == 'repeat' or $value == 'repeat-x' or $value == 'repeat-y'
40
+ @return true
44
41
  @else
45
42
  @return null
46
43
 
@@ -51,10 +48,7 @@
51
48
  @return null
52
49
 
53
50
  @function background-image($value)
54
- @if string($value)
55
- @if image($value)
56
- @return true
57
- @else
58
- @return null
51
+ @if image($value)
52
+ @return true
59
53
  @else
60
54
  @return null
@@ -48,12 +48,12 @@ $ruma-threshold: 100 / pi() !default
48
48
  @return null
49
49
 
50
50
  @function luma_contrast_color($color)
51
- $bright-color: #ffffff !default
52
- $dark-color: #000000 !default
53
- @if luma_contrast($color) == bright
54
- @return $bright-color
51
+ $luma-contrast-bright-color: #000000 !default
52
+ $luma-contrast-dark-color: #ffffff !default
53
+ @if luma_which($color) == bright
54
+ @return $luma-contrast-bright-color
55
55
  @else
56
- @return $dark-color
56
+ @return $luma-contrast-dark-color
57
57
 
58
58
  @function luma_add_contrast($background-color, $candidate-color)
59
59
  @if luma_contrast($background-color, $candidate-color)
@@ -1,8 +1,10 @@
1
1
  @function image($value)
2
2
  @if string($value)
3
- @if number(str-index($value, '.jpg')) or number(str-index($value, '.png')) or number(str-index($value, '.gif')) or number(str-index($value, '.svg'))
4
- @return true
5
- @else
6
- @return null
3
+ $image-extensions: '.jpg' '.jpeg' '.gif' '.png' '.tiff' '.tif'
4
+ @each $image-extension in $image-extensions
5
+ @if number(str-index(to-lower-case($value), if'.jpg')) or number(str-index(to-lower-case($value), '.jpeg')) or number(str-index(to-lower-case($value), '.gif')) or number(str-index(to-lower-case($value), '.png')) or number(str-index(to-lower-case($value), '.tiff')) or number(str-index(to-lower-case($value), '.tif')) or number(str-index(to-lower-case($value), '.bmp')) or number(str-index(to-lower-case($value), '.pct')) or number(str-index(to-lower-case($value), '.jpe')) or number(str-index(to-lower-case($value), '.jfif')) or number(str-index(to-lower-case($value), '.dib'))
6
+ @return true
7
+ @else
8
+ @return null
7
9
  @else
8
10
  @return null
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.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - machida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-11 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-rails
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- description: Sass tools for machida
139
+ description: A mixin library for Sass.
140
140
  email:
141
141
  - machida@fjord.jp
142
142
  executables: []
@@ -335,7 +335,7 @@ files:
335
335
  - vendor/assets/stylesheets/settings/mixins/_tables.css.sass
336
336
  - vendor/assets/stylesheets/settings/mixins/_text.css.sass
337
337
  - vendor/assets/stylesheets/settings/variables/_default.css.sass
338
- homepage: http://fjord.jp
338
+ homepage: http://oulu.github.io/
339
339
  licenses: []
340
340
  metadata: {}
341
341
  post_install_message:
@@ -357,6 +357,6 @@ rubyforge_project:
357
357
  rubygems_version: 2.4.3
358
358
  signing_key:
359
359
  specification_version: 4
360
- summary: Sass tools for machida
360
+ summary: A mixin library for Sass.
361
361
  test_files: []
362
362
  has_rdoc: