jekyll_patternbot 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- @-moz-viewport{width:device-width;scale:1}@-ms-viewport{width:device-width;scale:1}@-o-viewport{width:device-width;scale:1}@-webkit-viewport{width:device-width;scale:1}@viewport{width:device-width;scale:1}html{box-sizing:border-box;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}*,:after,:before{box-sizing:inherit}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}template{display:none}details{cursor:pointer}audio:not([controls]){display:none;height:0}[tabindex],a,area,button,input,label,select,textarea{-ms-touch-action:manipulation;touch-action:manipulation}img{border:0}.img-flex,.img-flex img{display:block;width:100%}svg{fill:currentColor}svg:not(:root){overflow:hidden}svg.img-flex{width:100%;height:100%}.image-replacement,.ir{overflow:hidden;direction:ltr;text-align:left;text-indent:100%;white-space:nowrap}.list-group,.list-group--inline,.list-group-inline{padding-left:0;list-style-type:none}.list-group>dd{margin-left:0}.list-group--inline:after,.list-group--inline:before,.list-group-inline:after,.list-group-inline:before{content:"";display:table}.list-group--inline:after,.list-group-inline:after{clear:both}.list-group--inline>li,.list-group-inline>li{display:inline-block}.list-group--inline>dt,.list-group-inline>dt{clear:left;float:left;width:11em}.list-group--inline>dd,.list-group-inline>dd{float:left;min-width:12em}.icon{display:inline-block;position:relative;background:transparent none no-repeat 50%;background-size:contain;vertical-align:middle}.i-16,.i--16{height:16px;width:16px}.i-18,.i--18{height:18px;width:18px}.i-20,.i--20{height:20px;width:20px}.i-24,.i--24{height:24px;width:24px}.i-32,.i--32{height:32px;width:32px}.i-48,.i--48{height:48px;width:48px}.i-64,.i--64{height:64px;width:64px}.i-96,.i--96{height:96px;width:96px}.i-128,.i--128{height:128px;width:128px}.i-192,.i--192{height:192px;width:192px}.i-256,.i--256{height:256px;width:256px}.icon img,.icon svg{left:0;height:100%;position:absolute;top:0;width:100%;fill:currentColor}.icon-label{vertical-align:middle}.icon-link,.icon-link:focus,.icon-link:hover{text-decoration:none}.hidden,[hidden]{display:none!important;visibility:hidden!important}.visually-hidden{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}.visually-hidden.focusable:active,.visually-hidden.focusable:focus{height:auto;margin:0;overflow:visible;position:static;width:auto;clip:auto;clip-path:none}.invisible{visibility:hidden}.chop,.crop,.truncate{overflow:hidden}.truncate{max-width:100%;width:100%;text-overflow:ellipsis;white-space:nowrap}.scrollable{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.clearfix:after{content:" ";display:block;clear:both}.left{float:left}.right{float:right}.center-flow,.center-text{text-align:center}.center-block{margin-left:auto;margin-right:auto}.no-auto-margins,.not-centered{margin-left:0!important;margin-right:0!important}.center-content,.center-content-vertical,.center-contents,.center-contents-vertical{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-direction:column wrap;flex-flow:column wrap}.center-content-start,.center-content-vertical-start,.center-contents-start,.center-contents-vertical-start{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column wrap;flex-flow:column wrap}.center-content-horizontal,.center-contents-horizontal{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-direction:row wrap;flex-flow:row wrap}.inline{display:inline}.block{display:block}.ib,.inline-block{display:inline-block}.valign-top{vertical-align:top}.valign-bottom{vertical-align:bottom}.valign-middle{vertical-align:middle}.fixed{position:fixed}.relative{position:relative}.absolute,[class*=pin-]{position:absolute}.static{position:static}.zindex-1{z-index:1}.zindex-2{z-index:2}.zindex-3{z-index:3}.zindex-1000{z-index:4}.pin-left-top,.pin-lt,.pin-tl,.pin-top-left{top:0;left:0}.pin-right-top,.pin-rt,.pin-top-right,.pin-tr{top:0;right:0}.pin-bl,.pin-bottom-left,.pin-lb,.pin-left-bottom{bottom:0;left:0}.pin-bottom-right,.pin-br,.pin-rb,.pin-right-bottom{bottom:0;right:0}.pin-center-top,.pin-ct,.pin-tc,.pin-top-center{left:50%;top:0;transform:translateX(-50%)}.pin-bc,.pin-bottom-center,.pin-cb,.pin-center-bottom{bottom:0;left:50%;transform:translateX(-50%)}.pin-center-left,.pin-cl,.pin-lc,.pin-left-center{left:0;top:50%;transform:translateY(-50%)}.pin-center-right,.pin-cr,.pin-rc,.pin-right-center{right:0;top:50%;transform:translateY(-50%)}.pin-c,.pin-center{left:50%;top:50%;transform:translate(-50%,-50%)}.w-1-4,.width-quarter{width:25%}.w-1-2,.width-half{width:50%}.w-1,.width-full{width:100%}.h-1-4,.height-quarter{height:25%}.h-1-2,.height-half{height:50%}.h-1,.height-full{height:100%}.h-w-1-4,.height-win-quarter{height:25vh;max-height:46em}.h-w-1-2,.height-win-half{height:50vh;max-height:46em}.h-w-1,.height-win-full{height:100vh;max-height:46em}
1
+ @-moz-viewport{width:device-width;scale:1}@-ms-viewport{width:device-width;scale:1}@-o-viewport{width:device-width;scale:1}@-webkit-viewport{width:device-width;scale:1}@viewport{width:device-width;scale:1}html{box-sizing:border-box;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}*,:after,:before{box-sizing:inherit}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}template{display:none}details{cursor:pointer}audio:not([controls]){display:none;height:0}[tabindex],a,area,button,input,label,select,textarea{-ms-touch-action:manipulation;touch-action:manipulation}img{border:0}.img-flex,.img-flex img{display:block;width:100%}svg{fill:currentColor}svg:not(:root){overflow:hidden}svg.img-flex{width:100%;height:100%}.image-replacement,.ir{overflow:hidden;direction:ltr;text-align:left;text-indent:100%;white-space:nowrap}.list-group,.list-group--inline,.list-group-inline{padding-left:0;list-style-type:none}.list-group>dd{margin-left:0}.list-group--inline:after,.list-group--inline:before,.list-group-inline:after,.list-group-inline:before{content:"";display:table}.list-group--inline:after,.list-group-inline:after{clear:both}.list-group--inline>li,.list-group-inline>li{display:inline-block}.list-group--inline>dt,.list-group-inline>dt{clear:left;float:left;width:11em}.list-group--inline>dd,.list-group-inline>dd{float:left;min-width:12em}.embed{margin-left:0;margin-right:0;overflow:hidden;position:relative;width:100%}.embed-1by1,.embed--1by1{padding-top:100%}.embed-4by3,.embed--4by3{padding-top:75%}.embed--iso216,.embed-iso216{padding-top:70.92%}.embed-3by2,.embed--3by2{padding-top:66.6%}.embed-2by3,.embed--2by3{padding-top:150%}.embed--golden,.embed-golden{padding-top:61.8%}.embed-16by9,.embed--16by9{padding-top:56.25%}.embed-185by100,.embed--185by100{padding-top:54.05%}.embed-24by10,.embed--24by10{padding-top:41.667%}.embed-3by1,.embed--3by1{padding-top:33.3333%}.embed-4by1,.embed--4by1{padding-top:25%}.embed-5by1,.embed--5by1{padding-top:20%}.embed-item,.embed__item{min-height:100%;left:0;position:absolute;top:0;width:100%}.media{overflow:hidden}.media-img,.media__img{float:left}.media-img-reversed,.media__img--reversed{float:right}.media-img-stacked,.media__img--stacked{float:none}.media-body,.media__body{overflow:hidden;min-width:12em}.icon{display:inline-block;position:relative;background:transparent none no-repeat 50%;background-size:contain;vertical-align:middle}.i-16,.i--16{height:16px;width:16px}.i-18,.i--18{height:18px;width:18px}.i-20,.i--20{height:20px;width:20px}.i-24,.i--24{height:24px;width:24px}.i-32,.i--32{height:32px;width:32px}.i-48,.i--48{height:48px;width:48px}.i-64,.i--64{height:64px;width:64px}.i-96,.i--96{height:96px;width:96px}.i-128,.i--128{height:128px;width:128px}.i-192,.i--192{height:192px;width:192px}.i-256,.i--256{height:256px;width:256px}.icon img,.icon svg{left:0;height:100%;position:absolute;top:0;width:100%;fill:currentColor}.icon-label{vertical-align:middle}.icon-link,.icon-link:focus,.icon-link:hover{text-decoration:none}.hidden,[hidden]{display:none!important;visibility:hidden!important}.visually-hidden{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}.visually-hidden.focusable:active,.visually-hidden.focusable:focus{height:auto;margin:0;overflow:visible;position:static;width:auto;clip:auto;clip-path:none}.invisible{visibility:hidden}.chop,.crop,.truncate{overflow:hidden}.truncate{max-width:100%;width:100%;text-overflow:ellipsis;white-space:nowrap}.scrollable{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.clearfix:after{content:" ";display:block;clear:both}.left{float:left}.right{float:right}.center-flow,.center-text{text-align:center}.center-block{margin-left:auto;margin-right:auto}.no-auto-margins,.not-centered{margin-left:0!important;margin-right:0!important}.center-content,.center-content-vertical,.center-contents,.center-contents-vertical{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-direction:column wrap;flex-flow:column wrap}.center-content-start,.center-content-vertical-start,.center-contents-start,.center-contents-vertical-start{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column wrap;flex-flow:column wrap}.center-content-horizontal,.center-contents-horizontal{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-direction:row wrap;flex-flow:row wrap}.inline{display:inline}.block{display:block}.ib,.inline-block{display:inline-block}.valign-top{vertical-align:top}.valign-bottom{vertical-align:bottom}.valign-middle{vertical-align:middle}.fixed{position:fixed}.relative{position:relative}.absolute,[class*=pin-]{position:absolute}.static{position:static}.zindex-1{z-index:1}.zindex-2{z-index:2}.zindex-3{z-index:3}.zindex-1000{z-index:4}.pin-left-top,.pin-lt,.pin-tl,.pin-top-left{top:0;left:0}.pin-right-top,.pin-rt,.pin-top-right,.pin-tr{top:0;right:0}.pin-bl,.pin-bottom-left,.pin-lb,.pin-left-bottom{bottom:0;left:0}.pin-bottom-right,.pin-br,.pin-rb,.pin-right-bottom{bottom:0;right:0}.pin-center-top,.pin-ct,.pin-tc,.pin-top-center{left:50%;top:0;transform:translateX(-50%)}.pin-bc,.pin-bottom-center,.pin-cb,.pin-center-bottom{bottom:0;left:50%;transform:translateX(-50%)}.pin-center-left,.pin-cl,.pin-lc,.pin-left-center{left:0;top:50%;transform:translateY(-50%)}.pin-center-right,.pin-cr,.pin-rc,.pin-right-center{right:0;top:50%;transform:translateY(-50%)}.pin-c,.pin-center{left:50%;top:50%;transform:translate(-50%,-50%)}.w-1-4,.width-quarter{width:25%}.w-1-2,.width-half{width:50%}.w-1,.width-full{width:100%}.h-1-4,.height-quarter{height:25%}.h-1-2,.height-half{height:50%}.h-1,.height-full{height:100%}.h-w-1-4,.height-win-quarter{height:25vh;max-height:46em}.h-w-1-2,.height-win-half{height:50vh;max-height:46em}.h-w-1,.height-win-full{height:100vh;max-height:46em}ul{list-style-type:none}ul>li:before{content:"·";float:left;margin-left:-1.6em;width:1.3em;text-align:right}ol{counter-reset:a;list-style-type:none}ol>li:before{float:left;margin-left:-1.6em;width:1.3em;counter-increment:a;content:counter(a);text-align:right}.list-group--inline>li:before,.list-group-inline>li:before,.list-group>li:before{content:none}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}[type=checkbox],[type=radio]{opacity:0;position:absolute;height:1px;width:1px}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding-left:0;padding-right:0;border:0;border-top:2px solid #666}legend{color:inherit;display:table;max-width:100%;padding:0 .3em 0 0;white-space:normal;border:0}legend,optgroup{font-weight:700}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.label-block,label{display:block;cursor:pointer}.label-inline,[type=checkbox]+label,[type=radio]+label{display:inline-block}[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=range],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:not([type]),select,textarea{-moz-appearance:none;-webkit-appearance:none;appearance:none}input,textarea{display:block;width:100%;background-color:#fff;border:2px solid #666;border-radius:0}label{vertical-align:middle}textarea{max-width:100%;min-height:4em;overflow:auto}[type=color]{display:inline-block;width:2em}select{display:block;width:100%;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='70' d='M36.3 82.1l91.9 91.8 91.5-91.8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:calc(100% - .4em) 50%;background-size:18px auto;background-color:#fff;border:2px solid #666;border-radius:0}[type=checkbox]+label:before{content:" ";display:inline-block;height:1.8em;margin-right:.3em;position:relative;vertical-align:middle;top:-.1em;width:1.8em;background-color:#fff;background-size:cover;border:2px solid #666;line-height:inherit}[type=checkbox]:checked+label:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='50' d='M49.9 130.1l50.8 50.7L206.1 75.2'/%3E%3C/svg%3E")}[type=checkbox]:focus+label:before{outline:3px solid #000;z-index:4}[type=radio]+label:before{content:" ";display:inline-block;height:1.8em;margin-right:.3em;position:relative;vertical-align:middle;top:-.1em;width:1.8em;background-color:#fff;background-size:cover;border:2px solid #666;border-radius:50%;line-height:inherit}[type=radio]:checked+label:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Ccircle cx='128' cy='128' r='70.4'/%3E%3C/svg%3E")}[type=radio]+label:focus:before,[type=radio]:focus+label:before{box-shadow:0 0 0 3px #000;z-index:4}[type=range]{border:0;background-color:#fff}[type=range]::-webkit-slider-runnable-track{height:6px;-webkit-appearance:none;appearance:none;background-color:#ccc;border:0;border-radius:3px}[type=range]:active::-webkit-slider-runnable-track{background-color:#ccc}[type=range]::-moz-range-track{height:6px;-moz-appearance:none;appearance:none;background-color:#ccc;border:0;border-radius:3px}[type=range]:active::-moz-range-track{background-color:#ccc}[type=range]::-ms-track{height:6px;-ms-appearance:none;appearance:none;background-color:#ccc;border:0;border-radius:3px}[type=range]:active::-ms-track{background-color:#ccc}[type=range]::-webkit-slider-thumb{margin-top:-4px;height:16px;width:16px;-webkit-appearance:none;appearance:none;background-color:#000;border:none;border-radius:50%}[type=range]:active::-webkit-slider-thumb,[type=range]:hover::-webkit-slider-thumb{background-color:#000}[type=range]::-moz-range-thumb{margin-top:-4px;height:16px;width:16px;-webkit-appearance:none;appearance:none;background-color:#000;border:none;border-radius:50%}[type=range]:active::-moz-range-thumb,[type=range]:hover::-moz-range-thumb{background-color:#000}[type=range]::-ms-thumb{margin-top:-4px;height:16px;width:16px;-webkit-appearance:none;appearance:none;background-color:#000;border:none;border-radius:50%}[type=range]:active::-ms-thumb,[type=range]:hover::-ms-thumb{background-color:#000}[type=checkbox]+.hide-custom-input:before,[type=checkbox].hide-custom-input+label:before,[type=radio]+.hide-custom-input:before,[type=radio].hide-custom-input+label:before{content:none;display:none}.link-box{display:block;text-decoration:none}.btn,button{cursor:pointer;display:inline-block;margin:0;overflow:visible;padding:.375em .75em .42em;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#333;border-radius:4px;border:3px solid #333;color:#fff;font:inherit;text-decoration:none;text-transform:none}button::-moz-focus-inner{border:0;padding:0}.btn:focus,.btn:hover,button:focus,button:hover{background-color:#000;border-color:#000;color:#fff}button[disabled]{cursor:default}.btn--light,.btn-light{background-color:#e2e2e2;border-color:#e2e2e2;color:#000}.btn--light:focus,.btn--light:hover,.btn-light:focus,.btn-light:hover{background-color:#666;border-color:#666;color:#fff}.btn--ghost,.btn-ghost{background-color:transparent;border-color:#333;color:#000}.btn--ghost:focus,.btn--ghost:hover,.btn-ghost:focus,.btn-ghost:hover{background-color:#e2e2e2;border-color:#000;color:#000}.btn-link{display:inline;padding:0;border-radius:0;border:0}.btn-link,.btn-link:focus,.btn-link:hover{background-color:transparent;color:inherit}a:active,a:hover{outline:none}[tabindex="0"]:focus,a:focus,button:focus,details:focus,input:focus,select:focus,summary:focus,textarea:focus{outline:3px solid #000;outline-offset:0}[tabindex="0"]:focus,a:focus{outline-offset:3px}.skip-links{margin:0;padding:0;list-style-type:none}.skip-links>li:before{content:none}.skip-links a,.skip-links button{padding:.5em .75em;position:absolute;top:-10em;z-index:5;background-color:#000;border:0;color:#fff;font-size:1.125rem;font-weight:700;text-decoration:none}.skip-links a:focus,.skip-links button:focus{outline-offset:3px;top:0}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled]{cursor:default}.print-only{display:none;visibility:hidden}.page-break-before{page-break-before:always}.page-break-after{page-break-after:always}.no-page-break-inside{page-break-inside:avoid}@media print{.no-print{display:none!important;visibility:hidden!important}.force-print,.print-only{display:block!important;visibility:visible!important}.visually-hidden.force-print{height:auto;margin:0;overflow:visible;padding:0;position:static;width:auto;border:0;clip:auto;clip-path:none}a,blockquote,code,figure,hr,li,ol,pre,table,tr,ul{page-break-inside:avoid}a,h1,h2,h3,h4,h5,h6,p{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid;page-break-inside:avoid}h1+p,h2+p,h3+p,h4+p,h5+p,h6+p{page-break-before:avoid}img{page-break-after:auto;page-break-before:auto;page-break-inside:avoid}pre{white-space:pre-wrap!important;word-wrap:break-word}*,:after,:before,:first-letter,:first-line{background:none transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a.href-no-print:after,a.no-print-href:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}thead{display:table-header-group}}
@@ -9,6 +9,12 @@
9
9
 
10
10
  .patternbot-grid-display > li {
11
11
  border: 2px solid var(--color-patternbot-interface-background);
12
+ list-style-type: none;
13
+ }
14
+
15
+ .patternbot-grid-display > li::before {
16
+ content: none;
17
+ display: none;
12
18
  }
13
19
 
14
20
  .patternbot-grid-display-inner {
@@ -1 +1 @@
1
- .patternbot-grid-display{margin:0;padding:0;display:flex;flex-direction:row;background-color:transparent;list-style-type:none}.patternbot-grid-display>li{border:2px solid var(--color-patternbot-interface-background)}.patternbot-grid-display-inner{border:2px solid var(--color-patternbot-interface-accent,--color-secondary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1))}.patternbot-grid-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}.patternbot-grid-display+hr{margin-top:1.3rem}
1
+ .patternbot-grid-display{margin:0;padding:0;display:flex;flex-direction:row;background-color:transparent;list-style-type:none}.patternbot-grid-display>li{border:2px solid var(--color-patternbot-interface-background);list-style-type:none}.patternbot-grid-display>li:before{content:none;display:none}.patternbot-grid-display-inner{border:2px solid var(--color-patternbot-interface-accent,--color-secondary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1))}.patternbot-grid-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}.patternbot-grid-display+hr{margin-top:1.3rem}
@@ -1,29 +1,3 @@
1
- var patternbot = {};
2
-
3
- /*
4
- ================================================
5
- IFRAME CSS & JS INJECTION
6
- ================================================
7
- */
8
-
9
- (function () {
10
- var injectCss = function (iframe) {
11
- var style = document.createElement('style');
12
-
13
- if (iframe.dataset.injectCss.trim().length > 0) {
14
- style.innerHTML = iframe.dataset.injectCss.trim();
15
- }
16
-
17
- iframe.contentWindow.document.head.appendChild(style);
18
- };
19
-
20
- var injectAssetsIntoIframe = function (iframe) {
21
- injectCss(iframe);
22
- };
23
-
24
- patternbot.injectAssetsIntoIframe = injectAssetsIntoIframe;
25
- }());
26
-
27
1
  /*
28
2
  ================================================
29
3
  IFRAME RESPONSIVENESS
@@ -76,13 +50,8 @@ var patternbot = {};
76
50
  'use strict';
77
51
 
78
52
  var tablist = document.querySelectorAll('[role="tablist"] a');
79
- var showAllBtn = document.getElementById('patternbot-nav-show-all');
80
53
  var possibleInitialTab;
81
54
 
82
- var areAllPatternsShowing = function () {
83
- return (showAllBtn.getAttribute('aria-pressed') == 'true');
84
- }
85
-
86
55
  var loadAllVisibleIframes = function () {
87
56
  var visibleIframes = document.querySelectorAll('[role="tabpanel"]:not([hidden]) iframe');
88
57
 
@@ -91,8 +60,6 @@ var patternbot = {};
91
60
  [].forEach.call(visibleIframes, function (iframe) {
92
61
  if (!iframe.src) {
93
62
  iframe.addEventListener('load', function (e) {
94
- patternbot.injectAssetsIntoIframe(e.target);
95
-
96
63
  iFrameResize({
97
64
  heightCalculationMethod: 'max',
98
65
  minHeight: (e.target.dataset.minHeight) ? parseInt(e.target.dataset.minHeight, 10) : 0,
@@ -143,64 +110,24 @@ var patternbot = {};
143
110
  if (firstATag) switchTabs(firstATag);
144
111
  };
145
112
 
146
- var showAllTabs = function () {
147
- var allTabs = document.querySelectorAll('[role="tabpanel"]');
148
- var allLinks = document.querySelectorAll('[role="tab"]');
149
-
150
- if (!allTabs) return;
151
-
152
- [].forEach.call(allTabs, function (tab) {
153
- tab.removeAttribute('hidden');
154
- tab.setAttribute('aria-hidden', false);
155
- });
156
-
157
- [].forEach.call(allLinks, function (link) {
158
- link.setAttribute('aria-selected', false);
159
- });
160
-
161
- loadAllVisibleIframes();
162
- };
163
-
164
- if (!tablist || !showAllBtn) return;
113
+ if (!tablist) return;
165
114
 
166
115
  [].forEach.call(tablist, function (link) {
167
116
  link.addEventListener('click', function (e) {
168
- if (areAllPatternsShowing()) return true;
169
-
170
117
  switchTabs(link);
171
118
  });
172
119
  });
173
120
 
174
- showAllBtn.addEventListener('click', function (e) {
175
- if (areAllPatternsShowing()) {
176
- this.setAttribute('aria-pressed', false);
177
- localStorage.setItem('show-all-patterns', false);
178
- document.body.classList.remove('patternbot-showing-all-patterns');
179
- switchToFirstTab();
180
- } else {
181
- this.setAttribute('aria-pressed', true);
182
- localStorage.setItem('show-all-patterns', true);
183
- document.body.classList.add('patternbot-showing-all-patterns');
184
- showAllTabs();
185
- }
186
- });
121
+ if (window.location.hash) {
122
+ possibleInitialTab = document.querySelector('[role="tab"][href="' + window.location.hash.split(/\-\-/)[0] + '"]');
187
123
 
188
- if (localStorage.getItem('show-all-patterns') == 'true') {
189
- showAllBtn.setAttribute('aria-pressed', true);
190
- document.body.classList.add('patternbot-showing-all-patterns');
191
- showAllTabs();
192
- } else {
193
- if (window.location.hash) {
194
- possibleInitialTab = document.querySelector('[role="tab"][href="' + window.location.hash.split(/\-\-/)[0] + '"]');
195
-
196
- if (possibleInitialTab) {
197
- switchTabs(possibleInitialTab);
198
- } else {
199
- switchToFirstTab();
200
- }
124
+ if (possibleInitialTab) {
125
+ switchTabs(possibleInitialTab);
201
126
  } else {
202
127
  switchToFirstTab();
203
128
  }
129
+ } else {
130
+ switchToFirstTab();
204
131
  }
205
132
  }());
206
133
 
@@ -1 +1 @@
1
- var patternbot={};patternbot.injectAssetsIntoIframe=function(t){var e,n;e=t,n=document.createElement("style"),0<e.dataset.injectCss.trim().length&&(n.innerHTML=e.dataset.injectCss.trim(),e.contentWindow.document.body.classList.add("custom-bg-colors-used")),e.contentWindow.document.head.appendChild(n)},function(){"use strict";var t=document.querySelectorAll("iframe");[].forEach.call(t,function(r){var a=r.parentNode,i=r.parentNode.querySelector(".resizeable-pattern-length");i&&interact(i).resizable({edges:{left:".resize-handle-left",right:".resize-handle-right",bottom:!1,top:!1},onmove:function(t){var e=t.rect.width,n=a.parentNode.clientWidth-parseInt(getComputedStyle(a.parentNode).paddingLeft.replace(/px/),10)-parseInt(getComputedStyle(a.parentNode).paddingRight.replace(/px/),10);e<120&&(e=120),n<2*e&&(e=n/2),r.style.pointerEvents="none",a.style.width=2*e+"px",i.style.width=1*e+"px",r.iFrameResizer.resize()},onend:function(){r.style.pointerEvents="auto",r.iFrameResizer.resize()}})})}(),function(){"use strict";var t,e=document.querySelectorAll('[role="tablist"] a'),n=document.getElementById("patternbot-nav-show-all"),r=function(){return"true"==n.getAttribute("aria-pressed")},a=function(){var t=document.querySelectorAll('[role="tabpanel"]:not([hidden]) iframe');t&&[].forEach.call(t,function(t){t.src||(t.addEventListener("load",function(t){patternbot.injectAssetsIntoIframe(t.target),iFrameResize({heightCalculationMethod:"max",minHeight:t.target.dataset.minHeight?parseInt(t.target.dataset.minHeight,10):0,resizedCallback:function(t){t.iframe.previousElementSibling.setAttribute("hidden",!0),t.iframe.parentNode.style.minHeight=0,t.iframe.style.opacity=1}},t.target)}),t.src=t.dataset.src)})},i=function(t){var e=document.querySelectorAll('[role="tab"][aria-selected="true"]'),n=document.querySelectorAll('[role="tabpanel"]:not([hidden])'),r=document.getElementById(t.getAttribute("aria-controls"));n&&[].forEach.call(n,function(t){t.setAttribute("hidden",!0),t.setAttribute("aria-hidden",!0)}),e&&[].forEach.call(e,function(t){t.setAttribute("aria-selected",!1)}),r.removeAttribute("hidden"),r.setAttribute("aria-hidden",!1),t.setAttribute("aria-selected",!0),window.location.hash=t.getAttribute("href"),requestAnimationFrame(function(){window.scrollTo(0,0)}),a()},o=function(){var t=document.querySelector('[role="tablist"] > li:first-child [role="tab"]');t&&i(t)},s=function(){var t=document.querySelectorAll('[role="tabpanel"]'),e=document.querySelectorAll('[role="tab"]');t&&([].forEach.call(t,function(t){t.removeAttribute("hidden"),t.setAttribute("aria-hidden",!1)}),[].forEach.call(e,function(t){t.setAttribute("aria-selected",!1)}),a())};e&&n&&([].forEach.call(e,function(e){e.addEventListener("click",function(t){if(r())return!0;i(e)})}),n.addEventListener("click",function(t){r()?(this.setAttribute("aria-pressed",!1),localStorage.setItem("show-all-patterns",!1),document.body.classList.remove("patternbot-showing-all-patterns"),o()):(this.setAttribute("aria-pressed",!0),localStorage.setItem("show-all-patterns",!0),document.body.classList.add("patternbot-showing-all-patterns"),s())}),"true"==localStorage.getItem("show-all-patterns")?(n.setAttribute("aria-pressed",!0),document.body.classList.add("patternbot-showing-all-patterns"),s()):window.location.hash&&(t=document.querySelector('[role="tab"][href="'+window.location.hash.split(/\-\-/)[0]+'"]'))?i(t):o())}(),function(){"use strict";var t=document.querySelectorAll(".pattern-code-btn"),e=function(t){var e,n;t.preventDefault(),e=this.getAttribute("aria-controls"),n=document.getElementById(e),"true"==this.getAttribute("aria-pressed")?(this.setAttribute("aria-pressed",!1),n.setAttribute("hidden",!0),n.setAttribute("aria-hidden",!0)):(this.setAttribute("aria-pressed",!0),n.removeAttribute("hidden"),n.setAttribute("aria-hidden",!1),n.focus())};t&&[].forEach.call(t,function(t){t.addEventListener("click",e)})}(),function(){"use strict";var t=document.querySelector(".nav-btn"),e=document.getElementById("patternbot-nav"),n=function(){e.setAttribute("aria-hidden",!1),t.setAttribute("aria-expanded",!0),t.setAttribute("aria-label","Close nav")},r=function(){e.setAttribute("aria-hidden",!0),t.setAttribute("aria-expanded",!1),t.setAttribute("aria-label","Open nav")},a=function(){"true"===e.getAttribute("aria-hidden")?n():r()},i=function(){window.matchMedia("(min-width: 38em)").matches?n():r()};t.addEventListener("click",a),e.addEventListener("click",function(t){t.target.matches("a, button")&&a()});try{window.matchMedia("(min-width: 38em)").addEventListener("change",i)}catch(t){window.addEventListener("resize",function(){clearTimeout(void 0),setTimeout(i,100)})}i()}();
1
+ !function(){"use strict";var e=document.querySelectorAll("iframe");[].forEach.call(e,function(r){var n=r.parentNode,a=r.parentNode.querySelector(".resizeable-pattern-length");a&&interact(a).resizable({edges:{left:".resize-handle-left",right:".resize-handle-right",bottom:!1,top:!1},onmove:function(e){var t=e.rect.width,i=n.parentNode.clientWidth-parseInt(getComputedStyle(n.parentNode).paddingLeft.replace(/px/),10)-parseInt(getComputedStyle(n.parentNode).paddingRight.replace(/px/),10);t<120&&(t=120),i<2*t&&(t=i/2),r.style.pointerEvents="none",n.style.width=2*t+"px",a.style.width=1*t+"px",r.iFrameResizer.resize()},onend:function(){r.style.pointerEvents="auto",r.iFrameResizer.resize()}})})}(),function(){"use strict";var e,t=document.querySelectorAll('[role="tablist"] a'),i=function(e){var t,i=document.querySelectorAll('[role="tab"][aria-selected="true"]'),r=document.querySelectorAll('[role="tabpanel"]:not([hidden])'),n=document.getElementById(e.getAttribute("aria-controls"));r&&[].forEach.call(r,function(e){e.setAttribute("hidden",!0),e.setAttribute("aria-hidden",!0)}),i&&[].forEach.call(i,function(e){e.setAttribute("aria-selected",!1)}),n.removeAttribute("hidden"),n.setAttribute("aria-hidden",!1),e.setAttribute("aria-selected",!0),window.location.hash=e.getAttribute("href"),requestAnimationFrame(function(){window.scrollTo(0,0)}),(t=document.querySelectorAll('[role="tabpanel"]:not([hidden]) iframe'))&&[].forEach.call(t,function(e){e.src||(e.addEventListener("load",function(e){iFrameResize({heightCalculationMethod:"max",minHeight:e.target.dataset.minHeight?parseInt(e.target.dataset.minHeight,10):0,resizedCallback:function(e){e.iframe.previousElementSibling.setAttribute("hidden",!0),e.iframe.parentNode.style.minHeight=0,e.iframe.style.opacity=1}},e.target)}),e.src=e.dataset.src)})},r=function(){var e=document.querySelector('[role="tablist"] > li:first-child [role="tab"]');e&&i(e)};t&&([].forEach.call(t,function(t){t.addEventListener("click",function(e){i(t)})}),window.location.hash&&(e=document.querySelector('[role="tab"][href="'+window.location.hash.split(/\-\-/)[0]+'"]'))?i(e):r())}(),function(){"use strict";var e=document.querySelectorAll(".pattern-code-btn"),t=function(e){var t,i;e.preventDefault(),t=this.getAttribute("aria-controls"),i=document.getElementById(t),"true"==this.getAttribute("aria-pressed")?(this.setAttribute("aria-pressed",!1),i.setAttribute("hidden",!0),i.setAttribute("aria-hidden",!0)):(this.setAttribute("aria-pressed",!0),i.removeAttribute("hidden"),i.setAttribute("aria-hidden",!1),i.focus())};e&&[].forEach.call(e,function(e){e.addEventListener("click",t)})}(),function(){"use strict";var e=document.querySelector(".nav-btn"),t=document.getElementById("patternbot-nav"),i=function(){t.setAttribute("aria-hidden",!1),e.setAttribute("aria-expanded",!0),e.setAttribute("aria-label","Close nav")},r=function(){t.setAttribute("aria-hidden",!0),e.setAttribute("aria-expanded",!1),e.setAttribute("aria-label","Open nav")},n=function(){"true"===t.getAttribute("aria-hidden")?i():r()},a=function(){window.matchMedia("(min-width: 38em)").matches?i():r()};e.addEventListener("click",n),t.addEventListener("click",function(e){e.target.matches("a, button")&&n()});try{window.matchMedia("(min-width: 38em)").addEventListener("change",a)}catch(e){window.addEventListener("resize",function(){clearTimeout(void 0),setTimeout(a,100)})}a()}();
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JekyllPatternbot
2
- VERSION = '1.1.2'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_patternbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas J Bradley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-28 00:00:00.000000000 Z
11
+ date: 2019-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -252,6 +252,7 @@ files:
252
252
  - _plugins/jekyll_patternbot/processors/brand.rb
253
253
  - _plugins/jekyll_patternbot/processors/icons.rb
254
254
  - _plugins/jekyll_patternbot/processors/modules.rb
255
+ - _plugins/jekyll_patternbot/processors/patterns_order.rb
255
256
  - _plugins/jekyll_patternbot/processors/utilities.rb
256
257
  - _plugins/jekyll_patternbot/tags/pattern.rb
257
258
  - _plugins/jekyll_patternbot/tags/pattern_css.rb