accoutrement 1.0.0.beta.3 → 1.0.0.beta.4
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/_scale.scss +45 -20
- 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: 42a4357aa16e4c71eed30d8cbd8de751c1508194
|
4
|
+
data.tar.gz: 42f697c07a79fdc8cb34309151cf0055eb71787b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72b8ef5ec83a086e9b2e0109f7f9ee16127a07f8da67ab2cd1de695eeffed0fcf7b683fd9177c10c3fd1dd5293688c612e9296035db79fec555d2c01e35dccf2
|
7
|
+
data.tar.gz: dc42c194dcfa85c5efde7cd2d56f0525e3661dfeefda6a3c288980e00b860e477824d21ebd6a888ba09409be6822d3fc8b5458525fe7611b8e2ed3dde7b79621
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.beta.
|
1
|
+
1.0.0.beta.3
|
@@ -22,9 +22,9 @@ $_ratio-options: (
|
|
22
22
|
$ratio: fifth !default;
|
23
23
|
|
24
24
|
|
25
|
-
//
|
26
|
-
//
|
27
|
-
@function
|
25
|
+
// Make Size
|
26
|
+
// ---------
|
27
|
+
@function make-size(
|
28
28
|
$size,
|
29
29
|
$root: $base-font-size,
|
30
30
|
$ratio: $ratio
|
@@ -47,27 +47,32 @@ $ratio: fifth !default;
|
|
47
47
|
|
48
48
|
// Sizes
|
49
49
|
// -----
|
50
|
+
$font-sizes: (
|
51
|
+
xxxlarge: make-size(4),
|
52
|
+
xxlarge: make-size(3),
|
53
|
+
xlarge: make-size(2),
|
54
|
+
large: make-size(1),
|
55
|
+
normal: make-size(0),
|
56
|
+
small: make-size(-1),
|
57
|
+
xsmall: make-size(-2),
|
58
|
+
xxsmall: make-size(-3),
|
59
|
+
xxxsmall: make-size(-4),
|
60
|
+
);
|
61
|
+
|
50
62
|
$sizes: (
|
51
|
-
|
52
|
-
xxlarge : scale(3),
|
53
|
-
xlarge : scale(2),
|
54
|
-
large : scale(1),
|
55
|
-
normal : scale(0),
|
56
|
-
small : scale(-1),
|
57
|
-
xsmall : scale(-2),
|
58
|
-
xxsmall : scale(-3),
|
59
|
-
xxxsmall : scale(-4),
|
63
|
+
base: make-size(0),
|
60
64
|
);
|
61
65
|
|
62
66
|
|
63
|
-
// Size
|
64
|
-
//
|
65
|
-
@function size(
|
67
|
+
// Get Size
|
68
|
+
// --------
|
69
|
+
@function get-size(
|
66
70
|
$size,
|
67
|
-
$unit: $rhythm-unit
|
71
|
+
$unit: $rhythm-unit,
|
72
|
+
$scale: $sizes
|
68
73
|
) {
|
69
74
|
@if type-of($size) == string {
|
70
|
-
$size: map-get($
|
75
|
+
$size: map-get($scale, $size);
|
71
76
|
}
|
72
77
|
|
73
78
|
@if $unit == rem {
|
@@ -95,8 +100,28 @@ $sizes: (
|
|
95
100
|
}
|
96
101
|
|
97
102
|
|
98
|
-
//
|
99
|
-
//
|
103
|
+
// Size
|
104
|
+
// ----
|
105
|
+
@function size(
|
106
|
+
$size,
|
107
|
+
$unit: $rhythm-unit
|
108
|
+
) {
|
109
|
+
@return get-size($size, $unit, $sizes);
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
// Font Size (function)
|
114
|
+
// --------------------
|
115
|
+
@function font-size(
|
116
|
+
$size,
|
117
|
+
$unit: $rhythm-unit
|
118
|
+
) {
|
119
|
+
@return get-size($size, $unit, $font-sizes);
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
// Font Size (function)
|
124
|
+
// --------------------
|
100
125
|
@mixin font-size(
|
101
126
|
$size: normal,
|
102
127
|
$lines: false
|
@@ -113,7 +138,7 @@ $sizes: (
|
|
113
138
|
$lines: false
|
114
139
|
) {
|
115
140
|
$_return: if($lines, (lines: $lines), ());
|
116
|
-
$size: size($size, px);
|
141
|
+
$size: font-size($size, px);
|
117
142
|
|
118
143
|
@return map-merge($_return, (to_size: $size));
|
119
144
|
}
|