futuro 0.2.9 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b84f5743ce30694e63c659c7f5050b81fafe18a3748a3971178857b431dad95
4
- data.tar.gz: 424206c6f4f96727df29b92cebb26d34eb01fddd999a7a72a10e308b0bd969ef
3
+ metadata.gz: 441764ad1426971e21fe12feee5d2035b8d61e38d90f56c00b101bed1ab6de48
4
+ data.tar.gz: ae199a7db551272cdfe3cbdc47e3b41f62c781aff9ab781762a87e2b1c646a50
5
5
  SHA512:
6
- metadata.gz: f1dfc43727cf3a816001303e24ca3db598e0871f8ecf40e0f5115c47646a967fc5ad8650b76e0fa9013e70bc4fb6c98b56d73a58fe8b15b8c72b15332884d774
7
- data.tar.gz: 81b092240aa2263ecce56caa77d6859d3098e246c6b975ce8ec71a35a5fab021162ee8b229c93a04f2b113ba51694892180c0e4a4c9f6075e1b905c977de28a1
6
+ metadata.gz: af89dbe29281b591172fad973b372b7a7e882dbf767bb9ec6591f187d7ca4c68523a54723c00b0ac5799d073f9b4042c97efee60a56b848b5914b17602189695
7
+ data.tar.gz: 1d342bc4bde8df9ca4af0320f0529dacec58d4bf80b4c0faa096cfdca8b348484898da0f2296ec8931e405eee6e948071a87735f3af6bb35645a0e680a3908cf
@@ -3,10 +3,10 @@
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
5
  <meta name="format-detection" content="telephone=no">
6
- <link rel="icon" href="{{ "/assets/img/favicon.png?v=1578144645573" | relative_url }}">
6
+ <link rel="icon" href="{{ "/assets/img/favicon.png?v=1579019212478" | relative_url }}">
7
7
  {% seo %}
8
8
  {% feed_meta %}
9
- <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1578144645573" | relative_url }}">
9
+ <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1579019212478" | relative_url }}">
10
10
  {% include html/analytics.liquid %}
11
- <script src="{{ "/assets/js/header.min.js?v=1578144645573" | relative_url }}"></script>
11
+ <script src="{{ "/assets/js/header.min.js?v=1579019212478" | relative_url }}"></script>
12
12
  </head>
@@ -1,2 +1,2 @@
1
1
 
2
- <script src="{{ "/assets/js/footer.min.js?v=1578144645573" | relative_url }}"></script>
2
+ <script src="{{ "/assets/js/footer.min.js?v=1579019212478" | relative_url }}"></script>
data/_sass/_base.scss CHANGED
@@ -38,7 +38,7 @@ header {
38
38
  background-color: black;
39
39
  text-align: center;
40
40
  position: relative;
41
- padding: 2rem;
41
+ padding: 20px;
42
42
  color: white;
43
43
  z-index: 3;
44
44
  }
@@ -47,23 +47,19 @@ footer {
47
47
  background-color: black;
48
48
  text-align: center;
49
49
  position: relative;
50
- padding: 2rem;
50
+ padding: 20px;
51
51
  color: white;
52
52
  z-index: 3;
53
53
  }
54
54
 
55
55
  ul, ol {
56
56
  list-style: outside;
57
- padding-left: 2rem;
57
+ padding-left: 20px;
58
58
  margin: 0;
59
59
 
60
- + p {
61
- margin-top: 2rem;
62
- }
63
-
64
60
  &.--numbers {
65
61
  list-style: decimal;
66
- padding-left: 3rem;
62
+ padding-left: 30px;
67
63
  }
68
64
  }
69
65
 
@@ -79,10 +75,6 @@ h4, h5, h3, h2, h6, h1, p, ul, ol {
79
75
  h1 {
80
76
  @extend %bold;
81
77
  font-size: 2.8rem;
82
-
83
- + p, + ul, + ._page-artwork, + ._copy-split {
84
- margin-top: 2rem;
85
- }
86
78
  }
87
79
 
88
80
  h2 {
@@ -102,10 +94,6 @@ h3 {
102
94
  h4 {
103
95
  @extend %bold;
104
96
  font-size: 4.8rem;
105
-
106
- + p {
107
- margin-top: 2rem;
108
- }
109
97
  }
110
98
 
111
99
  h5 {
@@ -119,12 +107,6 @@ h6 {
119
107
  font-size: 1.6rem;
120
108
  }
121
109
 
122
- p {
123
- + p, + ul, + .block._util {
124
- margin-top: 2rem;
125
- }
126
- }
127
-
128
110
  i, em {
129
111
  @extend %book-italic;
130
112
  }
data/_sass/_box.scss CHANGED
@@ -5,7 +5,6 @@
5
5
  animation: load_border 1s steps(1) infinite;
6
6
  border: 3px solid;
7
7
  border-color: red;
8
- max-width: 320px;
9
8
  }
10
9
 
11
10
  &._mobile {
data/_sass/_helpers.scss CHANGED
@@ -47,7 +47,6 @@ $min1024 : 'only screen and (min-width: 1024px)';
47
47
  @mixin ib {
48
48
  vertical-align: middle;
49
49
  display: inline-block;
50
- max-width: 90%;
51
50
  }
52
51
 
53
52
  @mixin cf {
@@ -113,19 +112,19 @@ $min1024 : 'only screen and (min-width: 1024px)';
113
112
  %grid {
114
113
 
115
114
  &_default {
116
- grid-template-columns: 40px minmax(240px,1000px) 40px;
115
+ grid-template-columns: 20px minmax(280px,1000px) 20px;
117
116
  }
118
117
 
119
118
  &_overlay {
120
- grid-template-columns: 40px minmax(240px,560px) 40px;
119
+ grid-template-columns: 20px minmax(280px,560px) 20px;
121
120
  }
122
121
 
123
122
  &_search {
124
- grid-template-columns: 40px minmax(240px,480px) 40px;
123
+ grid-template-columns: 20px minmax(280px,480px) 20px;
125
124
  }
126
125
 
127
126
  &_load {
128
- grid-template-columns: 40px minmax(240px,320px) 40px;
127
+ grid-template-columns: 20px minmax(280px,320px) 20px;
129
128
  }
130
129
  }
131
130
 
@@ -142,7 +141,7 @@ $min1024 : 'only screen and (min-width: 1024px)';
142
141
  }
143
142
 
144
143
  &_overlay {
145
- min-width: 240px;
144
+ min-width: 280px;
146
145
  @include ib;
147
146
  }
148
147
  }
data/_sass/_overlay.scss CHANGED
@@ -37,6 +37,10 @@
37
37
 
38
38
  &._about {
39
39
  @extend %grid_overlay;
40
+
41
+ h4 + p, p + p {
42
+ margin-top: 20px;
43
+ }
40
44
  }
41
45
 
42
46
  &._browse {
data/_sass/_site.scss CHANGED
@@ -27,6 +27,21 @@
27
27
 
28
28
  &._single {
29
29
  @extend %site-setup;
30
- // min-height: 100%;
30
+ }
31
+
32
+ h1 + p, h1 + ul, h1 + ._page-artwork, h1 + ._copy-split {
33
+ margin-top: 20px;
34
+ }
35
+
36
+ h4 + p {
37
+ margin-top: 20px;
38
+ }
39
+
40
+ p + p, p + ul, p + .block._util {
41
+ margin-top: 20px;
42
+ }
43
+
44
+ ul + p, ol + p {
45
+ margin-top: 20px;
31
46
  }
32
47
  }
data/_sass/_title.scss CHANGED
@@ -11,7 +11,6 @@
11
11
 
12
12
  &-load {
13
13
  animation: load_title 1s steps(1) infinite;
14
- max-width: 32rem;
15
14
  }
16
15
 
17
16
  &-about {
@@ -39,8 +38,8 @@
39
38
 
40
39
  &:not(.--docs) {
41
40
  @include RotateTitle();
42
- bottom: 5.6rem;
43
- left: 12.8rem;
41
+ bottom: 56px;
42
+ left: 128px;
44
43
  }
45
44
 
46
45
  &.--docs {
@@ -55,8 +54,8 @@
55
54
 
56
55
  &:not(.--docs) {
57
56
  @include RotateTitle();
58
- bottom: 5.6rem;
59
- left: 12.8rem;
57
+ bottom: 56px;
58
+ left: 128px;
60
59
  }
61
60
 
62
61
  &.--docs {
@@ -67,16 +66,16 @@
67
66
  &-chapter {
68
67
  @include RotateTitle( $origin : top right );
69
68
  text-transform: capitalize;
70
- right: 7.8rem;
71
- top: 5.6rem;
69
+ right: 78px;
70
+ top: 56px;
72
71
  }
73
72
 
74
73
  &-weight {
75
74
  @include RotateTitle();
76
75
  transform-origin: bottom left;
77
- left: calc(100% - 5.8rem);
76
+ left: calc(100% - 58px);
78
77
  text-align: right;
79
- bottom: 5.6rem;
78
+ bottom: 56px;
80
79
  }
81
80
  }
82
81
  }
@@ -3,7 +3,9 @@ const SiteFunc = () => {
3
3
 
4
4
  let open = '--open';
5
5
 
6
- $('.site').addClass(open);
6
+ if (!isMobile) {
7
+ $('.site').addClass(open);
8
+ }
7
9
 
8
10
  setTimeout(function() {
9
11
  $('.overlay._load').removeClass(open);
@@ -11,3 +13,5 @@ const SiteFunc = () => {
11
13
  }
12
14
 
13
15
  $(SiteFunc);
16
+
17
+ $(window).on('resize',SiteFunc);
@@ -393,4 +393,4 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
393
393
  });
394
394
  }));
395
395
 
396
- "use strict";var body=$("body"),controller=new ScrollMagic.Controller,page=560,half=page/2,AboutOpen=!1,BrowseOpen=!1,SearchOpen=!1;$(".block._expand-block").click(function(){var e=$(this).parent().siblings(".area._page-artwork").children(".code-wrap");e.hasClass("--open")?(e.removeClass("--open"),$(this).text("Show")):(e.addClass("--open"),$(this).text("Hide"))});var PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,n=width-e+"px",a=100/width*e+"%";$(".width").html(n),TweenMax.set(".bar._mobile",{width:a})},CheckWidth=function(){isMobile?(TweenMax.set(".overlay._mobile",{className:"+=--open"}),PrintWidth()):TweenMax.set(".overlay._mobile",{className:"-=--open"})};$(CheckWidth),$(window).resize(CheckWidth);var SearchInput=$(".input.--search"),SearchResults=$(".block._results"),OpenOverlay=function(e){TweenMax.set(body,{className:"+=--overlay"}),TweenMax.set(".overlay._"+e,{className:"+=--open"})},CloseOverlay=function(e){TweenMax.set(body,{className:"-=--overlay"}),TweenMax.set(".overlay._"+e,{className:"-=--open"})};function KeyFunc(e){var n=e.keyCode;27==n&&(AboutOpen&&(CloseOverlay("about"),AboutOpen=!1),BrowseOpen&&(CloseOverlay("browse"),BrowseOpen=!1),SearchOpen&&(CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1)),0==AboutOpen&&0==BrowseOpen&&0==SearchOpen&&(65==n&&(OpenOverlay("about"),AboutOpen=!0),66==n&&(OpenOverlay("browse"),BrowseOpen=!0),83==n&&(OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0))}$(".btn._nav.--about").click(function(){OpenOverlay("about"),AboutOpen=!0}),$(".btn._nav.--browse").click(function(){OpenOverlay("browse"),BrowseOpen=!0}),$(".btn._nav.--search").click(function(){OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0}),$(".exit._about").click(function(){CloseOverlay("about"),AboutOpen=!1}),$(".exit._browse").click(function(){CloseOverlay("browse"),BrowseOpen=!1}),$(".exit._search").click(function(){CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1}),$(document).keyup(function(e){KeyFunc(e)});var ScrollerUpdate=function(){var e=$(".lnk._scroller");1<e.length&&e.each(function(){var e=$(this)[0].classList[2],n=TweenMax.to(".lnk._scroller."+e,.1,{className:"+=active"});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(n).addTo(controller)})},ScrollFunc=function(o){var e=$(".site._feed"),t='<div class="area _scroller"><div class="wrap _scroller">';o.each(function(e,n){var a=$(n)[0].children[0].id;0==e?t+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'" 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==o.length-1?t+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'"><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>'):t+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'"><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>')}),t+="</div></div>",e.append(t),ScrollerUpdate(),SmoothScroll()};$(function(){var e=$(".wrap.type-chapter");1<e.length&&ScrollFunc(e)});var SetupHome=function(){TweenMax.defaultEase=Sine.easeInOut,new TimelineMax({repeat:-1,yoyo:!0}).fromTo(".area._book",1,{y:-5},{y:5}),$(".wrap._home").slick({slidesToScroll:1,slidesToShow:5,infinite:!0,arrows:!1}),$(".wrap._book").hover(function(){TweenMax.to(this,.1,{y:-20})},function(){TweenMax.to(this,.1,{y:0})})};$(SetupHome);var SiteFunc=function(){var e="--open";$(".site").addClass(e),setTimeout(function(){$(".overlay._load").removeClass(e)},1e3)};$(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 n=$(this.hash);(n=n.length?n:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:n.offset().top},500,function(){var e=$(n);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})};$(SmoothScroll);var SplitCode=function(){$(".code-scss").each(function(e,n){var o=$(this).text().split(" ");$(o).each(function(e,n){var a=n.length-1;(0<=n.indexOf(".")||0<=n.indexOf("&"))&&o.splice(e,1,n),"}"==$(this)[a]&&o.splice(e,1,n)});var a=o.join(" ");$(this).text(a)});var e=$(".code-html").html();$(".code-html").text(e)};$(SplitCode);var browsabl=$(".col._browse.--chapter").children("._browse-chunk").children().length;books=$(".lnk._browse-book"),chapters=$(".lnk._browse-chapter"),pages=$(".lnk._browse-page"),chunk="._browse-chunk";var StartBrowse=function(){var e=$(".block._browse-lnk",".col._browse.--book")[0],n=$(".block._browse-chunk",".col._browse.--chapter")[0],a=$(".block._browse-chunk",".col._browse.--page")[0],o=$(a)[0].children[0],t=$(e)[0].children[0],c=$(n)[0].children[0].children[0],l=$(o)[0].children[0].children[0];(new TimelineMax).set(chunk,{display:"none"}).set([n,a,o],{display:"block"}).set([t,c,l],{className:"+=active"})},HoverBook=function(e){var n=$(e.target),a=$(n)[0].classList[2].slice(5),o=$(chunk+".--"+a,".col._browse.--chapter"),t=$(chunk+".--"+a,".col._browse.--page"),c=$(t)[0].children[0],l=$(o)[0].children[0].children[0],r=$(c)[0].children[0].children[0];(new TimelineMax).set(chunk,{display:"none"}).set([o,t,c],{display:"block"}).set([books,chapters,pages],{className:"-=active"}).set([n,l,r],{className:"+=active"})},HoverChap=function(e){var n=$(e.target),a=$(n)[0].classList[2].slice(5),o=$(n)[0].classList[3].slice(8),t=$(chunk+".--"+a,".col._browse.--chapter"),c=$(chunk+".--"+a,".col._browse.--page"),l=$(chunk+".--"+o,c),r=$(l)[0].children[0].children[0];tl=new TimelineMax,tl.set(chunk,{display:"none"}).set([t,c,l],{display:"block"}).set([chapters,pages],{className:"-=active"}).set([n,r],{className:"+=active"})},HoverPage=function(e){var n=$(e.target);(new TimelineMax).set(pages,{className:"-=active"}).set(n,{className:"+=active"})};$(function(){body.hasClass("type-home")||0<browsabl&&(StartBrowse(),$(".lnk._browse-book").hover(function(e){HoverBook(e)}),$(".lnk._browse-chapter").hover(function(e){HoverChap(e)}),$(".lnk._browse-page").hover(function(e){HoverPage(e)}))});var UtilCopy=function(e){var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)},UtilShare=function(e){var n=$(e.target).parents("._util-share"),a=$(n)[0].classList[2].slice(2),o=$(n).children("._util-url").text().replace("index",""),t=$(n)[0].children[1],c="",l=new TimelineMax;"page"==a&&(c="Copy page"),UtilCopy(o),l.set(t,{text:"Copied!"}).to(t,.3,{opacity:0},"+=0.6").set(t,{text:c,clearProps:"all"},"+=0.3")};$(function(){$("._util-share").click(UtilShare)});
396
+ "use strict";var body=$("body"),controller=new ScrollMagic.Controller,page=560,half=page/2,AboutOpen=!1,BrowseOpen=!1,SearchOpen=!1;$(".block._expand-block").click(function(){var e=$(this).parent().siblings(".area._page-artwork").children(".code-wrap");e.hasClass("--open")?(e.removeClass("--open"),$(this).text("Show")):(e.addClass("--open"),$(this).text("Hide"))});var PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,n=width-e+"px",a=100/width*e+"%";$(".width").html(n),TweenMax.set(".bar._mobile",{width:a})},CheckWidth=function(){isMobile?(TweenMax.set(".overlay._mobile",{className:"+=--open"}),PrintWidth()):TweenMax.set(".overlay._mobile",{className:"-=--open"})};$(CheckWidth),$(window).resize(CheckWidth);var SearchInput=$(".input.--search"),SearchResults=$(".block._results"),OpenOverlay=function(e){TweenMax.set(body,{className:"+=--overlay"}),TweenMax.set(".overlay._"+e,{className:"+=--open"})},CloseOverlay=function(e){TweenMax.set(body,{className:"-=--overlay"}),TweenMax.set(".overlay._"+e,{className:"-=--open"})};function KeyFunc(e){var n=e.keyCode;27==n&&(AboutOpen&&(CloseOverlay("about"),AboutOpen=!1),BrowseOpen&&(CloseOverlay("browse"),BrowseOpen=!1),SearchOpen&&(CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1)),0==AboutOpen&&0==BrowseOpen&&0==SearchOpen&&(65==n&&(OpenOverlay("about"),AboutOpen=!0),66==n&&(OpenOverlay("browse"),BrowseOpen=!0),83==n&&(OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0))}$(".btn._nav.--about").click(function(){OpenOverlay("about"),AboutOpen=!0}),$(".btn._nav.--browse").click(function(){OpenOverlay("browse"),BrowseOpen=!0}),$(".btn._nav.--search").click(function(){OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0}),$(".exit._about").click(function(){CloseOverlay("about"),AboutOpen=!1}),$(".exit._browse").click(function(){CloseOverlay("browse"),BrowseOpen=!1}),$(".exit._search").click(function(){CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1}),$(document).keyup(function(e){KeyFunc(e)});var ScrollerUpdate=function(){var e=$(".lnk._scroller");1<e.length&&e.each(function(){var e=$(this)[0].classList[2],n=TweenMax.to(".lnk._scroller."+e,.1,{className:"+=active"});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(n).addTo(controller)})},ScrollFunc=function(o){var e=$(".site._feed"),t='<div class="area _scroller"><div class="wrap _scroller">';o.each(function(e,n){var a=$(n)[0].children[0].id;0==e?t+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'" 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==o.length-1?t+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'"><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>'):t+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'"><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>')}),t+="</div></div>",e.append(t),ScrollerUpdate(),SmoothScroll()};$(function(){var e=$(".wrap.type-chapter");1<e.length&&ScrollFunc(e)});var SetupHome=function(){TweenMax.defaultEase=Sine.easeInOut,new TimelineMax({repeat:-1,yoyo:!0}).fromTo(".area._book",1,{y:-5},{y:5}),$(".wrap._home").slick({slidesToScroll:1,slidesToShow:5,infinite:!0,arrows:!1}),$(".wrap._book").hover(function(){TweenMax.to(this,.1,{y:-20})},function(){TweenMax.to(this,.1,{y:0})})};$(SetupHome);var SiteFunc=function(){var e="--open";isMobile||$(".site").addClass(e),setTimeout(function(){$(".overlay._load").removeClass(e)},1e3)};$(SiteFunc),$(window).on("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 n=$(this.hash);(n=n.length?n:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:n.offset().top},500,function(){var e=$(n);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})};$(SmoothScroll);var SplitCode=function(){$(".code-scss").each(function(e,n){var o=$(this).text().split(" ");$(o).each(function(e,n){var a=n.length-1;(0<=n.indexOf(".")||0<=n.indexOf("&"))&&o.splice(e,1,n),"}"==$(this)[a]&&o.splice(e,1,n)});var a=o.join(" ");$(this).text(a)});var e=$(".code-html").html();$(".code-html").text(e)};$(SplitCode);var browsabl=$(".col._browse.--chapter").children("._browse-chunk").children().length;books=$(".lnk._browse-book"),chapters=$(".lnk._browse-chapter"),pages=$(".lnk._browse-page"),chunk="._browse-chunk";var StartBrowse=function(){var e=$(".block._browse-lnk",".col._browse.--book")[0],n=$(".block._browse-chunk",".col._browse.--chapter")[0],a=$(".block._browse-chunk",".col._browse.--page")[0],o=$(a)[0].children[0],t=$(e)[0].children[0],c=$(n)[0].children[0].children[0],l=$(o)[0].children[0].children[0];(new TimelineMax).set(chunk,{display:"none"}).set([n,a,o],{display:"block"}).set([t,c,l],{className:"+=active"})},HoverBook=function(e){var n=$(e.target),a=$(n)[0].classList[2].slice(5),o=$(chunk+".--"+a,".col._browse.--chapter"),t=$(chunk+".--"+a,".col._browse.--page"),c=$(t)[0].children[0],l=$(o)[0].children[0].children[0],r=$(c)[0].children[0].children[0];(new TimelineMax).set(chunk,{display:"none"}).set([o,t,c],{display:"block"}).set([books,chapters,pages],{className:"-=active"}).set([n,l,r],{className:"+=active"})},HoverChap=function(e){var n=$(e.target),a=$(n)[0].classList[2].slice(5),o=$(n)[0].classList[3].slice(8),t=$(chunk+".--"+a,".col._browse.--chapter"),c=$(chunk+".--"+a,".col._browse.--page"),l=$(chunk+".--"+o,c),r=$(l)[0].children[0].children[0];tl=new TimelineMax,tl.set(chunk,{display:"none"}).set([t,c,l],{display:"block"}).set([chapters,pages],{className:"-=active"}).set([n,r],{className:"+=active"})},HoverPage=function(e){var n=$(e.target);(new TimelineMax).set(pages,{className:"-=active"}).set(n,{className:"+=active"})};$(function(){body.hasClass("type-home")||0<browsabl&&(StartBrowse(),$(".lnk._browse-book").hover(function(e){HoverBook(e)}),$(".lnk._browse-chapter").hover(function(e){HoverChap(e)}),$(".lnk._browse-page").hover(function(e){HoverPage(e)}))});var UtilCopy=function(e){var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)},UtilShare=function(e){var n=$(e.target).parents("._util-share"),a=$(n)[0].classList[2].slice(2),o=$(n).children("._util-url").text().replace("index",""),t=$(n)[0].children[1],c="",l=new TimelineMax;"page"==a&&(c="Copy page"),UtilCopy(o),l.set(t,{text:"Copied!"}).to(t,.3,{opacity:0},"+=0.6").set(t,{text:c,clearProps:"all"},"+=0.3")};$(function(){$("._util-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.2.9
4
+ version: 0.3.0
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-01-13 00:00:00.000000000 Z
11
+ date: 2020-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll