elixir-toolkit-theme 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/cookie-popup.html +1 -1
- data/_includes/events.html +1 -1
- data/_includes/news.html +1 -1
- data/_includes/sidebar.html +7 -7
- data/_includes/topnav.html +1 -1
- data/_layouts/default.html +5 -0
- data/assets/css/main.scss +16 -0
- data/assets/js/main.js +20 -9
- 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: af01a19ca393effa2ffbedd956647a477769b045da4fc2ae5493494f389ba480
|
4
|
+
data.tar.gz: 7d24d9eff95e370fd1c7d623b1e30c50452bc779d0145b45633aa02dc50cb2b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6e7ecd5827ee352c36e4eca4055b5461a9906d9d74fed13ecc3a920d776d8f119d3728629a3c4b03f4f0d568edb81ae54e344ac199c21b7623449452bba3392
|
7
|
+
data.tar.gz: cb05a2d704b22bd2dc9a7d6dc794f3594d666bbb0ed5fab8df4c76a056c21b5a94522e74c81ce9132a524ce627b118694e23d73f39127561f1871d6a9b7102ff
|
data/_includes/cookie-popup.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<!-- START Bootstrap-Cookie-Alert -->
|
3
3
|
<div class="alert text-center cookiealert rounded-0" role="alert">
|
4
4
|
We use cookies to ensure you get the best experience on our website. Read our
|
5
|
-
<a class="fw-bold" href="{{ '/privacy
|
5
|
+
<a class="fw-bold" href="{{ '/privacy' | relative_url}}">privacy policy</a> to find out more.
|
6
6
|
<button type="button" id="acceptcookies" class="btn btn-primary ms-2">
|
7
7
|
Got it!
|
8
8
|
</button>
|
data/_includes/events.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
{%- endfor %}
|
34
34
|
</ul>
|
35
35
|
{%- if include.caption == "true" %}
|
36
|
-
<small>An overview of all our events can be fount on the <a href="/events
|
36
|
+
<small>An overview of all our events can be fount on the <a href="{{'/events' | relative_url}}">events page</a>.</small>
|
37
37
|
{%- endif %}
|
38
38
|
</div>
|
39
39
|
<script>
|
data/_includes/news.html
CHANGED
data/_includes/sidebar.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{%- assign sidebar = site.data.sidebars[page.sidebar] %}
|
2
|
-
{%- capture reusing -%}{%- if page.url == "/reusing
|
3
|
-
{%- capture preserving -%}{%- if page.url == "/preserving
|
4
|
-
{%- capture analysing -%}{%- if page.url == "/analysing
|
5
|
-
{%- capture processing -%}{%- if page.url == "/processing
|
6
|
-
{%- capture planning -%}{%- if page.url == "/planning
|
7
|
-
{%- capture collecting -%}{%- if page.url == "/collecting
|
8
|
-
{%- capture sharing -%}{%- if page.url == "/sharing
|
2
|
+
{%- capture reusing -%}{%- if page.url == "/reusing" -%}st0{%- else -%}st10{%- endif -%}{%- endcapture -%}
|
3
|
+
{%- capture preserving -%}{%- if page.url == "/preserving" -%}st2{%- else -%}st12{%- endif -%}{%- endcapture -%}
|
4
|
+
{%- capture analysing -%}{%- if page.url == "/analysing" -%}st3{%- else -%}st13{%- endif -%}{%- endcapture -%}
|
5
|
+
{%- capture processing -%}{%- if page.url == "/processing" -%}st4{%- else -%}st14{%- endif -%}{%- endcapture -%}
|
6
|
+
{%- capture planning -%}{%- if page.url == "/planning" -%}st5{%- else -%}st15{%- endif -%}{%- endcapture -%}
|
7
|
+
{%- capture collecting -%}{%- if page.url == "/collecting" -%}st6{%- else -%}st16{%- endif -%}{%- endcapture -%}
|
8
|
+
{%- capture sharing -%}{%- if page.url == "/sharing" -%}st7{%- else -%}st17{%- endif -%}{%- endcapture -%}
|
9
9
|
<button class="btn text-start d-lg-none collapsed sidebar-collapse w-100 mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#side-nav" aria-controls="side-nav" aria-expanded="true" aria-label="Toggle navigation">
|
10
10
|
{{ page.sidebar | capitalize | replace: "_", " " }} menu <i title="navbar-toggler" class="fa fa-bars ms-2"></i>
|
11
11
|
</button>
|
data/_includes/topnav.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
|
5
5
|
<nav class="navbar navbar-expand-lg mb-3 mb-lg-5">
|
6
6
|
<div class="container">
|
7
|
-
<a class="navbar-brand" href="{{ '
|
7
|
+
<a class="navbar-brand" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
|
8
8
|
<button class="navbar-toggler text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
9
9
|
<i title="navbar-toggler" class="fa fa-bars"></i>
|
10
10
|
</button>
|
data/_layouts/default.html
CHANGED
@@ -19,6 +19,11 @@
|
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
|
+
{%- if site.theme_variables.back_to_top or site.theme_variables.back_to_top == nil %}
|
23
|
+
<button id="back-to-top" class="btn btn-primary" type="button" aria-hidden="true" onclick="topFunction()">
|
24
|
+
<i class="fa fa-arrow-up"></i><span class="ms-2 d-none d-sm-inline">Back to top</span>
|
25
|
+
</button>
|
26
|
+
{%- endif %}
|
22
27
|
{% include footer.html %}
|
23
28
|
{% include cookie-popup.html %}
|
24
29
|
</body>
|
data/assets/css/main.scss
CHANGED
@@ -443,6 +443,22 @@ footer {
|
|
443
443
|
}
|
444
444
|
}
|
445
445
|
|
446
|
+
/*-----Back to top-----*/
|
447
|
+
#back-to-top {
|
448
|
+
transition: 0.3s ease-in-out;
|
449
|
+
position: fixed;
|
450
|
+
bottom: -50px;
|
451
|
+
right: $spacer;
|
452
|
+
opacity: 0;
|
453
|
+
overflow: hidden;
|
454
|
+
z-index: 1000;
|
455
|
+
|
456
|
+
&.visible {
|
457
|
+
bottom: $spacer;
|
458
|
+
opacity: 1;
|
459
|
+
}
|
460
|
+
}
|
461
|
+
|
446
462
|
/*-----Contributors cards-----*/
|
447
463
|
|
448
464
|
.contributor-cards {
|
data/assets/js/main.js
CHANGED
@@ -73,16 +73,27 @@ $(function () {
|
|
73
73
|
})
|
74
74
|
|
75
75
|
/**
|
76
|
-
*
|
76
|
+
* Back to top button
|
77
77
|
*/
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
78
|
+
|
79
|
+
var toggleHeight = $(window).outerHeight() / 3;
|
80
|
+
|
81
|
+
$(window).scroll(function () {
|
82
|
+
if ($(window).scrollTop() > toggleHeight) {
|
83
|
+
//Adds active class to make button visible
|
84
|
+
$("#back-to-top").addClass("visible");
|
85
|
+
|
86
|
+
} else {
|
87
|
+
//Removes active class to make button visible
|
88
|
+
$("#back-to-top").removeClass("visible");
|
89
|
+
}
|
90
|
+
});
|
91
|
+
|
92
|
+
//Scrolls the user to the top of the page again
|
93
|
+
function topFunction() {
|
94
|
+
document.body.scrollTop = 0; // For Safari
|
95
|
+
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
|
96
|
+
}
|
86
97
|
|
87
98
|
|
88
99
|
/**
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elixir-toolkit-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bedroesb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|