elixir-toolkit-theme 1.19.2 → 1.20.1

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: dcf2f974c617f549899d2bc8b5866fc5ad57beadf223494bda72bba24e9c0bc2
4
- data.tar.gz: 96f510ea1bec75f28ea30f1069535025196d18575446bce227f71f8022d575f7
3
+ metadata.gz: 6b2909f9d288cb7fddbb90ff05c04339e2fffa7eb94c290fa8c6baaec1badd92
4
+ data.tar.gz: 22396fd3c9652c9d19285b6b548857128655be3570a09f28221d55455304c9ea
5
5
  SHA512:
6
- metadata.gz: faf77280e132e7c48a93488ac62c68f25d71d976df4b73a4d1de74de79a3957699f61158510c5720c127d85e6badcbd12a2c79aeb041b627f0d1ca46826d7482
7
- data.tar.gz: 17e6a483517df46818cf7eed621601028aa68b392b93a0e9da949f02e8c0656390daa30a720d5f5944aa18e11eead891ee5790f6865218577685705e1ddfe273
6
+ metadata.gz: 7bdaf4ca8cfbdd068efffc25a999bca9f7c7d3a106873d2d500911c52dea81050cf19f95f50a8d068e0e0fad7672bc4cbf3385f9f5578147514227249811e915
7
+ data.tar.gz: bb262a939975cb2804390a527d2c1dbb65a45f990a251cab104086cf2736643935a771832c468095659ac77c5b9e0e1c99129faeb31e765d524215c9b7a4be13
@@ -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>
@@ -3,7 +3,7 @@
3
3
  {%- assign allcontributors = include.custom | split: ", " | sort %}
4
4
  {%- else %}
5
5
  {%- for page in site.pages %}
6
- {%- if page.contributors and page.search_exclude != true %}
6
+ {%- if page.contributors and page.search_exclude != true and page.contributors.size != 0 %}
7
7
  {%- assign pagecontr = page.contributors | join: ", " %}
8
8
  {%- if allcontrstr %}
9
9
  {%- assign allcontrstr = allcontrstr | append: ", " | append: pagecontr %}
@@ -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 }}">
@@ -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.2
4
+ version: 1.20.1
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-16 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll