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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4938e456676aedb812ee142b2c5be25ef57c3646793d4cba4a13069aec5676db
4
- data.tar.gz: 5ef816744b7b36de46b65fdf0c3f16d8f72d7d405e902309bdc25ac5d421a3bf
3
+ metadata.gz: 25d410fc41176559f826ab34f47779532d0bb9ce78c027c72dc9557ca96fa069
4
+ data.tar.gz: f1b485eb5ab9a311bb7fba9ded79eb30ae8a7bda189bfb273822c297d0f22a5f
5
5
  SHA512:
6
- metadata.gz: ae6dab6e1f6314be86635571efff86350c4a29b386f9ec5b26669729b3cb4e015100a2f5e29683d0d4387562aeac83058f2ca6988211f5f8e9762025749d0e02
7
- data.tar.gz: b7ba61f0df5ad8f1f425a21a1863488a22cef5aad653779cfbce675c4f1494c7cc93e758d08c0913ce431bd4952431a6cbfea9a671d901b51657b0a729636110
6
+ metadata.gz: 5e12c6706366a67fa0857a0926b7a24289cbe3efbf446b37b239f5f088a3a88970f78118321fe531780fd75b003e40e92ece692af877b383642e6bc42543e805
7
+ data.tar.gz: 76772fffd5d6188bc89058275de2fc18617e625db112764d2b0a0974db27219cc712e8121412753d3365ab43b5650c852ce55a36fd42d44f3f6f8bca5214cff3
@@ -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="{{ '/assets/banners/rl-logo.svg' | relative_url }}" type="image/svg+xml" />
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
- <div class="banner-buttons-more">
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>
@@ -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>
@@ -1,3 +0,0 @@
1
- <p>
2
- <a href="">Additional link</a>
3
- </p>
@@ -1,4 +1,4 @@
1
1
  <p>
2
- <a href="privacy_policy">Privacy Policy</a>
2
+ <a href="{{ site.path_policy | relative_url }}">Privacy Policy</a>
3
3
  (<span id="gdpr-result-text"></span> - <a href="javascript: showBanner();">change</a>)
4
4
  </p>
@@ -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
  }
@@ -466,7 +466,7 @@ html {
466
466
 
467
467
  ul {
468
468
  list-style: none;
469
- min-width: 300px;
469
+ min-width: 250px;
470
470
  padding-top: 1em;
471
471
  }
472
472
  ul li {
@@ -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.2
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-05 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll