futuro 1.0.7 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) 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/overlay/browse/page.liquid +1 -1
  6. data/_includes/html/page/content/loop/screen/header.liquid +45 -2
  7. data/_includes/html/page/footnote.liquid +4 -2
  8. data/_includes/html/page/header.liquid +1 -2
  9. data/_includes/html/page/layout/home.liquid +17 -7
  10. data/_includes/html/page/topbar.liquid +28 -17
  11. data/_includes/html/page/topbar/navigation/link.liquid +22 -0
  12. data/_includes/html/site/scroller.liquid +1 -1
  13. data/_includes/svg/site/icon.liquid +39 -19
  14. data/_sass/_button.scss +4 -4
  15. data/_sass/area/chapter.scss +2 -1
  16. data/_sass/area/page.scss +1 -1
  17. data/_sass/area/topbar.scss +1 -1
  18. data/_sass/block/chart.scss +2 -1
  19. data/_sass/block/form/screen.scss +62 -29
  20. data/_sass/block/util.scss +3 -0
  21. data/_sass/futuro.core.scss +5 -1
  22. data/_sass/helpers/extends.scss +0 -17
  23. data/_sass/helpers/mixins/layout.scss +0 -1
  24. data/_sass/helpers/mixins/theme.scss +111 -118
  25. data/_sass/helpers/themes.scss +14 -13
  26. data/_sass/helpers/variables.scss +24 -226
  27. data/_sass/helpers/variables/colors.scss +290 -0
  28. data/_sass/item/scroller.scss +0 -1
  29. data/_sass/link/book.scss +8 -6
  30. data/_sass/link/navigation.scss +11 -7
  31. data/_sass/link/scroller.scss +4 -0
  32. data/_sass/title/book.scss +9 -0
  33. data/_sass/title/page.scss +2 -0
  34. data/_sass/title/type.scss +1 -0
  35. data/_sass/wrap/switch.scss +12 -0
  36. data/assets/js/footer/custom/1_Settings.js +1 -2
  37. data/assets/js/footer/custom/2_Check.width.js +6 -23
  38. data/assets/js/footer/custom/4_Setup.home.js +3 -1
  39. data/assets/js/footer/custom/4_Setup.overlays.js +56 -56
  40. data/assets/js/footer/custom/4_Start.browse.js +3 -67
  41. data/assets/js/footer/custom/5_Util.share.js +0 -75
  42. data/assets/js/footer/custom/5_WhatsOn.js +7 -7
  43. data/assets/js/footer/custom/5_button.func.reset.js +15 -0
  44. data/assets/js/footer/custom/5_button.func.submit.js +39 -0
  45. data/assets/js/footer/custom/5_button.func.switch.js +26 -0
  46. data/assets/js/footer/custom/5_button.func.update.js +39 -0
  47. data/assets/js/footer/custom/5_respond.scroller.js +11 -0
  48. data/assets/js/footer/vendor/futuro/browsr.js +269 -0
  49. data/assets/js/footer/vendor/futuro/checkr.js +41 -0
  50. data/assets/js/footer/vendor/futuro/ovrly.js +102 -0
  51. data/assets/js/footer/vendor/{gsap-draw.js → gsap/draw.js} +0 -0
  52. data/assets/js/footer/vendor/{gsap-morph.js → gsap/morph.js} +0 -0
  53. data/assets/js/footer/vendor/{gsap-scramble.js → gsap/scramble.js} +0 -0
  54. data/assets/js/footer/vendor/gsap/scroll.js +11 -0
  55. data/assets/js/footer/vendor/{gsap-text.js → gsap/text.js} +0 -0
  56. data/assets/js/footer/vendor/{jquery.min.js → jquery.js} +0 -0
  57. data/assets/js/footer/vendor/{parsley.min.js → parsley.js} +0 -0
  58. data/assets/js/futuro.footer.custom.js +1 -1
  59. data/assets/js/futuro.footer.vendor.js +426 -314
  60. data/assets/js/futuro.header.custom.js +1 -1
  61. data/assets/js/futuro.header.legacy.js +4 -3
  62. data/assets/js/futuro.header.legacy.shopify.js +4 -3
  63. data/assets/js/futuro.header.vendor.js +4 -3
  64. data/assets/js/header/custom/1_Settings.js +8 -2
  65. data/assets/js/header/custom/2_Site.js +1 -3
  66. data/assets/js/header/vendor/gsap.js +4 -3
  67. metadata +22 -16
  68. data/_includes/svg/site/book/orwell.svg +0 -1
  69. data/_includes/svg/site/book/woolf.svg +0 -1
  70. data/assets/js/footer/custom/3_Setup.browse.js +0 -298
  71. data/assets/js/footer/custom/5_Animate.scroller.js +0 -11
  72. data/assets/js/footer/custom/5_Respond.browse.js +0 -42
  73. data/assets/js/footer/custom/5_Switch.button.js +0 -97
  74. data/assets/js/footer/vendor/scrollmagic-gsap.js +0 -310
  75. data/assets/js/footer/vendor/scrollmagic.js +0 -3
@@ -1,5 +1,4 @@
1
1
 
2
2
  .item.scroller {
3
3
  opacity: 0.5;
4
- fill: setcolor(gun);
5
4
  }
@@ -1,15 +1,17 @@
1
1
 
2
2
  .link.book {
3
- width: map-get($book,large);
4
- display: block;
5
- fill: white;
6
-
3
+ height: getbook(large,width) * 4;
4
+ width: getbook(large,width);
5
+ text-decoration: none;
6
+ place-content: center;
7
+ display: grid;
8
+
7
9
  @media#{map-get($query,max767)} {
8
- width: map-get($book,medium);
10
+ width: getbook(medium,width);
9
11
  }
10
12
 
11
13
  @media#{map-get($query,max599)} {
12
- width: map-get($book,small);
14
+ width: getbook(small,width);
13
15
  }
14
16
  }
15
17
 
@@ -5,12 +5,16 @@
5
5
  line-height: 1.1;
6
6
  padding: 0 20px;
7
7
  display: grid;
8
+ }
8
9
 
9
- button {
10
- text-transform: capitalize;
11
- border-radius: 0;
12
- line-height: 1.1;
13
- color: inherit;
14
- padding: 0;
15
- }
10
+ .link.navigation > button {
11
+ text-transform: capitalize;
12
+ border-radius: 0;
13
+ line-height: 1.1;
14
+ color: inherit;
15
+ padding: 0;
16
+ }
17
+
18
+ .link.navigation.home > button {
19
+ border-bottom: 3px solid;
16
20
  }
@@ -0,0 +1,4 @@
1
+
2
+ .link.scroller {
3
+ fill: setcolor(gun);
4
+ }
@@ -0,0 +1,9 @@
1
+
2
+ .title.book {
3
+ @include RotateTitle(center);
4
+ @extend %bold;
5
+ font-size: getbook(large,title);
6
+ pointer-events: none;
7
+ position: relative;
8
+ color: white;
9
+ }
@@ -5,6 +5,7 @@
5
5
 
6
6
  .title.page-chapter {
7
7
  @include RotateTitle(top right);
8
+ position: absolute;
8
9
  right: 78px;
9
10
  top: 56px;
10
11
  }
@@ -12,6 +13,7 @@
12
13
  .title.page-weight {
13
14
  @include RotateTitle;
14
15
  left: calc(100% - 58px);
16
+ position: absolute;
15
17
  text-align: right;
16
18
  bottom: 56px;
17
19
  }
@@ -1,6 +1,7 @@
1
1
 
2
2
  %StylePage {
3
3
  @include RotateTitle;
4
+ position: absolute;
4
5
  bottom: 56px;
5
6
  left: 128px;
6
7
  }
@@ -0,0 +1,12 @@
1
+
2
+ .wrap.switch h1 {
3
+ margin-bottom: 20px;
4
+ }
5
+
6
+ .wrap.switch h5 {
7
+ margin-bottom: 20px;
8
+ }
9
+
10
+ .wrap.switch .control {
11
+ margin-top: 20px;
12
+ }
@@ -1,6 +1,5 @@
1
1
 
2
- let shade = "rgba(0,0,0,0.05)",
3
- controller = new ScrollMagic.Controller();
2
+ gsap.registerPlugin(ScrollTrigger);
4
3
 
5
4
  Browse.able = false;
6
5
 
@@ -1,25 +1,8 @@
1
1
 
2
- Print.width = () => {
3
- var size = $(document)[0].documentElement.clientWidth,
4
- more = Site.desktop.width - size + "px",
5
- percent = (100/Site.desktop.width) * size + "%";
6
-
7
- $(".width").html(more);
8
- gsap.set(Overlay.mobile.bar,{width:percent});
9
- }
10
-
11
- Check.width = () => {
12
- if (!Site.desktop.active) {
13
- gsap.set(".site",{ clearProps : "display" });
14
- gsap.set(Overlay.mobile.screen,{ display : Config.display });
15
- Print.width();
16
- } else {
17
- gsap.set(Overlay.mobile.screen,{ clearProps : "display" });
18
- gsap.set(".site",{ display : Config.display });
19
- }
20
- }
21
-
22
2
  if (!Config.respond) {
23
- $(Check.width());
24
- $(window).resize(Check.width());
25
- }
3
+ Checkr(Site.desktop.active);
4
+
5
+ $(window).resize(() => {
6
+ Checkr(Site.desktop.active);
7
+ });
8
+ }
@@ -32,4 +32,6 @@ Setup.home = () => {
32
32
 
33
33
  }
34
34
 
35
- if (Site.isLibrary) { if (Body.isHome) { $(Setup.home()); } }
35
+ if (Site.isLibrary && Body.isHome) {
36
+ $(Setup.home());
37
+ }
@@ -1,92 +1,92 @@
1
1
 
2
- const ChangeScreen = (index,value,state) => {
2
+ // const ChangeScreen = (index,value,state) => {
3
3
 
4
- let source = Overlay.custom[index],
5
- target = ".area.overlay-" + source.name,
6
- input = $(".input.text-search"),
7
- results = $(".wrap.results");
4
+ // let source = Overlay.custom[index],
5
+ // target = ".area.overlay-" + source.name,
6
+ // input = $(".input.text-search"),
7
+ // results = $(".wrap.results");
8
8
 
9
- if (state == "close") {
9
+ // if (state == "close") {
10
10
 
11
- gsap.set("body",{
12
- clearProps : "overflow"
13
- });
11
+ // gsap.set("body",{
12
+ // clearProps : "overflow"
13
+ // });
14
14
 
15
- gsap.set(target, {
16
- clearProps : "display"
17
- });
15
+ // gsap.set(target, {
16
+ // clearProps : "display"
17
+ // });
18
18
 
19
- source.open = false;
19
+ // source.open = false;
20
20
 
21
- if (value.name == "search") {
21
+ // if (value.name == "search") {
22
22
 
23
- input.val("");
23
+ // input.val("");
24
24
 
25
- results.empty();
25
+ // results.empty();
26
26
 
27
- }
27
+ // }
28
28
 
29
- } else {
29
+ // } else {
30
30
 
31
- gsap.set("body", {
32
- overflow : "hidden"
33
- });
31
+ // gsap.set("body", {
32
+ // overflow : "hidden"
33
+ // });
34
34
 
35
- gsap.set(target, {
36
- display : Config.display
37
- });
35
+ // gsap.set(target, {
36
+ // display : Config.display
37
+ // });
38
38
 
39
- source.open = true;
39
+ // source.open = true;
40
40
 
41
- if (value.name == "search") {
41
+ // if (value.name == "search") {
42
42
 
43
- input.focus();
43
+ // input.focus();
44
44
 
45
- }
46
- }
47
- }
45
+ // }
46
+ // }
47
+ // }
48
48
 
49
- const BuildScreens = (index,value) => {
50
- let button = Overlay.button + "." + value.name,
51
- exit = Overlay.exit + "." + value.name;
49
+ // const BuildScreens = (index,value) => {
50
+ // let button = Overlay.button + "." + value.name,
51
+ // exit = Overlay.exit + "." + value.name;
52
52
 
53
- $(button).click(function() {
54
- ChangeScreen(index,value,"open");
55
- });
53
+ // $(button).click(function() {
54
+ // ChangeScreen(index,value,"open");
55
+ // });
56
56
 
57
- $(exit).click(function() {
58
- ChangeScreen(index,value,"close");
59
- });
60
- }
57
+ // $(exit).click(function() {
58
+ // ChangeScreen(index,value,"close");
59
+ // });
60
+ // }
61
61
 
62
- const KeyUp = (e) => {
62
+ // const KeyUp = (e) => {
63
63
 
64
- $(Overlay.custom).map((index,value) => {
64
+ // $(Overlay.custom).map((index,value) => {
65
65
 
66
- if (value.open && e.keyCode == 27) { ChangeScreen(index,value,"close"); }
66
+ // if (value.open && e.keyCode == 27) { ChangeScreen(index,value,"close"); }
67
67
 
68
- if (!value.open && !Site.inFocus) {
68
+ // if (!value.open && !Site.inFocus) {
69
69
 
70
- if (e.keyCode == 65 && value.name == "about") { ChangeScreen(index,value,"open"); }
70
+ // if (e.keyCode == 65 && value.name == "about") { ChangeScreen(index,value,"open"); }
71
71
 
72
- if (e.keyCode == 66 && value.name == "browse") { ChangeScreen(index,value,"open"); }
72
+ // if (e.keyCode == 66 && value.name == "browse") { ChangeScreen(index,value,"open"); }
73
73
 
74
- if (e.keyCode == 83 && value.name == "search") { ChangeScreen(index,value,"open"); }
74
+ // if (e.keyCode == 83 && value.name == "search") { ChangeScreen(index,value,"open"); }
75
75
 
76
- }
76
+ // }
77
77
 
78
- });
78
+ // });
79
79
 
80
- }
80
+ // }
81
81
 
82
- $(Overlay.custom).map((index,value) => {
82
+ // $(Overlay.custom).map((index,value) => {
83
83
 
84
- BuildScreens(index,value);
84
+ // BuildScreens(index,value);
85
85
 
86
- });
86
+ // });
87
87
 
88
- $(document).keyup(function(e) {
88
+ // $(document).keyup(function(e) {
89
89
 
90
- KeyUp(e);
90
+ // KeyUp(e);
91
91
 
92
- });
92
+ // });
@@ -1,68 +1,4 @@
1
1
 
2
- Start.browse = () => {
3
-
4
- if (Book.url) {
5
-
6
- Browse.book.links.map((index,value)=>{
7
-
8
- Check.book.class(value);
9
-
10
- if (Browse.found.success) {
11
-
12
- gsap.set(value,BackgroundShade);
13
-
14
- }
15
-
16
- });
17
-
18
- Browse.chapter.books.map((index,value)=>{
19
-
20
- Check.book.class(value);
21
-
22
- if (Browse.found.success) {
23
-
24
- Browse.chapter.books.filter(index,value);
25
-
26
- } else {
27
-
28
- gsap.set(value,DisplayNone);
29
-
30
- }
31
-
32
- });
33
-
34
- Browse.page.books.map((index,value)=>{
35
-
36
- Check.book.class(value);
37
-
38
- if (Browse.found.success) {
39
-
40
- Browse.page.books.filter(index,value);
41
-
42
- } else {
43
-
44
- gsap.set(value,DisplayNone);
45
-
46
- }
47
-
48
- });
49
-
50
- } else {
51
-
52
- Browse.chapter.books.map((index,value)=>{
53
-
54
- Browse.chapter.books.filter(index,value);
55
-
56
- });
57
-
58
- Browse.page.books.map((index,value)=>{
59
-
60
- Browse.page.books.filter(index,value);
61
-
62
- });
63
-
64
- }
65
-
66
- }
67
-
68
- if (!Site.isTheme) { if (!Body.isHome) { if (Browse.able) { Start.browse(); } } }
2
+ if (!Site.isTheme && !Body.isHome && Browse.able) {
3
+ Browsr();
4
+ }
@@ -23,78 +23,3 @@ Util.share = function(ting) {
23
23
 
24
24
  Util.copy(getUrl);
25
25
  }
26
-
27
- // const UtilCopy = str => {
28
- // const el = document.createElement('textarea');
29
- // el.value = str;
30
- // document.body.appendChild(el);
31
- // el.select();
32
- // document.execCommand('copy');
33
- // document.body.removeChild(el);
34
- // }
35
-
36
- // // const UtilShare = e => {
37
- // // let ting = $(e.target).parents(Site.page.share),
38
- // // type = $(ting)[0].classList[2],
39
- // // url = $(ting).children(Site.page.url).text().replace('index',''),
40
- // // title = $(ting)[0].children[1],
41
- // // tl = gsap.timeline(),
42
- // // reset = '';
43
-
44
- // // console.log(e);
45
-
46
-
47
- // // if (type == 'page') {
48
- // // reset = 'Copy page';
49
- // // }
50
-
51
- // // UtilCopy(url);
52
-
53
- // // tl
54
- // // .set(title,{
55
- // // text : 'Copied!'
56
- // // })
57
- // // .to(title,{
58
- // // duration : 0.3,
59
- // // opacity : 0
60
- // // },'+=0.6')
61
- // // .set(title,{
62
- // // text : reset,
63
- // // clearProps : 'all'
64
- // // },'+=0.3');
65
- // // }
66
-
67
- // function UtilShare() {
68
- // let target = $(this).parents(Site.page.share),
69
- // getUrl = $(target.context).find(Site.page.url).text(),
70
- // tl = gsap.timeline(),
71
- // type = "";
72
- // getUrl = getUrl.replace("index","");
73
-
74
- // console.log("Util runs!");
75
-
76
-
77
- // $(target.context.classList).map((index,value)=>{
78
- // if (value.includes("type-")) {
79
- // type = value;
80
- // }
81
- // });
82
-
83
- // UtilCopy(getUrl);
84
-
85
- // // tl
86
- // // .set(title,{
87
- // // text : 'Copied!'
88
- // // })
89
- // // .to(title,{
90
- // // duration : 0.3,
91
- // // opacity : 0
92
- // // },'+=0.6')
93
- // // .set(title,{
94
- // // text : reset,
95
- // // clearProps : 'all'
96
- // // },'+=0.3');
97
-
98
- // }
99
-
100
- // // if (!Site.isTheme) { if (Site.isShareable) { $(Site.page.share).click(UtilShare); }}