futuro 1.0.6 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/html/assign/page.liquid +2 -1
  3. data/_includes/html/assign/site.liquid +30 -21
  4. data/_includes/html/layout/footer.liquid +5 -1
  5. data/_includes/html/page/content.liquid +70 -71
  6. data/_includes/html/page/content/loop/alert.liquid +31 -0
  7. data/_includes/html/page/content/loop/button/build.liquid +7 -1
  8. data/_includes/html/page/content/loop/checkbox.liquid +4 -8
  9. data/_includes/html/page/content/loop/form.liquid +14 -7
  10. data/_includes/html/page/content/loop/form/alert.liquid +8 -13
  11. data/_includes/html/page/content/loop/form/callout.liquid +1 -1
  12. data/_includes/html/page/content/loop/form/date.liquid +7 -7
  13. data/_includes/html/page/content/loop/form/email.liquid +38 -0
  14. data/_includes/html/page/content/loop/form/item.liquid +6 -9
  15. data/_includes/html/page/content/loop/form/message.liquid +1 -1
  16. data/_includes/html/page/content/loop/form/number.liquid +3 -3
  17. data/_includes/html/page/content/loop/form/phone.liquid +22 -21
  18. data/_includes/html/page/content/loop/form/radio.liquid +7 -7
  19. data/_includes/html/page/content/loop/form/select.liquid +10 -10
  20. data/_includes/html/page/content/loop/form/text.liquid +23 -27
  21. data/_includes/html/page/content/loop/form/textarea.liquid +6 -5
  22. data/_includes/html/page/content/loop/header/search.liquid +1 -1
  23. data/_includes/html/page/content/loop/input.liquid +17 -0
  24. data/_includes/html/page/content/loop/item.liquid +16 -0
  25. data/_includes/html/page/content/loop/{form/label.liquid → label.liquid} +24 -4
  26. data/_includes/html/page/content/loop/onemoment.liquid +6 -0
  27. data/_includes/html/page/content/loop/screen.liquid +2 -2
  28. data/_includes/html/page/content/loop/screen/header.liquid +3 -3
  29. data/_includes/html/page/content/loop/{select/create.liquid → select.liquid} +0 -0
  30. data/_includes/html/page/content/row.liquid +1 -1
  31. data/_includes/html/page/footnote.liquid +4 -2
  32. data/_includes/html/page/header.liquid +1 -2
  33. data/_includes/html/page/layout/home.liquid +17 -7
  34. data/_includes/html/page/topbar.liquid +28 -17
  35. data/_includes/html/page/topbar/navigation/link.liquid +22 -0
  36. data/_includes/html/site/scroller.liquid +1 -1
  37. data/_includes/svg/site/icon.liquid +39 -19
  38. data/_sass/_button.scss +4 -4
  39. data/_sass/area/chapter.scss +2 -1
  40. data/_sass/area/page.scss +1 -1
  41. data/_sass/area/topbar.scss +1 -1
  42. data/_sass/block/chart.scss +2 -1
  43. data/_sass/block/form/alert.scss +0 -4
  44. data/_sass/block/form/checkbox.scss +2 -18
  45. data/_sass/block/form/item.scss +17 -17
  46. data/_sass/block/util.scss +3 -0
  47. data/_sass/futuro.core.scss +19 -1
  48. data/_sass/helpers/extends.scss +0 -17
  49. data/_sass/helpers/extends/forms.scss +16 -0
  50. data/_sass/helpers/mixins/layout.scss +0 -1
  51. data/_sass/helpers/mixins/theme.scss +112 -119
  52. data/_sass/helpers/themes.scss +14 -13
  53. data/_sass/helpers/variables.scss +24 -226
  54. data/_sass/helpers/variables/colors.scss +290 -0
  55. data/_sass/item/scroller.scss +0 -1
  56. data/_sass/link/book.scss +8 -6
  57. data/_sass/link/navigation.scss +11 -7
  58. data/_sass/link/scroller.scss +4 -0
  59. data/_sass/title/book.scss +9 -0
  60. data/_sass/title/page.scss +2 -0
  61. data/_sass/title/type.scss +1 -0
  62. data/_sass/wrap/switch.scss +12 -0
  63. data/assets/js/footer/custom/1_Settings.js +1 -2
  64. data/assets/js/footer/custom/2_Check.width.js +6 -23
  65. data/assets/js/footer/custom/3_Setup.browse.js +1 -1
  66. data/assets/js/footer/custom/5_button.func.reset.js +15 -0
  67. data/assets/js/footer/custom/5_button.func.submit.js +39 -0
  68. data/assets/js/footer/custom/5_button.func.switch.js +26 -0
  69. data/assets/js/footer/custom/5_button.func.update.js +39 -0
  70. data/assets/js/footer/custom/5_check.form.js +7 -0
  71. data/assets/js/footer/custom/5_respond.scroller.js +11 -0
  72. data/assets/js/footer/vendor/futuro/checkr.js +40 -0
  73. data/assets/js/footer/vendor/{gsap-draw.js → gsap/draw.js} +0 -0
  74. data/assets/js/footer/vendor/{gsap-morph.js → gsap/morph.js} +0 -0
  75. data/assets/js/footer/vendor/{gsap-scramble.js → gsap/scramble.js} +0 -0
  76. data/assets/js/footer/vendor/gsap/scroll.js +11 -0
  77. data/assets/js/footer/vendor/{gsap-text.js → gsap/text.js} +0 -0
  78. data/assets/js/footer/vendor/{jquery.min.js → jquery.js} +0 -0
  79. data/assets/js/footer/vendor/{parsley.min.js → parsley.js} +0 -0
  80. data/assets/js/futuro.footer.custom.js +1 -1
  81. data/assets/js/futuro.footer.vendor.js +52 -314
  82. data/assets/js/futuro.header.custom.js +1 -1
  83. data/assets/js/futuro.header.legacy.js +4 -3
  84. data/assets/js/futuro.header.legacy.shopify.js +4 -3
  85. data/assets/js/futuro.header.vendor.js +4 -3
  86. data/assets/js/header/custom/1_Settings.js +8 -2
  87. data/assets/js/header/custom/2_Site.js +1 -3
  88. data/assets/js/header/vendor/gsap.js +4 -3
  89. metadata +28 -20
  90. data/_includes/html/page/content/loop/alert/create.liquid +0 -20
  91. data/_includes/html/page/content/loop/alert/example.liquid +0 -4
  92. data/_includes/html/page/content/loop/form/input.liquid +0 -17
  93. data/_includes/html/page/content/loop/yousaved.liquid +0 -11
  94. data/_includes/svg/site/book/orwell.svg +0 -1
  95. data/_includes/svg/site/book/woolf.svg +0 -1
  96. data/assets/js/footer/custom/5_Animate.scroller.js +0 -11
  97. data/assets/js/footer/custom/5_Switch.button.js +0 -97
  98. data/assets/js/footer/vendor/scrollmagic-gsap.js +0 -310
  99. data/assets/js/footer/vendor/scrollmagic.js +0 -3
@@ -1,22 +1,22 @@
1
1
 
2
- .block.item-row + .block.item-row {
3
- margin-top: 0;
2
+ // .block.item-row + .block.item-row {
3
+ // margin-top: 0;
4
4
 
5
- .block.item-object {
6
- border-top: 1px solid rgba(setcolor(slate),20%);
7
- }
8
- }
5
+ // .block.item-object {
6
+ // border-top: 1px solid rgba(setcolor(slate),20%);
7
+ // }
8
+ // }
9
9
 
10
- .block.item-object {
11
- padding: ($radius * 2) ($radius * 3);
12
- grid-template-columns: auto 100px;
13
- display: grid;
10
+ // .block.item-object {
11
+ // padding: ($radius * 2) ($radius * 3);
12
+ // grid-template-columns: auto 100px;
13
+ // display: grid;
14
14
 
15
- @media#{map-get($query,min768)} {
16
- grid-column: 2 / 3;
17
- }
18
- }
15
+ // @media#{map-get($query,min768)} {
16
+ // grid-column: 2 / 3;
17
+ // }
18
+ // }
19
19
 
20
- .block.item-object-price {
21
- text-align: right;
22
- }
20
+ // .block.item-object-price {
21
+ // text-align: right;
22
+ // }
@@ -8,6 +8,9 @@
8
8
 
9
9
  .block.util.type-page.style-page {
10
10
  @extend %ContentPrep;
11
+ fill: setcolor(coal);
12
+ grid-row-gap: 6px;
13
+ display: grid;
11
14
  }
12
15
 
13
16
  .block.util.type-chapter.style-page {
@@ -4,6 +4,7 @@
4
4
  // Helper Styles
5
5
 
6
6
  @import
7
+ "helpers/variables/colors",
7
8
  "helpers/variables",
8
9
  "helpers/mixins",
9
10
  "helpers/mixins/layout",
@@ -11,6 +12,7 @@
11
12
  "helpers/mixins/patterns",
12
13
  "helpers/mixins/theme",
13
14
  "helpers/extends",
15
+ "helpers/extends/forms",
14
16
  "helpers/extends/grid",
15
17
  "helpers/extends/layout",
16
18
  "helpers/themes";
@@ -78,7 +80,8 @@
78
80
  @import
79
81
  "link/book",
80
82
  "link/browse",
81
- "link/navigation";
83
+ "link/navigation",
84
+ "link/scroller";
82
85
 
83
86
  // List Styles
84
87
 
@@ -91,6 +94,7 @@
91
94
 
92
95
  @import
93
96
  "title/alert",
97
+ "title/book",
94
98
  "title/browse",
95
99
  "title/checkbox",
96
100
  "title/copied",
@@ -115,6 +119,7 @@
115
119
  "wrap/home",
116
120
  "wrap/scroller",
117
121
  "wrap/select",
122
+ "wrap/switch",
118
123
  "wrap/text";
119
124
 
120
125
  // Other Styles
@@ -180,4 +185,17 @@
180
185
  grid-column-gap: 20px;
181
186
  grid-row-gap: 15px;
182
187
  display: grid;
188
+ }
189
+
190
+ .block.no-label {
191
+ grid-column: 2 / 3;
192
+ }
193
+
194
+ .block.has-price {
195
+ grid-template-columns: auto 100px;
196
+ display: grid;
197
+ }
198
+
199
+ .block.has-price > span:last-child {
200
+ text-align: right;
183
201
  }
@@ -24,20 +24,3 @@
24
24
  :focus {
25
25
  outline: rgba(0,0,0,0);
26
26
  }
27
-
28
- // MINDSETS IMPORT ************************************************************
29
-
30
- // %table {
31
- // grid-template-columns: 220px repeat(4,110px);
32
- // list-style: none;
33
- // display: grid;
34
- // padding: 0;
35
-
36
- // li {
37
- // padding: 5px;
38
-
39
- // &:nth-of-type(n+2) {
40
- // text-align: center;
41
- // }
42
- // }
43
- // }
@@ -0,0 +1,16 @@
1
+
2
+ %Checkbox {
3
+ @include zeros(absolute);
4
+ left: ($radius * 4);
5
+ cursor: pointer;
6
+ height: 14px;
7
+ margin: auto;
8
+ width: 14px;
9
+ right: auto;
10
+
11
+ &:checked + label {
12
+ @include color(setcolor(slate),100%);
13
+ @include border(setcolor(slate));
14
+ @include bg(setcolor(slate));
15
+ }
16
+ }
@@ -14,7 +14,6 @@
14
14
  @mixin RotateTitle($origin : bottom left, $deg : 90){
15
15
  transform: rotate(-#{$deg}deg);
16
16
  transform-origin: $origin;
17
- position: absolute;
18
17
  }
19
18
 
20
19
  @mixin PadBtn($value : 4) {
@@ -1,12 +1,10 @@
1
1
 
2
-
3
-
4
2
  // Used in Mindsets
5
3
  @mixin ThemeMorph($name,$color) {
6
4
  // find output path by dynamic class name
7
5
  svg#morph path#output.#{$name} {
8
6
  // set associated color for this class
9
- stroke: $color;
7
+ stroke: setcolor($color);
10
8
  }
11
9
  }
12
10
 
@@ -76,7 +74,7 @@
76
74
  // Used in Patterns
77
75
  @mixin ThemeCheckbox($chapter,$title,$color) {
78
76
  .wrap.chapter-#{$chapter}.title-#{$title} {
79
- .checkbox-input:checked + label {
77
+ input[type="checkbox"]:checked + label {
80
78
  background-color: setcolor($color,xlight);
81
79
  border: 1px solid setcolor($color,light);
82
80
  color: setcolor($color,dark);
@@ -196,24 +194,43 @@
196
194
  }
197
195
  }
198
196
 
199
- // Used in Patterns
197
+ @mixin ThemeButtonCore($color) {
198
+ .button-wrap {
199
+ background: setcolor($color);
200
+
201
+ &:hover {
202
+ background: darken(setcolor($color),5%);
203
+ }
204
+ }
205
+ }
206
+
207
+ // Used in Patterns, Brandvoice
200
208
  @mixin ThemeButton($chapter,$title,$color) {
201
- .wrap.chapter-#{$chapter}.title-#{$title} {
202
- .button-wrap {
203
- background: setcolor($color);
204
209
 
205
- &:hover {
206
- background: darken(setcolor($color),5%);
207
- }
210
+ @if $title {
211
+ // if title has been provided
212
+ // page specific button colour
213
+ .wrap.chapter-#{$chapter}.title-#{$title} {
214
+ // use the same mixin core; avoid repetition
215
+ @include ThemeButtonCore($color);
216
+ }
217
+
218
+ } @else {
219
+ // if only the chapter has been provided
220
+ // chapter specific button colour
221
+ .wrap.chapter-#{$chapter} {
222
+ // use the same mixin core; avoid repetition
223
+ @include ThemeButtonCore($color);
208
224
  }
225
+
209
226
  }
210
227
  }
211
228
 
212
- // Used globally
229
+ // Used Globally
213
230
  @mixin ThemeHome($name,$color){
214
231
  // inherit theme color for the book cover
215
232
  .link.book.#{$name} {
216
- background-color: $color;
233
+ background-color: setcolor($color);
217
234
  }
218
235
  }
219
236
 
@@ -221,23 +238,23 @@
221
238
  @mixin ThemeTopbar($name,$color) {
222
239
  // inherit theme color for the topbar link
223
240
  .link.navigation.#{$name} {
224
- color: $color;
241
+ color: setcolor($color);
225
242
  }
226
243
  // add theme color tint to background on hover
227
244
  .link.navigation.#{$name}:hover {
228
- background-color: rgba($color,10%);
245
+ background-color: rgba(setcolor($color),10%);
229
246
  }
230
247
  }
231
248
 
232
249
  // Used globally
233
- @mixin ThemeCover($name,$color,$left:false,$chapter:false) {
250
+ @mixin ThemeCover($book,$chapter,$color,$left:false) {
251
+ // optional arguments must come last
234
252
 
235
253
  @if $chapter {
236
254
 
237
- // Chapter Covers
238
-
239
- .wrap.page-wrap.type-chapter.chapter-#{$name} {
240
- background-color: $color;
255
+ // chapter covers
256
+ .wrap.page-wrap.type-chapter.chapter-#{$chapter} {
257
+ background-color: setcolor($color);
241
258
 
242
259
  @if $left {
243
260
  .title.type-chapter {
@@ -247,23 +264,22 @@
247
264
  }
248
265
  } @else {
249
266
 
250
- // Chapter Covers
251
-
252
- .area.type-chapter.book-#{$name} {
253
- background-color: $color;
267
+ // book covers
268
+ .wrap.page-wrap.type-chapter.book-#{$book} {
269
+ background-color: setcolor($color);
254
270
  }
255
271
  }
256
272
  }
257
273
 
258
- // Used globally
259
- @mixin PageInfo($col,$right) {
274
+ // Used Globally
275
+ @mixin PageInfo($color,$right) {
260
276
 
261
277
  .title.page-weight {
262
- color: $col;
278
+ color: setcolor($color);
263
279
  }
264
280
 
265
281
  .title.page-chapter {
266
- color: $col;
282
+ color: setcolor($color);
267
283
  @if $right {
268
284
  right: #{$right}px;
269
285
  }
@@ -271,113 +287,96 @@
271
287
  }
272
288
 
273
289
  // Used in Mindsets
274
- @mixin ThemeRollerInput($name,$col) {
275
- background-color: rgba($col,10%);
276
- color: $col;
290
+ @mixin ThemeRollerInput($color) {
291
+ background-color: rgba(setcolor($color),10%);
292
+ color: setcolor($color);
293
+
294
+ &.active {
295
+ background-color: setcolor($color);
296
+ color: white;
297
+ }
277
298
  }
278
299
 
279
300
  // Used in Mindsets
280
- @mixin ThemeRollerOutput($name,$col) {
281
- background-color: rgba($col,10%);
282
- border-color: rgba($col,20%);
283
- color: $col;
301
+ @mixin ThemeRollerOutput($color) {
302
+ background-color: rgba(setcolor($color),10%);
303
+ border-color: rgba(setcolor($color),20%);
304
+ color: setcolor($color);
284
305
  }
285
306
 
286
- // Used in Mindsets
287
- @mixin ThemeRoller($name,$col,$chapter:false) {
307
+ // Used in Mindsets, Brandvoice
308
+ @mixin ThemeRoller($chapter,$title,$color) {
288
309
 
289
310
  @if $chapter {
290
311
 
291
- .list.roller.chapter-#{$name} {
312
+ .list.roller.chapter-#{$chapter} {
292
313
 
293
314
  .item.roller.input {
294
- @include ThemeRollerInput($name,$col);
295
-
296
- &.active {
297
- background-color: $col;
298
- color: white;
299
- }
315
+ @include ThemeRollerInput($color);
300
316
  }
301
317
 
302
318
  .item.roller.output {
303
- @include ThemeRollerOutput($name,$col);
319
+ @include ThemeRollerOutput($color);
304
320
  }
305
321
  }
306
322
 
307
323
  } @else {
308
324
 
309
- .item.roller.input.title-#{$name} {
310
- @include ThemeRollerInput($name,$col);
311
-
312
- &.active {
313
- background-color: $col;
314
- color: white;
315
- }
325
+ .item.roller.input.title-#{$title} {
326
+ @include ThemeRollerInput($color);
316
327
  }
317
328
 
318
- .item.roller.output.title-#{$name} {
319
- @include ThemeRollerOutput($name,$col);
329
+ .item.roller.output.title-#{$title} {
330
+ @include ThemeRollerOutput($color);
320
331
  }
321
332
  }
322
333
  }
323
334
 
324
- // Used in Mindsets
325
- @mixin ThemeChart($col) {
335
+ // Used in Mindsets, Brandvoice
336
+ @mixin ThemeChart($color) {
326
337
  .block.chart-pcent-title {
327
- color: $col;
338
+ color: setcolor($color);
328
339
  }
329
340
 
330
341
  .block.chart-bar-bg {
331
- background-color: $col;
342
+ background-color: setcolor($color);
332
343
  }
333
344
  }
334
345
 
335
- // Used in Mindsets
336
- @mixin ThemePages($name,$col,$right:false,$chapter:false) {
346
+ @mixin ThemePagesCore($color,$right) {
347
+ // stroke: setcolor($color);
348
+ fill: setcolor($color);
337
349
 
338
- @if $chapter {
350
+ @include PageInfo($color,$right);
339
351
 
340
- .wrap.type-page.chapter-#{$name} {
341
- fill: $col;
352
+ @include ThemeChart($color);
342
353
 
343
- @include PageInfo($col,$right);
354
+ .block.number-container {
355
+ color: setcolor($color);
356
+ }
344
357
 
345
- @include ThemeChart($col);
358
+ .lnk.stats {
359
+ color: setcolor($color);
360
+ }
346
361
 
347
- .block.number-container {
348
- color: $col;
349
- }
362
+ .list.pies {
363
+ color: setcolor($color);
364
+ }
365
+ }
350
366
 
351
- .lnk.stats {
352
- color: $col;
353
- }
367
+ // Used in Mindsets
368
+ @mixin ThemePages($book,$chapter,$color,$right:false) {
354
369
 
355
- .list.pies {
356
- color: $col;
357
- }
370
+ @if $chapter {
371
+
372
+ .wrap.type-page.chapter-#{$chapter} {
373
+ @include ThemePagesCore($color,$right);
358
374
  }
359
375
 
360
376
  } @else {
361
377
 
362
- .wrap.type-page.book-#{$name} {
363
- stroke: $col;
364
- fill: $col;
365
-
366
- @include PageInfo($col,$right);
367
-
368
- @include ThemeChart($col);
369
-
370
- .block.number-container {
371
- color: $col;
372
- }
373
-
374
- .lnk.stats {
375
- color: $col;
376
- }
377
-
378
- .list.pies {
379
- color: $col;
380
- }
378
+ .wrap.type-page.book-#{$book} {
379
+ @include ThemePagesCore($color,$right);
381
380
  }
382
381
  }
383
382
  }
@@ -386,44 +385,38 @@
386
385
  @mixin ThemeSnap($name,$color) {
387
386
  svg.snap {
388
387
  path.#{$name} {
389
- fill: #{$color};
388
+ fill: setcolor($color);
390
389
  }
391
390
  }
392
391
  }
393
392
 
394
- // Used everywhere
395
- @mixin ThemeSearch($name,$col,$chapter:false) {
393
+ @mixin ThemeSearchCore($color) {
394
+ color: setcolor($color);
396
395
 
397
- @if $chapter {
398
-
399
- // Search Results
396
+ &:hover {
397
+ background-color: rgba(setcolor($color),10%);
398
+ }
400
399
 
401
- .block.results-entry.chapter-#{$name} {
402
- color: $col;
400
+ .block.results-dot {
401
+ background-color: setcolor($color);
402
+ }
403
+ }
403
404
 
404
- &:hover {
405
- background-color: rgba($col,10%);
406
- }
405
+ // Used Globally
406
+ @mixin ThemeSearch($book,$chapter,$color) {
407
407
 
408
- .block.results-dot {
409
- background-color: $col;
410
- }
408
+ @if $chapter {
409
+
410
+ // theme results by chapter
411
+ .block.results-entry.chapter-#{$chapter} {
412
+ @include ThemeSearchCore($color);
411
413
  }
412
414
 
413
415
  } @else {
414
416
 
415
- // Search Results
416
-
417
- .block.results-entry.book-#{$name} {
418
- color: $col;
419
-
420
- &:hover {
421
- background-color: rgba($col,10%);
422
- }
423
-
424
- .block.results-dot {
425
- background-color: $col;
426
- }
417
+ // theme results by book
418
+ .block.results-entry.book-#{$book} {
419
+ @include ThemeSearchCore($color);
427
420
  }
428
421
  }
429
422
  }