elixir-toolkit-theme 2.3.0 → 2.5.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: 0a43ab112f6ccfc28d6494d722b5a6e7f33fe21626ced928e41d544306d8aeb2
4
- data.tar.gz: 2b202c48610cf1932cc7b178060a89da152b7e62ea4ecfb5fa6c0beb2979a3b7
3
+ metadata.gz: 0553b71037c2197c776b722eff59043a34f177d02d7f35c3226ebe85928110b6
4
+ data.tar.gz: 349222ffe25df04336fd00f61fda6321f55d8fbca9f11fb165c6b98854a5e4f6
5
5
  SHA512:
6
- metadata.gz: 27bb9b4d53d80c4bd490a0810089c198f9fe71cb46ceed15c259bf29ceeab2cc14d33c0cc08e203e7e3e4f09c0dd6afc6c5be73b64e59cf81ffe88d670de2cfa
7
- data.tar.gz: c4fbbfdeacfc3c1977aae215ff38e284a34763868d3dda49527f6238a3686a63576352ebfa214037ca0387f572e7c37db60276cf3e6b14c5a57af43a2f8459f2
6
+ metadata.gz: 5fdb6f0ac41e2672088928d0b2aeadf45aa5cad8d95a218e3cae5032409b71a63d2f37d48688e8f8b7fc1e16d8a1636797335a53618b5da01da892bff0c7e320
7
+ data.tar.gz: c79fea0888cb3a58ec21586e892d968fd0c1c41e4aec58c41b30cfa82c16c586d391c6ccc6d124ef1619d022618aaf9e56a22dd9256bc72d6301beda32ce6f79
@@ -1,5 +1,5 @@
1
1
  {%- if page.affiliations and page.affiliations.size != 0 %}
2
- <span class="d-block h2-like fs-2">Affiliations</span>
2
+ <span class="d-block h2-like fs-2">{{site.theme_variables.headings.affiliation-tiles-page | default: 'Affiliations' }}</span>
3
3
  <div class="mt-4 d-flex flex-wrap gap-2">
4
4
  {%- assign affiliations = site.data.affiliations %}
5
5
  {%- assign page_affiliations = page.affiliations | sort %}
@@ -1,5 +1,5 @@
1
1
  {%- if page.contributors and page.contributors.size != 0 %}
2
- <span class="d-block h2-like fs-2">Contributors</span>
2
+ <span class="d-block h2-like fs-2">{{site.theme_variables.headings.more-information-tiles | default: 'Contributors' }}</span>
3
3
  <div class="p-4 rounded mt-4 page-contributors d-flex flex-wrap gap-2">
4
4
  {%- assign contributors = site.data.CONTRIBUTORS %}
5
5
  {%- assign page_contributors = page.contributors %}
@@ -37,7 +37,7 @@
37
37
  {%- unless include.sort == false %}
38
38
  {%- assign allcontributors = allcontributors | sort %}
39
39
  {%- endunless %}
40
- <div class="row row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-xl-{{nr}} g-4 contributor-cards">
40
+ <div class="row row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-xl-{{nr}} g-4 contributor-cards mb-4">
41
41
  {%- for contributor in allcontributors %}
42
42
  <div class="col">
43
43
  <div class="card h-100">
data/_includes/head.html CHANGED
@@ -63,17 +63,28 @@
63
63
  <script type="text/javascript" charset="utf8" src="{{ 'assets/js/jquery.dataTables.min.js' | relative_url }}"></script>
64
64
  <script type="text/javascript" charset="utf8" src="{{ 'assets/js/dataTables.bootstrap5.min.js' | relative_url }}"></script>
65
65
  <script type="text/javascript">
66
- $.fn.DataTable.ext.pager.numbers_length = 5;
67
66
  $(document).ready(function () {
68
- $('div.datatable-begin').nextUntil('div.datatable-end', 'table').addClass('display');
69
- $('table.display').DataTable({
70
- lengthMenu: [[25, 50, 100, -1], [25, 50, 100, "All"]],
71
- stateSave: true,
72
- searching: true,
73
- language: {
74
- searchPlaceholder: "Type here..."
75
- }
76
- });
67
+ $('table.display').each(function() {
68
+ $(this).DataTable({
69
+ lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
70
+ stateSave: true,
71
+ searching: true,
72
+ info: true,
73
+ pageLength: 10,
74
+ language: {
75
+ searchPlaceholder: "Type here..."
76
+ },
77
+ "fnDrawCallback": function ( oSettings ){
78
+ var tableId = oSettings.nTable.id;
79
+ if(oSettings.fnRecordsTotal() < 10){
80
+ $('#'+tableId+'_length').hide();
81
+ $('#'+tableId+'_paginate').hide();
82
+ $('#'+tableId+'_filter').hide();
83
+ $('#'+tableId+'_info').hide();
84
+ }
85
+ }
86
+ });
87
+ })
77
88
  });
78
89
  </script>
79
90
  {%- endif %}
@@ -103,12 +114,13 @@
103
114
  _paq.push(['trackPageView']);
104
115
  _paq.push(['enableLinkTracking']);
105
116
  (function() {
106
- var u="{{site.matomo}}";
107
- _paq.push(['setTrackerUrl', u+'piwik.php']);
108
- _paq.push(['setSiteId', '2']);
109
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
110
- g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
117
+ var u="{{site.matomo}}";
118
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
119
+ _paq.push(['setSiteId', '{{site.matomo_id}}']);
120
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
121
+ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
111
122
  })();
112
123
  </script>
124
+ <!-- End Matomo Code -->
113
125
  {%- endif %}
114
126
  </head>
@@ -40,7 +40,7 @@
40
40
  {%- endif %}
41
41
  {%- if actual_training or actual_faircookbook or actual_fairsharing or actual_dsw or actual_rdmkit %}
42
42
  <!-- More information -->
43
- <h2>More information</h2>
43
+ <h2>{{site.theme_variables.headings.more-information-tiles | default: 'More information' }}</h2>
44
44
 
45
45
  <div class="row row-cols-1 row-cols-md-2 g-4 mt-2">
46
46
  {%- if actual_training %}
@@ -6,7 +6,7 @@
6
6
  {%- endfor %}
7
7
  {%- if actual_related != nil %}
8
8
  <!-- Read next -->
9
- <h2>Related pages</h2>
9
+ <h2>{{site.theme_variables.headings.related-pages | default: 'Related pages' }}</h2>
10
10
 
11
11
  <div class="row row-cols-1 row-cols-md-2 g-4 mt-2">
12
12
  {%- if page.related_pages %}
@@ -6,17 +6,14 @@
6
6
  {%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %}
7
7
  {%- unless tools.size == 0 or tools == nil %}
8
8
  {%- if include.tag %}
9
- <h2>Relevant tools and resources</h2>
9
+ <h2>{{site.theme_variables.headings.resource-table-all | default: 'Tools and resources on this page' }}</h2>
10
10
  {%- endif %}
11
11
  <a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
12
12
  <div class="table-responsive mt-4 mb-5">
13
13
  <table class="tooltable table display">
14
14
  <thead>
15
15
  <tr class="text-nowrap">
16
- <th>Tool or resource {%- if include.tag -%}
17
- <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.">
18
- <i class="fa-solid fa-info-circle"></i>
19
- </a>{%- endif %}
16
+ <th>Tool or resource
20
17
  </th>
21
18
  <th>Description</th>
22
19
  <th>Related pages</th>
@@ -96,7 +93,10 @@
96
93
  {%- endfor %}
97
94
  {%- unless total_county_tools == 0 or include.tag == nil %}
98
95
  <tr class="collapse multi-collapse table-light" id="resource_title">
99
- <td colspan="4"><b>National resources</b></td>
96
+ <td><b>National resources</b></td>
97
+ <td></td>
98
+ <td></td>
99
+ <td></td>
100
100
  </tr>
101
101
  {%- endunless %}
102
102
  {%- assign hide_ids = "resource_title" %}
data/_includes/toc.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  $(document).ready(function () {
3
- $('#toc-contents').toc({ minimumHeaders: {{site.theme_variables.toc.min_headers | default: 2 }}, listType: 'ul', classes: { list: 'list-unstyled' }, noBackToTopLinks: true, showSpeed: 0, headers: '{{site.theme_variables.toc.headers | default: 'main h2' }}' , title: '<strong class="my-2">On this page</strong><hr class="my-2">' });
3
+ $('#toc-contents').toc({ minimumHeaders: {{site.theme_variables.toc.min_headings | default: 2 }}, listType: 'ul', classes: { list: 'list-unstyled' }, noBackToTopLinks: true, showSpeed: 0, headers: '{{site.theme_variables.toc.headings | default: 'main h2' }}' , title: '<strong class="my-2">On this page</strong><hr class="my-2">' });
4
4
  });
5
5
  </script>
6
6
  <button id="btn-toc-hide" class="btn bg-light d-xl-none hover-primary mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#toc-contents" aria-expanded="true" aria-controls="toc-contents">
@@ -170,7 +170,7 @@
170
170
  --#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
171
171
  --#{$prefix}btn-disabled-border-color: transparent;
172
172
  --#{$prefix}btn-box-shadow: 0 0 0 #000; // Can't use `none` as keyword negates all values when used with multiple shadows
173
- --#{$prefix}btn-focus-shadow-rgb: #{to-rgb(mix(color-contrast($link-color), $link-color, 15%))};
173
+ --#{$prefix}btn-focus-shadow-rgb: #{$btn-link-focus-shadow-rgb};
174
174
 
175
175
  text-decoration: $link-decoration;
176
176
  @if $enable-gradients {
@@ -217,6 +217,7 @@ small {
217
217
 
218
218
  mark {
219
219
  padding: $mark-padding;
220
+ color: var(--#{$prefix}highlight-color);
220
221
  background-color: var(--#{$prefix}highlight-bg);
221
222
  }
222
223
 
@@ -91,6 +91,7 @@
91
91
  }
92
92
 
93
93
  --#{$prefix}code-color: #{$code-color};
94
+ --#{$prefix}highlight-color: #{$mark-color};
94
95
  --#{$prefix}highlight-bg: #{$mark-bg};
95
96
 
96
97
  // scss-docs-start root-border-var
@@ -171,6 +172,8 @@
171
172
  --#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};
172
173
 
173
174
  --#{$prefix}code-color: #{$code-color-dark};
175
+ --#{$prefix}highlight-color: #{$mark-color-dark};
176
+ --#{$prefix}highlight-bg: #{$mark-bg-dark};
174
177
 
175
178
  --#{$prefix}border-color: #{$border-color-dark};
176
179
  --#{$prefix}border-color-translucent: #{$border-color-translucent-dark};
@@ -77,9 +77,9 @@ $utilities: map-merge(
77
77
  property: box-shadow,
78
78
  class: shadow,
79
79
  values: (
80
- null: $box-shadow,
81
- sm: $box-shadow-sm,
82
- lg: $box-shadow-lg,
80
+ null: var(--#{$prefix}box-shadow),
81
+ sm: var(--#{$prefix}box-shadow-sm),
82
+ lg: var(--#{$prefix}box-shadow-lg),
83
83
  none: none,
84
84
  )
85
85
  ),
@@ -53,6 +53,8 @@ $headings-color-dark: inherit !default;
53
53
  $link-color-dark: tint-color($primary, 40%) !default;
54
54
  $link-hover-color-dark: shift-color($link-color-dark, -$link-shade-percentage) !default;
55
55
  $code-color-dark: tint-color($code-color, 40%) !default;
56
+ $mark-color-dark: $body-color-dark !default;
57
+ $mark-bg-dark: $yellow-800 !default;
56
58
 
57
59
 
58
60
  //
@@ -718,6 +718,7 @@ $dt-font-weight: $font-weight-bold !default;
718
718
  $list-inline-padding: .5rem !default;
719
719
 
720
720
  $mark-padding: .1875em !default;
721
+ $mark-color: $body-color !default;
721
722
  $mark-bg: $yellow-100 !default;
722
723
  // scss-docs-end type-variables
723
724
 
@@ -734,7 +735,7 @@ $table-cell-padding-x-sm: .25rem !default;
734
735
 
735
736
  $table-cell-vertical-align: top !default;
736
737
 
737
- $table-color: var(--#{$prefix}body-color) !default;
738
+ $table-color: var(--#{$prefix}emphasis-color) !default;
738
739
  $table-bg: var(--#{$prefix}body-bg) !default;
739
740
  $table-accent-bg: transparent !default;
740
741
 
@@ -742,17 +743,17 @@ $table-th-font-weight: null !default;
742
743
 
743
744
  $table-striped-color: $table-color !default;
744
745
  $table-striped-bg-factor: .05 !default;
745
- $table-striped-bg: rgba($black, $table-striped-bg-factor) !default;
746
+ $table-striped-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-striped-bg-factor) !default;
746
747
 
747
748
  $table-active-color: $table-color !default;
748
749
  $table-active-bg-factor: .1 !default;
749
- $table-active-bg: rgba($black, $table-active-bg-factor) !default;
750
+ $table-active-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-active-bg-factor) !default;
750
751
 
751
752
  $table-hover-color: $table-color !default;
752
753
  $table-hover-bg-factor: .075 !default;
753
- $table-hover-bg: rgba($black, $table-hover-bg-factor) !default;
754
+ $table-hover-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-hover-bg-factor) !default;
754
755
 
755
- $table-border-factor: .1 !default;
756
+ $table-border-factor: .2 !default;
756
757
  $table-border-width: var(--#{$prefix}border-width) !default;
757
758
  $table-border-color: var(--#{$prefix}border-color) !default;
758
759
 
@@ -842,6 +843,7 @@ $btn-active-box-shadow: inset 0 3px 5px rgba($black, .125) !default;
842
843
  $btn-link-color: var(--#{$prefix}link-color) !default;
843
844
  $btn-link-hover-color: var(--#{$prefix}link-hover-color) !default;
844
845
  $btn-link-disabled-color: $gray-600 !default;
846
+ $btn-link-focus-shadow-rgb: to-rgb(mix(color-contrast($link-color), $link-color, 15%)) !default;
845
847
 
846
848
  // Allows for customizing button radius independently from global border radius
847
849
  $btn-border-radius: var(--#{$prefix}border-radius) !default;
@@ -903,7 +905,7 @@ $input-disabled-border-color: null !default;
903
905
  $input-color: var(--#{$prefix}body-color) !default;
904
906
  $input-border-color: var(--#{$prefix}border-color) !default;
905
907
  $input-border-width: $input-btn-border-width !default;
906
- $input-box-shadow: $box-shadow-inset !default;
908
+ $input-box-shadow: var(--#{$prefix}box-shadow-inset) !default;
907
909
 
908
910
  $input-border-radius: var(--#{$prefix}border-radius) !default;
909
911
  $input-border-radius-sm: var(--#{$prefix}border-radius-sm) !default;
@@ -1019,7 +1021,7 @@ $form-select-feedback-icon-size: $input-height-inner-half $input-height-i
1019
1021
  $form-select-border-width: $input-border-width !default;
1020
1022
  $form-select-border-color: $input-border-color !default;
1021
1023
  $form-select-border-radius: $input-border-radius !default;
1022
- $form-select-box-shadow: $box-shadow-inset !default;
1024
+ $form-select-box-shadow: var(--#{$prefix}box-shadow-inset) !default;
1023
1025
 
1024
1026
  $form-select-focus-border-color: $input-focus-border-color !default;
1025
1027
  $form-select-focus-width: $input-focus-width !default;
@@ -1042,9 +1044,9 @@ $form-select-transition: $input-transition !default;
1042
1044
  $form-range-track-width: 100% !default;
1043
1045
  $form-range-track-height: .5rem !default;
1044
1046
  $form-range-track-cursor: pointer !default;
1045
- $form-range-track-bg: var(--#{$prefix}tertiary-bg) !default;
1047
+ $form-range-track-bg: var(--#{$prefix}secondary-bg) !default;
1046
1048
  $form-range-track-border-radius: 1rem !default;
1047
- $form-range-track-box-shadow: $box-shadow-inset !default;
1049
+ $form-range-track-box-shadow: var(--#{$prefix}box-shadow-inset) !default;
1048
1050
 
1049
1051
  $form-range-thumb-width: 1rem !default;
1050
1052
  $form-range-thumb-height: $form-range-thumb-width !default;
@@ -1246,7 +1248,7 @@ $dropdown-border-width: var(--#{$prefix}border-width) !default;
1246
1248
  $dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default; // stylelint-disable-line function-disallowed-list
1247
1249
  $dropdown-divider-bg: $dropdown-border-color !default;
1248
1250
  $dropdown-divider-margin-y: $spacer * .5 !default;
1249
- $dropdown-box-shadow: $box-shadow !default;
1251
+ $dropdown-box-shadow: var(--#{$prefix}box-shadow) !default;
1250
1252
 
1251
1253
  $dropdown-link-color: var(--#{$prefix}body-color) !default;
1252
1254
  $dropdown-link-hover-color: $dropdown-link-color !default;
@@ -1435,7 +1437,7 @@ $popover-border-width: var(--#{$prefix}border-width) !default;
1435
1437
  $popover-border-color: var(--#{$prefix}border-color-translucent) !default;
1436
1438
  $popover-border-radius: var(--#{$prefix}border-radius-lg) !default;
1437
1439
  $popover-inner-border-radius: calc(#{$popover-border-radius} - #{$popover-border-width}) !default; // stylelint-disable-line function-disallowed-list
1438
- $popover-box-shadow: $box-shadow !default;
1440
+ $popover-box-shadow: var(--#{$prefix}box-shadow) !default;
1439
1441
 
1440
1442
  $popover-header-font-size: $font-size-base !default;
1441
1443
  $popover-header-bg: var(--#{$prefix}secondary-bg) !default;
@@ -1509,8 +1511,8 @@ $modal-content-border-color: var(--#{$prefix}border-color-translucent) !d
1509
1511
  $modal-content-border-width: var(--#{$prefix}border-width) !default;
1510
1512
  $modal-content-border-radius: var(--#{$prefix}border-radius-lg) !default;
1511
1513
  $modal-content-inner-border-radius: subtract($modal-content-border-radius, $modal-content-border-width) !default;
1512
- $modal-content-box-shadow-xs: $box-shadow-sm !default;
1513
- $modal-content-box-shadow-sm-up: $box-shadow !default;
1514
+ $modal-content-box-shadow-xs: var(--#{$prefix}box-shadow-sm) !default;
1515
+ $modal-content-box-shadow-sm-up: var(--#{$prefix}box-shadow) !default;
1514
1516
 
1515
1517
  $modal-backdrop-bg: $black !default;
1516
1518
  $modal-backdrop-opacity: .5 !default;
@@ -29,6 +29,7 @@
29
29
  .form-check-input {
30
30
  --#{$prefix}form-check-bg: #{$form-check-input-bg};
31
31
 
32
+ flex-shrink: 0;
32
33
  width: $form-check-input-width;
33
34
  height: $form-check-input-width;
34
35
  margin-top: ($line-height-base - $form-check-input-width) * .5; // line-height minus check height
@@ -1,6 +1,6 @@
1
1
  @mixin bsBanner($file) {
2
2
  /*!
3
- * Bootstrap #{$file} v5.3.1 (https://getbootstrap.com/)
3
+ * Bootstrap #{$file} v5.3.2 (https://getbootstrap.com/)
4
4
  * Copyright 2011-2023 The Bootstrap Authors
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
6
  */
@@ -56,7 +56,7 @@
56
56
  @mixin row-cols($count) {
57
57
  > * {
58
58
  flex: 0 0 auto;
59
- width: divide(100%, $count);
59
+ width: percentage(divide(1, $count));
60
60
  }
61
61
  }
62
62