jekyll-theme-stellar 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +80 -27
- data/_includes/date.html +24 -0
- data/_includes/footer.html +27 -21
- data/_includes/head.html +11 -4
- data/_includes/header.html +1 -1
- data/_includes/language.html +10 -0
- data/_includes/navigation.html +17 -3
- data/_includes/scripts.html +20 -7
- data/_layouts/default.html +11 -3
- data/_layouts/redirect.html +10 -0
- data/_layouts/sitemap.html +21 -0
- data/_sass/components/_cookieconsent.scss +402 -0
- data/_sass/layout/_header.scss +74 -74
- data/_sass/layout/_nav.scss +95 -69
- data/_sass/main.scss +5 -0
- data/assets/css/main.scss +4 -0
- data/assets/css/noscript.scss +4 -0
- data/assets/images/favicon.ico +0 -0
- data/assets/js/cookieconsent.min.js +1 -0
- data/sitemap.md +4 -0
- metadata +14 -6
- data/assets/css/main.css +0 -3764
- data/assets/css/noscript.css +0 -18
data/_sass/layout/_header.scss
CHANGED
@@ -6,111 +6,111 @@
|
|
6
6
|
|
7
7
|
/* Header */
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
#header {
|
10
|
+
@include padding(5em, 5em, (0, 0, -2em, 0));
|
11
|
+
text-align: center;
|
12
|
+
|
13
|
+
h1 {
|
14
|
+
margin: 0 0 (_size(element-margin) * 0.125) 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
p {
|
18
|
+
font-size: 1.25em;
|
19
|
+
letter-spacing: _font(letter-spacing);
|
20
|
+
}
|
21
|
+
|
22
|
+
&.alt {
|
23
|
+
@include padding(6em, 5em, (1em, 0, 0, 0));
|
12
24
|
|
13
25
|
h1 {
|
14
|
-
|
26
|
+
font-size: 3.25em;
|
15
27
|
}
|
16
28
|
|
17
|
-
|
18
|
-
|
19
|
-
|
29
|
+
> * {
|
30
|
+
@include vendor('transition', 'opacity 3s ease');
|
31
|
+
@include vendor('transition-delay', '0.5s');
|
32
|
+
opacity: 1;
|
20
33
|
}
|
21
34
|
|
22
|
-
|
23
|
-
@include
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
35
|
+
.logo {
|
36
|
+
@include vendor('transition', (
|
37
|
+
'opacity 1.25s ease',
|
38
|
+
'transform 0.5s ease'
|
39
|
+
));
|
40
|
+
@include vendor('transition-delay', '0s');
|
41
|
+
display: block;
|
42
|
+
margin: 0 0 (_size(element-margin) * 0.75) 0;
|
28
43
|
|
29
|
-
|
30
|
-
@include vendor('transition', 'opacity 3s ease');
|
31
|
-
@include vendor('transition-delay', '0.5s');
|
32
|
-
opacity: 1;
|
33
|
-
}
|
34
|
-
|
35
|
-
.logo {
|
36
|
-
@include vendor('transition', (
|
37
|
-
'opacity 1.25s ease',
|
38
|
-
'transform 0.5s ease'
|
39
|
-
));
|
40
|
-
@include vendor('transition-delay', '0s');
|
44
|
+
img {
|
41
45
|
display: block;
|
42
|
-
margin: 0
|
43
|
-
|
44
|
-
img {
|
45
|
-
display: block;
|
46
|
-
margin: 0 auto;
|
47
|
-
max-width: 75%;
|
48
|
-
}
|
46
|
+
margin: 0 auto;
|
47
|
+
max-width: 75%;
|
49
48
|
}
|
50
49
|
}
|
50
|
+
}
|
51
51
|
|
52
|
-
|
53
|
-
|
52
|
+
@include breakpoint('<=large') {
|
53
|
+
@include padding(4em, 4em, (0, 0, -2em, 0));
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
}
|
55
|
+
&.alt {
|
56
|
+
@include padding(5em, 4em, (1em, 0, 0, 0));
|
58
57
|
}
|
58
|
+
}
|
59
59
|
|
60
|
-
|
61
|
-
|
60
|
+
@include breakpoint('<=medium') {
|
61
|
+
@include padding(4em, 3em, (0, 0, -2em, 0));
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
}
|
63
|
+
&.alt {
|
64
|
+
@include padding(4em, 3em, (1em, 0, 0, 0));
|
66
65
|
}
|
66
|
+
}
|
67
67
|
|
68
|
-
|
69
|
-
|
68
|
+
@include breakpoint('<=small') {
|
69
|
+
@include padding(3em, 2em, (0, 0, -1em, 0));
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
p {
|
72
|
+
font-size: 1em;
|
73
|
+
letter-spacing: 0;
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
}
|
75
|
+
br {
|
76
|
+
display: none;
|
78
77
|
}
|
78
|
+
}
|
79
79
|
|
80
|
-
|
81
|
-
|
80
|
+
&.alt {
|
81
|
+
@include padding(3em, 2em, (1em, 0, 0, 0));
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
}
|
83
|
+
h1 {
|
84
|
+
font-size: 2.5em;
|
86
85
|
}
|
87
86
|
}
|
87
|
+
}
|
88
88
|
|
89
|
-
|
90
|
-
|
89
|
+
@include breakpoint('<=xsmall') {
|
90
|
+
@include padding(3em, 1.5em, (0, 0, -1em, 0));
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
}
|
92
|
+
&.alt {
|
93
|
+
@include padding(3em, 1.5em, (1em, 0, 0, 0));
|
95
94
|
}
|
95
|
+
}
|
96
96
|
|
97
|
-
|
98
|
-
|
97
|
+
@include breakpoint('<=xxsmall') {
|
98
|
+
@include padding(2.5em, 1em, (0, 0, -1em, 0));
|
99
99
|
|
100
|
-
|
101
|
-
|
102
|
-
}
|
100
|
+
&.alt {
|
101
|
+
@include padding(2.5em, 1em, (1em, 0, 0, 0));
|
103
102
|
}
|
103
|
+
}
|
104
104
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
105
|
+
body.is-preload & {
|
106
|
+
&.alt {
|
107
|
+
> * {
|
108
|
+
opacity: 0;
|
109
|
+
}
|
110
110
|
|
111
|
-
|
112
|
-
|
113
|
-
}
|
111
|
+
.logo {
|
112
|
+
@include vendor('transform', 'scale(0.8) rotate(-30deg)');
|
114
113
|
}
|
115
114
|
}
|
116
|
-
}
|
115
|
+
}
|
116
|
+
}
|
data/_sass/layout/_nav.scss
CHANGED
@@ -6,91 +6,117 @@
|
|
6
6
|
|
7
7
|
/* Nav */
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
9
|
+
#nav {
|
10
|
+
@include vendor('transition', (
|
11
|
+
'background-color #{_duration(transition)} ease',
|
12
|
+
'border-top-left-radius #{_duration(transition)} ease',
|
13
|
+
'border-top-right-radius #{_duration(transition)} ease',
|
14
|
+
'padding #{_duration(transition)} ease',
|
15
|
+
));
|
16
|
+
@include color-typography(invert);
|
17
|
+
position: absolute;
|
18
|
+
width: _size(inner);
|
19
|
+
max-width: calc(100% - #{_size(element-margin) * 2});
|
20
|
+
padding: 1em;
|
21
|
+
background-color: _palette(invert, bg-alt);
|
22
|
+
border-top-left-radius: _size(border-radius-main);
|
23
|
+
border-top-right-radius: _size(border-radius-main);
|
24
|
+
cursor: default;
|
25
|
+
text-align: center;
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
& + #main {
|
28
|
+
padding-top: 4.25em;
|
29
|
+
}
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
ul {
|
32
|
+
margin: 0;
|
33
|
+
padding: 0;
|
34
|
+
list-style: none;
|
35
|
+
|
36
|
+
li {
|
37
|
+
@include vendor('transition', (
|
38
|
+
'margin #{_duration(transition)} ease'
|
39
|
+
));
|
40
|
+
display: inline-block;
|
41
|
+
margin: 0 0.35em;
|
33
42
|
padding: 0;
|
34
|
-
|
43
|
+
vertical-align: middle;
|
35
44
|
|
36
|
-
|
45
|
+
a {
|
37
46
|
@include vendor('transition', (
|
38
|
-
'
|
47
|
+
'font-size #{_duration(transition)} ease'
|
39
48
|
));
|
40
49
|
display: inline-block;
|
41
|
-
|
42
|
-
|
43
|
-
|
50
|
+
height: 2.25em;
|
51
|
+
line-height: 2.25em;
|
52
|
+
padding: 0 1.25em;
|
53
|
+
border: 0;
|
54
|
+
border-radius: _size(border-radius);
|
55
|
+
box-shadow: inset 0 0 0 1px transparent;
|
44
56
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
padding: 0 1.25em;
|
53
|
-
border: 0;
|
54
|
-
border-radius: _size(border-radius);
|
55
|
-
box-shadow: inset 0 0 0 1px transparent;
|
56
|
-
|
57
|
-
&:hover {
|
58
|
-
background-color: _palette(invert, border-bg);
|
59
|
-
}
|
60
|
-
|
61
|
-
&.active {
|
62
|
-
background-color: _palette(invert, bg);
|
63
|
-
box-shadow: none;
|
64
|
-
}
|
57
|
+
&:hover {
|
58
|
+
background-color: _palette(invert, border-bg);
|
59
|
+
}
|
60
|
+
|
61
|
+
&.active {
|
62
|
+
background-color: _palette(invert, bg);
|
63
|
+
box-shadow: none;
|
65
64
|
}
|
66
65
|
}
|
67
66
|
}
|
68
67
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
padding: 0
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
font-size: 0.9em;
|
84
|
-
}
|
68
|
+
li.language {
|
69
|
+
display: inline-block;
|
70
|
+
margin: 0;
|
71
|
+
padding: 0 1em 0 0;
|
72
|
+
|
73
|
+
&:last-child {
|
74
|
+
padding-right: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
.icon {
|
78
|
+
color: inherit;
|
79
|
+
|
80
|
+
&:before {
|
81
|
+
font-size: 1.25em;
|
85
82
|
}
|
86
83
|
}
|
87
84
|
}
|
88
85
|
|
89
|
-
|
90
|
-
|
86
|
+
a {
|
87
|
+
border: none;
|
88
|
+
}
|
89
|
+
|
90
|
+
.en:lang(en), .fr:lang(fr), .de:lang(de){
|
91
|
+
font-weight: bold;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
&.alt {
|
96
|
+
position: fixed;
|
97
|
+
top: 0;
|
98
|
+
padding: 0.5em 1em;
|
99
|
+
background-color: transparentize(_palette(invert, bg-alt), 0.05);
|
100
|
+
border-top-left-radius: 0;
|
101
|
+
border-top-right-radius: 0;
|
102
|
+
z-index: _misc(z-index-base);
|
103
|
+
|
104
|
+
ul {
|
105
|
+
li {
|
106
|
+
margin: 0 0.175em;
|
91
107
|
|
92
|
-
|
93
|
-
|
108
|
+
a {
|
109
|
+
font-size: 0.9em;
|
110
|
+
}
|
94
111
|
}
|
95
112
|
}
|
96
|
-
}
|
113
|
+
}
|
114
|
+
|
115
|
+
@include breakpoint('<=small') {
|
116
|
+
display: none;
|
117
|
+
|
118
|
+
& + #main {
|
119
|
+
padding-top: 0;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
data/_sass/main.scss
CHANGED
@@ -24,6 +24,10 @@
|
|
24
24
|
xxsmall: ( null, 360px )
|
25
25
|
));
|
26
26
|
|
27
|
+
// Components
|
28
|
+
|
29
|
+
@import 'components/cookieconsent';
|
30
|
+
|
27
31
|
// Mixins.
|
28
32
|
|
29
33
|
@mixin color($p) {
|
@@ -49,6 +53,7 @@
|
|
49
53
|
@import 'components/row';
|
50
54
|
@import 'components/box';
|
51
55
|
@import 'components/button';
|
56
|
+
@import 'components/cookieconsent';
|
52
57
|
@import 'components/form';
|
53
58
|
@import 'components/icon';
|
54
59
|
@import 'components/image';
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e){if(!e.hasInitialised){var t={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(e,t){var i=" ";return 1===e.nodeType&&(i+e.className+i).replace(/[\n\t]/g,i).indexOf(i+t+i)>=0},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){var i=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(i,"")},interpolateString:function(e,t){return e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(e){return t(arguments[1])||""})},getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return t.length<2?void 0:t.pop().split(";").shift()},setCookie:function(e,t,i,n,o,s){var r=new Date;r.setHours(r.getHours()+24*(i||365));var a=[e+"="+t,"expires="+r.toUTCString(),"path="+(o||"/")];n&&a.push("domain="+n),s&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(i in e&&this.isPlainObject(e[i])&&this.isPlainObject(t[i])?this.deepExtend(e[i],t[i]):e[i]=t[i]);return e},throttle:function(e,t){var i=!1;return function(){i||(e.apply(this,arguments),i=!0,setTimeout(function(){i=!1},t))}},hash:function(e){var t,i,n=0;if(0===e.length)return n;for(t=0,i=e.length;t<i;++t)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},normaliseHex:function(e){return"#"==e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e},getContrast:function(e){return e=this.normaliseHex(e),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),i=38+(t>>16),n=38+(t>>8&255),o=38+(255&t);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(n<255?n<1?0:n:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object},traverseDOMPath:function(e,i){return e&&e.parentNode?t.hasClass(e,i)?e:this.traverseDOMPath(e.parentNode,i):null}};e.status={deny:"deny",allow:"allow",dismiss:"dismiss"},e.transitionEnd=function(){var e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in t)if(t.hasOwnProperty(i)&&void 0!==e.style[i+"ransition"])return t[i];return""}(),e.hasTransition=!!e.transitionEnd;var i=Object.keys(e.status).map(t.escapeRegExp);e.customStyles={},e.Popup=function(){var n={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(e){},onStatusChange:function(e,t){},onRevokeChoice:function(){},onNoCookieLaw:function(e,t){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function o(){this.initialise.apply(this,arguments)}function s(e){this.openingTimeout=null,t.removeClass(e,"cc-invisible")}function r(t){t.style.display="none",t.removeEventListener(e.transitionEnd,this.afterTransition),this.afterTransition=null}function a(){var e=this.options.position.split("-"),t=[];return e.forEach(function(e){t.push("cc-"+e)}),t}function c(n){var o=this.options,s=document.createElement("div"),r=o.container&&1===o.container.nodeType?o.container:document.body;s.innerHTML=n;var a=s.children[0];return a.style.display="none",t.hasClass(a,"cc-window")&&e.hasTransition&&t.addClass(a,"cc-invisible"),this.onButtonClick=function(n){var o=t.traverseDOMPath(n.target,"cc-btn")||n.target;if(t.hasClass(o,"cc-btn")){var s=o.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),r=s&&s[1]||!1;r&&(this.setStatus(r),this.close(!0))}t.hasClass(o,"cc-close")&&(this.setStatus(e.status.dismiss),this.close(!0));t.hasClass(o,"cc-revoke")&&this.revokeChoice()}.bind(this),a.addEventListener("click",this.onButtonClick),o.autoAttach&&(r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)),a}function l(e){return"000000"==(e=t.normaliseHex(e))?"#222":t.getLuminance(e)}function u(e,t){for(var i=0,n=e.length;i<n;++i){var o=e[i];if(o instanceof RegExp&&o.test(t)||"string"==typeof o&&o.length&&o===t)return!0}return!1}return o.prototype.initialise=function(i){this.options&&this.destroy(),t.deepExtend(this.options={},n),t.isPlainObject(i)&&t.deepExtend(this.options,i),function(){var t=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return t(e.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return t(e.status.allow),!0;var i=Object.keys(e.status),n=this.getStatus(),o=i.indexOf(n)>=0;o&&t(n);return o}.call(this)&&(this.options.enabled=!1),u(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),u(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var o=this.options.window.replace("{{classes}}",function(){var i=this.options,n="top"==i.position||"bottom"==i.position?"banner":"floating";t.isMobile()&&(n="floating");var o=["cc-"+n,"cc-type-"+i.type,"cc-theme-"+i.theme];i.static&&o.push("cc-static");o.push.apply(o,a.call(this));(function(i){var n=t.hash(JSON.stringify(i)),o="cc-color-override-"+n,s=t.isPlainObject(i);this.customStyleSelector=s?o:null,s&&function(i,n,o){if(e.customStyles[i])return void++e.customStyles[i].references;var s={},r=n.popup,a=n.button,c=n.highlight;r&&(r.text=r.text?r.text:t.getContrast(r.background),r.link=r.link?r.link:r.text,s[o+".cc-window"]=["color: "+r.text,"background-color: "+r.background],s[o+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],s[o+" .cc-link,"+o+" .cc-link:active,"+o+" .cc-link:visited"]=["color: "+r.link],a&&(a.text=a.text?a.text:t.getContrast(a.background),a.border=a.border?a.border:"transparent",s[o+" .cc-btn"]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background],a.padding&&s[o+" .cc-btn"].push("padding: "+a.padding),"transparent"!=a.background&&(s[o+" .cc-btn:hover, "+o+" .cc-btn:focus"]=["background-color: "+(a.hover||l(a.background))]),c?(c.text=c.text?c.text:t.getContrast(c.background),c.border=c.border?c.border:"transparent",s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+c.text,"border-color: "+c.border,"background-color: "+c.background]):s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var u=document.createElement("style");document.head.appendChild(u),e.customStyles[i]={references:1,element:u.sheet};var h=-1;for(var p in s)s.hasOwnProperty(p)&&u.sheet.insertRule(p+"{"+s[p].join(";")+"}",++h)}(n,i,"."+o);return s}).call(this,this.options.palette);this.customStyleSelector&&o.push(this.customStyleSelector);return o}.call(this).join(" ")).replace("{{children}}",function(){var e={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message);Object.keys(i.elements).forEach(function(n){e[n]=t.interpolateString(i.elements[n],function(e){var t=i.content[e];return e&&"string"==typeof t&&t.length?t:""})});var n=i.compliance[i.type];n||(n=i.compliance.info);e.compliance=t.interpolateString(n,function(t){return e[t]});var o=i.layouts[i.layout];o||(o=i.layouts.basic);return t.interpolateString(o,function(t){return e[t]})}.call(this)),s=this.options.overrideHTML;if("string"==typeof s&&s.length&&(o=s),this.options.static){var r=c.call(this,'<div class="cc-grower">'+o+"</div>");r.style.display="",this.element=r.firstChild,this.element.style.display="none",t.addClass(this.element,"cc-invisible")}else this.element=c.call(this,o);(function(){var i=this.setStatus.bind(this),n=this.close.bind(this),o=this.options.dismissOnTimeout;"number"==typeof o&&o>=0&&(this.dismissTimeout=window.setTimeout(function(){i(e.status.dismiss),n(!0)},Math.floor(o)));var s=this.options.dismissOnScroll;if("number"==typeof s&&s>=0){var r=function(t){window.pageYOffset>Math.floor(s)&&(i(e.status.dismiss),n(!0),window.removeEventListener("scroll",r),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=r,window.addEventListener("scroll",r))}var a=this.options.dismissOnWindowClick,c=this.options.ignoreClicksFrom;if(a){var l=function(o){for(var s=!1,r=o.path.length,a=c.length,u=0;u<r;u++)if(!s)for(var h=0;h<a;h++)s||(s=t.hasClass(o.path[u],c[h]));s||(i(e.status.dismiss),n(!0),window.removeEventListener("click",l),window.removeEventListener("touchend",l),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=l,window.addEventListener("click",l),window.addEventListener("touchend",l))}}).call(this),function(){"info"!=this.options.type&&(this.options.revokable=!0);t.isMobile()&&(this.options.animateRevokable=!1);if(this.options.revokable){var e=a.call(this);this.options.animateRevokable&&e.push("cc-animate"),this.customStyleSelector&&e.push(this.customStyleSelector);var i=this.options.revokeBtn.replace("{{classes}}",e.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=c.call(this,i);var n=this.revokeBtn;if(this.options.animateRevokable){var o=t.throttle(function(e){var i=!1,o=window.innerHeight-20;t.hasClass(n,"cc-top")&&e.clientY<20&&(i=!0),t.hasClass(n,"cc-bottom")&&e.clientY>o&&(i=!0),i?t.hasClass(n,"cc-active")||t.addClass(n,"cc-active"):t.hasClass(n,"cc-active")&&t.removeClass(n,"cc-active")},200);this.onMouseMove=o,window.addEventListener("mousemove",o)}}}.call(this),this.options.autoOpen&&this.autoOpen()},o.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(i){if(t.isPlainObject(i)){var n=t.hash(JSON.stringify(i)),o=e.customStyles[n];if(o&&!--o.references){var s=o.element.ownerNode;s&&s.parentNode&&s.parentNode.removeChild(s),e.customStyles[n]=null}}}(this.options.palette),this.options=null},o.prototype.open=function(t){if(this.element)return this.isOpen()||(e.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},o.prototype.close=function(t){if(this.element)return this.isOpen()&&(e.hasTransition?this.fadeOut():this.element.style.display="none",t&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},o.prototype.fadeIn=function(){var i=this.element;if(e.hasTransition&&i&&(this.afterTransition&&r.call(this,i),t.hasClass(i,"cc-invisible"))){if(i.style.display="",this.options.static){var n=this.element.clientHeight;this.element.parentNode.style.maxHeight=n+"px"}this.openingTimeout=setTimeout(s.bind(this,i),20)}},o.prototype.fadeOut=function(){var i=this.element;e.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),s.bind(this,i)),t.hasClass(i,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=r.bind(this,i),i.addEventListener(e.transitionEnd,this.afterTransition),t.addClass(i,"cc-invisible")))},o.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!e.hasTransition||!t.hasClass(this.element,"cc-invisible"))},o.prototype.toggleRevokeButton=function(e){this.revokeBtn&&(this.revokeBtn.style.display=e?"":"none")},o.prototype.revokeChoice=function(e){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),e||this.autoOpen()},o.prototype.hasAnswered=function(t){return Object.keys(e.status).indexOf(this.getStatus())>=0},o.prototype.hasConsented=function(t){var i=this.getStatus();return i==e.status.allow||i==e.status.dismiss},o.prototype.autoOpen=function(e){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},o.prototype.setStatus=function(i){var n=this.options.cookie,o=t.getCookie(n.name),s=Object.keys(e.status).indexOf(o)>=0;Object.keys(e.status).indexOf(i)>=0?(t.setCookie(n.name,i,n.expiryDays,n.domain,n.path,n.secure),this.options.onStatusChange.call(this,i,s)):this.clearStatus()},o.prototype.getStatus=function(){return t.getCookie(this.options.cookie.name)},o.prototype.clearStatus=function(){var e=this.options.cookie;t.setCookie(e.name,"",-1,e.domain,e.path)},o}(),e.Location=function(){var e={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(e,t){try{var i=JSON.parse(t);return i.error?s(i):{code:i.country}}catch(e){return s({error:"Invalid response ("+e+")"})}}}},ipinfodb:function(e){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(e,t){try{var i=JSON.parse(t);return"ERROR"==i.statusCode?s({error:i.statusMessage}):{code:i.countryCode}}catch(e){return s({error:"Invalid response ("+e+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(e){window.geoip2?geoip2.country(function(t){try{e({code:t.country.iso_code})}catch(t){e(s(t))}},function(t){e(s(t))}):e(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function i(i){t.deepExtend(this.options={},e),t.isPlainObject(i)&&t.deepExtend(this.options,i),this.currentServiceIndex=-1}function n(e,t,i){var n,o=document.createElement("script");o.type="text/"+(e.type||"javascript"),o.src=e.src||e,o.async=!1,o.onreadystatechange=o.onload=function(){var e=o.readyState;clearTimeout(n),t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),n=setTimeout(function(){t.done=!0,t(),o.onreadystatechange=o.onload=null},i)}function o(e,t,i,n,o){var s=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(s.open(n?"POST":"GET",e,1),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(var r=0,a=o.length;r<a;++r){var c=o[r].split(":",2);s.setRequestHeader(c[0].replace(/^\s+|\s+$/g,""),c[1].replace(/^\s+|\s+$/g,""))}"function"==typeof t&&(s.onreadystatechange=function(){s.readyState>3&&t(s)}),s.send(n)}function s(e){return new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error)}return i.prototype.getNextService=function(){var e;do{e=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!e);return e},i.prototype.getServiceByIdx=function(e){var i=this.options.services[e];if("function"==typeof i){var n=i();return n.name&&t.deepExtend(n,this.options.serviceDefinitions[n.name](n)),n}return"string"==typeof i?this.options.serviceDefinitions[i]():t.isPlainObject(i)?this.options.serviceDefinitions[i.name](i):null},i.prototype.locate=function(e,t){var i=this.getNextService();i?(this.callbackComplete=e,this.callbackError=t,this.runService(i,this.runNextServiceOnError.bind(this))):t(new Error("No services to run"))},i.prototype.setupUrl=function(e){var t=this.getCurrentServiceOpts();return e.url.replace(/\{(.*?)\}/g,function(i,n){if("callback"===n){var o="callback"+Date.now();return window[o]=function(t){e.__JSONP_DATA=JSON.stringify(t)},o}if(n in t.interpolateUrl)return t.interpolateUrl[n]})},i.prototype.runService=function(e,t){var i=this;e&&e.url&&e.callback&&(e.isScript?n:o)(this.setupUrl(e),function(n){var o=n?n.responseText:"";e.__JSONP_DATA&&(o=e.__JSONP_DATA,delete e.__JSONP_DATA),i.runServiceCallback.call(i,t,e,o)},this.options.timeout,e.data,e.headers)},i.prototype.runServiceCallback=function(e,t,i){var n=this,o=t.callback(function(t){o||n.onServiceResult.call(n,e,t)},i);o&&this.onServiceResult.call(this,e,o)},i.prototype.onServiceResult=function(e,t){t instanceof Error||t&&t.error?e.call(this,t,null):e.call(this,null,t)},i.prototype.runNextServiceOnError=function(e,t){if(e){this.logError(e);var i=this.getNextService();i?this.runService(i,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,t)},i.prototype.getCurrentServiceOpts=function(){var e=this.options.services[this.currentServiceIndex];return"string"==typeof e?{name:e}:"function"==typeof e?e():t.isPlainObject(e)?e:{}},i.prototype.completeService=function(e,t){this.currentServiceIndex=-1,e&&e(t)},i.prototype.logError=function(e){var t=this.currentServiceIndex,i=this.getServiceByIdx(t);console.warn("The service["+t+"] ("+i.url+") responded with the following error",e)},i}(),e.Law=function(){var e={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function i(e){this.initialise.apply(this,arguments)}return i.prototype.initialise=function(i){t.deepExtend(this.options={},e),t.isPlainObject(i)&&t.deepExtend(this.options,i)},i.prototype.get=function(e){var t=this.options;return{hasLaw:t.hasLaw.indexOf(e)>=0,revokable:t.revokable.indexOf(e)>=0,explicitAction:t.explicitAction.indexOf(e)>=0}},i.prototype.applyLaw=function(e,t){var i=this.get(t);return i.hasLaw||(e.enabled=!1,"function"==typeof e.onNoCookieLaw&&e.onNoCookieLaw(t,i)),this.options.regionalLaw&&(i.revokable&&(e.revokable=!0),i.explicitAction&&(e.dismissOnScroll=!1,e.dismissOnTimeout=!1)),e},i}(),e.initialise=function(i,n,o){var s=new e.Law(i.law);n||(n=function(){}),o||(o=function(){});var r=Object.keys(e.status),a=t.getCookie("cookieconsent_status");r.indexOf(a)>=0?n(new e.Popup(i)):e.getCountryCode(i,function(t){delete i.law,delete i.location,t.code&&(i=s.applyLaw(i,t.code)),n(new e.Popup(i))},function(t){delete i.law,delete i.location,o(t,new e.Popup(i))})},e.getCountryCode=function(t,i,n){t.law&&t.law.countryCode?i({code:t.law.countryCode}):t.location?new e.Location(t.location).locate(function(e){i(e||{})},n):i({})},e.utils=t,e.hasInitialised=!0,window.cookieconsent=e}}(window.cookieconsent||{});
|
data/sitemap.md
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-stellar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Mougeolle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -65,20 +65,25 @@ files:
|
|
65
65
|
- _home_sections/2_first.md
|
66
66
|
- _home_sections/3_second.md
|
67
67
|
- _home_sections/4_get_started.md
|
68
|
+
- _includes/date.html
|
68
69
|
- _includes/footer.html
|
69
70
|
- _includes/head.html
|
70
71
|
- _includes/header.html
|
72
|
+
- _includes/language.html
|
71
73
|
- _includes/navigation.html
|
72
74
|
- _includes/scripts.html
|
73
75
|
- _layouts/default.html
|
74
76
|
- _layouts/page.html
|
75
77
|
- _layouts/post.html
|
78
|
+
- _layouts/redirect.html
|
79
|
+
- _layouts/sitemap.html
|
76
80
|
- _sass/base/_page.scss
|
77
81
|
- _sass/base/_reset.scss
|
78
82
|
- _sass/base/_typography.scss
|
79
83
|
- _sass/components/_actions.scss
|
80
84
|
- _sass/components/_box.scss
|
81
85
|
- _sass/components/_button.scss
|
86
|
+
- _sass/components/_cookieconsent.scss
|
82
87
|
- _sass/components/_features.scss
|
83
88
|
- _sass/components/_form.scss
|
84
89
|
- _sass/components/_icon.scss
|
@@ -105,14 +110,15 @@ files:
|
|
105
110
|
- _sass/noscript.scss
|
106
111
|
- assets/css/font-awesome.min.css
|
107
112
|
- assets/css/images/overlay.png
|
108
|
-
- assets/css/main.
|
109
|
-
- assets/css/noscript.
|
113
|
+
- assets/css/main.scss
|
114
|
+
- assets/css/noscript.scss
|
110
115
|
- assets/fonts/FontAwesome.otf
|
111
116
|
- assets/fonts/fontawesome-webfont.eot
|
112
117
|
- assets/fonts/fontawesome-webfont.svg
|
113
118
|
- assets/fonts/fontawesome-webfont.ttf
|
114
119
|
- assets/fonts/fontawesome-webfont.woff
|
115
120
|
- assets/fonts/fontawesome-webfont.woff2
|
121
|
+
- assets/images/favicon.ico
|
116
122
|
- assets/images/logo.svg
|
117
123
|
- assets/images/pic01.jpg
|
118
124
|
- assets/images/pic02.jpg
|
@@ -123,11 +129,13 @@ files:
|
|
123
129
|
- assets/images/screenshot.jpg
|
124
130
|
- assets/js/breakpoints.min.js
|
125
131
|
- assets/js/browser.min.js
|
132
|
+
- assets/js/cookieconsent.min.js
|
126
133
|
- assets/js/jquery.min.js
|
127
134
|
- assets/js/jquery.scrollex.min.js
|
128
135
|
- assets/js/jquery.scrolly.min.js
|
129
136
|
- assets/js/main.js
|
130
137
|
- assets/js/util.js
|
138
|
+
- sitemap.md
|
131
139
|
homepage: https://github.com/moodule/jekyll-theme-stellar
|
132
140
|
licenses:
|
133
141
|
- CC-BY-3.0
|
@@ -148,8 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
156
|
version: '0'
|
149
157
|
requirements: []
|
150
158
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
159
|
+
rubygems_version: 2.7.6.2
|
152
160
|
signing_key:
|
153
161
|
specification_version: 4
|
154
|
-
summary: A Jekyll version of the \"Stellar\" theme by HTML5 UP.
|
162
|
+
summary: A Jekyll version of the \"Stellar\" theme by HTML5 UP, full featured.
|
155
163
|
test_files: []
|