accoutrement 0.1.6 → 0.1.7

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: f27f3a71afc34fb4fd6e2c2a01bbf5b842e0869b
4
- data.tar.gz: 27337d062cc2eef4ded194e3f7e25b56257146b0
3
+ metadata.gz: f2eca6b2e9fd7f48c7f94b5b44e15eab2c878bd4
4
+ data.tar.gz: d642b716f57ebe99eea3fd9126f66c0c4ab13e60
5
5
  SHA512:
6
- metadata.gz: decb8718a2da23d6f7c8b56d245639edd5c0b588642dca43a973a11a91e5b2199308ed5d37d02e872e74e2a905a315d8afde697a6c60e330c7149c0fe3bfd1b5
7
- data.tar.gz: f077e0de8ee290e8c7c6acfaf15439a0b2495e13045f2c594e75f614f57a64158a378e68b5975fb24bf34fdaf4334e3aed6139c50696b2b58389fb360c9350d6
6
+ metadata.gz: 9556f7c356b1afc1879ac8e77c600ffdf1336902f21623b684b97d4a6e3a89c5b415fed175720bb589613255e7452453abde0292d0c764189113e65a50e07216
7
+ data.tar.gz: 81c5286e72063b50b32a82eaa53d29371e5a239d1acc59c8ef27c270d11eb6d5be1ff0a996460080fd693b92d69524342024970032e5a85c5c1dc0054d83327e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -12,24 +12,32 @@
12
12
  // Fluid Ratio
13
13
  // -----------
14
14
  @mixin fluid-ratio(
15
- $args: null
15
+ $args: get(fluid-media)
16
16
  ) {
17
- $_ratio: get(fluid-media ratio);
18
- $_width: get(fluid-media width);
19
- $_children: get(fluid-media children);
20
-
21
- @each $arg in $args {
22
- @if type-of($arg) == string {
23
- $_children: $arg;
24
- } @else if type-of($arg) == number {
25
- @if unitless($arg) {
26
- $_ratio: $arg;
27
- } @else {
28
- $_width: $arg;
17
+ $_map: ();
18
+
19
+ @if type-of($args) == map {
20
+ $_map: $args;
21
+ } @else {
22
+ @each $arg in $args {
23
+ @if type-of($arg) == map {
24
+ $_map: map-merge($_map, $arg);
25
+ } @else if type-of($arg) == string {
26
+ $_map: map-merge($_map, (children: $arg));
27
+ } @else if type-of($arg) == number {
28
+ @if unitless($arg) {
29
+ $_map: map-merge($_map, (ratio: $arg));
30
+ } @else {
31
+ $_map: map-merge($_map, (width: $arg));
32
+ }
29
33
  }
30
34
  }
31
35
  }
32
36
 
37
+ $_ratio: map-get($_map, ratio);
38
+ $_width: map-get($_map, width);
39
+ $_children: map-get($_map, children);
40
+
33
41
  position: relative;
34
42
  height: 0;
35
43
  padding-top: (1 / $_ratio) * $_width;
@@ -39,6 +47,8 @@
39
47
  > #{$_children} {
40
48
  display: block;
41
49
  position: absolute;
50
+ height: 100%;
51
+ width: 100%;
42
52
  top: 0;
43
53
  right: 0;
44
54
  bottom: 0;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accoutrement
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Meyer