jekyll_patternbot 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/_patterns/brand/colors.html +5 -0
- data/_plugins/jekyll_patternbot/parsers/css_color.rb +3 -1
- data/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8620071049971e43430845f49fe188b9bb90c4fe5d6aaf75d08dfa994a169a55
|
4
|
+
data.tar.gz: 59193bd0277b3a73312e03e5cca0b4046fc97ff8daded6563718b8ae53c27a7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e42f8a87bba0ca7ce0e504929a02ff21e2993b737f0cb369f46a40e4a9343875ff45e09ba7280ddd0ffbb3a07ee5513b0442d3bc153697024c14ac9407b665eb
|
7
|
+
data.tar.gz: c80c542ecf19b81f34e8fa52946b02494395a9e94db9bfc9dd032dd19e0d5e66588276f698eb05899dc79f4dd76fe6ba1ea3ef2297cd2b5a444241a3edfd0225
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
---
|
7
7
|
|
8
|
+
## [1.3.0] — 2019-01-29
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Added a quaternary level of colours, per user suggestion, for helping with colour-matched groupings.
|
13
|
+
|
14
|
+
---
|
15
|
+
|
8
16
|
## [1.2.0] — 2019-01-28
|
9
17
|
|
10
18
|
### Added
|
data/_patterns/brand/colors.html
CHANGED
@@ -16,6 +16,11 @@
|
|
16
16
|
{% include patternbot_pattern_brand_color_swatches.html style="small" title="Tertiary" key="tertiary" colors=page._PatternbotData.css.theme.colors.tertiary show_hr=show_hr %}
|
17
17
|
{% endunless %}
|
18
18
|
|
19
|
+
{% unless page._PatternbotData.css.theme.colors.quaternary == empty %}
|
20
|
+
{% assign show_hr = true %}
|
21
|
+
{% include patternbot_pattern_brand_color_swatches.html style="small" title="Quaternary" key="quaternary" colors=page._PatternbotData.css.theme.colors.quaternary show_hr=show_hr %}
|
22
|
+
{% endunless %}
|
23
|
+
|
19
24
|
{% unless page._PatternbotData.css.theme.colors.accent == empty %}
|
20
25
|
{% assign show_hr = true %}
|
21
26
|
{% include patternbot_pattern_brand_color_swatches.html style="small" title="Accent" key="accent" colors=page._PatternbotData.css.theme.colors.accent show_hr=show_hr %}
|
@@ -6,6 +6,7 @@ module JekyllPatternbot
|
|
6
6
|
:primary => [],
|
7
7
|
:secondary => [],
|
8
8
|
:tertiary => [],
|
9
|
+
:quaternary => [],
|
9
10
|
:neutral => [],
|
10
11
|
:accent => [],
|
11
12
|
:raw => {},
|
@@ -44,8 +45,9 @@ module JekyllPatternbot
|
|
44
45
|
colors[:primary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-primary/)
|
45
46
|
colors[:secondary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-secondary/)
|
46
47
|
colors[:tertiary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-tertiary/)
|
48
|
+
colors[:quaternary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-quaternary/)
|
47
49
|
colors[:neutral].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-neutral/)
|
48
|
-
colors[:accent].push(self.parse_color(dec, val)) unless dec.match(/\-\-color\-(primary|secondary|tertiary|neutral)/)
|
50
|
+
colors[:accent].push(self.parse_color(dec, val)) unless dec.match(/\-\-color\-(primary|secondary|tertiary|quaternary|neutral)/)
|
49
51
|
colors[:raw][dec] = val
|
50
52
|
end
|
51
53
|
end
|
data/version.rb
CHANGED