futuro 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc3eeed4ba8c4ad6bb1faa0fc7c7559981b8ef132184caf708a8cd09759acda1
4
- data.tar.gz: 513a00228505aeeed9b4821da6f3233f6ea3e02475488cbcd98f9fb5b80723ec
3
+ metadata.gz: abc6d3eb0dfd5e4f1111c0c9373e4b5e684577329e57617dce8131d784d59842
4
+ data.tar.gz: 337fa72d6f6cd481e2367bcde0741ae130078008ec2ee93556687bf46e4bee78
5
5
  SHA512:
6
- metadata.gz: 540439f9f26b9c9e1bb772c631b656e22f6f481f372ce83e3757833509ac38f42d99f8fb2b738722f78fca134d13d2c790deb65f26c7b2e60f2e894727a68e76
7
- data.tar.gz: f3956ac9992cc5e9a2dff45deeda13c069bdc22c8a02b3c4849b2c404cdac0a462eb9213a4ff4c6d0d350792c98fee8592bfa9abd724b8f17e7ca35b2d5853bc
6
+ metadata.gz: 862ea71c568672ee5a41fd56c1ac8a47953c12432e59a7afbfd6b99e2bf8a71f8a59931efe344dd4bda1c377ce81d6339f54ed0962fee3b08be04c95a34ff1ea
7
+ data.tar.gz: a2552f2433fc15453fb8867e04ff7dd0e569baff1e17736e41315fcab9fa06c8834a97460c5c11c18a6c40b1ee92e16dff823121559320536d342f8ad8023b3f
@@ -4,11 +4,18 @@
4
4
  <div class="{{ page.type | prepend: 'split-' }} left">
5
5
 
6
6
  {% include html/page/title.liquid %}
7
+
7
8
  {% include html/page/subtitle.liquid %}
8
9
 
9
10
  {%- if page.text -%}
10
11
 
11
- <div class="block page-split">
12
+ {% assign count = 0 %}
13
+
14
+ {%- for item in page.text -%}
15
+ {% assign count = count | plus : 1 %}
16
+ {%- endfor -%}
17
+
18
+ <div class="block page-split page-split-{{ count }} {% unless page.subtitle %}no-subtitle{% endunless %}">
12
19
 
13
20
  {%- for item in page.text -%}
14
21
 
@@ -25,18 +32,24 @@
25
32
  {%- for item in item.switch -%}
26
33
 
27
34
  {%- if item.before -%}
35
+
28
36
  <div class="before">
29
37
  {{ item.before }}
30
38
  </div>
39
+
31
40
  {%- elsif item.after -%}
41
+
32
42
  <div class="after">
33
43
  {{ item.after }}
34
44
  </div>
45
+
35
46
  {%- elsif item.button -%}
47
+
36
48
  <div class="button-wrap switch-button {{ page.chapter | downcase }}">
37
- <button type="button">Switch</button>
49
+ <button type="button">Next</button>
38
50
  <span class="button-bg"></span>
39
51
  </div>
52
+
40
53
  {%- endif -%}
41
54
 
42
55
  {%- endfor -%}
data/_sass/_base.scss CHANGED
@@ -52,12 +52,12 @@ footer {
52
52
  z-index: 3;
53
53
  }
54
54
 
55
- p + p {
55
+ p + p, p + ul {
56
56
  margin-top: 20px;
57
57
  }
58
58
 
59
59
  ul, ol {
60
- padding: 20px 0 0 20px;
60
+ padding: 0 0 0 20px;
61
61
  list-style: outside;
62
62
  margin: 0;
63
63
 
@@ -66,12 +66,12 @@ ul, ol {
66
66
  }
67
67
 
68
68
  &.letters {
69
- padding: 20px 0 0 30px;
69
+ padding: 0 0 0 30px;
70
70
  list-style: lower-alpha;
71
71
  }
72
72
 
73
73
  &.numbers {
74
- padding: 20px 0 0 30px;
74
+ padding: 0 0 0 30px;
75
75
  list-style: decimal;
76
76
  }
77
77
 
@@ -85,12 +85,13 @@ a {
85
85
  color: inherit;
86
86
  }
87
87
 
88
- h4, h5, h3, h2, h6, h1, p, ul, ol {
88
+ h1, h2, h3, h4, h5, h6, p, ul, ol {
89
89
  margin: 0;
90
90
  }
91
91
 
92
92
  h1 {
93
93
  @extend %bold;
94
+ margin-bottom: 20px;
94
95
  font-size: 2.8rem;
95
96
  }
96
97
 
data/_sass/_block.scss CHANGED
@@ -10,9 +10,21 @@
10
10
  }
11
11
 
12
12
  .block.page-split {
13
+ display: grid;
14
+ }
15
+
16
+ .block.page-split-2 {
13
17
  grid-template-columns: repeat(2,1fr);
14
18
  grid-column-gap: 40px;
15
- display: grid;
19
+ }
20
+
21
+ .block.page-split-3 {
22
+ grid-template-columns: repeat(3,1fr);
23
+ grid-column-gap: 20px;
24
+ }
25
+
26
+ .block.page-split.no-subtitle {
27
+ padding-top: 20px;
16
28
  }
17
29
 
18
30
  .block.scroller {
data/_sass/_split.scss CHANGED
@@ -14,10 +14,10 @@
14
14
  align-items: baseline;
15
15
  padding: 20px 20px 0;
16
16
  display: grid;
17
+ }
17
18
 
18
- .page-subtitle {
19
- margin: 0;
20
- }
19
+ .split-page.tree h1 {
20
+ margin: 0;
21
21
  }
22
22
 
23
23
  .split-page.panel {
data/_sass/area/page.scss CHANGED
@@ -8,6 +8,10 @@
8
8
  }
9
9
  }
10
10
 
11
+ .area.type-page.tag-cheatsheet h1 {
12
+ margin-bottom: 40px;
13
+ }
14
+
11
15
  .area.type-page.style-docs {
12
16
  grid-row-gap: 20px;
13
17
  }
@@ -54,7 +54,3 @@
54
54
  "wrap/book",
55
55
  "wrap/home",
56
56
  "wrap/scroller";
57
-
58
- .page-subtitle {
59
- margin-bottom: 20px;
60
- }
@@ -40,7 +40,7 @@ const ButtonSwitch = (e,type) => {
40
40
  });
41
41
 
42
42
  gsap.set(text,{
43
- text : "Switch"
43
+ text : "Next"
44
44
  });
45
45
  }
46
46
 
@@ -1 +1 @@
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),console.log("ready?");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 ActiveBook=function(){if(!$(body).hasClass("type-home")){var e=$(body)[0].classList,t="";$(e).each(function(e,o){o.startsWith("book-")&&(t=o.slice(5),gsap.set(Site.topbar.lnk+"."+t,{borderBottom:"3px solid"}))})}};$(function(){"theme"!=Config.install&&$(ActiveBook)});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=Overlay.button+"."+o.name,n=Overlay.exit+"."+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 ScrollerUpdate=function(){var e=$(Site.scroll.lnk);1<e.length&&e.each(function(){var e=$(this)[0].classList[2],o=gsap.to(Site.scroll.lnk+"."+e,{duration:.1,opacity:1});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(o).addTo(controller)})},ScrollFunc=function(){var n="<div class='block scroller'><div class='wrap scroller'>";$(Site.chapter.target).each(function(e,o){var t=$(o)[0].children[0].id;0==e?n+='<a class="lnk scroller '.concat(t,'" href="#').concat(t,'" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>'):e==$(Site.chapter.target).length-1?n+='<a class="lnk scroller '.concat(t,'" href="#').concat(t,'"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>'):n+='<a class="lnk scroller '.concat(t,'" href="#').concat(t,'"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>')}),n+="</div></div>",$(site).append(n),ScrollerUpdate(),SmoothScroll()};$(function(){"theme"!=Config.install&&1<$(Site.chapter.target).length&&ScrollFunc()});var SetupHome=function(){$(body).hasClass("type-home")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".area.book",{y:-5},{duration:1,y:5}),$(".wrap.home").slick(Config.slick),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};"library"==Config.install&&$(SetupHome);var isLibraryHome="library"==Config.install&&$(body).hasClass("type-home"),SiteFunc=function(){Config.respond?isLibraryHome?gsap.set(site,{display:"block"}):gsap.set(site,{display:Config.display}):Site.mobile.active||(isLibraryHome?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],r=$(e)[0].children[0],s=$(o)[0].children[0].children[0],a=$(n)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([o,t,n],{display:"block"}).set([r,s,a],{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),r=$(n)[0].children[0],s=$(t)[0].children[0].children[0],a=$(r)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([t,n,r],{display:"block"}).set([BrowseScreen.book.lnk,BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),s,a],{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),r=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),s=$(BrowseScreen.chunk+"."+t,r),a=$(s)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([n,r,s],{display:"block"}).set([BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),a],{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 Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,o){var t=$(e.target),n=t.siblings(".button-bg"),r=t.parent(),s={dis:{before:$(r).siblings(".before"),after:$(r).siblings(".after")},dat:{before:$(r).parent().siblings().children(".before"),after:$(r).parent().siblings().children(".after")}},a=[s.dis.before,s.dat.before],c=[s.dis.after,s.dat.after];if(r.hasClass("undo"))"down"===o?gsap.set([r,n],{clearProps:"all"}):"up"===o&&($(r).removeClass("undo"),gsap.set([a,c],{clearProps:"all"}),gsap.set(t,{text:"Switch"}));else if("down"===o)gsap.set([r,n],{scale:.95});else if("up"===o){gsap.timeline().to(a,{duration:.2,opacity:0}).set([r,n],{backgroundColor:Color.green}).set(t,{text:"Undo"}).set(a,{display:"none"}).set(c,{display:"block"}).to(n,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}).call(function(){$(r).addClass("undo")})}};$(Button.target).mousedown(function(e){ButtonSwitch(e,"down")}).mouseup(function(e){ButtonSwitch(e,"up")});var SwitchFocus=function(){$("input,textarea").focusin(function(){Site.focus=!0}),$("input,textarea").focusout(function(){Site.focus=!1})};$(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",""),r=$(o)[0].children[1],s=gsap.timeline(),a="";"page"==t&&(a="Copy page"),UtilCopy(n),s.set(r,{text:"Copied!"}).to(r,{duration:.3,opacity:0},"+=0.6").set(r,{text:a,clearProps:"all"},"+=0.3")};"theme"!=Config.install&&Config.share&&$(function(){$(Site.page.share).click(UtilShare)});
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),console.log("ready?");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 ActiveBook=function(){if(!$(body).hasClass("type-home")){var e=$(body)[0].classList,t="";$(e).each(function(e,o){o.startsWith("book-")&&(t=o.slice(5),gsap.set(Site.topbar.lnk+"."+t,{borderBottom:"3px solid"}))})}};$(function(){"theme"!=Config.install&&$(ActiveBook)});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=Overlay.button+"."+o.name,n=Overlay.exit+"."+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 ScrollerUpdate=function(){var e=$(Site.scroll.lnk);1<e.length&&e.each(function(){var e=$(this)[0].classList[2],o=gsap.to(Site.scroll.lnk+"."+e,{duration:.1,opacity:1});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(o).addTo(controller)})},ScrollFunc=function(){var n="<div class='block scroller'><div class='wrap scroller'>";$(Site.chapter.target).each(function(e,o){var t=$(o)[0].children[0].id;0==e?n+='<a class="lnk scroller '.concat(t,'" href="#').concat(t,'" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>'):e==$(Site.chapter.target).length-1?n+='<a class="lnk scroller '.concat(t,'" href="#').concat(t,'"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>'):n+='<a class="lnk scroller '.concat(t,'" href="#').concat(t,'"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>')}),n+="</div></div>",$(site).append(n),ScrollerUpdate(),SmoothScroll()};$(function(){"theme"!=Config.install&&1<$(Site.chapter.target).length&&ScrollFunc()});var SetupHome=function(){$(body).hasClass("type-home")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".area.book",{y:-5},{duration:1,y:5}),$(".wrap.home").slick(Config.slick),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};"library"==Config.install&&$(SetupHome);var isLibraryHome="library"==Config.install&&$(body).hasClass("type-home"),SiteFunc=function(){Config.respond?isLibraryHome?gsap.set(site,{display:"block"}):gsap.set(site,{display:Config.display}):Site.mobile.active||(isLibraryHome?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],r=$(e)[0].children[0],s=$(o)[0].children[0].children[0],a=$(n)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([o,t,n],{display:"block"}).set([r,s,a],{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),r=$(n)[0].children[0],s=$(t)[0].children[0].children[0],a=$(r)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([t,n,r],{display:"block"}).set([BrowseScreen.book.lnk,BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),s,a],{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),r=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),s=$(BrowseScreen.chunk+"."+t,r),a=$(s)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([n,r,s],{display:"block"}).set([BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),a],{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 Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,o){var t=$(e.target),n=t.siblings(".button-bg"),r=t.parent(),s={dis:{before:$(r).siblings(".before"),after:$(r).siblings(".after")},dat:{before:$(r).parent().siblings().children(".before"),after:$(r).parent().siblings().children(".after")}},a=[s.dis.before,s.dat.before],c=[s.dis.after,s.dat.after];if(r.hasClass("undo"))"down"===o?gsap.set([r,n],{clearProps:"all"}):"up"===o&&($(r).removeClass("undo"),gsap.set([a,c],{clearProps:"all"}),gsap.set(t,{text:"Next"}));else if("down"===o)gsap.set([r,n],{scale:.95});else if("up"===o){gsap.timeline().to(a,{duration:.2,opacity:0}).set([r,n],{backgroundColor:Color.green}).set(t,{text:"Undo"}).set(a,{display:"none"}).set(c,{display:"block"}).to(n,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}).call(function(){$(r).addClass("undo")})}};$(Button.target).mousedown(function(e){ButtonSwitch(e,"down")}).mouseup(function(e){ButtonSwitch(e,"up")});var SwitchFocus=function(){$("input,textarea").focusin(function(){Site.focus=!0}),$("input,textarea").focusout(function(){Site.focus=!1})};$(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",""),r=$(o)[0].children[1],s=gsap.timeline(),a="";"page"==t&&(a="Copy page"),UtilCopy(n),s.set(r,{text:"Copied!"}).to(r,{duration:.3,opacity:0},"+=0.6").set(r,{text:a,clearProps:"all"},"+=0.3")};"theme"!=Config.install&&Config.share&&$(function(){$(Site.page.share).click(UtilShare)});
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.7.2
4
+ version: 0.7.3
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-03-24 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll