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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -5
  3. data/_includes/affiliation-logo.html +10 -0
  4. data/_includes/affiliation-tiles-page.html +27 -27
  5. data/_includes/citation-page.html +19 -17
  6. data/_includes/contributor-avatar.html +16 -0
  7. data/_includes/contributor-card.html +33 -0
  8. data/_includes/contributor-carousel-selection.html +19 -69
  9. data/_includes/contributor-minitiles-page.html +18 -108
  10. data/_includes/contributor-tiles-all.html +8 -61
  11. data/_includes/events.html +1 -1
  12. data/_includes/footer.html +16 -6
  13. data/_includes/github-buttons.html +18 -22
  14. data/_includes/head.html +36 -30
  15. data/_includes/more-information-tiles.html +5 -5
  16. data/_includes/news.html +1 -1
  17. data/_includes/page-metadata-tabs.html +92 -0
  18. data/_includes/pageids-overview.html +1 -1
  19. data/_includes/related-pages.html +1 -1
  20. data/_includes/resource-table-all.html +29 -17
  21. data/_includes/resource-table-page.html +2 -2
  22. data/_includes/scroll-top.html +1 -1
  23. data/_includes/section-navigation-tiles.html +12 -7
  24. data/_includes/sidebar.html +58 -42
  25. data/_includes/toc.html +1 -1
  26. data/_includes/topnav.html +2 -1
  27. data/_layouts/default.html +3 -3
  28. data/_layouts/page.html +5 -5
  29. data/_sass/_bootstrap_variables.scss +2 -1
  30. data/_sass/_variables.scss +11 -17
  31. data/assets/css/main.scss +287 -146
  32. data/assets/img/apple-touch-icon.png +0 -0
  33. data/assets/img/favicon.svg +24 -0
  34. data/assets/img/site.webmanifest +19 -17
  35. data/assets/img/web-app-manifest-192x192.png +0 -0
  36. data/assets/img/web-app-manifest-512x512.png +0 -0
  37. data/assets/js/custom.js +0 -0
  38. data/assets/js/main.js +133 -22
  39. data/assets/js/toc.js +66 -35
  40. metadata +12 -8
  41. data/assets/img/android-chrome-192x192.png +0 -0
  42. data/assets/img/android-chrome-512x512.png +0 -0
  43. data/assets/img/safari-pinned-tab.svg +0 -29
  44. data/assets/js/jquery.navgoco.js +0 -314
@@ -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
- {%- if sidebar.title_url %}
15
- {%- if page.url == sidebar.title_url %}
16
- <a class="btn hover-primary text-start d-block mb-1 sidebar-title active" href="{{ sidebar.title_url | relative_url }}">{{sidebar.title}} {{sidebar.version}}</a>
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
- {%- else %}
21
- <a class="btn text-start d-block mb-1 sidebar-title disabled" aria-disabled="true">{{sidebar.title}} {{sidebar.version}}</a>
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 page.url == folder.url %}
27
- <li class="active{%- if folder.hr %} mt-3{% endif %}">
28
- {%- else %}
29
- <li {%- if folder.hr %} class="mt-3"{% endif %}>
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="btn hover-primary text-start d-block mb-1" href="{{folder.external_url}}" target="_blank" rel="noopener">{{folder.title}}</a>
33
- {%- else %}
34
- <a class="btn hover-primary text-start d-block mb-1" href="{{folder.url | relative_url }}">{{ folder.title }}</a>
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
- <ul class="list-unstyled">
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 == "data_life_cycle" %}
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 page.url == subfolder.url %}
202
- <li class="active">
203
- {%- else %}
204
- <li>
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="btn hover-primary text-start d-block mb-1" href="{{subfolder.external_url}}" target="_blank" rel="noopener">{{subfolder.title}}</a>
218
+ <a class="text-start w-100" href="{{subfolder.external_url}}" target="_blank" rel="noopener">{{subfolder.title}}</a>
208
219
  {%- else %}
209
- <a class="btn hover-primary text-start d-block mb-1" href="{{subfolder.url | relative_url }}">{{ subfolder.title }}</a>
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
- <ul class="list-unstyled">
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 page.url == subsubfolder.url %}
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="btn hover-primary text-start d-block mb-1" href="{{subsubfolder.external_url}}" target="_blank" rel="noopener">{{subsubfolder.title}}</a>
221
- {%- else %}
222
- <a class="btn hover-primary text-start d-block mb-1" href="{{subsubfolder.url | relative_url }}">{{ subsubfolder.title }}</a>
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
- {%- endif %}
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="my-2">'
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) {
@@ -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">
@@ -1,12 +1,12 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
3
  {% include head.html %}
4
- <body class="d-flex flex-column min-vh-100"{% if page.toc or page.toc == nil %} data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0"{% endif %}>
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 flex-grow-1">
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="order-1{%- if page.toc or page.toc == nil or page.page_img %} add-grid{% endif %}">
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: "_", " " | capitalize %}
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
- {% include affiliation-tiles-page.html %}
39
- {% include contributor-minitiles-page.html %}
40
- {% include citation-page.html %}
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 %}
@@ -7,4 +7,5 @@ $light: #f8f9fa;
7
7
  $dark: #212529;
8
8
 
9
9
  /*-----Custom values for Bootstrap variables-----*/
10
- $link-decoration: none;
10
+
11
+
@@ -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: $light;
19
- $sidebar-color: $dark;
20
- $sidebar-lvl2-bg: $white;
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: $white;
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: $white;
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 contributors-----*/
43
- $contr-bg: $light;
44
- $contr-link-bg: $white;
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-----*/