elixir-toolkit-theme 4.2.0 → 6.0.0
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/README.md +10 -5
- data/_includes/affiliation-logo.html +10 -0
- data/_includes/affiliation-tiles-page.html +27 -27
- data/_includes/citation-page.html +19 -17
- data/_includes/contributor-avatar.html +16 -0
- data/_includes/contributor-card.html +33 -0
- data/_includes/contributor-carousel-selection.html +19 -69
- data/_includes/contributor-minitiles-page.html +18 -108
- data/_includes/contributor-tiles-all.html +8 -61
- data/_includes/events.html +1 -1
- data/_includes/footer.html +16 -6
- data/_includes/github-buttons.html +18 -22
- data/_includes/head.html +36 -30
- data/_includes/more-information-tiles.html +5 -5
- data/_includes/news.html +1 -1
- data/_includes/page-metadata-tabs.html +92 -0
- data/_includes/pageids-overview.html +1 -1
- data/_includes/related-pages.html +1 -1
- data/_includes/resource-table-all.html +29 -17
- data/_includes/resource-table-page.html +2 -2
- data/_includes/scroll-top.html +1 -1
- data/_includes/section-navigation-tiles.html +12 -7
- data/_includes/sidebar.html +58 -42
- data/_includes/toc.html +1 -1
- data/_includes/topnav.html +2 -1
- data/_layouts/default.html +3 -3
- data/_layouts/page.html +5 -5
- data/_sass/_bootstrap_variables.scss +2 -1
- data/_sass/_variables.scss +11 -17
- data/assets/css/main.scss +287 -146
- data/assets/img/apple-touch-icon.png +0 -0
- data/assets/img/favicon.svg +24 -0
- data/assets/img/site.webmanifest +19 -17
- data/assets/img/web-app-manifest-192x192.png +0 -0
- data/assets/img/web-app-manifest-512x512.png +0 -0
- data/assets/js/custom.js +0 -0
- data/assets/js/main.js +133 -22
- data/assets/js/toc.js +66 -35
- metadata +12 -8
- data/assets/img/android-chrome-192x192.png +0 -0
- data/assets/img/android-chrome-512x512.png +0 -0
- data/assets/img/safari-pinned-tab.svg +0 -29
- data/assets/js/jquery.navgoco.js +0 -314
data/_includes/sidebar.html
CHANGED
|
@@ -9,39 +9,46 @@
|
|
|
9
9
|
<button class="btn text-start d-lg-none hover-primary 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-solid fa-bars ms-2"></i>
|
|
11
11
|
</button>
|
|
12
|
-
<nav class="collapse" id="side-nav" aria-label="Side navigation">
|
|
12
|
+
<nav class="collapse text-muted" id="side-nav" aria-label="Side navigation">
|
|
13
13
|
{%- if sidebar.title or sidebar.version %}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{%- else %}
|
|
18
|
-
<a class="btn hover-primary text-start d-block mb-1 sidebar-title" href="{{ sidebar.title_url | relative_url }}">{{sidebar.title}} {{sidebar.version}}</a>
|
|
14
|
+
<div class="sidebar-title-wrapper pb-1 pt-2">
|
|
15
|
+
<a class="text-start d-block sidebar-title text-dark{% if page.url == sidebar.title_url %} active{%- endif %}{% unless sidebar.title_url %} disabled{%- endunless %}" {%- if sidebar.title_url %}href="{{ sidebar.title_url | relative_url }}"{%- endif %}>{{sidebar.title}} {{sidebar.version}}</a>
|
|
16
|
+
</div>
|
|
19
17
|
{%- endif %}
|
|
20
|
-
{%-
|
|
21
|
-
|
|
22
|
-
{%- endif %}
|
|
23
|
-
{%- endif %}
|
|
24
|
-
<ul class="list-unstyled mb-4">
|
|
18
|
+
<ul id="sidebar-list-lvl-0" class="list-unstyled mb-4{%- unless sidebar.title or sidebar.version %} pt-2{%- endunless %}">
|
|
19
|
+
{%- assign subitems_count = 0 %}
|
|
25
20
|
{%- for folder in sidebar.subitems %}
|
|
26
|
-
{%- if
|
|
27
|
-
|
|
28
|
-
{%-
|
|
29
|
-
|
|
21
|
+
<li class="d-flex align-items-center{%- if folder.hr %} mt-3{% endif %}">
|
|
22
|
+
{%- if folder.subitems %}
|
|
23
|
+
{%- assign subfolder_active = false %}
|
|
24
|
+
{%- for subfolder in folder.subitems %}
|
|
25
|
+
{%- if page.url == subfolder.url %}
|
|
26
|
+
{%- assign subfolder_active = true %}
|
|
27
|
+
{%- endif %}
|
|
28
|
+
{%- if subfolder.subitems %}
|
|
29
|
+
{%- for subsubfolder in subfolder.subitems %}
|
|
30
|
+
{%- if page.url == subsubfolder.url %}
|
|
31
|
+
{%- assign subfolder_active = true %}
|
|
32
|
+
{%- endif %}
|
|
33
|
+
{%- endfor %}
|
|
34
|
+
{%- endif %}
|
|
35
|
+
{%- endfor %}
|
|
30
36
|
{%- endif %}
|
|
31
37
|
{%- if folder.external_url %}
|
|
32
|
-
<a class="
|
|
33
|
-
{%- else %}
|
|
34
|
-
<a class="
|
|
38
|
+
<a class="text-start w-100" href="{{folder.external_url}}" target="_blank" rel="noopener">{{folder.title}}</a>
|
|
39
|
+
{%- else %}
|
|
40
|
+
<a class="text-start w-100{%- if page.url == folder.url %} active{% endif %}" {%- if folder.url %}href="{{folder.url | relative_url }}"{% else %}data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-1-{{subitems_count}}" aria-expanded="{{subfolder_active}}" aria-controls="sidebar-list-lvl-1-{{subitems_count}}"{% endif %}>{{ folder.title }}</a>
|
|
35
41
|
{%- endif %}
|
|
36
42
|
{%- if folder.subitems %}
|
|
37
|
-
|
|
43
|
+
<button type="button" class="btn btn-sm btn-link rounded-circle{%- unless subfolder_active or page.url == folder.url or page.type == 'Data_life_cycle' and folder.title == 'Data life cycle' %} collapsed{% endunless %}" data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-1-{{subitems_count}}" aria-expanded="{{subfolder_active}}" aria-controls="sidebar-list-lvl-1-{{subitems_count}}">
|
|
44
|
+
<i class="fa-solid fa-chevron-right"></i><span class="visually-hidden">Expand sidebar</span>
|
|
45
|
+
</button>
|
|
46
|
+
<li class="py-0">
|
|
47
|
+
<ul id="sidebar-list-lvl-1-{{subitems_count}}" class="list-unstyled collapse{%- if subfolder_active or page.url == folder.url or page.type == 'Data_life_cycle' and folder.title == 'Data life cycle' %} show{% endif %}" data-bs-parent="#sidebar-list-lvl-0">
|
|
48
|
+
{%- assign subsubitems_count = 0 %}
|
|
38
49
|
{%- for subfolder in folder.subitems %}
|
|
39
50
|
{%- if subfolder.RDM -%}
|
|
40
|
-
{%- if page.type ==
|
|
41
|
-
<li class="active sidebar_rdm_sub mb-1">
|
|
42
|
-
{% else %}
|
|
43
|
-
<li class="sidebar_rdm_sub mb-1">
|
|
44
|
-
{% endif %}
|
|
51
|
+
<li class="sidebar_rdm_sub mb-1{%- if page.type == 'Data_life_cycle' %} active{% endif %}">
|
|
45
52
|
<svg version="1.1" id="data-life-cycle" xmlns="http://www.w3.org/2000/svg"
|
|
46
53
|
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 250.9 251"
|
|
47
54
|
style="enable-background:new 0 0 250.9 251;" xml:space="preserve" class="sidebar_rdm">
|
|
@@ -198,40 +205,49 @@
|
|
|
198
205
|
</svg>
|
|
199
206
|
</li>
|
|
200
207
|
{%- else %}
|
|
201
|
-
{%- if
|
|
202
|
-
|
|
203
|
-
{%-
|
|
204
|
-
|
|
208
|
+
<li class="d-flex align-items-center{%- if subfolder.hr %} mt-3{% endif %}">
|
|
209
|
+
{%- if subfolder.subitems %}
|
|
210
|
+
{%- assign subsubfolder_active = false %}
|
|
211
|
+
{%- for subsubfolder in subfolder.subitems %}
|
|
212
|
+
{%- if page.url == subsubfolder.url %}
|
|
213
|
+
{%- assign subsubfolder_active = true %}
|
|
214
|
+
{%- endif %}
|
|
215
|
+
{%- endfor %}
|
|
205
216
|
{%- endif %}
|
|
206
217
|
{%- if subfolder.external_url %}
|
|
207
|
-
<a class="
|
|
218
|
+
<a class="text-start w-100" href="{{subfolder.external_url}}" target="_blank" rel="noopener">{{subfolder.title}}</a>
|
|
208
219
|
{%- else %}
|
|
209
|
-
<a class="
|
|
220
|
+
<a class="text-start w-100{%- if page.url == subfolder.url %} active{% endif %}" {%- if subfolder.url %}href="{{subfolder.url | relative_url }}"{% else %}data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-2-{{subsubitems_count}}" aria-expanded="{{subsubfolder_active}}" aria-controls="sidebar-list-lvl-2-{{subsubitems_count}}"{% endif %}>{{ subfolder.title }}</a>
|
|
210
221
|
{%- endif %}
|
|
211
222
|
{%- if subfolder.subitems %}
|
|
212
|
-
|
|
223
|
+
<button type="button" class="btn btn-sm btn-link rounded-circle{%- unless subsubfolder_active or page.url == subfolder.url %} collapsed{% endunless %}" data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-2-{{subsubitems_count}}" aria-expanded="{{subsubfolder_active}}" aria-controls="sidebar-list-lvl-2-{{subsubitems_count}}">
|
|
224
|
+
<i class="fa-solid fa-chevron-right"></i><span class="visually-hidden">Expand sidebar</span>
|
|
225
|
+
</button>
|
|
226
|
+
</li>
|
|
227
|
+
<li class="py-0">
|
|
228
|
+
<ul id="sidebar-list-lvl-2-{{subsubitems_count}}" class="list-unstyled collapse{%- if subsubfolder_active or page.url == subfolder.url %} show{% endif %}" data-bs-parent="#sidebar-list-lvl-1-{{subitems_count}}">
|
|
213
229
|
{%- for subsubfolder in subfolder.subitems %}
|
|
214
|
-
{%- if
|
|
215
|
-
<li class="active">
|
|
216
|
-
{%- else %}
|
|
217
|
-
<li>
|
|
218
|
-
{%- endif %}
|
|
230
|
+
<li class="d-flex align-items-center{%- if subsubfolder.hr %} mt-3{% endif %}">
|
|
219
231
|
{%- if subsubfolder.external_url %}
|
|
220
|
-
<a class="
|
|
221
|
-
{%- else %}
|
|
222
|
-
<a class="
|
|
232
|
+
<a class="text-start w-100" href="{{subsubfolder.external_url}}" target="_blank" rel="noopener">{{subsubfolder.title}}</a>
|
|
233
|
+
{%- else %}
|
|
234
|
+
<a class="text-start w-100{%- if page.url == subsubfolder.url %} active{% endif %}" href="{{subsubfolder.url | relative_url }}">{{ subsubfolder.title }}</a>
|
|
223
235
|
{%- endif %}
|
|
224
236
|
</li>
|
|
225
237
|
{%- endfor %}
|
|
226
238
|
</ul>
|
|
239
|
+
</li>
|
|
227
240
|
{%- endif %}
|
|
228
|
-
{%-
|
|
241
|
+
{%- unless subfolder.subitems %}
|
|
229
242
|
</li>
|
|
243
|
+
{%- endunless %}
|
|
244
|
+
{%- endif %}
|
|
245
|
+
{%- assign subsubitems_count = subsubitems_count | plus: 1 %}
|
|
230
246
|
{%- endfor %}
|
|
231
247
|
</ul>
|
|
232
248
|
{%- endif %}
|
|
233
|
-
</li>
|
|
249
|
+
</li>
|
|
250
|
+
{%- assign subitems_count = subitems_count | plus: 1 %}
|
|
234
251
|
{%- endfor %}
|
|
235
252
|
</ul>
|
|
236
|
-
<script>$("li.active").parents('li').toggleClass("active parent");</script>
|
|
237
253
|
</nav>
|
data/_includes/toc.html
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
classes: { list: 'list-unstyled mb-4' },
|
|
20
20
|
showSpeed: 0,
|
|
21
21
|
headers: '{{site.theme_variables.toc.headings | default: "main h2" }}',
|
|
22
|
-
title: '<strong class="my-2">On this page</strong><hr class="
|
|
22
|
+
title: '<strong class="my-0 my-xl-2 pt-2 d-block text-dark">On this page</strong><hr class="mt-2">'
|
|
23
23
|
});
|
|
24
24
|
// After generating the TOC, check the hash in the URL and scroll to the anchor if present
|
|
25
25
|
if (window.location.hash) {
|
data/_includes/topnav.html
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<!-- Navigation -->
|
|
2
2
|
<header>
|
|
3
|
+
<a class="visually-hidden-focusable" href='#side-nav'>Skip to aside</a>
|
|
3
4
|
<a class="visually-hidden-focusable" href='#main'>Skip to content</a>
|
|
4
5
|
<a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
|
|
5
|
-
<nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5">
|
|
6
|
+
<nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5 shadow-sm">
|
|
6
7
|
<div class="container g-lg-5">
|
|
7
8
|
<a class="navbar-brand flex-grow-1 overflow-x-auto" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ site.theme_variables.topnav.brand_logo | default: '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
9
|
<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">
|
data/_layouts/default.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
{% include head.html %}
|
|
4
|
-
<body class="
|
|
4
|
+
<body class=""{% if page.toc or page.toc == nil %} data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0"{% endif %}>
|
|
5
5
|
{% if site.topnav_banner %}{% include banner.html %}{% endif %}
|
|
6
6
|
{% if jekyll.environment == "development" and site.theme_variables.dev-info-banner == true %}{% include dev-info.html %}{% endif %}
|
|
7
|
-
{% include topnav.html %}
|
|
7
|
+
{% include topnav.html search=site.theme_variables.topnav.search %}
|
|
8
8
|
<!-- Page Content -->
|
|
9
|
-
<div class="container g-lg-5
|
|
9
|
+
<div class="container g-lg-5">
|
|
10
10
|
<!-- Content Row -->
|
|
11
11
|
<div {% if page.sidebar %}id="layout" class="gap-5"{% endif %}>
|
|
12
12
|
<!-- Sidebar -->
|
data/_layouts/page.html
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
-
<main id="main" class="
|
|
4
|
+
<main id="main" class="min-vh-100{%- if page.toc or page.toc == nil or page.page_img %} add-grid{% endif %}">
|
|
5
5
|
<div id="intro">
|
|
6
6
|
{%- if site.theme_variables.breadcrumb %}
|
|
7
7
|
{% include breadcrumb.html %}
|
|
8
8
|
{%- endif %}
|
|
9
9
|
{%- if page.title %}
|
|
10
10
|
{%- if page.type and site.theme_variables.breadcrumb != true %}
|
|
11
|
-
{%- assign subtitle = page.type | replace: "_", " "
|
|
11
|
+
{%- assign subtitle = page.type | replace: "_", " " %}
|
|
12
12
|
<h1 class="has-subtitle order-1 order-md-0"><span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {{ page.title }}
|
|
13
13
|
{%- else %}
|
|
14
14
|
<h1>{{ page.title }}
|
|
@@ -35,9 +35,9 @@ layout: default
|
|
|
35
35
|
{%- if page.page_id %}
|
|
36
36
|
{% include resource-table-all.html tag=page.page_id %}
|
|
37
37
|
{%- endif %}
|
|
38
|
-
|
|
39
|
-
{% include
|
|
40
|
-
|
|
38
|
+
|
|
39
|
+
{% include page-metadata-tabs.html %}
|
|
40
|
+
|
|
41
41
|
{%- if site.theme_variables.github_buttons.position == "bottom" %}
|
|
42
42
|
<div id="github-buttons-wrapper" class="d-flex mt-5">
|
|
43
43
|
{% include github-buttons.html %}
|
data/_sass/_variables.scss
CHANGED
|
@@ -10,40 +10,34 @@ $btn-primary-color-hover: $white;
|
|
|
10
10
|
$topnav-bg: $light;
|
|
11
11
|
$topnav-title-color: $primary;
|
|
12
12
|
$topnav-brand-height: 44px;
|
|
13
|
+
$topnav-searchbar: $white;
|
|
13
14
|
|
|
14
15
|
/*-----Search-----*/
|
|
15
16
|
$search-result-color: $primary;
|
|
16
17
|
|
|
17
18
|
/*-----Sidebar-----*/
|
|
18
|
-
$sidebar-bg: $
|
|
19
|
-
$sidebar-color: $
|
|
20
|
-
$sidebar-
|
|
21
|
-
$sidebar-lvl2-color: $dark;
|
|
22
|
-
$sidebar-lvl3-bg: $white;
|
|
23
|
-
$sidebar-lvl3-color: $dark;
|
|
24
|
-
$sidebar-bg-active: $primary;
|
|
25
|
-
$sidebar-color-active: $white;
|
|
19
|
+
$sidebar-title-bg: $white;
|
|
20
|
+
$sidebar-link-color-active: $primary !default;
|
|
21
|
+
$sidebar-link-bg-active:rgba($primary, 0.08) !default;
|
|
26
22
|
|
|
27
23
|
/*-----Section navigation tiles-----*/
|
|
28
24
|
$nav-card-bg: $light;
|
|
29
25
|
$nav-card-color: $dark;
|
|
30
|
-
$nav-card-bg-hover: $primary;
|
|
31
|
-
$nav-card-color-hover: $
|
|
26
|
+
$nav-card-bg-hover: rgba($primary, 0.08) !default;
|
|
27
|
+
$nav-card-color-hover: $dark;
|
|
32
28
|
|
|
33
29
|
/*-----More information tiles-----*/
|
|
34
30
|
$info-card-bg: $light;
|
|
35
31
|
$info-card-color: $dark;
|
|
36
|
-
$info-card-bg-hover: $primary;
|
|
37
|
-
$info-card-color-hover: $
|
|
32
|
+
$info-card-bg-hover: rgba($primary, 0.08) !default;
|
|
33
|
+
$info-card-color-hover: $dark;
|
|
38
34
|
|
|
39
35
|
/*-----Contributors-cards-----*/
|
|
40
36
|
$contr-card-bg: $light;
|
|
41
37
|
|
|
42
|
-
/*-----Page
|
|
43
|
-
$
|
|
44
|
-
$
|
|
45
|
-
$contr-crown-bg: $dark;
|
|
46
|
-
$contr-crown-color: $white;
|
|
38
|
+
/*-----Page metadata-----*/
|
|
39
|
+
$page-metadata-bg: rgba($primary, 0.08);
|
|
40
|
+
$page-metadata-link-bg: $white;
|
|
47
41
|
$contr-popover-bg: $white;
|
|
48
42
|
|
|
49
43
|
/*-----Events & news-----*/
|