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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f947bea85057ec6feeac17fcc65d460a26dbe91c
4
- data.tar.gz: 6d0d70721b5fa9b47a613b75af8bd3c3877f835d
3
+ metadata.gz: 42a4357aa16e4c71eed30d8cbd8de751c1508194
4
+ data.tar.gz: 42f697c07a79fdc8cb34309151cf0055eb71787b
5
5
  SHA512:
6
- metadata.gz: 3ce4cd8e5364c1160f2d0c8ed2e50b99e84692cfb0bac2b04f58e50e35e79d39c5cd137677ba66943193d72c6b74ac8773852bdd61cbb69dd837b76924332683
7
- data.tar.gz: bbd6e930119c5a6d59ef320a4314a6e72ca1b1b0de0f76b361430fa28ce759073dde1fe4bb83d781c0001cbd9d9bb3363f9590677cef04af14f444153f672cd8
6
+ metadata.gz: 72b8ef5ec83a086e9b2e0109f7f9ee16127a07f8da67ab2cd1de695eeffed0fcf7b683fd9177c10c3fd1dd5293688c612e9296035db79fec555d2c01e35dccf2
7
+ data.tar.gz: dc42c194dcfa85c5efde7cd2d56f0525e3661dfeefda6a3c288980e00b860e477824d21ebd6a888ba09409be6822d3fc8b5458525fe7611b8e2ed3dde7b79621
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta.2
1
+ 1.0.0.beta.3
@@ -22,9 +22,9 @@ $_ratio-options: (
22
22
  $ratio: fifth !default;
23
23
 
24
24
 
25
- // Scale
26
- // -----
27
- @function scale(
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
- xxxlarge : scale(4),
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($sizes, $size);
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
- // Font Size
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
  }
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: 1.0.0.beta.3
4
+ version: 1.0.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric M. Suzanne