jekyll-theme-lcsb-default 0.4.7 → 0.4.11
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/LICENSE.txt +1 -1
- data/_includes/script_add_bookmark.html +52 -0
- data/_layouts/default.html +16 -5
- data/_sass/minima/_base.scss +25 -2
- 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 +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b35fa76ebb5a8411309bbf45e176487edaca5564b411d2e1e3b2ce52302f4e3
|
4
|
+
data.tar.gz: 1caa3e5f2611f823e1f610459ef134c1bc18566e7a6b4c9899f4a572c2b1f921
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3fa9cbc8187735925b6bd1bac66bbfd83c1aec32f3259bf07563780d2f43f920e81267a6f895ee0d5744dad1d4b3ee1c6b348482e91622b8c68dd5048d8df7
|
7
|
+
data.tar.gz: 0d98000e4d87a7fccc8022e9144fd94e06d7982a76884b5f9bcc488f082f65363663833e1c2c54e9ecdf8fa748f13c48712e6ba2c8d7d39f215d884997ec35af
|
data/LICENSE.txt
CHANGED
@@ -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
@@ -53,6 +53,7 @@ h1, h2, h3, h4, h5, h6,
|
|
53
53
|
p, blockquote, pre,
|
54
54
|
ul, ol, dl, figure,
|
55
55
|
%vertical-rhythm {
|
56
|
+
margin-top: $spacing-unit / 2;
|
56
57
|
margin-bottom: $spacing-unit / 2;
|
57
58
|
}
|
58
59
|
|
@@ -109,15 +110,37 @@ li {
|
|
109
110
|
/**
|
110
111
|
* Headings
|
111
112
|
*/
|
112
|
-
h1, h2 {
|
113
|
+
h1, h2, h3 {
|
113
114
|
font-weight: $base-font-weight;
|
114
115
|
}
|
115
116
|
|
116
|
-
|
117
|
+
h4, h5, h6 {
|
117
118
|
font-weight: $base-font-weight + 300;
|
118
119
|
}
|
119
120
|
|
121
|
+
h1 {
|
122
|
+
font-size: 2.35em;
|
123
|
+
}
|
124
|
+
|
125
|
+
h2 {
|
126
|
+
font-size: 2em;
|
127
|
+
}
|
128
|
+
|
129
|
+
h3 {
|
130
|
+
font-size: 1.8em;
|
131
|
+
}
|
120
132
|
|
133
|
+
h4 {
|
134
|
+
font-size: 1.6em;
|
135
|
+
}
|
136
|
+
|
137
|
+
h5 {
|
138
|
+
font-size: 1.5em;
|
139
|
+
}
|
140
|
+
|
141
|
+
h6 {
|
142
|
+
font-size: 1.3em;
|
143
|
+
}
|
121
144
|
|
122
145
|
/**
|
123
146
|
* Links
|
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.11
|
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-
|
12
|
+
date: 2021-07-20 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
|