elixir-toolkit-theme 1.19.1 → 1.20.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: d25ccdccd8546e8462ab2f2c328a2a47b603ccf64aed11f73653f7adc5f77ae0
4
- data.tar.gz: ed33ad9d7f1059b2e66dfc0b59661114402b36a9e0de8a507260f004d76d7b21
3
+ metadata.gz: 36a5c2e07fa6bff41d4fa653b76dcc6c772e98cd8e8cc21e102dc96bac8d3480
4
+ data.tar.gz: 443f5893ee2e50a73816274f4c252dff97803e90e4267c3bf2576b152ba5a480
5
5
  SHA512:
6
- metadata.gz: ba1d252ef46b69fe558e36b840c93babc1e1f3d27d81f92197cab2466c8f9394785cb025f2a8763a14dfd2ab253282f7381babb31f7bd4a9cc87ab8f7c992629
7
- data.tar.gz: 5c7418b95f1166342318aef1dd58271ac6bad3288da64d22ade55303af54ef5974055acca4adba5d1b52a525808d84f63f9900c77d8673e7dc8bcc5325d4ac0a
6
+ metadata.gz: ff28ed67a529084cdd371a592ff7fcd01215d994da91ecc9678f815b39156700057d11f302ecb89978198f336e64be7aa9c8ab525274530352793f1090ffa228
7
+ data.tar.gz: 5415a360f806e1c47b7b1f4cbbddaca8088c142e4e85bb8788946054965e7b7ac7947a8c062be0a1fb6eee5c30c3c67556094a9161a453c41a47f38daacc573b
@@ -6,7 +6,7 @@
6
6
  <div class="col">
7
7
  <div class="card h-100 border-0">
8
8
  <div class="my-auto d-flex justify-content-center">
9
- {% if affiliation.url %}<a class="w-100" href="{{ affiliation.url }}">{% endif %}<img class="rounded" src="{{ affiliation.image_url | relative_url }}" alt="{{ affiliation.name }}">{%- if affiliation.url %}</a>{% endif %}
9
+ {% if affiliation.url %}<a class="w-100" href="{{ affiliation.url }}">{% endif %}<img class="rounded p-3" src="{{ affiliation.image_url | relative_url }}" alt="{{ affiliation.name }}">{%- if affiliation.url %}</a>{% endif %}
10
10
  </div>
11
11
  </div>
12
12
  </div>
@@ -33,7 +33,8 @@
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' | relative_url}}">events page</a>.</small>
36
+ {%- assign caption_url = include.caption_url | default: "/events" %}
37
+ <small>An overview of all our events can be fount on the <a href="{{ caption_url | relative_url}}">events page</a>.</small>
37
38
  {%- endif %}
38
39
  </div>
39
40
  <script>
@@ -1,9 +1,49 @@
1
- {%- if page.faircookbook or page.fairsharing or page.training or page.dsw or page.rdmkit %}
1
+ {%- if page.training %}
2
+ {%- assign actual_training = nil %}
3
+ {%- for training in page.training %}
4
+ {%- if training.name %}
5
+ {%- assign actual_training = 1 %}
6
+ {%- endif %}
7
+ {%- endfor %}
8
+ {%- endif %}
9
+ {%- if page.faircookbook %}
10
+ {%- assign actual_faircookbook = nil %}
11
+ {%- for recipe in page.faircookbook %}
12
+ {%- if recipe.name %}
13
+ {%- assign actual_faircookbook = 1 %}
14
+ {%- endif %}
15
+ {%- endfor %}
16
+ {%- endif %}
17
+ {%- if page.fairsharing %}
18
+ {%- assign actual_fairsharing = nil %}
19
+ {%- for standard in page.fairsharing %}
20
+ {%- if standard.name %}
21
+ {%- assign actual_fairsharing = 1 %}
22
+ {%- endif %}
23
+ {%- endfor %}
24
+ {%- endif %}
25
+ {%- if page.dsw %}
26
+ {%- assign actual_dsw = nil %}
27
+ {%- for question in page.dsw %}
28
+ {%- if question.name %}
29
+ {%- assign actual_dsw = 1 %}
30
+ {%- endif %}
31
+ {%- endfor %}
32
+ {%- endif %}
33
+ {%- if page.rdmkit %}
34
+ {%- assign actual_rdmkit = nil %}
35
+ {%- for rdmdoc in page.rdmkit %}
36
+ {%- if rdmdoc.name %}
37
+ {%- assign actual_rdmkit = 1 %}
38
+ {%- endif %}
39
+ {%- endfor %}
40
+ {%- endif %}
41
+ {%- if actual_training or actual_faircookbook or actual_fairsharing or actual_dsw or actual_rdmkit %}
2
42
  <!-- More information -->
3
43
  <h2>More information</h2>
4
44
 
5
45
  <div class="row row-cols-1 row-cols-md-2 g-4 mt-2">
6
- {%- if page.training %}
46
+ {%- if actual_training %}
7
47
  <!-- Training -->
8
48
  <div class="col">
9
49
  <div class="card h-100 info-card">
@@ -40,14 +80,14 @@
40
80
  </div>
41
81
  </div>
42
82
  {%- endif %}
43
- {%- if page.faircookbook or page.fairsharing or page.dsw or page.RDMkit%}
83
+ {%- if actual_faircookbook or actual_fairsharing or actual_dsw or actual_rdmkit %}
44
84
  <!-- FAIR Cookbook and FAIRsharing -->
45
85
  <div class="col">
46
86
  <div class="card h-100 info-card">
47
87
  <div class="card-header fw-bold">Links to other ELIXIR resources</div>
48
88
  <div class="card-body">
49
89
  <ul class="list-unstyled">
50
- {%- if page.faircookbook %}
90
+ {%- if actual_faircookbook %}
51
91
  {%- for recipe in page.faircookbook %}
52
92
  <li class="d-grid">
53
93
  <a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRCookbook" href="{{ recipe.url }}">
@@ -63,7 +103,7 @@
63
103
  </li>
64
104
  {%- endfor %}
65
105
  {%- endif %}
66
- {%- if page.dsw %}
106
+ {%- if actual_dsw %}
67
107
  {%- for question in page.dsw %}
68
108
  <li class="d-grid">
69
109
  <a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="DSW" href="{{ site.dsw_deep_link_prefix | append: question.uuid }}">
@@ -79,7 +119,7 @@
79
119
  </li>
80
120
  {%- endfor %}
81
121
  {%- endif %}
82
- {%- if page.fairsharing %}
122
+ {%- if actual_fairsharing %}
83
123
  {%- for standard in page.fairsharing %}
84
124
  <li class="d-grid">
85
125
  <a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRsharing" href="{{ standard.url }}">
@@ -95,7 +135,7 @@
95
135
  </li>
96
136
  {%- endfor %}
97
137
  {%- endif %}
98
- {%- if page.rdmkit %}
138
+ {%- if actual_rdmkit %}
99
139
  {%- for rdmdoc in page.rdmkit %}
100
140
  <li class="d-grid">
101
141
  <a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="RDMkit" href="{{ rdmdoc.url }}">
data/_includes/news.html CHANGED
@@ -31,6 +31,7 @@
31
31
  {%- endfor %}
32
32
  </ul>
33
33
  {%- if include.caption == true %}
34
- <small>For more news please visit our <a href="{{ '/news' | relative_url }}">news page</a>.</small>
34
+ {%- assign caption_url = include.caption_url | default: "/news" %}
35
+ <small>For more news please visit our <a href="{{ caption_url | relative_url }}">news page</a>.</small>
35
36
  {%- endif %}
36
37
  </div>
@@ -43,7 +43,13 @@
43
43
  </li>
44
44
  {%- endfor %}
45
45
  {%- if topnav.subitems.size > 1 %}
46
- <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0 nav-break"></li>
46
+ {%- assign topnav_theme = site.theme_variables.topnav.theme | default: "light" %}
47
+ {%- if topnav_theme == "light" %}
48
+ {%- assign break_color = "dark" %}
49
+ {%- else %}
50
+ {%- assign break_color = "light" %}
51
+ {%- endif -%}
52
+ <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0 nav-break bg-{{break_color}} opacity-25"></li>
47
53
  {%- endif %}
48
54
  {%- if site.theme_variables.topnav.twitter %}
49
55
  <li class="nav-item ms-0 ms-lg-3 mt-2 mt-lg-0">
@@ -1,3 +1,5 @@
1
+ @import "bootstrap/functions";
2
+
1
3
  /*-----Theme colors-----*/
2
4
  $primary: #0d6efd;
3
5
  $secondary: #6c757d;
@@ -6,3 +8,5 @@ $dark: #212529;
6
8
 
7
9
  /*-----Custom values for Bootstrap variables-----*/
8
10
  $link-decoration: none;
11
+
12
+ @import "bootstrap/variables";
data/assets/css/main.scss CHANGED
@@ -6,6 +6,9 @@ permalink: assets/css/main.css
6
6
  /*-----Default theme variables-----*/
7
7
  $popover-max-width: 12em;
8
8
  $enable-caret: false;
9
+
10
+ /*-----Include other SASS files-----*/
11
+
9
12
  @import "bootstrap_variables";
10
13
  @import "bootstrap/bootstrap";
11
14
  @import "variables";
@@ -160,7 +163,7 @@ header .navbar {
160
163
  transition: transform 0.2s ease-in-out;
161
164
  }
162
165
 
163
- .dropdown-toggle[aria-expanded="true"]::after {
166
+ .dropdown-toggle[aria-expanded=true]::after {
164
167
  transform: rotate(-180deg);
165
168
  }
166
169
 
@@ -174,8 +177,6 @@ header .navbar {
174
177
  @media (max-width: 992px) {
175
178
  height: 1px;
176
179
  }
177
-
178
- background-color: rgba($navbar-{{site.theme_variables.topnav.theme | default: "light"}}-color, 0.3);
179
180
  }
180
181
 
181
182
  /*-----Search box top navigation-----*/
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.19.1
4
+ version: 1.20.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-09-09 00:00:00.000000000 Z
11
+ date: 2022-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll