elixir-toolkit-theme 1.9.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 207a325fa96fa5023481284b6824ea600dcb234c26016b44bd330f30fc3e7f20
4
- data.tar.gz: f8680ad1cac04568b0cb696885342e4fa241f4978e48f02ee2d17915bdf49f15
3
+ metadata.gz: af01a19ca393effa2ffbedd956647a477769b045da4fc2ae5493494f389ba480
4
+ data.tar.gz: 7d24d9eff95e370fd1c7d623b1e30c50452bc779d0145b45633aa02dc50cb2b7
5
5
  SHA512:
6
- metadata.gz: 3ad726b98582e9e2d16c0d287b9462a007b7af076fcc2f311b7cfa607366cae37c581e5d19b799886a2b8e6dfb36dd1395116b9a0ed01e8461d514eeace15b00
7
- data.tar.gz: 89a708688970bdd2d99e91b1164496958f007ff968afa2600457108ce55383d679f269009ec3e15ca6ad379fcd33479f95562c365bcd88aa1f1b0859a67416fb
6
+ metadata.gz: f6e7ecd5827ee352c36e4eca4055b5461a9906d9d74fed13ecc3a920d776d8f119d3728629a3c4b03f4f0d568edb81ae54e344ac199c21b7623449452bba3392
7
+ data.tar.gz: cb05a2d704b22bd2dc9a7d6dc794f3594d666bbb0ed5fab8df4c76a056c21b5a94522e74c81ce9132a524ce627b118694e23d73f39127561f1871d6a9b7102ff
data/README.md CHANGED
@@ -48,7 +48,7 @@ theme: elixir-toolkit-theme
48
48
 
49
49
  ## Usage
50
50
 
51
- [View the documentation](https://elixir-belgium.github.io/elixir-toolkit-theme/) for usage information.
51
+ [View the documentation](https://elixir-belgium.github.io/elixir-toolkit-theme/) for usage information (under development).
52
52
 
53
53
  ## Deployment
54
54
 
@@ -99,9 +99,11 @@ This will start the docker container and serve the website locally. Make sure th
99
99
  ## This theme is known to be used in:
100
100
 
101
101
  - [RDMkit](https://rdmkit.elixir-europe.org/)
102
+ - [WorkflowHub project](https://about.workflowhub.eu/)
102
103
  - [RDMGuide](https://rdm.elixir-belgium.org/)
103
104
  - [Infectious Diseases Toolkit](https://www.infectious-diseases-toolkit.org/)
104
105
  - [Applied Bioinformatics and Biostatistics intranet page](https://intranet.psb.ugent.be/abb/)
106
+ - [FAIRDOM](https://fair-dom.org/)
105
107
 
106
108
 
107
109
  ## Used packages
@@ -26,7 +26,7 @@
26
26
  {%- endif %}
27
27
  </div>
28
28
  {%- endcapture %}
29
- <a tabindex="0" role="button" class="btn contributor-link hover-primary m-1 position-relative" data-bs-trigger="focus" data-bs-html="true" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content='{{html_code}}' title="{{contributor}}">
29
+ <a tabindex="0" role="button" class="btn btn-sm contributor-link hover-primary m-1 position-relative" data-bs-trigger="focus" data-bs-html="true" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content='{{html_code}}' title="{{contributor}}">
30
30
  <div class="d-flex align-items-center">
31
31
  <div class="flex-shrink-0">
32
32
  {%- if contributors[contributor].image_url %}
@@ -39,18 +39,17 @@
39
39
  {{ contributor }}
40
40
  </div>
41
41
  </div>
42
+ {%- if page.coordinators %}
43
+ {%- for coordinator in page.coordinators %}
44
+ {%- if coordinator == contributor %}
42
45
  <div class="position-absolute top-0 start-100 translate-middle">
43
- {%- if page.coordinators %}
44
- {%- for coordinator in page.coordinators %}
45
- {%- if coordinator == contributor %}
46
46
  <div class="rounded-circle coordinator-crown">
47
47
  <i class="fa fa-crown"></i>
48
48
  </div>
49
- {%- endif %}
50
- {%- endfor %}
51
- {%- endif %}
52
49
  </div>
53
- </a>
54
- {%- endfor %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- endif %}
53
+ </a>{%- endfor %}
55
54
  </div>
56
55
  {%- endif %}
@@ -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.html' | relative_url}}">privacy policy</a> to find out more.
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>
@@ -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.html">events page</a>.</small>
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>
@@ -8,6 +8,9 @@
8
8
  </div>
9
9
  {%- elsif column.type == "links" %}
10
10
  <div class="col-lg-{{column.width}} col-sm-6">
11
+ {%- if column.title != nil %}
12
+ <span class="footer-title">{{column.title}}</span>
13
+ {%- endif %}
11
14
  <ul class="mb-0">
12
15
  {%- for link in column.children %}
13
16
  {%- if link.url != nil and link.external_url == nil%}
@@ -0,0 +1,17 @@
1
+ {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.edit_me == nil or site.theme_variables.github_buttons.open_issue == nil or site.theme_variables.github_buttons.history == nil %}
2
+ <div id="edit-me" class="btn-group">
3
+ {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.edit_me == nil %}
4
+ {%- if page.custom-editme %}
5
+ <a role="button" data-bs-toggle="tooltip" title="Propose changes to the content of this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.custom-editme}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
6
+ {%- else %}
7
+ <a role="button" data-bs-toggle="tooltip" title="Propose changes to this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
8
+ {%- endif %}
9
+ {%- endif %}
10
+ {%- if site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.open_issue == nil %}
11
+ <a role="button" data-bs-toggle="tooltip" title="Report an issue" href="{{site.github.repository_url}}/issues/new?title={{'Issue on page: ' | url_encode }}{{page.title | url_encode }}&amp;body={{'I would like to report an issue on the ' | url_encode }}{{page.title | url_encode }}{{' page at `'| url_encode }}{{page.url | url_encode }}{{'`. Description of the issue:' | url_encode }}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-exclamation"></i></a>
12
+ {%- endif %}
13
+ {%- if site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.history == nil %}
14
+ <a role="button" data-bs-toggle="tooltip" title="Check out the history of this page" href="{{site.github.repository_url}}/commits/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-history"></i></a>
15
+ {%- endif %}
16
+ </div>
17
+ {%- endif %}
data/_includes/head.html CHANGED
@@ -18,7 +18,7 @@
18
18
  <meta name="apple-mobile-web-app-title" content="{{site.title}}">
19
19
  <meta name="msapplication-TileColor" content="#{{site.theme_variables.theme_color | default: 0d6efd }}">
20
20
  <meta name="theme-color" content="#{{site.theme_variables.theme_color | default: 0d6efd }}">
21
- {%- if page.search_exclude == true and page.url != "/index.html" %}
21
+ {%- if page.no_robots %}
22
22
  <meta name="robots" content="noindex" />
23
23
  {%- endif %}
24
24
  {%- if page.type %}
data/_includes/news.html CHANGED
@@ -31,6 +31,6 @@
31
31
  {%- endfor %}
32
32
  </ul>
33
33
  {%- if include.caption == "true" %}
34
- <small>For more news please visit our <a href="/news.html">news page</a>.</small>
34
+ <small>For more news please visit our <a href="/news">news page</a>.</small>
35
35
  {%- endif %}
36
36
  </div>
@@ -8,7 +8,7 @@
8
8
  <div class="table-responsive mt-4 mb-5">
9
9
  <table id="tooltable" class="table display">
10
10
  <thead>
11
- <tr>
11
+ <tr class="text-nowrap">
12
12
  <th>Tool or resource {%- if include.tag -%}
13
13
  <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated list which means that not all tools or resources that exist for this topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in this page.">
14
14
  <i class="fas fa-info-circle"></i>
@@ -60,18 +60,18 @@
60
60
  {%- endfor %}
61
61
  {%- endcapture %}
62
62
  <td>{{related_pages}}</td>
63
- <td class="align-middle text-center">
63
+ <td>
64
64
  {%- if tool.registry.biotools %}
65
- <a data-bs-toggle="tooltip" data-bs-original-title="Bio.tools" href="https://bio.tools/{{tool.registry.biotools}}"><span class="badge bg-dark text-white hover-primary">Tool info</span></a>
65
+ <a data-bs-toggle="tooltip" data-bs-original-title="Bio.tools" href="https://bio.tools/{{tool.registry.biotools}}"><span class="badge bg-dark text-white hover-primary"><i class="fas fa-info me-2"></i>Tool info</span></a>
66
66
  {%- endif %}
67
67
  {%- if tool.registry.fairsharing %}
68
- <a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing" href="https://fairsharing.org/FAIRsharing.{{tool.registry.fairsharing}}"><span class="badge bg-dark text-white hover-primary">Standards/Databases</span></a>
68
+ <a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing" href="https://fairsharing.org/FAIRsharing.{{tool.registry.fairsharing}}"><span class="badge bg-dark text-white hover-primary"><i class="fas fa-database me-2"></i>Standards/Databases</span></a>
69
69
  {%- endif %}
70
70
  {%- if tool.registry.fairsharing-coll %}
71
- <a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing collection" href="https://fairsharing.org/{{tool.registry.fairsharing-coll}}"><span class="badge bg-dark text-white hover-primary">Standards/Databases</span></a>
71
+ <a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing collection" href="https://fairsharing.org/{{tool.registry.fairsharing-coll}}"><span class="badge bg-dark text-white hover-primary"><i class="fas fa-database me-2"></i>Standards/Databases</span></a>
72
72
  {%- endif %}
73
73
  {%- if tool.registry.tess %}
74
- <a data-bs-toggle="tooltip" data-bs-original-title="TeSS" href="https://tess.elixir-europe.org/search?q={{tool.registry.tess}}"><span class="badge bg-dark text-white hover-primary">Training</span></a>
74
+ <a data-bs-toggle="tooltip" data-bs-original-title="TeSS" href="https://tess.elixir-europe.org/search?q={{tool.registry.tess}}"><span class="badge bg-dark text-white hover-primary"><i class="fas fa-graduation-cap me-2"></i>Training</span></a>
75
75
  {%- endif %}
76
76
  </td>
77
77
  </tr>
@@ -5,12 +5,8 @@
5
5
  <div class="table-responsive mt-4 mb-5">
6
6
  <table id="tooltable" class="table display">
7
7
  <thead>
8
- <tr>
9
- <th>Resource {%- if include.tag -%}
10
- <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated list which means that not all tools or resources that exist for this topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in this page.">
11
- <i class="fas fa-info-circle" style="color:var(--main-text-color);"></i>
12
- </a>{%- endif %}
13
- </th>
8
+ <tr class="text-nowrap">
9
+ <th>Resource</th>
14
10
  <th>Description</th>
15
11
  <th>Related pages</th>
16
12
  </tr>
@@ -1,11 +1,11 @@
1
1
  {%- assign sidebar = site.data.sidebars[page.sidebar] %}
2
- {%- capture reusing -%}{%- if page.url == "/reusing.html" -%}st0{%- else -%}st10{%- endif -%}{%- endcapture -%}
3
- {%- capture preserving -%}{%- if page.url == "/preserving.html" -%}st2{%- else -%}st12{%- endif -%}{%- endcapture -%}
4
- {%- capture analysing -%}{%- if page.url == "/analysing.html" -%}st3{%- else -%}st13{%- endif -%}{%- endcapture -%}
5
- {%- capture processing -%}{%- if page.url == "/processing.html" -%}st4{%- else -%}st14{%- endif -%}{%- endcapture -%}
6
- {%- capture planning -%}{%- if page.url == "/planning.html" -%}st5{%- else -%}st15{%- endif -%}{%- endcapture -%}
7
- {%- capture collecting -%}{%- if page.url == "/collecting.html" -%}st6{%- else -%}st16{%- endif -%}{%- endcapture -%}
8
- {%- capture sharing -%}{%- if page.url == "/sharing.html" -%}st7{%- else -%}st17{%- endif -%}{%- endcapture -%}
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/toc.html CHANGED
@@ -1,8 +1,8 @@
1
1
  <script>
2
2
  $(document).ready(function () {
3
- $('#toc').toc({ minimumHeaders: 2, listType: 'ul', showSpeed: 0, headers: 'h2' , title: '' });
3
+ $('#toc').toc({ minimumHeaders: {{site.theme_variables.toc.min_headers | default: 2 }}, listType: 'ul', noBackToTopLinks: true, showSpeed: 0, headers: '{{site.theme_variables.toc.headers | default: 'main h2' }}' , title: '', classes:{toc:'p-3 rounded my-4'} });
4
4
  });
5
5
  </script>
6
6
  <div class="col-12 col-sm-7 col-xl-5">
7
- <div id="toc" class="p-3 rounded my-4"></div>
7
+ <div id="toc"></div>
8
8
  </div>
@@ -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="{{ 'index.html' | relative_url }}"><img class="me-3 img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-3">{{site.topnav_title}}</span>{% endif %}</a>
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>
@@ -45,9 +45,16 @@
45
45
  {%- if topnav.subitems.size > 1 %}
46
46
  <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0 nav-break"></li>
47
47
  {%- endif %}
48
+ {%- if site.theme_variables.topnav.twitter %}
49
+ <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0">
50
+ <a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.twitter}}"><i class="fab fa-twitter me-2"></i>Twitter</a>
51
+ </li>
52
+ {%- endif %}
53
+ {%- if site.theme_variables.topnav.github or site.theme_variables.topnav.github == nil %}
48
54
  <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0">
49
55
  <a class="nav-link ps-2 d-flex align-items-center" href="{{site.github.repository_url}}"><i class="fab fa-github me-2"></i>{{site.theme_variables.git_host | default: 'GitHub' }}</a>
50
56
  </li>
57
+ {%- endif %}
51
58
  <!--start search-->
52
59
  <li class="nav-item ms-0 ms-lg-3 my-2 my-lg-0">
53
60
  <div class="position-relative">
@@ -2,7 +2,7 @@
2
2
  <div class="table-responsive mt-4 mb-5">
3
3
  <table id="trainingtable" class="table display">
4
4
  <thead>
5
- <tr>
5
+ <tr class="text-nowrap">
6
6
  <th>Name
7
7
  <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated list which means that not all trainings that exist for a certain topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in this page.">
8
8
  <i class="fas fa-info-circle"></i>
@@ -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/_layouts/page.html CHANGED
@@ -9,22 +9,8 @@ layout: default
9
9
  {%- else %}
10
10
  <h1>{{ page.title }}
11
11
  {%- endif %}
12
- {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.edit_me == nil or site.theme_variables.github_buttons.open_issue == nil or site.theme_variables.github_buttons.history == nil %}
13
- <div class="btn-group">
14
- {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.edit_me == nil %}
15
- {%- if page.custom-editme %}
16
- <a role="button" data-bs-toggle="tooltip" title="Propose changes to the content of this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.custom-editme}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
17
- {%- else %}
18
- <a role="button" data-bs-toggle="tooltip" title="Propose changes to this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
19
- {%- endif %}
20
- {%- endif %}
21
- {%- if site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.open_issue == nil %}
22
- <a role="button" data-bs-toggle="tooltip" title="Report an issue" href="{{site.github.repository_url}}/issues/new?title={{'Issue on page: ' | url_encode }}{{page.title | url_encode }}&amp;body={{'I would like to report an issue on the ' | url_encode }}{{page.title | url_encode }}{{' page at `'| url_encode }}{{page.url | url_encode }}{{'`. Description of the issue:' | url_encode }}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-exclamation"></i></a>
23
- {%- endif %}
24
- {%- if site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.history == nil %}
25
- <a role="button" data-bs-toggle="tooltip" title="Check out the history of this page" href="{{site.github.repository_url}}/commits/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-history"></i></a>
26
- {%- endif %}
27
- </div>
12
+ {%- if site.theme_variables.github_buttons.position == "top" or site.theme_variables.github_buttons.position == nil %}
13
+ {% include github-buttons.html %}
28
14
  {%- endif %}
29
15
  </h1>
30
16
  {%- endif %}
@@ -42,5 +28,10 @@ layout: default
42
28
  {% include resource-table-all.html tag=page.page_id %}
43
29
  {%- endif %}
44
30
  {% include contributor-minitiles-page.html %}
31
+ {%- if site.theme_variables.github_buttons.position == "bottom" %}
32
+ <div id="github-buttons-wrapper" class="d-flex mt-5">
33
+ {% include github-buttons.html %}
34
+ </div>
35
+ {%- endif %}
45
36
  </main>
46
37
 
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 {
@@ -498,6 +514,7 @@ footer {
498
514
  /*--------Page contributors---------*/
499
515
  .page-contributors {
500
516
  background-color: $contr-bg;
517
+ font-size: 0; /* Gets rid of extra white space */
501
518
  .contributor-link {
502
519
  background-color: $contr-link-bg;
503
520
  .contributor-img-sm {
@@ -505,10 +522,10 @@ footer {
505
522
  }
506
523
 
507
524
  .coordinator-crown {
508
- font-size: 0.7em;
509
- width: 1.9em;
510
- height: 1.9em;
511
- line-height: 1.9;
525
+ font-size: 0.60em;
526
+ width: 1.8em;
527
+ height: 1.8em;
528
+ line-height: 1.8;
512
529
  background-color: $contr-crown-bg;
513
530
 
514
531
  .fa {
data/assets/js/main.js CHANGED
@@ -73,16 +73,27 @@ $(function () {
73
73
  })
74
74
 
75
75
  /**
76
- * Toggle button texts
76
+ * Back to top button
77
77
  */
78
- jQuery(function ($) {
79
- $('.toggle-text[data-bs-toggle="collapse"]').on('click', function () {
80
- $(this)
81
- .data('text-original', $(this).text())
82
- .text($(this).data('text-alt'))
83
- .data('text-alt', $(this).data('text-original'));
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
  /**
data/assets/js/toc.js CHANGED
@@ -11,7 +11,8 @@
11
11
  showSpeed: 'slow', // set to 0 to deactivate effect
12
12
  classes: { list: '',
13
13
  item: '',
14
- link: ''
14
+ link: '',
15
+ toc: ''
15
16
  }
16
17
  },
17
18
  settings = $.extend(defaults, options);
@@ -44,6 +45,8 @@
44
45
  settings.showEffect = 'none';
45
46
  }
46
47
 
48
+ $(this).addClass(settings.classes.toc)
49
+
47
50
  var render = {
48
51
  show: function() { output.hide().html(html).show(settings.showSpeed); },
49
52
  slideDown: function() { output.hide().html(html).slideDown(settings.showSpeed); },
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.9.0
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-03-21 00:00:00.000000000 Z
11
+ date: 2022-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -71,6 +71,7 @@ files:
71
71
  - _includes/cookie-popup.html
72
72
  - _includes/events.html
73
73
  - _includes/footer.html
74
+ - _includes/github-buttons.html
74
75
  - _includes/head.html
75
76
  - _includes/image.html
76
77
  - _includes/more-information-tiles.html