futuro 0.6.9 → 0.7.0

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: 4f925270ca15ab62c2c27dd37774923099afe5df66340bfb9c34bbc1053753f6
4
- data.tar.gz: 559489a6a172ba89f3ac32332962e810d3fa20b785c1acb7c5b2a07a385ddb82
3
+ metadata.gz: 2f9f31404094e0d6a500575610049446771bab42990c4a5d197c8322d23441ec
4
+ data.tar.gz: 1d730cb1da36267d7f2498ef55cd307b30e52c1da2d79710fe0e2c6c532175d8
5
5
  SHA512:
6
- metadata.gz: b138823152af25ffa98ace5f450ca1448fd9f253aca95638de891a202170e9331b52485e92ac2a4aa0aee8d489de43670ee3dfad5e67fd4d2780b545333e8d5a
7
- data.tar.gz: 113ac0501483e3fcb9c2579a8fee47528fe2ff25527b3b3176f2d859b749b4a8a7590b0eb0b767a75bba1ce5bde44fb8ee616b5dfa60e1710c0e7a0481260bfc
6
+ metadata.gz: 78247b00131276c95a1413fc0271f4c91d2bd990f388bf374e61988b21f77a2c1b8ce2175438639505d67198bb67a4fbb042ec3c6bd05c7500cecc4357e1b423
7
+ data.tar.gz: 3e5a4730197c69644d22bdb9359a1d4fddccb9ceea53094947a8f2d14e6254f4c0bbb61db1aa7893f4a2d354828c3fbe87f56ed5c6d2e54252a7174a9521eeb7
@@ -1,3 +1,3 @@
1
1
 
2
- <script src="{{ "/assets/js/futuro.footer.vendor.js?v=1584032502171" | relative_url }}"></script>
3
- <script src="{{ "/assets/js/futuro.footer.custom.js?v=1584032502171" | relative_url }}"></script>
2
+ <script src="{{ "/assets/js/futuro.footer.vendor.js?v=1584967793062" | relative_url }}"></script>
3
+ <script src="{{ "/assets/js/futuro.footer.custom.js?v=1584967793062" | relative_url }}"></script>
@@ -1,3 +1,3 @@
1
- <script src="{{ "/assets/js/futuro.header.vendor.js?v=1584032502171" | relative_url }}"></script>
2
- <script src="{{ "/assets/js/futuro.header.custom.js?v=1584032502171" | relative_url }}"></script>
1
+ <script src="{{ "/assets/js/futuro.header.vendor.js?v=1584967793062" | relative_url }}"></script>
2
+ <script src="{{ "/assets/js/futuro.header.custom.js?v=1584967793062" | relative_url }}"></script>
3
3
  </head>
@@ -11,11 +11,40 @@
11
11
  <div class="block page-split">
12
12
 
13
13
  {%- for item in page.text -%}
14
- {%- if item.o -%}
14
+
15
+ <div>
16
+
17
+ {%- if item.column -%}
18
+
15
19
  <div>
16
- {{ item.o }}
20
+ {{ item.column }}
17
21
  </div>
22
+
23
+ {%- elsif item.switch -%}
24
+
25
+ {%- for item in item.switch -%}
26
+
27
+ {%- if item.before -%}
28
+ <div class="before">
29
+ {{ item.before }}
30
+ </div>
31
+ {%- elsif item.after -%}
32
+ <div class="after">
33
+ {{ item.after }}
34
+ </div>
35
+ {%- elsif item.button -%}
36
+ <div class="button-wrap switch-button {{ page.chapter | downcase }}">
37
+ <button type="button">Switch</button>
38
+ <span class="button-bg"></span>
39
+ </div>
40
+ {%- endif -%}
41
+
42
+ {%- endfor -%}
43
+
18
44
  {%- endif -%}
45
+
46
+ </div>
47
+
19
48
  {%- endfor -%}
20
49
 
21
50
  </div>
@@ -1,11 +1,13 @@
1
1
 
2
+ {% assign label = page.label | downcase | prepend: '/' %}
3
+
2
4
  <div class="area topbar">
3
5
 
4
6
  <div class="nav left">
5
- <div class="btn nav about">
7
+ <div class="button nav about">
6
8
  {% include svg/site/btn/about.svg %}
7
9
  </div>
8
- <div class="btn nav browse">
10
+ <div class="button nav browse">
9
11
  {% include svg/site/btn/browse.svg %}
10
12
  </div>
11
13
  </div>
@@ -17,11 +19,13 @@
17
19
 
18
20
  {% if page.live %}
19
21
 
20
- <div class="btn nav-book {{ page.label }}">
21
- <a class="lnk nav {{ page.label }}" href="{%- if site.setup.install == 'library' -%}{{ page.label | downcase | prepend: '/' }}{%- else -%}/{%- endif -%}">
22
- <strong>{{ page.label }}</strong>
23
- </a>
24
- </div>
22
+ <span class="button-wrap navigation {{ page.label }}">
23
+ <button type="button">
24
+ <a class="link navigation {{ page.label }}" href="{%- if site.setup.install == 'library' -%}{{ label }}{%- else -%}/{%- endif -%}">
25
+ <strong>{{ page.label }}</strong>
26
+ </a>
27
+ </button>
28
+ </span>
25
29
 
26
30
  {% endif %}
27
31
 
@@ -30,13 +34,13 @@
30
34
  </div>
31
35
 
32
36
  <div class="nav right">
33
- <div class="btn nav cart" style="display:none;">
37
+ <div class="button nav cart" style="display:none;">
34
38
  {% include svg/site/btn/cart.svg %}
35
39
  </div>
36
- <div class="btn nav count" style="display:none;">
40
+ <div class="button nav count" style="display:none;">
37
41
  <strong>0</strong>
38
42
  </div>
39
- <div class="btn nav search">
43
+ <div class="button nav search">
40
44
  {% include svg/site/btn/search.svg %}
41
45
  </div>
42
46
  </div>
data/_sass/_base.scss CHANGED
@@ -65,6 +65,11 @@ ul, ol {
65
65
  padding-top: 0;
66
66
  }
67
67
 
68
+ &.letters {
69
+ padding: 20px 0 0 30px;
70
+ list-style: lower-alpha;
71
+ }
72
+
68
73
  &.numbers {
69
74
  padding: 20px 0 0 30px;
70
75
  list-style: decimal;
@@ -0,0 +1,67 @@
1
+
2
+ // .btn {
3
+ // background-color: transparent;
4
+ // }
5
+ //
6
+ //
7
+ // .btn.submit {
8
+ // background-color: $gray;
9
+ // border-radius: 2px;
10
+ // cursor: pointer;
11
+ // display: block;
12
+ // padding: 10px;
13
+ // border: none;
14
+ // width: 100%;
15
+ // }
16
+
17
+ .button-wrap {
18
+ @extend %button;
19
+ @include borderRad($radius);
20
+ @include bg($tint:100%);
21
+
22
+ @media#{$max767} {
23
+ display: block;
24
+ width: 100%;
25
+ }
26
+
27
+ @media#{$min768} {
28
+ &:not(.legend-button) {
29
+ justify-self: flex-start;
30
+ grid-column: 2;
31
+ }
32
+ }
33
+
34
+ button {
35
+ @extend %bold;
36
+ @include borderRad($radius);
37
+ @include padding($l:5,$r:5);
38
+ position: relative;
39
+ background: none;
40
+ cursor: pointer;
41
+ color: white;
42
+ width: 100%;
43
+ z-index: 2;
44
+ }
45
+ }
46
+
47
+ .button-wrap.navigation {
48
+ place-content: center;
49
+ padding-right: 20px;
50
+ padding-left: 20px;
51
+ font-size: inherit;
52
+ border-radius: 0;
53
+ background: none;
54
+ display: grid;
55
+
56
+ button {
57
+ letter-spacing: -0.02em;
58
+ color: $forms;
59
+ padding: 0;
60
+ }
61
+ }
62
+
63
+ .button-bg {
64
+ @include zeros(absolute);
65
+ @include borderRad($radius);
66
+ z-index: 1;
67
+ }
data/_sass/_lnk.scss CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- .lnk.nav {
2
+ .link.navigation {
3
3
  text-transform: capitalize;
4
4
  text-decoration: none;
5
5
  line-height: 1.1;
data/_sass/_title.scss CHANGED
@@ -30,7 +30,6 @@
30
30
 
31
31
  &.page-chapter {
32
32
  @include rotatetitle(top right);
33
- // text-transform: capitalize;
34
33
  right: 78px;
35
34
  top: 56px;
36
35
  }
data/_sass/area/page.scss CHANGED
@@ -2,6 +2,10 @@
2
2
  .area.type-page {
3
3
  @extend %area-page;
4
4
  background-color: white;
5
+
6
+ .after {
7
+ display: none;
8
+ }
5
9
  }
6
10
 
7
11
  .area.type-page.style-docs {
@@ -2,13 +2,11 @@
2
2
  @charset "utf-8";
3
3
 
4
4
  @import
5
+ "helpers/variables/patterns",
5
6
  "helpers/variables",
6
- "helpers/mixins/cover",
7
- "helpers/mixins/pages",
8
- "helpers/mixins/pies",
9
- "helpers/mixins/roller",
10
- "helpers/mixins/search",
11
- "helpers/mixins/value",
7
+ "helpers/mixins/mindsets",
8
+ "helpers/mixins/patterns",
9
+ "helpers/mixins/theme",
12
10
  "helpers/mixins",
13
11
  "helpers/extends",
14
12
  "helpers/themes",
@@ -31,7 +29,7 @@
31
29
  "block/stop",
32
30
  "block/util",
33
31
  "box",
34
- "btn",
32
+ "button",
35
33
  "col",
36
34
  "exit",
37
35
  "form",
@@ -143,3 +143,13 @@
143
143
  display: block;
144
144
  }
145
145
  }
146
+
147
+ // PATTERNS IMPORT ************************************************************
148
+
149
+ %button {
150
+ @include ib;
151
+ -webkit-tap-highlight-color: transparent;
152
+ position: relative;
153
+ font-size: 1.6rem;
154
+ cursor: pointer;
155
+ }
@@ -0,0 +1,70 @@
1
+
2
+ @mixin background($col) {
3
+ svg#background {
4
+ fill: $col;
5
+ }
6
+
7
+ svg#tickets {
8
+ g.number path {
9
+ fill: $col;
10
+ }
11
+ path.bar {
12
+ stroke: $col !important;
13
+ }
14
+ }
15
+
16
+ .title._animate {
17
+ opacity: 0.4;
18
+ color: $col;
19
+ }
20
+ }
21
+
22
+
23
+ @mixin chunk($col) {
24
+ path {
25
+ fill: $col;
26
+ }
27
+ .title {
28
+ color: $col;
29
+ }
30
+ }
31
+
32
+ @mixin grid($rep) {
33
+ grid-template-columns: repeat($rep,1fr);
34
+ display: grid;
35
+ }
36
+
37
+
38
+ @mixin rollover($type) {
39
+
40
+ .list {
41
+ &._text {
42
+ &-roller {
43
+ border-color: white;
44
+ }
45
+ &-output {
46
+ border-color: rgba($type,0.2);
47
+ }
48
+ }
49
+ }
50
+
51
+ .item {
52
+ &._text {
53
+ &-roller {
54
+ background-color: rgba($type,0.1);
55
+ border-color: white;
56
+ color: $type;
57
+
58
+ &.active {
59
+ background-color: $type;
60
+ color: white;
61
+ }
62
+ }
63
+ &-output {
64
+ background-color: rgba($type,0.1);
65
+ border-color: rgba($type,0.2);
66
+ color: $type;
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,31 @@
1
+
2
+ @mixin splitrow( $columns : 250px auto, $align : stretch ) {
3
+ grid-template-columns: $columns;
4
+ grid-column-gap: 20px;
5
+ align-items: $align;
6
+ display: grid;
7
+ }
8
+
9
+ @mixin border( $col : $forms, $tint : 50% ) {
10
+ border: 1px solid rgba( $col, $tint );
11
+ }
12
+
13
+ @mixin borderCol( $col : $forms, $tint : 50% ) {
14
+ border-color: rgba( $col, $tint );
15
+ }
16
+
17
+ @mixin borderRad( $calc : $radius ) {
18
+ border-radius: $calc;
19
+ }
20
+
21
+ @mixin color( $col : $forms, $tint : 50% ) {
22
+ color: rgba( $col, $tint );
23
+ }
24
+
25
+ @mixin bg( $col : $forms, $tint : 5% ) {
26
+ background: rgba( $col, $tint );
27
+ }
28
+
29
+ @mixin padding( $t : 3.5, $r : 3, $b : 2.5, $l : 3 ) {
30
+ padding: ($radius * $t) ($radius * $r) ($radius * $b) ($radius * $l);
31
+ }
@@ -0,0 +1,328 @@
1
+
2
+ @mixin ThemeBook($name,$col) {
3
+
4
+ // Home Books
5
+
6
+ .wrap.book.#{$name} {
7
+ background-color: $col;
8
+
9
+ svg {
10
+ fill: white;
11
+ }
12
+ }
13
+
14
+ // Topbar Links
15
+
16
+ .button-wrap.navigation.#{$name} {
17
+
18
+ button {
19
+ color: $col;
20
+ }
21
+
22
+ &:hover {
23
+ background-color: rgba($col,10%);
24
+ }
25
+ }
26
+
27
+ // Chapter Covers
28
+
29
+ .area.type-chapter.book-#{$name} {
30
+ background-color: $col;
31
+ }
32
+
33
+ // Search Results
34
+
35
+ .block.results-entry.book-#{$name} {
36
+ color: $col;
37
+
38
+ &:hover {
39
+ background-color: rgba($col,10%);
40
+ }
41
+
42
+ .block.results-dot {
43
+ background-color: $col;
44
+ }
45
+ }
46
+ }
47
+
48
+ @mixin ThemeCover($name,$color,$left:false) {
49
+
50
+ // Chapter Covers
51
+
52
+ .wrap.type-chapter.chapter-#{$name} {
53
+ background-color: $color;
54
+
55
+ @if $left {
56
+ .title.chapter-title {
57
+ left: #{$left}px;
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ @mixin ThemePages($name,$col,$right:false) {
64
+
65
+ // Chapter Pages
66
+
67
+ .wrap.type-page.chapter-#{$name} {
68
+
69
+ .title.page-weight {
70
+ color: $col;
71
+ }
72
+
73
+ .title.page-chapter {
74
+ color: $col;
75
+ @if $right {
76
+ right: #{$right}px;
77
+ }
78
+ }
79
+
80
+ .title.animate {
81
+ color: $col;
82
+ }
83
+
84
+ .block.page-icon {
85
+ fill: $col;
86
+ }
87
+
88
+ .lnk.stats {
89
+ color: $col;
90
+ }
91
+
92
+ .item.text-roller {
93
+ background-color: rgba($col,10%);
94
+ color: $col;
95
+
96
+ &.active {
97
+ background-color: $col;
98
+ color: white;
99
+ }
100
+ }
101
+
102
+ .item.text-output {
103
+ background-color: rgba($col,10%);
104
+ border-color: rgba($col,20%);
105
+ color: $col;
106
+ }
107
+
108
+ .list.pies {
109
+ color: $col;
110
+ }
111
+
112
+ .block.pie.svg-wrap {
113
+ fill: $col;
114
+ }
115
+
116
+ svg#background {
117
+ fill: $col;
118
+ }
119
+
120
+ svg#tickets {
121
+ fill: $col;
122
+
123
+ .bar {
124
+ stroke: $col !important;
125
+ }
126
+ }
127
+ }
128
+ }
129
+
130
+ @mixin ThemePies($name,$col) {
131
+ &.#{$name} {
132
+ color: $col;
133
+
134
+ .chunk.#{$name} {
135
+ opacity: 1;
136
+ }
137
+ }
138
+ }
139
+
140
+
141
+ @mixin ThemeRoller($name,$col) {
142
+ &.#{$name} {
143
+ background-color: rgba($col,10%);
144
+ color: $col;
145
+
146
+ &.active {
147
+ background-color: $col;
148
+ color: white;
149
+ }
150
+ }
151
+ }
152
+
153
+ @mixin ThemeOutput($name,$col) {
154
+ &.#{$name} {
155
+ background-color: rgba($col,10%);
156
+ border-color: rgba($col,20%);
157
+ color: $col;
158
+ }
159
+ }
160
+
161
+ @mixin ThemeSearch($name,$col) {
162
+
163
+ // Search Results
164
+
165
+ .block.results-entry.chapter-#{$name} {
166
+ color: $col;
167
+
168
+ &:hover {
169
+ background-color: rgba($col,10%);
170
+ }
171
+
172
+ .block.results-dot {
173
+ background-color: $col;
174
+ }
175
+ }
176
+ }
177
+
178
+
179
+ @mixin ThemeValue($val,$prefix:false,$important:false) {
180
+
181
+ @if $prefix {
182
+ @if $important {
183
+ &.#{$prefix}culture-addicts {
184
+ #{$val} : $addicts !important;
185
+ }
186
+ } @else {
187
+ &.#{$prefix}culture-addicts {
188
+ #{$val} : $addicts;
189
+ }
190
+ }
191
+ } @else {
192
+ @if $important {
193
+ &.culture-addicts {
194
+ #{$val} : $addicts !important;
195
+ }
196
+ } @else {
197
+ &.culture-addicts {
198
+ #{$val} : $addicts;
199
+ }
200
+ }
201
+ }
202
+
203
+ @if $prefix {
204
+ @if $important {
205
+ &.#{$prefix}family-centric {
206
+ #{$val} : $family !important;
207
+ }
208
+ } @else {
209
+ &.#{$prefix}family-centric {
210
+ #{$val} : $family;
211
+ }
212
+ }
213
+ } @else {
214
+ @if $important {
215
+ &.family-centric {
216
+ #{$val} : $family !important;
217
+ }
218
+ } @else {
219
+ &.family-centric {
220
+ #{$val} : $family;
221
+ }
222
+ }
223
+ }
224
+
225
+ @if $prefix {
226
+ @if $important {
227
+ &.#{$prefix}receptive {
228
+ #{$val} : $receptive !important;
229
+ }
230
+ } @else {
231
+ &.#{$prefix}receptive {
232
+ #{$val} : $receptive;
233
+ }
234
+ }
235
+ } @else {
236
+ @if $important {
237
+ &.receptive {
238
+ #{$val} : $receptive !important;
239
+ }
240
+ } @else {
241
+ &.receptive {
242
+ #{$val} : $receptive;
243
+ }
244
+ }
245
+ }
246
+
247
+ @if $prefix {
248
+ @if $important {
249
+ &.#{$prefix}value-seekers {
250
+ #{$val} : $value !important;
251
+ }
252
+ } @else {
253
+ &.#{$prefix}value-seekers {
254
+ #{$val} : $value;
255
+ }
256
+ }
257
+ } @else {
258
+ @if $important {
259
+ &.value-seekers {
260
+ #{$val} : $value !important;
261
+ }
262
+ } @else {
263
+ &.value-seekers {
264
+ #{$val} : $value;
265
+ }
266
+ }
267
+ }
268
+
269
+ @if $prefix {
270
+ @if $important {
271
+ &.#{$prefix}next-generation {
272
+ #{$val} : $next !important;
273
+ }
274
+ } @else {
275
+ &.#{$prefix}next-generation {
276
+ #{$val} : $next;
277
+ }
278
+ }
279
+ } @else {
280
+ @if $important {
281
+ &.next-generation {
282
+ #{$val} : $next !important;
283
+ }
284
+ } @else {
285
+ &.next-generation {
286
+ #{$val} : $next;
287
+ }
288
+ }
289
+ }
290
+
291
+ @if $prefix {
292
+ @if $important {
293
+ &.#{$prefix}maybe-someday {
294
+ #{$val} : $maybe !important;
295
+ }
296
+ } @else {
297
+ &.#{$prefix}maybe-someday {
298
+ #{$val} : $maybe;
299
+ }
300
+ }
301
+ } @else {
302
+ @if $important {
303
+ &.maybe-someday {
304
+ #{$val} : $maybe !important;
305
+ }
306
+ } @else {
307
+ &.maybe-someday {
308
+ #{$val} : $maybe;
309
+ }
310
+ }
311
+ }
312
+ }
313
+
314
+ @mixin theme_roller($type) {
315
+ background-color: rgba($type,0.1);
316
+ color: $type;
317
+
318
+ &.active {
319
+ background-color: $type;
320
+ color: white;
321
+ }
322
+ }
323
+
324
+ @mixin theme_output($type) {
325
+ background-color: rgba($type,0.1);
326
+ border-color: rgba($type,0.2);
327
+ color: $type;
328
+ }