jekyll-theme-lcsb-default 0.3.18 → 0.4.3

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: c44029f0679b2a623062e0acd955df002d51fa918cd0562745cfe17dc524135b
4
- data.tar.gz: ae9749c65b41791775681f17735ee9a4b3740f3f3c049b2f377006dd63faea52
3
+ metadata.gz: 716f9d2d26cde86ac8e626b20b07d8a79e7713313cbe8bbbb3293554ae612c85
4
+ data.tar.gz: 695f734f8bf8418c01e8293f20136646a8480265c08c523d78c061e0e48f548b
5
5
  SHA512:
6
- metadata.gz: 9bad4699aca56e00217cf3a4f0a2880f8a0a50f0f44f3656b1731bf830372714bfccc113238d184f25020bf9595501f2c9544af4d0f6684dc728fbb35201f014
7
- data.tar.gz: a293d2f47218cbb5aae084cd09de148efdcf2ed891d3178e7d0262551d64ff7242bd93b6b0e8d8fa2893ccbda104acce5f9d2fe37c2b4664e7bcc0009bab9497
6
+ metadata.gz: 5ee2b0ba57ae87d07f4e73fd77817fad1dcb337ac680be0396abea428885433a0eecb474824d188001878717976583d1cb673deb8e1b66d49dc06725039a6d58
7
+ data.tar.gz: f43440ed634e37f72f3df1f80462c9c0ec4cc9daccc98bbc70fc2b81a1f534968e563e068486d9c3f3aa9ff096196e9a25f719487d980591ccadb6f5e4ba48e6
@@ -1,3 +1,3 @@
1
1
  {% comment %}
2
2
  Insert here CSS <link/> tags, and <style/> tags if needed.
3
- {% endcomment %}
3
+ {% endcomment %}
@@ -3,35 +3,48 @@
3
3
  <data class="u-url" href="{{ "/" | relative_url }}"></data>
4
4
 
5
5
  <div class="footer-cp">
6
- <div class="r3-logo-container">
7
- <img class="r3-logo" src="{{ '/assets/banners/r3-logo.svg' | relative_url }}" type="image/svg+xml" />
8
- <img class="lcsb-logo" src="{{ '/assets/banners/lcsb-compact.svg' | relative_url }}" type="image/svg+xml" />
9
- </div>
6
+ <div class="r3-logo-container">
7
+ <img class="r3-logo" src="{{ '/assets/banners/r3-logo.svg' | relative_url }}" type="image/svg+xml" />
8
+ <img class="lcsb-logo" src="{{ '/assets/banners/lcsb-compact.svg' | relative_url }}" type="image/svg+xml" />
9
+ </div>
10
10
 
11
- {% comment %}This is used to generate share URL for howto-pages{% endcomment %}
12
- {% if page.shortcut %}
13
- <p class="site-footer-share">Share this page:
14
- <a href="{{ site.share_url }}{{ page.shortcut }}">
15
- {{ site.share_url }}{{ page.shortcut }}
16
- </a>
17
- </p>
18
- {% elsif page.include_link %}
19
- {% assign parts = page.url | absolute_url | replace: ".html", "" | replace: "http://", "" | replace: "https://", "" | split: "/" %}
20
- <p class="site-footer-share">Share this page:
21
- <a href="{{ site.share_url }}{{ parts[site.include_link_index] }}">
22
- {{ site.share_url }}{{ parts[site.include_link_index] }}
23
- </a>
24
- </p>
25
- {% endif %}
11
+ {% comment %}This is used to generate share URL for howto-pages{% endcomment %}
12
+ <div class="footer-text-container">
13
+ {% if page.shortcut %}
14
+ <p>
15
+ Share this page:
16
+ <a href="{{ site.share_url }}{{ page.shortcut }}">
17
+ {{ site.share_url }}{{ page.shortcut }}
18
+ </a>
19
+ </p>
26
20
 
27
- <p>
28
- © <a href="https://wwwen.uni.lu/" target="_parent">
29
- <strong>Université du Luxembourg</strong>,
30
- </a>
31
- {{ 'now' | date: "%Y" }}. All rights reserved.
21
+ {% elsif page.include_link %}
22
+ {% assign parts = page.url | absolute_url | replace: ".html", "" | replace: "http://", "" | replace: "https://", "" | split: "/" %}
23
+ <p>
24
+ Share this page:
25
+ <a href="{{ site.share_url }}{{ parts[site.include_link_index] }}">
26
+ {{ site.share_url }}{{ parts[site.include_link_index] }}
27
+ </a>
28
+ </p>
29
+ {% endif %}
30
+ <p>
31
+ &copy; <a href="https://wwwen.uni.lu/" target="_parent">
32
+ <strong>Université du Luxembourg</strong>,
33
+ </a>
34
+ {{ 'now' | date: "%Y" }}. All rights reserved.
35
+ </p>
32
36
 
33
- {%- include social.html -%}
34
- </p>
37
+ {% if site.siteID > 0 %}
38
+ {%- include policy.html -%}
39
+ {% endif %}
40
+ </div>
41
+
42
+ <div class="social-container">
43
+ {%- include social.html -%}
44
+ </div>
35
45
  </div>
36
46
  </div>
37
47
  </footer>
48
+ {% if site.siteID > 0 %}
49
+ {%- include gdpr-banner.html -%}
50
+ {% endif %}
@@ -0,0 +1,18 @@
1
+ <div id="lap-cookies-banner">
2
+ <div class="banner-intro">
3
+ <div class="close-button">
4
+ <a class="lap-refuse"><i class="fa fa-times" aria-hidden="true"></i></a>
5
+ </div>
6
+ <div class="banner-img">
7
+ <img src="{{ site.logo_policy | relative_url }}" type="image/svg+xml" />
8
+ </div>
9
+ <div class="banner-title">{{ site.banner_title }}</div>
10
+ <div class="banner-text">{{ site.banner_text }}</div>
11
+ </div>
12
+
13
+ <div class="banner-buttons">
14
+ <a class="btn lap-accept">{{ site.banner_accept_text }}</a>
15
+ <a class="btn lap-refuse">{{ site.banner_refuse_text }}</a>
16
+ <a class="btn lap-cookies-more" href="{{ site.path_policy | relative_url }}">{{ site.banner_more_text }}</a>
17
+ </div>
18
+ </div>
@@ -1,34 +1,40 @@
1
1
  <head>
2
- <meta charset="utf-8">
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
5
- {%- seo -%}
6
- <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
7
- <link rel="stylesheet" href="{{ '/assets/fontawesome/css/fontawesome-all.min.css' | relative_url }}">
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1"> {%- seo -%}
5
+ <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
6
+ <link rel="stylesheet" href="{{ '/assets/fontawesome/css/fontawesome-all.min.css' | relative_url }}">
8
7
 
9
- <link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/favicon/apple-touch-icon.png' | relative_url }}">
10
- <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon/favicon-32x32.png' | relative_url }}">
11
- <link rel="icon" type="image/png" sizes="16x16" href="{{ '/assets/favicon/favicon-16x16.png' | relative_url }}">
12
- <link rel="manifest" href="{{ '/assets/favicon/site.webmanifest' | relative_url }}">
13
- <link rel="mask-icon" href="{{ '/assets/favicon/safari-pinned-tab.svg' | relative_url }}" color="#5bbad5">
14
- <link rel="shortcut icon" href="{{ '/assets/favicon/favicon.ico' | relative_url }}">
15
- <meta name="msapplication-TileColor" content="#da532c">
16
- <meta name="msapplication-config" content="{{ '/assets/favicon/browserconfig.xml' | relative_url }}">
17
- <meta name="theme-color" content="#ffffff">
8
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/favicon/apple-touch-icon.png' | relative_url }}">
9
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon/favicon-32x32.png' | relative_url }}">
10
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ '/assets/favicon/favicon-16x16.png' | relative_url }}">
11
+ <link rel="manifest" href="{{ '/assets/favicon/site.webmanifest' | relative_url }}">
12
+ <link rel="mask-icon" href="{{ '/assets/favicon/safari-pinned-tab.svg' | relative_url }}" color="#5bbad5">
13
+ <link rel="shortcut icon" href="{{ '/assets/favicon/favicon.ico' | relative_url }}">
14
+ <meta name="msapplication-TileColor" content="#da532c">
15
+ <meta name="msapplication-config" content="{{ '/assets/favicon/browserconfig.xml' | relative_url }}">
16
+ <meta name="theme-color" content="#ffffff"> {%- include css-imports.html -%}
17
+ {% if site.siteID > 0 %}
18
+ <script>
19
+ const settings = {
20
+ expires: "{{ site.cookies_expire }}",
21
+ matomoURL: "{{ site.analyticsurl }}",
22
+ siteID: "{{ site.siteID }}",
23
+ accept_all_text: "{{ site.accept_all_text }}",
24
+ only_necessary_text: "{{ site.only_necessary_text }}",
25
+ cookieName: "{{ site.cookieName }}",
26
+ bots: /bot|crawler|spider|crawling/i,
27
+ timeout_hidebanner: "{{ site.timeout_hidebanner }}",
28
+ cookieDomain: "{{ site.cookieDomain }}",
29
+ }
30
+ </script>
31
+ <script src="https://analytics.lcsb.uni.lu/lap/static/js/jquery.min.js"></script>
32
+ <script src="https://analytics.lcsb.uni.lu/lap/static/js/lap.js"></script>
33
+ <link rel="stylesheet" type="text/css" href="https://analytics.lcsb.uni.lu/lap/static/css/lap.css" />
34
+ {%- endif -%}
18
35
 
19
- {%- include css-imports.html -%}
36
+ {%- if jekyll.environment == "review" -%}
37
+ <script defer data-project-id='{{site.project_id}}' data-project-path='{{site.project_namespace}}' data-merge-request-id='{{site.mr_id}}' data-mr-url='{{site.gitlab_host}}' id='review-app-toolbar-script' src='{{site.gitlab_host}}/assets/webpack/visual_review_toolbar.js'></script>
38
+ {%- endif -%}
20
39
 
21
- {%- if jekyll.environment == "review" -%}
22
- <script defer
23
- data-project-id='{{site.project_id}}'
24
- data-project-path='{{site.project_namespace}}'
25
- data-merge-request-id='{{site.mr_id}}'
26
- data-mr-url='{{site.gitlab_host}}'
27
- id='review-app-toolbar-script'
28
- src='{{site.gitlab_host}}/assets/webpack/visual_review_toolbar.js'></script>
29
- {%- endif -%}
30
-
31
- {%- if jekyll.environment == 'production' and site.google_analytics -%}
32
- {%- include google-analytics.html -%}
33
- {%- endif -%}
34
- </head>
40
+ </head>
@@ -0,0 +1,4 @@
1
+ <p>
2
+ <a href="{{ site.path_policy | relative_url }}">Privacy Policy</a>
3
+ (<span id="gdpr-result-text"></span> - <a href="javascript: showBanner();">change</a>)
4
+ </p>
@@ -2,8 +2,3 @@
2
2
  Add here additional javascript libraries and code.
3
3
  Uncomment those if needed.
4
4
  {% endcomment %}
5
-
6
- {% comment %}
7
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
8
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
9
- {% endcomment %}
@@ -15,9 +15,6 @@
15
15
 
16
16
  {%- include css-imports.html -%}
17
17
 
18
- {%- if jekyll.environment == 'production' and site.google_analytics -%}
19
- {%- include google-analytics.html -%}
20
- {%- endif -%}
21
18
  </head>
22
19
 
23
20
  <body>
@@ -228,6 +228,7 @@ pre {
228
228
  margin-left: 0px;
229
229
  background-color: #fdfdfd;
230
230
  box-shadow: unset;
231
+ display: block;
231
232
  }
232
233
  }
233
234
 
@@ -254,7 +254,7 @@ html {
254
254
  width:100%;
255
255
  margin-top: -$footer-height + $spacing-unit;
256
256
  flex-shrink: 0;
257
- height: $footer-height;
257
+ min-height: $footer-height;
258
258
  line-height: 15px;
259
259
 
260
260
  @media print {
@@ -311,12 +311,6 @@ html {
311
311
  }
312
312
  }
313
313
 
314
- .site-footer-share {
315
- margin-bottom: 4px;
316
- }
317
-
318
-
319
-
320
314
  /**
321
315
  * Page content
322
316
  */
@@ -89,31 +89,34 @@ div.alert.primary {
89
89
  right: 0px;
90
90
  }
91
91
 
92
+ .footer-text-container {
93
+ margin-bottom: 4px;
94
+ left: 0;
95
+ width: 100%;
96
+ position: absolute;
97
+ text-align: center;
98
+ }
99
+
100
+
92
101
  .r3-logo-container {
102
+ float: left;
103
+ position: relative;
104
+ left: 11%;
93
105
  }
94
106
 
95
107
  .r3-logo {
96
- float: left;
97
- position: relative;
98
- top: -10px;
99
- left: 100px;
100
- height: 30px;
108
+ height: 30px;
101
109
  }
102
110
 
103
111
  .lcsb-logo {
104
- float: left;
105
- position: relative;
106
- top: -10px;
107
- left: 100px;
108
112
  height: 30px;
109
113
  padding-left: 1em;
110
- }
114
+ }
111
115
 
112
- .social-media-list {
113
- float: right;
114
- padding-right: 7%;
115
- position: relative;
116
- top: -2.4em;
116
+ .social-container {
117
+ float: right;
118
+ padding-right: 7%;
119
+ padding-top: 0.5em;
117
120
  }
118
121
 
119
122
  .svg-icon {
@@ -148,6 +151,42 @@ div.alert.primary {
148
151
  }
149
152
  }
150
153
 
154
+ @media (max-width: 680px) {
155
+ .lcsb-logo {
156
+ height: 32px;
157
+ margin: 0px auto;
158
+
159
+ float: none;
160
+ position: initial;
161
+ top: unset;
162
+ left: unset;
163
+ }
164
+
165
+ .r3-logo-container {
166
+ position: relative;
167
+ left:0;
168
+ width: 100%;
169
+ text-align: center;
170
+ padding-bottom: 1em;
171
+
172
+ }
173
+
174
+ .footer-text-container {
175
+ margin-bottom: 4px;
176
+ left: 0;
177
+ width: 100%;
178
+ position: relative;
179
+ text-align: center;
180
+ }
181
+ .social-container {
182
+ position: relative;
183
+ left:0;
184
+ width: 100%;
185
+ text-align: center;
186
+ float: unset;
187
+ }
188
+ }
189
+
151
190
  @media (max-width: 640px) {
152
191
  .img-uni-lu {
153
192
  }
@@ -165,37 +204,11 @@ div.alert.primary {
165
204
  width: 120px;
166
205
  display: none;
167
206
  }
168
-
169
- .r3-logo {
170
- height: 32px;
171
- margin: 0px auto;
172
-
173
- float: none;
174
- position: initial;
175
- top: unset;
176
- left: unset;
177
- }
178
-
179
- .lcsb-logo {
180
- height: 32px;
181
- margin: 0px auto;
182
-
183
- float: none;
184
- position: initial;
185
- top: unset;
186
- left: unset;
187
- }
188
-
189
- .r3-logo-container {
190
- width: 100%;
191
- position: relative;
192
- top: -10px;
193
- }
194
207
  }
195
208
 
196
209
  // Ultra-small screen ==================================================================================
197
210
 
198
- @media (max-width: 500px) {
211
+ @media (max-width: 650px) {
199
212
  .img-banner-main {
200
213
  margin-left: 9px;
201
214
  bottom: -8px;
@@ -216,14 +229,6 @@ div.alert.primary {
216
229
  position: relative;
217
230
  width: 80px;
218
231
  }
219
-
220
- .social-media-list {
221
- text-align: center;
222
- position:relative;
223
- right:33%;
224
- top: 0.2em;
225
- padding-right: 2%;
226
- }
227
232
  }
228
233
 
229
234
 
@@ -3,5 +3,5 @@
3
3
  # Note: keep the format of NUMBER.NUMBER.NUMBER (where NUMBER is [0-9]+);
4
4
  # Otherwise Gitlab-CI could fail to detect the version (see .gitlab-ci.yml) and auto-tag the job
5
5
  module Theme
6
- VERSION = "0.3.18"
6
+ VERSION = "0.4.3"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-lcsb-default
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trefex
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-10 00:00:00.000000000 Z
12
+ date: 2020-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -77,9 +77,10 @@ files:
77
77
  - LICENSE.txt
78
78
  - _includes/css-imports.html
79
79
  - _includes/footer.html
80
- - _includes/google-analytics.html
80
+ - _includes/gdpr-banner.html
81
81
  - _includes/head.html
82
82
  - _includes/header.html
83
+ - _includes/policy.html
83
84
  - _includes/scripts.html
84
85
  - _includes/social.html
85
86
  - _layouts/default.html
@@ -1,12 +0,0 @@
1
- <script>
2
- if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
3
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
-
8
- ga('create', '{{ site.google_analytics }}', 'auto');
9
- ga('send', 'pageview');
10
- }
11
- </script>
12
-