elixir-toolkit-theme 3.0.1 → 3.1.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: 18f2b7802a31a673f5d0d4232c4235bc86d7ff4169db5c0270e5017bd80b535f
4
- data.tar.gz: c990255758736b6476e3cfb667338213f9a4daca9117f3714cd5e9c4d95d1b8c
3
+ metadata.gz: 3267c907281c8601c8ef5b4050bc50cd5ed9ec81fdf1597ff1df9324b02c722f
4
+ data.tar.gz: 44102163b9642fc43400aeaa54c0e2c54a6ae16adba516b1158fb26b1116a59a
5
5
  SHA512:
6
- metadata.gz: 60960c7909ca35d8d2498c38b90eba958433c689c2a5447d8a9fca51c2d4e98be319719fd0d47ba9a4c593da8eaa72757f0fbc8cc79219d7a518be1d18d8eb05
7
- data.tar.gz: e52479e152364cf1fb9645c4906feb1e41c5c5a36da8794023657f9b8b234401575ca373408703d4da7000b10573bb57b354b728115b198a06d39fe8ffca8913
6
+ metadata.gz: ad2244937003421f31a83b4a01c9b23a91dc6d22ebaba3b2f8f8788361650a647b829027c6c7308c6aa7ec235ddbe772a5391686a15cdc8508574d7b90ed0506
7
+ data.tar.gz: cc977bc1c224160e2cda1d8b3f1d8c002606a86f9c42e76c6d4d8463f0deb0a4b9452d9c605a8031bdec11dafddab638c375b2e6247cf561a3cbe9c0f9673421
data/README.md CHANGED
@@ -37,7 +37,7 @@ remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
37
37
  You can lock it onto a specific version using:
38
38
 
39
39
  ```yaml
40
- remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@2.5.0
40
+ remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@3.0.1
41
41
  ```
42
42
 
43
43
  ### Using Ruby Gems (alternative)
@@ -50,7 +50,7 @@ gem "elixir-toolkit-theme"
50
50
  You can lock it onto a specific version like this:
51
51
 
52
52
  ```ruby
53
- gem "elixir-toolkit-theme", "~> 2.5.0"
53
+ gem "elixir-toolkit-theme", "~> 3.0.1"
54
54
  ```
55
55
 
56
56
  And add this line to your Jekyll site's `_config.yml`:
@@ -107,10 +107,11 @@ pages:
107
107
  1. If not already present on your machine, install **ruby**.
108
108
 
109
109
  1. Install Jekyll
110
- If you have never installed or run a Jekyll site locally on your computer, follow these instructions to install Jekyll: [https://jekyllrb.com/docs/installation/](https://jekyllrb.com/docs/installation/)
110
+
111
+ If you have never installed or run a Jekyll site locally on your computer, follow these instructions to install Jekyll: [https://jekyllrb.com/docs/installation/](https://jekyllrb.com/docs/installation/)
111
112
 
112
113
  ```
113
- gem install jekyll bundler
114
+ gem install jekyll
114
115
  ```
115
116
 
116
117
  1. Install dependencies
@@ -119,12 +120,20 @@ If you have never installed or run a Jekyll site locally on your computer, follo
119
120
  bundle install
120
121
  ```
121
122
 
122
- 1. deploy website
123
+ 1. Deploy website locally in development mode:
123
124
 
124
125
  ```
125
126
  bundle exec jekyll serve
126
127
  ```
127
128
 
129
+ If you want to deploy the website locally in production mode, do:
130
+
131
+ ```
132
+ JEKYLL_ENV=production PAGES_REPO_NWO='USER_OR_ORGANISATION/REPO_NAME' bundle exec jekyll serve --baseurl ""
133
+ ```
134
+
135
+ 1. To preview your site, in your web browser, navigate to `http://localhost:4000`.
136
+
128
137
  Additional information can be found at the following link: [https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll](https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll)
129
138
 
130
139
 
@@ -149,7 +158,7 @@ This will start the docker container and serve the website locally. Make sure th
149
158
  - [Australian BioCommons How-to-Guides](https://australianbiocommons.github.io/how-to-guides/)
150
159
  - [Norwegian Life Science RDM LookUp](https://elixir.no/rdm-lookup)
151
160
  - [ERIM Research Toolbox](https://eur-nl.github.io/erim-research-toolbox/)
152
- - [ELIXIR-UK Fellowship](https://elixir-uk-dash.github.io/rdmkit/)
161
+
153
162
 
154
163
  ## Dependencies
155
164
 
@@ -0,0 +1,3 @@
1
+ <div class="p-2 text-center text-break bg-warning">
2
+ <small>{{ site.topnav_banner }}</small>
3
+ </div>
@@ -44,7 +44,7 @@
44
44
  <div class="d-flex align-items-center mb-3 mb-lg-0 mx-auto mx-lg-0 text-center">{{ site.data.footer.copyright | markdownify }}</div>
45
45
  {%- endunless %}
46
46
  <div class="d-flex align-items-center mx-auto ms-lg-4 me-lg-0">
47
- <a id="ett-logo" class="text-nowrap" href="https://elixir-belgium.github.io/elixir-toolkit-theme">Built with
47
+ <a id="ett-logo" class="text-nowrap me-lg-5 me-xxxl-0" href="https://elixir-belgium.github.io/elixir-toolkit-theme">Built with
48
48
  <svg data-name="ETT logo" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 77.2 77.12">
49
49
  <defs>
50
50
  <style>
@@ -4,7 +4,21 @@
4
4
  {%- assign tools = site.data.tool_and_resource_list | add_related_pages | sort_natural: "name" %}
5
5
  {%- endif %}
6
6
  {%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %}
7
- {%- unless tools.size == 0 or tools == nil %}
7
+ {%- unless country_pages.size == 0 %}
8
+ {%- assign tool_matches_total = 0 %}
9
+ {%- assign query = "related_pages." | append: page.type %}
10
+ {%- for country_page in country_pages %}
11
+ {%- if include.tag %}
12
+ {%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
13
+ {%- unless tool_matches.size == 0 %}
14
+ {%- assign tool_matches_total = tool_matches_total | plus: tool_matches.size %}
15
+ {%- endunless %}
16
+ {%- else %}
17
+ {%- assign tool_matches_total = tool_matches_total | plus: country_page.national_resources.size %}
18
+ {%- endif %}
19
+ {%- endfor %}
20
+ {%- endunless %}
21
+ {%- unless tools.size == 0 and tool_matches_total.size == 0 %}
8
22
  {%- if include.tag %}
9
23
  <a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
10
24
  {%- if site.theme_variables.headings.resource-table-all-collapse %}
@@ -17,6 +31,7 @@
17
31
  <div class="collapse info-card" id="tools_collapse">
18
32
  {%- endif %}
19
33
  {%- endif %}
34
+ {%- unless tools.size == 0 %}
20
35
  <div class="table-responsive mt-4">
21
36
  <table class="tooltable table display">
22
37
  <thead>
@@ -36,14 +51,9 @@
36
51
  {%- for tool in tools %}
37
52
  <tr>
38
53
  {%- assign instances_tool = 0 %}
39
- {%- assign total_county_tools = 0 %}
40
54
  {%- assign query = "related_pages." | append: page.type %}
41
55
  {%- for country_page in country_pages %}
42
56
  {%- assign instance_matches = country_page.national_resources | where: "instance_of", tool.id | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
43
- {%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
44
- {%- unless tool_matches.size == 0 %}
45
- {%- assign total_county_tools = total_county_tools | plus: tool_matches.size %}
46
- {%- endunless %}
47
57
  {%- unless instance_matches.size == 0 %}
48
58
  {%- assign instances_tool = instances_tool | plus: instance_matches.size %}
49
59
  {%- endunless %}
@@ -54,7 +64,7 @@
54
64
  <td>{{tool.name}}</td>
55
65
  {%- endif %}
56
66
  <td>{{tool.description}}
57
- {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 and total_county_tools != 0 and include.tag != nil %}
67
+ {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 != 0 and include.tag != nil %}
58
68
  {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
59
69
  <div class="d-block mt-1">
60
70
  {%- if linked_tool %}
@@ -63,7 +73,7 @@
63
73
  {%- if tool.how_to_access %}
64
74
  <span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" title="{{tool.how_to_access}}"><span class="badge text-primary border border-primary"> <i class="fa-solid fa-key"></i></span></span>
65
75
  {%- endif %}
66
- {%- unless instances_tool == 0 or total_county_tools == 0 or include.tag == nil %}
76
+ {%- unless instances_tool == 0 or include.tag == nil %}
67
77
  <!-- <a href="#national-resources-button">
68
78
  <span class="badge text-white bg-primary"><i class="fa-solid fa-arrow-circle-down me-2"></i>Different instances available</span>
69
79
  </a> -->
@@ -99,16 +109,20 @@
99
109
  </td>
100
110
  </tr>
101
111
  {%- endfor %}
112
+ {%- if tool_matches_total == 0 or include.tag %}
102
113
  </tbody>
103
114
  </table>
104
115
  </div>
116
+ {%- endif %}
105
117
  {%- if include.tag %}
106
118
  {%- if site.theme_variables.headings.resource-table-all-collapse %}
107
119
  </div>
108
120
  {%- endif %}
109
121
  <div id="skip-tool-table"></div>
110
122
  {%- endif %}
111
- {%- unless total_county_tools == 0 or include.tag == nil %}
123
+
124
+ {%- endunless %}
125
+ {%- unless tool_matches_total == 0 %}
112
126
  {%- if include.tag %}
113
127
  <a class="visually-hidden-focusable" href='#skip-nat-tool-table'>Skip national tools table</a>
114
128
  {%- if site.theme_variables.headings.resource-table-all-collapse %}
@@ -120,37 +134,34 @@
120
134
  </a>
121
135
  <div class="collapse info-card" id="nat_tools_collapse">
122
136
  {%- endif %}
123
- {%- endif %}
124
137
  <p class="mt-4">Tools and resources tailored to users in different countries.</p>
125
138
  <div class="table-responsive mt-3">
126
- <table class="tooltable table display" id="national-resources-button">
139
+ <table class="tooltable table display">
127
140
  <thead>
128
141
  <tr class="text-nowrap">
129
- <th>Tool or resource {%- if include.tag -%}
142
+ <th>Tool or resource
130
143
  <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.">
131
144
  <i class="fa-solid fa-info-circle"></i>
132
- </a>{%- endif %}
145
+ </a>
133
146
  </th>
134
147
  <th>Description</th>
135
148
  <th>Related pages</th>
136
- <th>Registry {%- if include.tag -%}
149
+ <th>Registry
137
150
  <a data-bs-toggle="tooltip" data-bs-original-title="Links to related information in ELIXIR registries: related policies and standards in FAIRsharing, scientific and technical descriptions of the resource in bio.tools, and related training in TeSS.">
138
151
  <i class="fa-solid fa-info-circle"></i>
139
- </a>{%- endif %}
152
+ </a>
140
153
  </th>
141
154
  </tr>
142
155
  </thead>
143
156
  <tbody>
144
- {%- assign hide_ids = "resource_title" %}
157
+ {%- endif %}
145
158
  {%- for country_page in country_pages %}
146
159
  {%- if include.tag %}
147
160
  {%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag | sort_natural: "name" %}
148
161
  {%- else %}
149
- {%- assign tool_matches = country_page.national_resources | sort_natural: "name" %}
162
+ {%- assign tool_matches = country_page.national_resources %}
150
163
  {%- endif %}
151
164
  {%- for tool in tool_matches %}
152
- {%- assign tool_id = tool.name | slugify %}
153
- {%- assign hide_ids = hide_ids | append: " " | append: tool_id %}
154
165
  <tr>
155
166
  {% if tool.url %}
156
167
  <td><a href="{{tool.url}}">{{tool.name}}</a><a href="{{country_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{country_page.title}}"><span class="flag-icon ms-2 shadow-sm flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
@@ -1,4 +1,4 @@
1
- {%- unless include.affiliations == nil and include.search == nil %}
1
+ {%- if include.affiliations == true or include.search == true %}
2
2
  {%- assign allcountries = site.data.countries %}
3
3
  {%- for current_page in site.pages | sorted %}
4
4
  {%- if current_page.affiliations and current_page.search_exclude != true and current_page.type == include.type %}
@@ -12,7 +12,7 @@
12
12
  {%- endfor %}
13
13
  {%- assign allaffiliations = allaffiliations | split: ", " | uniq | sort %}
14
14
  <div class="row g-4 row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} my-4">
15
- {%- unless include.affiliations == nil %}
15
+ {%- if include.affiliations == true %}
16
16
  <div class="col">
17
17
  <div class="input-group">
18
18
  <label class="input-group-text" for="affiliations-input">Filter by affiliation</label>
@@ -32,8 +32,8 @@
32
32
  </button>
33
33
  </div>
34
34
  </div>
35
- {%- endunless %}
36
- {%- unless include.search == nil %}
35
+ {%- endif %}
36
+ {%- if include.search == true %}
37
37
  <div class="col">
38
38
  <div class="input-group">
39
39
  <span class="input-group-text" id="search-label">Search</span>
@@ -43,9 +43,9 @@
43
43
  </button>
44
44
  </div>
45
45
  </div>
46
- {%- endunless %}
46
+ {%- endif %}
47
47
  </div>
48
- {%- endunless %}
48
+ {%- endif %}
49
49
  <div class="row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} g-4 mb-5 navigation-tiles">
50
50
  {%- if include.custom %}
51
51
  {%- assign related_pages = include.custom | split: ", " %}
@@ -4,7 +4,7 @@
4
4
  <a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
5
5
  <nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5">
6
6
  <div class="container">
7
- <a class="navbar-brand" 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>
7
+ <a class="navbar-brand 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
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-solid fa-bars"></i>
10
10
  </button>
@@ -2,6 +2,7 @@
2
2
  <html lang="en">
3
3
  {% include head.html %}
4
4
  <body class="d-flex flex-column min-vh-100"{% unless page.toc == false %} data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0"{% endunless %}>
5
+ {% if site.topnav_banner %}{% include banner.html %}{% endif %}
5
6
  {% if jekyll.environment == "development" %}{% include dev-info.html %}{% endif %}
6
7
  {% include topnav.html %}
7
8
  <!-- Page Content -->
@@ -19,7 +20,7 @@
19
20
  </div>
20
21
  </div>
21
22
  {%- if site.theme_variables.back_to_top or site.theme_variables.back_to_top == nil %}
22
- <button id="back-to-top" class="btn btn-primary rounded-3" type="button" aria-hidden="true" onclick="topFunction()">
23
+ <button id="back-to-top" class="btn btn-primary btn-sm rounded-pill" type="button" aria-hidden="true" onclick="topFunction()">
23
24
  <i class="fa-solid fa-arrow-up"></i>
24
25
  </button>
25
26
  {%- endif %}
data/assets/css/main.scss CHANGED
@@ -15,7 +15,7 @@ $h2-font-size: 1rem * 2.1 !default;
15
15
  $h1-font-size: 1rem * 3.3 !default;
16
16
  $card-border-width: 0;
17
17
  $custom-container-max-widths: (
18
- xxxl: 1500px
18
+ xxxl: 1700px
19
19
  );
20
20
 
21
21
  /*-----Initialize Bootstrap variables-----*/
@@ -597,6 +597,12 @@ footer {
597
597
  background-color: $footer-copyright-bg;
598
598
  }
599
599
 
600
+ @media (min-width: 1850px) {
601
+ .me-xxxl-0 {
602
+ margin-right: 0!important;
603
+ }
604
+ }
605
+
600
606
  #ett-logo {
601
607
  transition: color 0.15s ease-in-out;
602
608
 
@@ -617,19 +623,20 @@ footer {
617
623
 
618
624
  #back-to-top {
619
625
  position: fixed;
620
- bottom: -50px;
621
- right: $spacer;
626
+ height: 50px;
627
+ width: 50px;
628
+ bottom: -50px; /* Default hidden position */
629
+ right: 1rem; /* Adjust as needed */
622
630
  opacity: 0;
623
631
  overflow: hidden;
624
632
  z-index: 1000;
625
633
  font-size: 21px;
626
- padding: 12px 20px;
627
634
  transition:
628
635
  bottom 0.15s ease-out,
629
636
  opacity 0.15s ease-out;
630
637
 
631
638
  &.visible {
632
- bottom: $spacer;
639
+ bottom: 1rem; /* Initial visible position */
633
640
  opacity: 1;
634
641
  }
635
642
  }
@@ -894,11 +901,11 @@ li.past_event,
894
901
  // Main accordion style
895
902
  a.info-collapse {
896
903
  i {
897
- transition: transform .2s ease-in-out;
904
+ transition: transform 0.2s ease-in-out;
898
905
  margin-right: $spacer;
899
906
  }
900
907
  h3 {
901
- transition: color .2s ease-in-out;
908
+ transition: color 0.2s ease-in-out;
902
909
  }
903
910
  &[aria-expanded="true"] {
904
911
  i {
@@ -908,13 +915,13 @@ a.info-collapse {
908
915
  &:hover {
909
916
  i,
910
917
  h3 {
911
- color: rgba($link-color, .8)!important;
918
+ color: rgba($link-color, 0.8) !important;
912
919
  }
913
920
  }
914
921
  }
915
922
 
916
923
  // Add a bottom border to the last accordion.
917
- a.info-collapse[aria-expanded="false"]:last-of-type,
924
+ a.info-collapse[aria-expanded="false"]:last-of-type,
918
925
  a.info-collapse[aria-expanded="true"]:last-of-type + .show {
919
926
  border-bottom: 1px solid $border-color;
920
927
  }
data/assets/js/main.js CHANGED
@@ -72,6 +72,7 @@ function topFunction() {
72
72
  }
73
73
 
74
74
 
75
+
75
76
  /**
76
77
  * Making relevant events visible
77
78
  */
@@ -6,6 +6,7 @@ layout: none
6
6
  {%- assign i = 0 -%}
7
7
  {%- assign pages_array = "" | split: "" -%}
8
8
  {%- assign pages_array = pages_array | push: site.html_pages -%}
9
+ {%- assign pages_array = pages_array | push: site.documents -%}
9
10
  {%- for pages in pages_array -%}
10
11
  {%- for page in pages -%}
11
12
  {%- if page.title and page.search_exclude != true -%}
@@ -61,4 +62,4 @@ layout: none
61
62
  {%- endfor -%}
62
63
  {%- endfor %}
63
64
  }
64
-
65
+
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: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -80,6 +80,7 @@ files:
80
80
  - _data/countries.yml
81
81
  - _includes/affiliation-tiles-page.html
82
82
  - _includes/affiliation-tiles-selection.html
83
+ - _includes/banner.html
83
84
  - _includes/callout.html
84
85
  - _includes/contributor-carousel-selection.html
85
86
  - _includes/contributor-minitiles-page.html