futuro 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/html/head.liquid +4 -4
- data/_includes/html/loop/artwork/docs.liquid +6 -6
- data/_includes/html/overlay/browse/book.liquid +37 -0
- data/_includes/html/overlay/browse/chapter.liquid +36 -0
- data/_includes/html/overlay/browse/page.liquid +63 -0
- data/_includes/html/overlay/browse.liquid +4 -132
- data/_includes/html/overlay/load.liquid +35 -39
- data/_includes/html/overlay/search.liquid +19 -21
- data/_includes/html/page/artwork.liquid +1 -4
- data/_includes/html/page/header.liquid +4 -4
- data/_includes/html/page/info.liquid +2 -2
- data/_includes/html/page/layout/chapter.liquid +1 -1
- data/_includes/html/page/layout/custom.liquid +2 -2
- data/_includes/html/page/layout/home.liquid +2 -2
- data/_includes/html/page/layout/page.liquid +2 -6
- data/_includes/html/page/layout/panel.liquid +2 -2
- data/_includes/html/page/layout/tree.liquid +2 -2
- data/_includes/html/page/subtitle.liquid +3 -1
- data/_includes/html/page/title.liquid +6 -10
- data/_includes/html/page/topbar.liquid +11 -1
- data/_includes/html/page/utils/share.liquid +1 -1
- data/_includes/html/scripts.liquid +2 -2
- data/_layouts/feed.html +3 -2
- data/_layouts/single.html +3 -2
- data/_sass/_area.scss +5 -13
- data/_sass/_base.scss +14 -2
- data/_sass/_block.scss +19 -29
- data/_sass/_col.scss +14 -21
- data/_sass/_site.scss +0 -1
- data/_sass/_title.scss +6 -4
- data/_sass/_wrap.scss +8 -2
- data/_sass/block/_browse.scss +2 -2
- data/_sass/block/_results.scss +2 -2
- data/_sass/block/_util.scss +4 -0
- data/_sass/helpers/_extends.scss +5 -23
- data/_sass/helpers/_mixins.scss +4 -0
- data/_sass/helpers/_variables.scss +3 -0
- data/assets/js/footer/custom/CheckWidth.js +10 -11
- data/assets/js/footer/custom/ExpandBlock.js +5 -5
- data/assets/js/footer/custom/Overlays.js +74 -0
- data/assets/js/footer/custom/ScrollFunc.js +41 -43
- data/assets/js/footer/custom/Settings.js +7 -5
- data/assets/js/footer/custom/SetupHome.js +2 -3
- data/assets/js/footer/custom/SiteFunc.js +19 -12
- data/assets/js/footer/custom/SplitCode.js +1 -1
- data/assets/js/footer/custom/StartBrowse.js +21 -30
- data/assets/js/footer/custom/SwitchFocus.js +15 -0
- data/assets/js/footer/custom/UtilShare.js +6 -6
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.header.custom.js +1 -1
- data/assets/js/header/custom/Overlay.js +27 -38
- data/assets/js/header/custom/Site.js +47 -25
- metadata +21 -5
- data/_includes/artwork/orwell/animal/flob.scss +0 -5
- data/_includes/artwork/orwell/animal/waldo.scss +0 -45
- data/assets/js/footer/custom/OpenOverlay.js +0 -120
@@ -1,9 +1,11 @@
|
|
1
1
|
|
2
|
-
let body
|
3
|
-
|
2
|
+
let body = "body",
|
3
|
+
site = ".site",
|
4
|
+
shade = "rgba(0,0,0,0.05)",
|
4
5
|
controller = new ScrollMagic.Controller(),
|
5
|
-
|
6
|
+
BrowseScreen;
|
6
7
|
|
7
|
-
if (
|
8
|
-
|
8
|
+
if (Config.install != "theme") {
|
9
|
+
BrowseScreen = Overlay.custom[1];
|
10
|
+
BrowseScreen.data = $(BrowseScreen.chapter.col).children(BrowseScreen.chunk).children().length;
|
9
11
|
}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
|
2
2
|
const SetupHome = () => {
|
3
3
|
|
4
|
-
if ($(body).hasClass(
|
5
|
-
$(body).hasClass('layout-single')) {
|
4
|
+
if ($(body).hasClass("type-home")) {
|
6
5
|
|
7
6
|
let tl = gsap.timeline({repeat:-1,yoyo:true,defaults:{ease:"sine.inOut"}});
|
8
7
|
|
@@ -20,6 +19,6 @@ const SetupHome = () => {
|
|
20
19
|
}
|
21
20
|
}
|
22
21
|
|
23
|
-
if (
|
22
|
+
if (Config.install == "library") {
|
24
23
|
$(SetupHome);
|
25
24
|
}
|
@@ -1,31 +1,38 @@
|
|
1
1
|
|
2
2
|
const SiteFunc = () => {
|
3
3
|
|
4
|
-
if (!
|
4
|
+
if (!Config.respond) {
|
5
5
|
|
6
|
-
if (!Site.mobile) {
|
6
|
+
if (!Site.mobile.active) {
|
7
|
+
|
8
|
+
if (Config.install == "library" && $(body).hasClass("type-home")) {
|
9
|
+
|
10
|
+
gsap.set(site,{ display : "block" });
|
7
11
|
|
8
|
-
if ($(body).hasClass("setup-library") &&
|
9
|
-
$(body).hasClass("type-home")) {
|
10
|
-
gsap.set(Site.target,{display:"block"});
|
11
12
|
} else {
|
12
|
-
|
13
|
+
|
14
|
+
gsap.set(site,{ display : Config.display });
|
15
|
+
|
13
16
|
}
|
14
17
|
}
|
15
18
|
}
|
16
19
|
|
17
20
|
else {
|
18
|
-
|
21
|
+
|
22
|
+
gsap.set(site,{ display : Config.display });
|
23
|
+
|
19
24
|
}
|
20
25
|
|
21
26
|
setTimeout(function() {
|
22
27
|
|
23
|
-
gsap.set(Overlay.load.screen,{
|
28
|
+
gsap.set(Overlay.load.screen,{ clearProps : "display" });
|
29
|
+
|
24
30
|
SiteTl.pause();
|
31
|
+
|
25
32
|
},1000);
|
26
|
-
}
|
27
33
|
|
28
|
-
if (Overlay.load.active) {
|
29
|
-
$(SiteFunc);
|
30
|
-
$(window).resize(SiteFunc);
|
31
34
|
}
|
35
|
+
|
36
|
+
$(SiteFunc);
|
37
|
+
|
38
|
+
$(window).resize(SiteFunc);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
const StartBrowse = () => {
|
3
|
-
let book = $(".block.browse-lnk",
|
4
|
-
chapter = $(".block.browse-chunk",
|
5
|
-
page = $(".block.browse-chunk",
|
3
|
+
let book = $(".block.browse-lnk", BrowseScreen.book.col)[0],
|
4
|
+
chapter = $(".block.browse-chunk", BrowseScreen.chapter.col)[0],
|
5
|
+
page = $(".block.browse-chunk", BrowseScreen.page.col)[0],
|
6
6
|
pChild = $(page)[0].children[0],
|
7
7
|
bShade = $(book)[0].children[0],
|
8
8
|
cShade = $(chapter)[0].children[0].children[0],
|
@@ -10,7 +10,7 @@ const StartBrowse = () => {
|
|
10
10
|
tl = gsap.timeline();
|
11
11
|
|
12
12
|
tl
|
13
|
-
.set(
|
13
|
+
.set(BrowseScreen.chunk,{display:"none"})
|
14
14
|
.set([chapter,page,pChild],{display:"block"})
|
15
15
|
.set([bShade,cShade,pShade],{backgroundColor:shade})
|
16
16
|
;
|
@@ -18,33 +18,33 @@ const StartBrowse = () => {
|
|
18
18
|
|
19
19
|
const HoverBook = (e) => {
|
20
20
|
let label = $(e.target)[0].classList[2].slice(5),
|
21
|
-
chapter = $(
|
22
|
-
page = $(
|
21
|
+
chapter = $(BrowseScreen.chunk + "." + label, BrowseScreen.chapter.col),
|
22
|
+
page = $(BrowseScreen.chunk + "." + label, BrowseScreen.page.col),
|
23
23
|
pChild = $(page)[0].children[0],
|
24
24
|
cShade = $(chapter)[0].children[0].children[0],
|
25
25
|
pShade = $(pChild)[0].children[0].children[0],
|
26
26
|
tl = gsap.timeline();
|
27
27
|
|
28
28
|
tl
|
29
|
-
.set(
|
29
|
+
.set(BrowseScreen.chunk,{display:"none"})
|
30
30
|
.set([chapter,page,pChild],{display:"block"})
|
31
|
-
.set([
|
31
|
+
.set([BrowseScreen.book.lnk,BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"})
|
32
32
|
.set([$(e.target),cShade,pShade],{backgroundColor:shade});
|
33
33
|
}
|
34
34
|
|
35
35
|
const HoverChap = (e) => {
|
36
36
|
let aLabel = $(e.target)[0].classList[2].slice(5),
|
37
37
|
bLabel = $(e.target)[0].classList[3].slice(8),
|
38
|
-
cChunk = $(
|
39
|
-
pChunkA = $(
|
40
|
-
pChunkB = $(
|
38
|
+
cChunk = $(BrowseScreen.chunk + "." + aLabel, BrowseScreen.chapter.col),
|
39
|
+
pChunkA = $(BrowseScreen.chunk + "." + aLabel, BrowseScreen.page.col),
|
40
|
+
pChunkB = $(BrowseScreen.chunk + "." + bLabel, pChunkA),
|
41
41
|
pChunkBKid = $(pChunkB)[0].children[0].children[0],
|
42
42
|
tl = gsap.timeline();
|
43
43
|
|
44
44
|
tl
|
45
|
-
.set(
|
45
|
+
.set(BrowseScreen.chunk,{display:"none"})
|
46
46
|
.set([cChunk,pChunkA,pChunkB],{display:"block"})
|
47
|
-
.set([
|
47
|
+
.set([BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"})
|
48
48
|
.set([$(e.target),pChunkBKid],{backgroundColor:shade});
|
49
49
|
}
|
50
50
|
|
@@ -52,32 +52,23 @@ const HoverPage = (e) => {
|
|
52
52
|
let tl = gsap.timeline();
|
53
53
|
|
54
54
|
tl
|
55
|
-
.set(
|
55
|
+
.set(BrowseScreen.page.lnk,{clearProps:"backgroundColor"})
|
56
56
|
.set($(e.target),{backgroundColor:shade});
|
57
57
|
}
|
58
58
|
|
59
|
-
if (
|
59
|
+
if (Config.install != "theme") {
|
60
60
|
|
61
61
|
$(function(){
|
62
62
|
|
63
|
-
if (!$(body).hasClass(
|
64
|
-
|
65
|
-
if (Overlay.browse.data > 0) {
|
63
|
+
if (!$(body).hasClass("type-home")) {
|
66
64
|
|
65
|
+
if (BrowseScreen.data > 0) {
|
67
66
|
StartBrowse();
|
68
|
-
|
69
|
-
$(
|
70
|
-
|
71
|
-
});
|
72
|
-
|
73
|
-
$(Overlay.browse.chapter.lnk).hover( function (e) {
|
74
|
-
HoverChap(e);
|
75
|
-
});
|
76
|
-
|
77
|
-
$(Overlay.browse.page.lnk).hover( function (e) {
|
78
|
-
HoverPage(e);
|
79
|
-
});
|
67
|
+
$(BrowseScreen.book.lnk).hover(function(e){ HoverBook(e); });
|
68
|
+
$(BrowseScreen.chapter.lnk).hover(function(e){ HoverChap(e); });
|
69
|
+
$(BrowseScreen.page.lnk).hover(function(e){ HoverPage(e); });
|
80
70
|
}
|
81
71
|
}
|
82
72
|
});
|
73
|
+
|
83
74
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
const SwitchFocus = () => {
|
3
|
+
|
4
|
+
$("input,textarea").focusin(function() {
|
5
|
+
Site.focus = true;
|
6
|
+
console.log("site.focus",Site.focus);
|
7
|
+
});
|
8
|
+
|
9
|
+
$("input,textarea").focusout(function() {
|
10
|
+
Site.focus = false;
|
11
|
+
console.log("site.focus",Site.focus);
|
12
|
+
});
|
13
|
+
}
|
14
|
+
|
15
|
+
$(SwitchFocus);
|
@@ -28,10 +28,10 @@ const UtilShare = e => {
|
|
28
28
|
.set(title,{text:reset,clearProps:'all'},'+=0.3');
|
29
29
|
}
|
30
30
|
|
31
|
-
if (
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
if (Config.install != "theme") {
|
32
|
+
if (Config.share) {
|
33
|
+
$(function(){
|
34
|
+
$(Site.page.share).click(UtilShare);
|
35
|
+
});
|
36
|
+
}
|
37
37
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var body="body",shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller
|
1
|
+
"use strict";var BrowseScreen,body="body",site=".site",shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller;"theme"!=Config.install&&((BrowseScreen=Overlay.custom[1]).data=$(BrowseScreen.chapter.col).children(BrowseScreen.chunk).children().length);var PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=Site.desktop.width-e+"px",t=100/Site.desktop.width*e+"%";$(".width").html(o),gsap.set(Overlay.mobile.bar,{width:t})},CheckWidth=function(){Site.desktop.active?(gsap.set(Overlay.mobile.screen,{clearProps:"display"}),gsap.set(site,{display:Config.display})):(gsap.set(site,{clearProps:"display"}),gsap.set(Overlay.mobile.screen,{display:Config.display}),PrintWidth())};Config.respond||($(CheckWidth),$(window).resize(CheckWidth));var ExpandBlock=function(e){var o=$(e.target),t=o.parent().siblings(Site.page.artwork).children(Site.code.wrap);"none"==t.css("display")?(gsap.set(t,{display:Config.display}),gsap.set(o,{text:"Hide"})):(gsap.set(t,{clearProps:"display"}),gsap.set(o,{text:"Show"}))};"docs"==Config.style&&$(Site.code.expand).click(function(e){ExpandBlock(e)});var ChangeScreen=function(e,o,t){"close"==t?(gsap.set(body,{clearProps:"overflow"}),gsap.set(".overlay."+Overlay.custom[e].name,{clearProps:"display"}),Overlay.custom[e].open=!1):(gsap.set(body,{overflow:"hidden"}),gsap.set(".overlay."+Overlay.custom[e].name,{display:Config.display}),Overlay.custom[e].open=!0)},BuildScreens=function(e,o){var t=".btn.nav.".concat(o.name),n=".exit.".concat(o.name);$(t).click(function(){ChangeScreen(e,o,"open")}),$(n).click(function(){ChangeScreen(e,o,"close")})},KeyUp=function(t){27==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[e].open&&ChangeScreen(e,o,"close")}),65==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[0].open||(ChangeScreen(0,o,"open"),console.log(t.keyCode))}),66==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[1].open||ChangeScreen(1,o,"open")}),83==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[2].open||ChangeScreen(2,o,"open")})};$(function(){$(Overlay.custom).each(function(e,o){BuildScreens(e,o)})}),$(document).keyup(function(e){Site.focus||KeyUp(e)});var SetupHome=function(){$(body).hasClass("type-home")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(Site.home.book.area,{y:-5},{duration:1,y:5}),$(Site.home.wrap).slick(Site.home.slick),$(Site.home.book.wrap).hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};"library"==Config.install&&$(SetupHome);var SiteFunc=function(){Config.respond?gsap.set(site,{display:Config.display}):Site.mobile.active||("library"==Config.install&&$(body).hasClass("type-home")?gsap.set(site,{display:"block"}):gsap.set(site,{display:Config.display})),setTimeout(function(){gsap.set(Overlay.load.screen,{clearProps:"display"}),SiteTl.pause()},1e3)};$(SiteFunc),$(window).resize(SiteFunc);var SmoothScroll=function(){$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(e){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var o=$(this.hash);(o=o.length?o:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:o.offset().top},500,function(){var e=$(o);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})};$(SmoothScroll);var SplitCode=function(){$(Site.code.page).each(function(e,o){$(Site.code.scss,this);var t=$(Site.code.html,this),n=t.html();t.text(n)})};"docs"==Config.style&&$(SplitCode);var StartBrowse=function(){var e=$(".block.browse-lnk",BrowseScreen.book.col)[0],o=$(".block.browse-chunk",BrowseScreen.chapter.col)[0],t=$(".block.browse-chunk",BrowseScreen.page.col)[0],n=$(t)[0].children[0],c=$(e)[0].children[0],s=$(o)[0].children[0].children[0],r=$(n)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([o,t,n],{display:"block"}).set([c,s,r],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target)[0].classList[2].slice(5),t=$(BrowseScreen.chunk+"."+o,BrowseScreen.chapter.col),n=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),c=$(n)[0].children[0],s=$(t)[0].children[0].children[0],r=$(c)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([t,n,c],{display:"block"}).set([BrowseScreen.book.lnk,BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),s,r],{backgroundColor:shade})},HoverChap=function(e){var o=$(e.target)[0].classList[2].slice(5),t=$(e.target)[0].classList[3].slice(8),n=$(BrowseScreen.chunk+"."+o,BrowseScreen.chapter.col),c=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),s=$(BrowseScreen.chunk+"."+t,c),r=$(s)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([n,c,s],{display:"block"}).set([BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),r],{backgroundColor:shade})},HoverPage=function(e){gsap.timeline().set(BrowseScreen.page.lnk,{clearProps:"backgroundColor"}).set($(e.target),{backgroundColor:shade})};"theme"!=Config.install&&$(function(){$(body).hasClass("type-home")||0<BrowseScreen.data&&(StartBrowse(),$(BrowseScreen.book.lnk).hover(function(e){HoverBook(e)}),$(BrowseScreen.chapter.lnk).hover(function(e){HoverChap(e)}),$(BrowseScreen.page.lnk).hover(function(e){HoverPage(e)}))});var SwitchFocus=function(){$("input,textarea").focusin(function(){Site.focus=!0,console.log("site.focus",Site.focus)}),$("input,textarea").focusout(function(){Site.focus=!1,console.log("site.focus",Site.focus)})};$(SwitchFocus);var UtilCopy=function(e){var o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)},UtilShare=function(e){var o=$(e.target).parents(Site.page.share),t=$(o)[0].classList[2],n=$(o).children(Site.page.url).text().replace("index",""),c=$(o)[0].children[1],s=gsap.timeline(),r="";"page"==t&&(r="Copy page"),UtilCopy(n),s.set(c,{text:"Copied!"}).to(c,{duration:.3,opacity:0},"+=0.6").set(c,{text:r,clearProps:"all"},"+=0.3")};"theme"!=Config.install&&Config.share&&$(function(){$(Site.page.share).click(UtilShare)});
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var Overlay={mobile:{screen:".area.overlay.mobile",bar:".bar.mobile"},load:{title:".title.overlay.load",screen:".area.overlay.load",box:".box.load",bar:".bar.load",speed:.3},custom:[{name:"about",open:!1},{name:"browse",open:!1,chunk:".browse-chunk",book:{lnk:".lnk.browse-book",col:".col.browse.book"},chapter:{lnk:".lnk.browse-chapter",col:".col.browse.chapter"},page:{lnk:".lnk.browse-page",col:".col.browse.page"}},{name:"search",open:!1}]},Site={mobile:{active:!0},tablet:{active:!1,width:768},desktop:{active:!1,width:1200},focus:!1,scroll:{lnk:".lnk.scroller"},chapter:{target:".wrap.type-chapter"},page:{artwork:".area.page-artwork",share:".util-share",url:".util-url",height:560},code:{page:".wrap.type-page.style-docs",expand:".block.expand-block",wrap:".code-wrap",scss:".code-scss",html:".code-html"},home:{wrap:".wrap.home",class:"type-home",book:{wrap:".wrap.book",area:".area.book"},slick:{slidesToScroll:1,slidesToShow:5,infinite:!0,arrows:!1}}};Site.mobile.query="screen and (max-width:"+(Site.tablet.width-1)+"px)",Site.tablet.query="screen and (min-width:"+Site.tablet.width+"px) and (max-width:"+(Site.desktop.width-1)+"px)",Site.desktop.query="screen and (min-width:"+Site.desktop.width+"px)",enquire.register(Site.mobile.query,{match:function(){Site.mobile.active=!0,Site.tablet.active=!1,Site.desktop.active=!1}}),enquire.register(Site.tablet.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!0,Site.desktop.active=!1}}),enquire.register(Site.desktop.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!1,Site.desktop.active=!0}});
|
@@ -2,13 +2,11 @@
|
|
2
2
|
let Overlay = {
|
3
3
|
|
4
4
|
mobile : {
|
5
|
-
active : true,
|
6
5
|
screen : ".area.overlay.mobile",
|
7
6
|
bar : ".bar.mobile"
|
8
7
|
},
|
9
8
|
|
10
9
|
load : {
|
11
|
-
active : true,
|
12
10
|
title : ".title.overlay.load",
|
13
11
|
screen : ".area.overlay.load",
|
14
12
|
box : ".box.load",
|
@@ -16,43 +14,34 @@ let Overlay = {
|
|
16
14
|
speed : 0.3
|
17
15
|
},
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
open : false
|
24
|
-
},
|
25
|
-
|
26
|
-
browse : {
|
27
|
-
active : true,
|
28
|
-
btn : ".btn.nav.browse",
|
29
|
-
exit : ".exit.browse",
|
30
|
-
chunk : ".browse-chunk",
|
31
|
-
open : false,
|
32
|
-
|
33
|
-
book : {
|
34
|
-
lnk : ".lnk.browse-book",
|
35
|
-
col : ".col.browse.book"
|
17
|
+
custom : [
|
18
|
+
{
|
19
|
+
name : "about",
|
20
|
+
open : false
|
36
21
|
},
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
22
|
+
{
|
23
|
+
name : "browse",
|
24
|
+
open : false,
|
25
|
+
chunk : ".browse-chunk",
|
26
|
+
|
27
|
+
book : {
|
28
|
+
lnk : ".lnk.browse-book",
|
29
|
+
col : ".col.browse.book"
|
30
|
+
},
|
31
|
+
|
32
|
+
chapter : {
|
33
|
+
lnk : ".lnk.browse-chapter",
|
34
|
+
col : ".col.browse.chapter"
|
35
|
+
},
|
36
|
+
|
37
|
+
page : {
|
38
|
+
lnk : ".lnk.browse-page",
|
39
|
+
col : ".col.browse.page"
|
40
|
+
},
|
41
41
|
},
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
col : ".col.browse.page"
|
42
|
+
{
|
43
|
+
name : "search",
|
44
|
+
open : false
|
46
45
|
}
|
47
|
-
|
48
|
-
|
49
|
-
search : {
|
50
|
-
active : true,
|
51
|
-
input : ".input.text.search",
|
52
|
-
results : ".block.results",
|
53
|
-
btn : ".btn.nav.search",
|
54
|
-
exit : ".exit.search",
|
55
|
-
json : "/search.json",
|
56
|
-
open : false
|
57
|
-
}
|
46
|
+
]
|
58
47
|
};
|
@@ -1,32 +1,39 @@
|
|
1
1
|
|
2
2
|
let Site = {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
|
4
|
+
mobile : {
|
5
|
+
active : true
|
6
|
+
},
|
7
|
+
|
8
|
+
tablet : {
|
9
|
+
active : false,
|
10
|
+
width : 768
|
11
|
+
},
|
12
|
+
|
13
|
+
desktop : {
|
14
|
+
active : false,
|
15
|
+
width : 1200
|
16
|
+
},
|
17
|
+
|
18
|
+
focus : false,
|
10
19
|
|
11
20
|
scroll : {
|
12
21
|
lnk : ".lnk.scroller"
|
13
22
|
},
|
14
23
|
|
15
24
|
chapter : {
|
16
|
-
active : true,
|
17
25
|
target : ".wrap.type-chapter"
|
18
26
|
},
|
19
27
|
|
20
28
|
page : {
|
21
|
-
active : true,
|
22
29
|
artwork : ".area.page-artwork",
|
23
30
|
share : ".util-share",
|
24
|
-
url : ".util-url"
|
31
|
+
url : ".util-url",
|
32
|
+
height : 560
|
25
33
|
},
|
26
34
|
|
27
35
|
code : {
|
28
|
-
|
29
|
-
page : ".wrap.type-page.setup-docs",
|
36
|
+
page : ".wrap.type-page.style-docs",
|
30
37
|
expand : ".block.expand-block",
|
31
38
|
wrap : ".code-wrap",
|
32
39
|
scss : ".code-scss",
|
@@ -34,9 +41,8 @@ let Site = {
|
|
34
41
|
},
|
35
42
|
|
36
43
|
home : {
|
37
|
-
|
38
|
-
|
39
|
-
class : "type-home",
|
44
|
+
wrap : ".wrap.home",
|
45
|
+
class : "type-home",
|
40
46
|
|
41
47
|
book : {
|
42
48
|
wrap : ".wrap.book",
|
@@ -53,20 +59,36 @@ let Site = {
|
|
53
59
|
|
54
60
|
};
|
55
61
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
Site.open = "grid";
|
60
|
-
}
|
62
|
+
Site.mobile.query = "screen and (max-width:" + (Site.tablet.width - 1) + "px)";
|
63
|
+
Site.tablet.query = "screen and (min-width:" + Site.tablet.width + "px) and (max-width:" + (Site.desktop.width - 1) + "px)";
|
64
|
+
Site.desktop.query = "screen and (min-width:" + Site.desktop.width + "px)";
|
61
65
|
|
62
|
-
enquire.register(
|
66
|
+
enquire.register(Site.mobile.query,{
|
63
67
|
|
64
68
|
match : function() {
|
65
|
-
Site.mobile =
|
66
|
-
|
69
|
+
Site.mobile.active = true;
|
70
|
+
Site.tablet.active = false;
|
71
|
+
Site.desktop.active = false;
|
72
|
+
}
|
67
73
|
|
68
|
-
|
69
|
-
|
74
|
+
});
|
75
|
+
|
76
|
+
enquire.register(Site.tablet.query,{
|
77
|
+
|
78
|
+
match : function() {
|
79
|
+
Site.mobile.active = false;
|
80
|
+
Site.tablet.active = true;
|
81
|
+
Site.desktop.active = false;
|
82
|
+
}
|
83
|
+
|
84
|
+
});
|
85
|
+
|
86
|
+
enquire.register(Site.desktop.query,{
|
87
|
+
|
88
|
+
match : function() {
|
89
|
+
Site.mobile.active = false;
|
90
|
+
Site.tablet.active = false;
|
91
|
+
Site.desktop.active = true;
|
70
92
|
}
|
71
93
|
|
72
94
|
});
|
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.4.
|
4
|
+
version: 0.4.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-02-
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jekyll-autoprefixer
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,8 +89,6 @@ extra_rdoc_files: []
|
|
75
89
|
files:
|
76
90
|
- LICENSE
|
77
91
|
- README.md
|
78
|
-
- _includes/artwork/orwell/animal/flob.scss
|
79
|
-
- _includes/artwork/orwell/animal/waldo.scss
|
80
92
|
- _includes/html/analytics.liquid
|
81
93
|
- _includes/html/filter/loop.liquid
|
82
94
|
- _includes/html/filter/type.liquid
|
@@ -87,6 +99,9 @@ files:
|
|
87
99
|
- _includes/html/overlay.liquid
|
88
100
|
- _includes/html/overlay/about.liquid
|
89
101
|
- _includes/html/overlay/browse.liquid
|
102
|
+
- _includes/html/overlay/browse/book.liquid
|
103
|
+
- _includes/html/overlay/browse/chapter.liquid
|
104
|
+
- _includes/html/overlay/browse/page.liquid
|
90
105
|
- _includes/html/overlay/load.liquid
|
91
106
|
- _includes/html/overlay/mobile.liquid
|
92
107
|
- _includes/html/overlay/search.liquid
|
@@ -177,7 +192,7 @@ files:
|
|
177
192
|
- assets/fonts/230883_3_0.woff
|
178
193
|
- assets/js/footer/custom/CheckWidth.js
|
179
194
|
- assets/js/footer/custom/ExpandBlock.js
|
180
|
-
- assets/js/footer/custom/
|
195
|
+
- assets/js/footer/custom/Overlays.js
|
181
196
|
- assets/js/footer/custom/ScrollFunc.js
|
182
197
|
- assets/js/footer/custom/Settings.js
|
183
198
|
- assets/js/footer/custom/SetupHome.js
|
@@ -185,6 +200,7 @@ files:
|
|
185
200
|
- assets/js/footer/custom/SmoothScroll.js
|
186
201
|
- assets/js/footer/custom/SplitCode.js
|
187
202
|
- assets/js/footer/custom/StartBrowse.js
|
203
|
+
- assets/js/footer/custom/SwitchFocus.js
|
188
204
|
- assets/js/footer/custom/UtilShare.js
|
189
205
|
- assets/js/footer/vendor/gsap-draw.js
|
190
206
|
- assets/js/footer/vendor/gsap-morph.js
|
@@ -1,45 +0,0 @@
|
|
1
|
-
.tag {
|
2
|
-
&-buttons {
|
3
|
-
display: flex;
|
4
|
-
flex-wrap: wrap;
|
5
|
-
align-items: center;
|
6
|
-
font-size: 11px;
|
7
|
-
|
8
|
-
span:not(.hidden) {
|
9
|
-
display: inline-block;
|
10
|
-
color: #767676;
|
11
|
-
}
|
12
|
-
|
13
|
-
.tag-buttons__title {
|
14
|
-
padding-right: 0.5em;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
&-button {
|
19
|
-
@extend %bold;
|
20
|
-
letter-spacing: normal;
|
21
|
-
display: inline-block;
|
22
|
-
max-width: 30ch;
|
23
|
-
overflow: hidden;
|
24
|
-
text-overflow: ellipsis;
|
25
|
-
white-space: nowrap;
|
26
|
-
transition: all 0.1s;
|
27
|
-
border: 1px solid #767676;
|
28
|
-
border-radius: 11.5px;
|
29
|
-
text-decoration: none;
|
30
|
-
text-transform: uppercase;
|
31
|
-
padding: 5px 10px;
|
32
|
-
margin: 0.25em 0.5em 0.25em 0;
|
33
|
-
|
34
|
-
&:hover {
|
35
|
-
border-color: black;
|
36
|
-
color: black;
|
37
|
-
}
|
38
|
-
|
39
|
-
@media (min-width: 768px) {
|
40
|
-
font-size: 11px;
|
41
|
-
line-height: 13px;
|
42
|
-
border-radius: 12.5px;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|