oulu 0.12.35 → 0.12.36

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: ec123016a8cfaad0642cfe8c9b56e702a7976d7f
4
- data.tar.gz: 139b902a69c40d951acc5ec9b63727e58d67ba6c
3
+ metadata.gz: 417afcdc21a2560080209d2c2791543972cb7cfc
4
+ data.tar.gz: eeaabf30c7744c23c512034bb9e00d4e651f9281
5
5
  SHA512:
6
- metadata.gz: 2d79aa74080c81e0ceba9be02876a774582c7fc96f79f3fa4af3b210741bc8f98c1464d2386bc000a5564df8866e15aa9f336a2877438cab215fa55a33c725fc
7
- data.tar.gz: 9ae36ffdc4d4a1c87680b37eff4bdd79a85d5b1813b89c0723caee1fb6b9612d87da87155877517d37efb6ddcd2e2823eb340319833cc9b9ad71717079b6e3d1
6
+ metadata.gz: 9717b8eb4e745e2d52869cc409862768b9898e08957b18aa3a2b468a6c7f67f8f5725b1e57b72c770e978b9b12d9fd117272c1f9e0b8ba11815ae3a680591149
7
+ data.tar.gz: fcca8d5dd69ecaca7e163dc266917d06c19edc17a0f7122fa686e850e3aca7bfd13cc0661e976f52f6d11f9d98982d55ab4d554205c6f5e13c3f06c6c21e0b12
@@ -28,6 +28,34 @@
28
28
  @else
29
29
  @warn "`#{$width}` is not a valid length for the `$width` parameter in the `size` mixin."
30
30
 
31
+ =max-size($value)
32
+ $width: nth($value, 1)
33
+ $height: $width
34
+ @if length($value) > 1
35
+ $height: nth($value, 2)
36
+ @if is-size($height)
37
+ max-height: $height
38
+ @else
39
+ @warn "`#{$height}` is not a valid length for the `$height` parameter in the `size` mixin."
40
+ @if is-size($width)
41
+ max-width: $width
42
+ @else
43
+ @warn "`#{$width}` is not a valid length for the `$width` parameter in the `size` mixin."
44
+
45
+ =min-size($value)
46
+ $width: nth($value, 1)
47
+ $height: $width
48
+ @if length($value) > 1
49
+ $height: nth($value, 2)
50
+ @if is-size($height)
51
+ min-height: $height
52
+ @else
53
+ @warn "`#{$height}` is not a valid length for the `$height` parameter in the `size` mixin."
54
+ @if is-size($width)
55
+ min-width: $width
56
+ @else
57
+ @warn "`#{$width}` is not a valid length for the `$width` parameter in the `size` mixin."
58
+
31
59
  =overflow($values)
32
60
  $overflow-x: optional_nth($values, 1)
33
61
  $overflow-y: optional_nth($values, 2)
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.12.35",
3
+ "version": "0.12.36",
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.35"
2
+ VERSION = "0.12.36"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.12.35",
3
+ "version": "0.12.36",
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.35
4
+ version: 0.12.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - machida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-09 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor