futuro 0.7.6 → 0.7.8

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
  SHA256:
3
- metadata.gz: a064474f717722cead136d52ac15da9d745b4a8f20bfb091fbcfa62fae259f86
4
- data.tar.gz: 4a541deb07861c0de115089206aceee3323be07334c21ee2b6039616fd720c53
3
+ metadata.gz: f6a4b96553b4527d52123e0d6a91a00611c805065c7c44af2c2fc8ab6dbb4961
4
+ data.tar.gz: 14b5a3c6968d5847faf7eb1e046132692a90f79da3ce86675ed8b38a5d8a12d7
5
5
  SHA512:
6
- metadata.gz: d9f2466555ff46e86b00c0da7943a2a7914ff968296804fad74d122dfeffe457b09764b78045c619507a8651e8bc220d7af96f09fbf8928540163432da488240
7
- data.tar.gz: e1bb71d05c62e9be22fbcac389ba94e80270e93192915634b3738cedda17689b9f08ed8fb7517bba939415b57f772173d41c61b5f67b7fe37a580ae2751d72ee
6
+ metadata.gz: b09f8c539634241f1446856e7ae4dc0d231e75595b62b310466a572d0d5aedc1dacabebf97866b4b7e3caf1366a884fa26346753744a3a83a176203b71eaf90b
7
+ data.tar.gz: ba33728e2dd51ea0ee01f8300abf37586c04c253c38f6c6c7529b6852df7df10152ec857a20e8bd949c62bb222661bec1bdd0ab176a4f3f89c129b3233a27a63
@@ -15,6 +15,7 @@
15
15
  {% assign LoopForm = ContentLoop | append : 'form/' %}
16
16
  {% assign LoopHeader = ContentLoop | append : 'header/' %}
17
17
  {% assign LoopScreen = ContentLoop | append : 'screen/' %}
18
+ {% assign LoopButton = ContentLoop | append : 'button/' %}
18
19
 
19
20
  {% assign SiteSvg = 'svg/site/' %}
20
21
  {% assign SvgLoad = SiteSvg | append : 'load/' %}
@@ -10,7 +10,7 @@
10
10
 
11
11
  {%- endunless -%}
12
12
 
13
- {% else %}
13
+ {% else %}
14
14
 
15
15
  {%- include html/page/subtitle.liquid -%}
16
16
 
@@ -132,4 +132,10 @@
132
132
 
133
133
  {%- endif -%}
134
134
 
135
+ {%- if page.button -%}
136
+
137
+ {%- include {{ SiteContent | append : 'loop.liquid' }} type="button" -%}
138
+
139
+ {%- endif -%}
140
+
135
141
  {%- endunless -%}
@@ -0,0 +1,14 @@
1
+
2
+ {%- if item.submit -%}
3
+
4
+ {%- include {{ LoopButton | append : 'container.liquid' }} type="submit" value=item.submit -%}
5
+
6
+ {%- elsif item.update -%}
7
+
8
+ {%- include {{ LoopButton | append : 'container.liquid' }} type="update" value=item.update -%}
9
+
10
+ {%- elsif item.option -%}
11
+
12
+ {%- include {{ LoopButton | append : 'container.liquid' }} type="option" value=item.option -%}
13
+
14
+ {%- endif -%}
@@ -0,0 +1,63 @@
1
+
2
+ {% assign IncludeType = include.type | append : '-button' %}
3
+ {% assign IncludeValue = include.value | prepend : 'title-' | downcase %}
4
+
5
+ <div class="button-container">
6
+
7
+ <div class="button-version">
8
+
9
+ <div class="title button-version">Primary</div>
10
+
11
+ <div class="button-wrap {{ IncludeType }} {{ IncludeValue }} modify-primary">
12
+
13
+ <button type="button">{{ include.value }}</button>
14
+
15
+ <span class="button-bg {{ IncludeType }}"></span>
16
+
17
+ </div>
18
+
19
+ </div>
20
+
21
+ <div class="button-version">
22
+
23
+ <div class="title button-version">Pri. Slim</div>
24
+
25
+ <div class="button-wrap {{ IncludeType }} {{ IncludeValue }} modify-primary">
26
+
27
+ <button class="modify-slim" type="button">{{ include.value }}</button>
28
+
29
+ <span class="button-bg {{ IncludeType }}"></span>
30
+
31
+ </div>
32
+
33
+ </div>
34
+
35
+ <div class="button-version">
36
+
37
+ <div class="title button-version">Secondary</div>
38
+
39
+ <div class="button-wrap {{ IncludeType }} {{ IncludeValue }} modify-secondary">
40
+
41
+ <button type="button">{{ include.value }}</button>
42
+
43
+ <span class="button-bg {{ IncludeType }}"></span>
44
+
45
+ </div>
46
+
47
+ </div>
48
+
49
+ <div class="button-version">
50
+
51
+ <div class="title button-version">Sec. Slim</div>
52
+
53
+ <div class="button-wrap {{ IncludeType }} {{ IncludeValue }} modify-secondary">
54
+
55
+ <button class="modify-slim" type="button">{{ include.value }}</button>
56
+
57
+ <span class="button-bg {{ IncludeType }}"></span>
58
+
59
+ </div>
60
+
61
+ </div>
62
+
63
+ </div>
data/_sass/_base.scss CHANGED
@@ -133,7 +133,7 @@ img {
133
133
  button {
134
134
  @extend %bold;
135
135
  @include borderRad($radius);
136
- @include padding($l:5,$r:5);
136
+ @include Padding2(3);
137
137
  position: relative;
138
138
  background: none;
139
139
  border-width: 0;
@@ -143,6 +143,10 @@ button {
143
143
  z-index: 2;
144
144
  }
145
145
 
146
+ button.modify-slim {
147
+ @include Padding2(3);
148
+ }
149
+
146
150
  button.navigation {
147
151
  letter-spacing: -0.02em;
148
152
  border-radius: 0;
data/_sass/_button.scss CHANGED
@@ -21,12 +21,23 @@
21
21
  }
22
22
  }
23
23
 
24
+ .button-bg {
25
+ @include zeros(absolute);
26
+ z-index: 1;
27
+ }
28
+
29
+ .button-bg.submit-button {
30
+ @include borderRad($radius);
31
+ }
32
+
33
+ .button-wrap.update-button {
34
+ overflow: hidden;
35
+ }
36
+
24
37
  .button-wrap.switch-button {
25
38
  min-width: 9rem;
26
39
  }
27
40
 
28
- .button-bg {
29
- @include zeros(absolute);
30
- @include borderRad($radius);
31
- z-index: 1;
41
+ .button-bg.update-button {
42
+ right: 100%;
32
43
  }
@@ -29,3 +29,10 @@
29
29
  @mixin padding( $t : 3.5, $r : 3, $b : 2.5, $l : 3 ) {
30
30
  padding: ($radius * $t) ($radius * $r) ($radius * $b) ($radius * $l);
31
31
  }
32
+
33
+ @mixin Padding2($value : 3) {
34
+ padding: ($radius * ($value * 1.1))
35
+ ($radius * $value)
36
+ ($radius * ($value * 0.9))
37
+ ($radius * $value);
38
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: futuro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Heading
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-16 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -117,6 +117,8 @@ files:
117
117
  - _includes/html/page/content/loop/artwork.liquid
118
118
  - _includes/html/page/content/loop/artwork/image.liquid
119
119
  - _includes/html/page/content/loop/artwork/video.liquid
120
+ - _includes/html/page/content/loop/button.liquid
121
+ - _includes/html/page/content/loop/button/container.liquid
120
122
  - _includes/html/page/content/loop/chart.liquid
121
123
  - _includes/html/page/content/loop/chart/assign.liquid
122
124
  - _includes/html/page/content/loop/form.liquid