futuro 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/html/head.liquid +4 -4
  3. data/_includes/html/loop/artwork/docs.liquid +6 -6
  4. data/_includes/html/overlay/browse/book.liquid +37 -0
  5. data/_includes/html/overlay/browse/chapter.liquid +36 -0
  6. data/_includes/html/overlay/browse/page.liquid +63 -0
  7. data/_includes/html/overlay/browse.liquid +4 -132
  8. data/_includes/html/overlay/load.liquid +35 -39
  9. data/_includes/html/overlay/search.liquid +19 -21
  10. data/_includes/html/page/artwork.liquid +1 -4
  11. data/_includes/html/page/header.liquid +4 -4
  12. data/_includes/html/page/info.liquid +2 -2
  13. data/_includes/html/page/layout/chapter.liquid +1 -1
  14. data/_includes/html/page/layout/custom.liquid +2 -2
  15. data/_includes/html/page/layout/home.liquid +2 -2
  16. data/_includes/html/page/layout/page.liquid +2 -6
  17. data/_includes/html/page/layout/panel.liquid +2 -2
  18. data/_includes/html/page/layout/tree.liquid +2 -2
  19. data/_includes/html/page/subtitle.liquid +3 -1
  20. data/_includes/html/page/title.liquid +6 -10
  21. data/_includes/html/page/topbar.liquid +11 -1
  22. data/_includes/html/page/utils/share.liquid +1 -1
  23. data/_includes/html/scripts.liquid +2 -2
  24. data/_layouts/feed.html +3 -2
  25. data/_layouts/single.html +3 -2
  26. data/_sass/_area.scss +5 -13
  27. data/_sass/_base.scss +14 -2
  28. data/_sass/_block.scss +19 -29
  29. data/_sass/_col.scss +14 -21
  30. data/_sass/_site.scss +0 -1
  31. data/_sass/_title.scss +6 -4
  32. data/_sass/_wrap.scss +8 -2
  33. data/_sass/block/_browse.scss +2 -2
  34. data/_sass/block/_results.scss +2 -2
  35. data/_sass/block/_util.scss +4 -0
  36. data/_sass/helpers/_extends.scss +5 -23
  37. data/_sass/helpers/_mixins.scss +4 -0
  38. data/_sass/helpers/_variables.scss +3 -0
  39. data/assets/js/footer/custom/CheckWidth.js +10 -11
  40. data/assets/js/footer/custom/ExpandBlock.js +5 -5
  41. data/assets/js/footer/custom/Overlays.js +74 -0
  42. data/assets/js/footer/custom/ScrollFunc.js +41 -43
  43. data/assets/js/footer/custom/Settings.js +7 -5
  44. data/assets/js/footer/custom/SetupHome.js +2 -3
  45. data/assets/js/footer/custom/SiteFunc.js +19 -12
  46. data/assets/js/footer/custom/SplitCode.js +1 -1
  47. data/assets/js/footer/custom/StartBrowse.js +21 -30
  48. data/assets/js/footer/custom/SwitchFocus.js +15 -0
  49. data/assets/js/footer/custom/UtilShare.js +6 -6
  50. data/assets/js/futuro.footer.custom.js +1 -1
  51. data/assets/js/futuro.header.custom.js +1 -1
  52. data/assets/js/header/custom/Overlay.js +27 -38
  53. data/assets/js/header/custom/Site.js +47 -25
  54. metadata +21 -5
  55. data/_includes/artwork/orwell/animal/flob.scss +0 -5
  56. data/_includes/artwork/orwell/animal/waldo.scss +0 -45
  57. data/assets/js/footer/custom/OpenOverlay.js +0 -120
@@ -1,120 +0,0 @@
1
-
2
- const OpenOverlay = type => {
3
- gsap.set(body,{overflow:"hidden"});
4
- gsap.set(".overlay." + type,{display:Site.open});
5
- }
6
-
7
- const CloseOverlay = type => {
8
- gsap.set([body,".overlay." + type],{clearProps:"all"});
9
- }
10
-
11
- function KeyFunc(e) {
12
- let code = e.keyCode;
13
-
14
- if (code == 27) {
15
-
16
- if (Overlay.about.active) {
17
-
18
- if (Overlay.about.open) {
19
- CloseOverlay("about");
20
- Overlay.about.open = false;
21
- }
22
- }
23
-
24
- if (Overlay.browse.active) {
25
-
26
- if (Overlay.browse.open) {
27
- CloseOverlay("browse");
28
- Overlay.browse.open = false;
29
- }
30
- }
31
-
32
- if (Overlay.search.active) {
33
-
34
- if (Overlay.search.open) {
35
- CloseOverlay("search");
36
- $(Overlay.search.input).val("");
37
- $(Overlay.search.results).html("");
38
- Overlay.search.open = false;
39
- }
40
- }
41
- }
42
-
43
- if (Overlay.about.active) {
44
-
45
- if (code == 65) {
46
- OpenOverlay("about");
47
- Overlay.about.open = true;
48
- }
49
- }
50
-
51
- if (Overlay.browse.active) {
52
-
53
- if (code == 66) {
54
- OpenOverlay("browse");
55
- Overlay.browse.open = true;
56
- }
57
- }
58
-
59
- if (Overlay.search.active) {
60
-
61
- if (code == 83) {
62
- OpenOverlay("search");
63
- $(Overlay.search.input).focus();
64
- Overlay.search.open = true;
65
- }
66
- }
67
-
68
- }
69
-
70
- if (Overlay.about.active) {
71
-
72
- $(Overlay.about.btn).click(function() {
73
- OpenOverlay("about");
74
- Overlay.about.open = true;
75
- });
76
-
77
- $(Overlay.about.exit).click(function() {
78
- CloseOverlay("about");
79
- Overlay.about.open = false;
80
- });
81
- }
82
-
83
- if (Overlay.browse.active) {
84
-
85
- $(Overlay.browse.btn).click(function() {
86
- OpenOverlay("browse");
87
- Overlay.browse.open = true;
88
- });
89
-
90
- $(Overlay.browse.exit).click(function() {
91
- CloseOverlay("browse");
92
- Overlay.browse.open = false;
93
- });
94
- }
95
-
96
- if (Overlay.search.active) {
97
-
98
- $(Overlay.search.btn).click(function() {
99
- OpenOverlay("search");
100
- $(Overlay.search.input).focus();
101
- Overlay.search.open = true;
102
- });
103
-
104
- $(Overlay.search.exit).click(function() {
105
- CloseOverlay("search");
106
- $(Overlay.search.input).val("");
107
- $(Overlay.search.results).html("");
108
- Overlay.search.open = false;
109
- });
110
- }
111
-
112
- $(document).keyup(function(e){
113
-
114
- if (!Site.respond) {
115
-
116
- if (!Site.mobile) { KeyFunc(e); }
117
-
118
- } else { KeyFunc(e); }
119
-
120
- });