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 +4 -4
- data/VERSION +1 -1
- data/stylesheets/accoutrement/_fluid-media.scss +23 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2eca6b2e9fd7f48c7f94b5b44e15eab2c878bd4
|
4
|
+
data.tar.gz: d642b716f57ebe99eea3fd9126f66c0c4ab13e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9556f7c356b1afc1879ac8e77c600ffdf1336902f21623b684b97d4a6e3a89c5b415fed175720bb589613255e7452453abde0292d0c764189113e65a50e07216
|
7
|
+
data.tar.gz: 81c5286e72063b50b32a82eaa53d29371e5a239d1acc59c8ef27c270d11eb6d5be1ff0a996460080fd693b92d69524342024970032e5a85c5c1dc0054d83327e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
@@ -12,24 +12,32 @@
|
|
12
12
|
// Fluid Ratio
|
13
13
|
// -----------
|
14
14
|
@mixin fluid-ratio(
|
15
|
-
$args:
|
15
|
+
$args: get(fluid-media)
|
16
16
|
) {
|
17
|
-
$
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
@
|
22
|
-
@
|
23
|
-
|
24
|
-
|
25
|
-
@if
|
26
|
-
$
|
27
|
-
} @else {
|
28
|
-
|
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;
|