jekyll-lux-covid-theme 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/gdpr-banner.html +2 -4
- data/_includes/head.html +1 -0
- data/_includes/mini_footer.html +0 -3
- data/_includes/policy.html +1 -1
- data/_sass/minima/_gdpr.scss +20 -27
- data/_sass/minima/_layout.scss +1 -1
- data/assets/js/gdpr.js +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25d410fc41176559f826ab34f47779532d0bb9ce78c027c72dc9557ca96fa069
|
4
|
+
data.tar.gz: f1b485eb5ab9a311bb7fba9ded79eb30ae8a7bda189bfb273822c297d0f22a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e12c6706366a67fa0857a0926b7a24289cbe3efbf446b37b239f5f088a3a88970f78118321fe531780fd75b003e40e92ece692af877b383642e6bc42543e805
|
7
|
+
data.tar.gz: 76772fffd5d6188bc89058275de2fc18617e625db112764d2b0a0974db27219cc712e8121412753d3365ab43b5650c852ce55a36fd42d44f3f6f8bca5214cff3
|
data/_includes/gdpr-banner.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<a class="lap-refuse"><i class="fa fa-times" aria-hidden="true"></i></a>
|
5
5
|
</div>
|
6
6
|
<div class="banner-img">
|
7
|
-
<img src="{{
|
7
|
+
<img src="{{ site.logo_policy | relative_url }}" type="image/svg+xml" />
|
8
8
|
</div>
|
9
9
|
<div class="banner-title">{{ site.banner_title }}</div>
|
10
10
|
<div class="banner-text">{{ site.banner_text }}</div>
|
@@ -13,8 +13,6 @@
|
|
13
13
|
<div class="banner-buttons">
|
14
14
|
<a class="btn lap-accept">{{ site.banner_accept_text }}</a>
|
15
15
|
<a class="btn lap-refuse">{{ site.banner_refuse_text }}</a>
|
16
|
-
<
|
17
|
-
<a class="btn lap-cookies-more" href="{{ site.path_policy }} ">{{ site.banner_more_text }}</a>
|
18
|
-
</div>
|
16
|
+
<a class="btn lap-cookies-more" href="{{ site.path_policy | relative_url }}">{{ site.banner_more_text }}</a>
|
19
17
|
</div>
|
20
18
|
</div>
|
data/_includes/head.html
CHANGED
@@ -27,6 +27,7 @@
|
|
27
27
|
settings.cookieName = "{{ site.cookieName }}";
|
28
28
|
settings.bots = /bot|crawler|spider|crawling/i;
|
29
29
|
settings.timeout_hidebanner = "{{ site.timeout_hidebanner }}";
|
30
|
+
settings.cookieDomain = "{{ site.cookieDomain }}";
|
30
31
|
</script>
|
31
32
|
<script src="{{ '/assets/js/jquery.min.js' | relative_url }}"></script>
|
32
33
|
<script src="{{ '/assets/js/gdpr.js' | relative_url }}"></script>
|
data/_includes/mini_footer.html
CHANGED
data/_includes/policy.html
CHANGED
data/_sass/minima/_gdpr.scss
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
border-top: 1px solid #198cdc;
|
11
11
|
width: 100%;
|
12
12
|
display: none;
|
13
|
+
|
13
14
|
/* hidden by default */
|
14
15
|
}
|
15
16
|
|
@@ -54,13 +55,6 @@
|
|
54
55
|
left: 100%;
|
55
56
|
}
|
56
57
|
|
57
|
-
#lap-cookies-banner .banner-buttons .banner-buttons-more {
|
58
|
-
position: relative;
|
59
|
-
left: 55%;
|
60
|
-
top: -28px;
|
61
|
-
width: 20%;
|
62
|
-
}
|
63
|
-
|
64
58
|
#lap-cookies-banner .banner-buttons .lap-accept,
|
65
59
|
#lap-cookies-banner .banner-buttons .lap-refuse,
|
66
60
|
#lap-cookies-banner .banner-buttons .lap-cookies-more,
|
@@ -103,6 +97,8 @@
|
|
103
97
|
-moz-user-select: none;
|
104
98
|
-ms-user-select: none;
|
105
99
|
user-select: none;
|
100
|
+
margin-right: 10px;
|
101
|
+
margin-bottom: 10px;
|
106
102
|
}
|
107
103
|
|
108
104
|
// Small component to show a Material Design style input toggle
|
@@ -195,18 +191,29 @@ label.input-toggle {
|
|
195
191
|
}
|
196
192
|
|
197
193
|
@media(max-width: 500px) {
|
194
|
+
#lap-cookies-banner {
|
195
|
+
position: fixed;
|
196
|
+
bottom: 0;
|
197
|
+
background-color: #fff;
|
198
|
+
padding-top: 1em;
|
199
|
+
padding-bottom: 1em;
|
200
|
+
z-index: 1000;
|
201
|
+
left: 0;
|
202
|
+
text-align: center;
|
203
|
+
border-top: 1px solid #198cdc;
|
204
|
+
width: 100%;
|
205
|
+
display: none;
|
206
|
+
height: 280px;
|
207
|
+
overflow: auto;
|
208
|
+
/* hidden by default */
|
209
|
+
}
|
210
|
+
|
198
211
|
#lap-cookies-banner .banner-intro {
|
199
212
|
width: 60%;
|
200
213
|
position: relative;
|
201
214
|
left: 20%;
|
202
215
|
text-align: left;
|
203
216
|
}
|
204
|
-
#lap-cookies-banner .banner-buttons .banner-buttons-more {
|
205
|
-
position: relative;
|
206
|
-
left: 25%;
|
207
|
-
top: 10px;
|
208
|
-
width: 50%;
|
209
|
-
}
|
210
217
|
}
|
211
218
|
|
212
219
|
@media(max-width: 1100px) {
|
@@ -222,12 +229,6 @@ label.input-toggle {
|
|
222
229
|
height: 60px;
|
223
230
|
margin-bottom: 10px;
|
224
231
|
}
|
225
|
-
#lap-cookies-banner .banner-buttons .banner-buttons-more {
|
226
|
-
position: relative;
|
227
|
-
left: 25%;
|
228
|
-
top: 10px;
|
229
|
-
width: 50%;
|
230
|
-
}
|
231
232
|
}
|
232
233
|
|
233
234
|
@media(max-width: 1600px) {
|
@@ -242,17 +243,9 @@ label.input-toggle {
|
|
242
243
|
/* ultra-wide screen */
|
243
244
|
@media(min-width: 2400px) {
|
244
245
|
#lap-cookies-banner .banner-intro {
|
245
|
-
|
246
246
|
position: relative;
|
247
247
|
text-align: left;
|
248
248
|
max-width: 800px;
|
249
249
|
left: 35%;
|
250
250
|
}
|
251
|
-
|
252
|
-
#lap-cookies-banner .banner-buttons .banner-buttons-more {
|
253
|
-
position: relative;
|
254
|
-
left: 50%;
|
255
|
-
top: -28px;
|
256
|
-
width: 20%;
|
257
|
-
}
|
258
251
|
}
|
data/_sass/minima/_layout.scss
CHANGED
data/assets/js/gdpr.js
CHANGED
@@ -15,6 +15,11 @@ function loadMatomo() {
|
|
15
15
|
_paq.push(['trackPageView']);
|
16
16
|
_paq.push(['setIgnoreClasses', ['no-tracking', 'colorbox']]);
|
17
17
|
_paq.push(['enableLinkTracking']);
|
18
|
+
|
19
|
+
// set the cookie domain an
|
20
|
+
if(!(settings.cookieDomain == "*")) {
|
21
|
+
_paq.push(["setCookieDomain", settings.cookieDomain]);
|
22
|
+
}
|
18
23
|
var d = document,
|
19
24
|
g = d.createElement('script'),
|
20
25
|
s = d.getElementsByTagName('script')[0];
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-lux-covid-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jaceklebioda_lux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|