jekyll-theme-lcsb-default 0.4.9 → 0.4.13
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 +4 -4
- data/_includes/script_add_bookmark.html +52 -0
- data/_layouts/default.html +16 -5
- data/_sass/minima/_base.scss +2 -0
- data/_sass/minima/_frozen.scss +6 -10
- data/_sass/minima/_layout.scss +14 -8
- data/_sass/minima/_lcsb.scss +2 -0
- data/assets/bookmark.svg +1 -0
- data/lib/jekyll-theme-lcsb-default.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9f464ef20388fc123c90c6063e6de780bc97887d48966d5e8b90a9ed31809da
|
4
|
+
data.tar.gz: 3a97c0e04f1926ae94b2e92f547ec036d848901f4d5e90c023b68df9f292a44c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f73b5b3dff6d1b496abbb9b34c8d740d229a9fb9840dbaaa507805080027be8cebcf21cfb5c1837d76e5bcc761ab27bb570bbdef43adb77c12d1d51ae9a6de09
|
7
|
+
data.tar.gz: 100ae92d6291804affb2749d9de39df96fa06afab5e79db0817675db6d185b0c369618c16b872272dc408c76f4b677ba4eb5dfffac81effaadafff6f39fd3433
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<script>
|
2
|
+
window.show_bookmark = function(el) {
|
3
|
+
var browser = detect_browser();
|
4
|
+
var os = detect_os();
|
5
|
+
var message = 'Please click "Add Bookmark" in the bookmarks bar to add the bookmark'
|
6
|
+
|
7
|
+
if (os == 'Mac OS' || os == 'undefined') {
|
8
|
+
message = 'In order to add the bookmark, please tap COMMAND + D on your keyboard, and click "Done!"';
|
9
|
+
} else if (os == 'Windows' || os == 'Linux') {
|
10
|
+
message = 'In order to add the bookmark, please tap Windows + D on your keyboard, and click "Done!"';
|
11
|
+
} else if (os == 'Android') {
|
12
|
+
message = 'Please tap the "Menu" icon (top right), then "Add bookmark" icon (at the top)'
|
13
|
+
}
|
14
|
+
|
15
|
+
alert(message);
|
16
|
+
}
|
17
|
+
|
18
|
+
function detect_browser() {
|
19
|
+
var isIE = /*@cc_on!@*/false || !!document.documentMode;
|
20
|
+
|
21
|
+
if (!!window.chrome) return 'chrome'
|
22
|
+
if (typeof InstallTrigger !== 'undefined') return 'firefox';
|
23
|
+
if (!!window.safari) return 'safari';
|
24
|
+
if (!!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0) return 'opera';
|
25
|
+
if (!isIE && !!window.StyleMedia) return 'edge';
|
26
|
+
if (isIE) return 'ie';
|
27
|
+
|
28
|
+
return 'undefined';
|
29
|
+
}
|
30
|
+
|
31
|
+
function detect_os() {
|
32
|
+
var userAgent = window.navigator.userAgent;
|
33
|
+
var platform = window.navigator.platform;
|
34
|
+
var macs = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'];
|
35
|
+
var windowses = ['Win32', 'Win64', 'Windows', 'WinCE'];
|
36
|
+
var ioses = ['iPhone', 'iPad', 'iPod'];
|
37
|
+
|
38
|
+
if (macs.indexOf(platform) !== -1) {
|
39
|
+
return 'Mac OS';
|
40
|
+
} else if (ioses.indexOf(platform) !== -1) {
|
41
|
+
return 'iOS';
|
42
|
+
} else if (windowses.indexOf(platform) !== -1) {
|
43
|
+
return 'Windows';
|
44
|
+
} else if (/Android/.test(userAgent)) {
|
45
|
+
return 'Android';
|
46
|
+
} else if (!os && /Linux/.test(platform)) {
|
47
|
+
return 'Linux';
|
48
|
+
} else {
|
49
|
+
return 'undefined';
|
50
|
+
}
|
51
|
+
}
|
52
|
+
</script>
|
data/_layouts/default.html
CHANGED
@@ -9,12 +9,20 @@
|
|
9
9
|
{%- include header.html -%}
|
10
10
|
<main class="page-content" aria-label="Content">
|
11
11
|
<div class="wrapper">
|
12
|
-
|
13
|
-
|
14
|
-
<
|
15
|
-
|
12
|
+
<div class="wrapper-menu-right">
|
13
|
+
{%- if site.bookmarks_enabled and page.show_bookmark_button -%}
|
14
|
+
<div>
|
15
|
+
<img src="{{ "assets/bookmark.svg" | relative_url }}">
|
16
|
+
<a href="#" onclick=show_bookmark()><span>Add to bookmarks</span></a>
|
17
|
+
</div>
|
18
|
+
{%- endif -%}
|
19
|
+
{%- if page.show_print_button -%}
|
20
|
+
<div>
|
21
|
+
<img src="{{ "assets/pdf.svg" | relative_url }}">
|
22
|
+
<a href="javascript:window.print()"><span>Print the page</span></a>
|
23
|
+
</div>
|
24
|
+
{%- endif -%}
|
16
25
|
</div>
|
17
|
-
{%- endif -%}
|
18
26
|
{{ content }}
|
19
27
|
</div>
|
20
28
|
</main>
|
@@ -23,4 +31,7 @@
|
|
23
31
|
</div>
|
24
32
|
</body>
|
25
33
|
{%- include scripts.html -%}
|
34
|
+
{%- if site.bookmarks_enabled -%}
|
35
|
+
{%- include script_add_bookmark.html -%}
|
36
|
+
{%- endif -%}
|
26
37
|
</html>
|
data/_sass/minima/_base.scss
CHANGED
data/_sass/minima/_frozen.scss
CHANGED
@@ -34,13 +34,13 @@
|
|
34
34
|
|
35
35
|
.rgridblock {
|
36
36
|
display:grid;
|
37
|
-
grid-template-columns:repeat(3, 1fr);
|
37
|
+
grid-template-columns:repeat(3, 1fr);
|
38
38
|
}
|
39
39
|
|
40
40
|
@media only screen and (max-width: 768px) {
|
41
41
|
.rgridblock {
|
42
42
|
display: grid;
|
43
|
-
grid-template-columns: 1fr;
|
43
|
+
grid-template-columns: 1fr;
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
@@ -49,29 +49,25 @@
|
|
49
49
|
|
50
50
|
.rblock {
|
51
51
|
margin: 0px 20px 50px 0px;
|
52
|
-
padding: 10px 30px 10px 30px;
|
52
|
+
padding: 10px 30px 10px 30px;
|
53
53
|
outline: 1px solid darkgrey;
|
54
54
|
h3 {
|
55
55
|
font-size: 15px;
|
56
56
|
text-transform: uppercase;
|
57
57
|
color: black;
|
58
58
|
margin: 8px;
|
59
|
-
padding: 0px;
|
60
|
-
|
59
|
+
padding: 0px;
|
60
|
+
|
61
61
|
}
|
62
62
|
p {
|
63
63
|
color: #666666;
|
64
64
|
@include relative-font-size(0.9);
|
65
|
-
display: inline-block;
|
66
65
|
vertical-align: middle;
|
67
66
|
float: none;
|
68
67
|
text-align: left;
|
69
|
-
padding-top: 30px;
|
70
68
|
}
|
71
|
-
|
72
|
-
|
73
69
|
}
|
74
|
-
|
70
|
+
|
75
71
|
|
76
72
|
|
77
73
|
|
data/_sass/minima/_layout.scss
CHANGED
@@ -416,21 +416,27 @@ html {
|
|
416
416
|
display: block;
|
417
417
|
}
|
418
418
|
|
419
|
-
.
|
419
|
+
.wrapper-menu-right {
|
420
|
+
// Print button, add to bookmarks, etc.
|
421
|
+
float: right;
|
422
|
+
margin: 14px -2.5% 25px 10%;
|
423
|
+
padding-bottom: 5px;
|
424
|
+
color: #252525;
|
425
|
+
|
420
426
|
@media print {
|
421
427
|
display: none;
|
422
428
|
}
|
423
429
|
|
424
|
-
float: right;
|
425
|
-
color: #252525;
|
426
|
-
margin-right: -2.5%;
|
427
|
-
margin-top: 14px;
|
428
|
-
|
429
430
|
@include media-query($on-palm) {
|
430
431
|
display: none;
|
431
432
|
}
|
432
433
|
|
433
|
-
|
434
|
-
|
434
|
+
div {
|
435
|
+
display: inline;
|
436
|
+
margin-right: 20px;
|
437
|
+
|
438
|
+
span {
|
439
|
+
padding-left: 2px;
|
440
|
+
}
|
435
441
|
}
|
436
442
|
}
|
data/_sass/minima/_lcsb.scss
CHANGED
data/assets/bookmark.svg
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><rect fill="none" height="24" width="24"/><path d="M17,11v6.97l-5-2.14l-5,2.14V5h6V3H7C5.9,3,5,3.9,5,5v16l7-3l7,3V11H17z M21,7h-2v2h-2V7h-2V5h2V3h2v2h2V7z"/></svg>
|
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.4.
|
4
|
+
version: 0.4.13
|
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: 2021-07
|
12
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- _includes/head.html
|
82
82
|
- _includes/header.html
|
83
83
|
- _includes/policy.html
|
84
|
+
- _includes/script_add_bookmark.html
|
84
85
|
- _includes/scripts.html
|
85
86
|
- _includes/social.html
|
86
87
|
- _layouts/default.html
|
@@ -108,6 +109,7 @@ files:
|
|
108
109
|
- assets/banners/r3-logo.svg
|
109
110
|
- assets/banners/uni-logo.svg
|
110
111
|
- assets/bg-overlay.svg
|
112
|
+
- assets/bookmark.svg
|
111
113
|
- assets/favicon/android-chrome-192x192.png
|
112
114
|
- assets/favicon/android-chrome-512x512.png
|
113
115
|
- assets/favicon/apple-touch-icon.png
|
@@ -193,7 +195,7 @@ files:
|
|
193
195
|
- assets/minima-social-icons.svg
|
194
196
|
- assets/pdf.svg
|
195
197
|
- lib/jekyll-theme-lcsb-default.rb
|
196
|
-
homepage: https://
|
198
|
+
homepage: https://gitlab.lcsb.uni.lu/core-services/jekyll-theme-lcsb-default
|
197
199
|
licenses:
|
198
200
|
- MIT
|
199
201
|
metadata: {}
|