ols-theme 1.0.0 → 1.0.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: f3ad191687ed79576d794e2a6953acadbf844f43a29819c6a12c5d1a10e8576c
4
- data.tar.gz: 86ce6edd2dc9281d087258846f03c855c42176ceef61c6f4d85a202a980ada71
3
+ metadata.gz: 41131c6545fe57ee985f88c9992563309c53afd92b399a70013c902f419c0278
4
+ data.tar.gz: a28d6177f078bcd2b9710c18a438a50fa1b9503abc6fce7e0e8d86b58d94c10e
5
5
  SHA512:
6
- metadata.gz: feaedfb429b3dc7168f18872f2891d57c452a6c2b856007a02912a26de79765461b45a2382f970f23c28341f37950bcc3a2e8312b40e59e89033153b28374cb7
7
- data.tar.gz: ad4adb868cddc7e4beae6a66644718ff38c0cbd5fa16f5c055ba14c7ec2beb05bf3d2db85813f5ab17f24038261106eefde911ea6fd2b1f0c58893e84f62372e
6
+ metadata.gz: 66f75ce5abee9b8699b81b03cba05c81195fa4c3c6b34a6dc8986a20c4a8e450ab8b6ae14885b300594c15fd2ec0a7a9a6c699022c1472db451e97b6adfff0c2
7
+ data.tar.gz: 2e910bcf613100ba61fe139cf55ed01d2cbdccef25bcfb5b4827e7485eb3463f6025bba93724d8c30620b197baf055b3e2c71189f262c7aeecb0d05803adf367
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ The MIT License
2
2
 
3
- Copyright (c) 2023 NPDebs
3
+ Copyright (c) 2023 Open Life Science Limited
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
9
  copies of the Software, and to permit persons to whom the Software is
10
10
  furnished to do so, subject to the following conditions:
11
11
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -19,7 +19,7 @@
19
19
  <div id="top-menu" class="navbar-menu">
20
20
  <div class="navbar-end">
21
21
  <div class="navbar-item has-dropdown is-hoverable">
22
- <a class="navbar-link" href="{% link openseeds/index.md %}">OLS program</a>
22
+ <a class="navbar-link" href="{% link openseeds/index.md %}">Open Seeds program</a>
23
23
  <div class="navbar-dropdown">
24
24
  <a class="navbar-item" href="{% link openseeds/index.md %}#applications"> Applications </a>
25
25
  <a class="navbar-item" href="{% link about.md %}"> The program itself </a>
@@ -39,10 +39,8 @@
39
39
  <div class="navbar-dropdown">
40
40
  <a class="navbar-item" href="{% link openseeds/ols-8/index.md %}"> Syllabus </a>
41
41
  <a class="navbar-item" href="{% link openseeds/ols-8/schedule.md %}"> Schedule</a>
42
- <!--<a class="navbar-item" href="/ols-7/projects-participants/"> Projects & Participants</a>
43
- <a class="navbar-item" href="/ols-7#mentors"> Mentors & Experts </a>
44
- <a class="navbar-item" href="/ols-7#collaborators"> Collaborators </a>
45
- <a class="navbar-item" href="/ols-7#resources"> Resources </a>-->
42
+ <a class="navbar-item" href="{% link openseeds/ols-8/projects-participants.md %}"> Projects & Participants</a>
43
+ <a class="navbar-item" href="{% link openseeds/ols-8/index.md %}#mentors"> Mentors & Experts </a>
46
44
  </div>
47
45
  </div>
48
46
 
@@ -0,0 +1,492 @@
1
+ ---
2
+ ---
3
+
4
+ @charset "utf-8";
5
+
6
+ $black: #000;
7
+ $white: #fff;
8
+ $dark-green: #48b87d;
9
+
10
+ $bg-image: #333;
11
+ $hero-text-color: $white;
12
+ $text-shadow: $black;
13
+
14
+ $link: $dark-green;
15
+ $link-visited: $link;
16
+ $link-hover: $dark-green;
17
+ $link-focus: $link-hover;
18
+ $link-active: $link-hover;
19
+
20
+ @import 'bulma/bulma.sass';
21
+ @import 'bulma-collapsible.sass';
22
+
23
+ @mixin reset-links() {
24
+ a {
25
+ border-bottom: 0;
26
+ color: $link;
27
+ font-weight: 500;
28
+
29
+ &:active,
30
+ &:focus,
31
+ &:hover {
32
+ background: none;
33
+ color: $link-hover;
34
+ }
35
+ }
36
+ }
37
+
38
+ img {
39
+ display: block;
40
+ margin-left: auto;
41
+ margin-right: auto;
42
+ }
43
+
44
+ .navbar {
45
+ .navbar-dropdown {
46
+ border-top: none;
47
+ }
48
+
49
+ .navbar-item {
50
+ img {
51
+ max-height: 3.5rem;
52
+ margin-top: -5px;
53
+ margin-bottom: -5px;
54
+ }
55
+ }
56
+
57
+ .navbar-previous-title {
58
+ font-weight: bold;
59
+ }
60
+ }
61
+
62
+ .hero {
63
+ background-clip: border-box;
64
+ background-color: $bg-image;
65
+ background-origin: padding-box;
66
+ background-position: center center;
67
+ background-repeat: no-repeat;
68
+ background-size: cover;
69
+ height: auto;
70
+ width: 100%;
71
+
72
+ &.no-image {
73
+ height: auto;
74
+ background-color: $bg-image;
75
+ }
76
+
77
+ @include tablet() {
78
+ background-attachment: fixed;
79
+ height: 50vh;
80
+ min-height: 300px;
81
+
82
+ &.no-image {
83
+ min-height: 40vh;
84
+ }
85
+ }
86
+ }
87
+
88
+ .hero-body {
89
+ padding-top: 160px;
90
+ text-align: center;
91
+ text-shadow: 2px 2px 5px $text-shadow;
92
+
93
+ h1,
94
+ p {
95
+ color: $hero-text-color;
96
+ }
97
+
98
+ .no-image & {
99
+ padding-top: 80px;
100
+ text-shadow: none;
101
+
102
+ p {
103
+ color: #464646;
104
+ }
105
+ }
106
+
107
+ @include tablet() {
108
+ padding-top: 20vh;
109
+ }
110
+ }
111
+
112
+ .hero-foot {
113
+ color: $hero-text-color;
114
+
115
+ .credit {
116
+ text-align: right;
117
+ font-size: 0.6em;
118
+ text-shadow: 1px 1px 1px $text-shadow;
119
+ }
120
+ }
121
+
122
+ .content {
123
+ a {
124
+ border-bottom: 2px solid $link;
125
+ color: inherit;
126
+ font-weight: 500;
127
+ padding: 2px;
128
+
129
+ &:active,
130
+ &:focus,
131
+ &:hover {
132
+ background-color: $link;
133
+ border-radius: 2px;
134
+ color: $white;
135
+ }
136
+ }
137
+ }
138
+
139
+ .people {
140
+ margin-bottom: 1em;
141
+
142
+ .media {
143
+ height: 230px;
144
+ }
145
+ .people-description {
146
+ height: 150px;
147
+ }
148
+
149
+ #people-bio {
150
+ height: auto;
151
+ }
152
+
153
+ @include mobile() {
154
+ .people-card {
155
+ margin-bottom: 1em;
156
+ }
157
+
158
+ .people-card-meta {
159
+ overflow-x: initial;
160
+ }
161
+
162
+ .people-card-avatar {
163
+ display: none;
164
+ }
165
+
166
+ .media, .people-description {
167
+ height: auto;
168
+ }
169
+ }
170
+
171
+ @include tablet() {
172
+ display: grid;
173
+ grid-gap: 2em;
174
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
175
+ }
176
+
177
+ .title.is-4 {
178
+ margin-bottom: 0.5em;
179
+ }
180
+
181
+ .people-card-meta {
182
+ @include reset-links();
183
+ }
184
+
185
+ .people-card-meta-twitter {
186
+ font-weight: 600;
187
+ }
188
+
189
+ .people-description {
190
+ padding-left: 0px;
191
+ padding-right: 0px;
192
+ }
193
+
194
+ .people-description-question {
195
+ font-style: italic;
196
+ }
197
+
198
+ .image {
199
+ margin-left: 0px;
200
+ margin-right: 0px;
201
+ }
202
+ }
203
+
204
+ .people-badge {
205
+ height: 2em;
206
+ border-radius: 50%;
207
+ margin-left: 0.25em;
208
+ margin-right: 0.25em;
209
+ vertical-align: middle;
210
+ display: inline;
211
+ }
212
+
213
+ .entities {
214
+ @include mobile() {
215
+ .card {
216
+ margin-bottom: 1em;
217
+ }
218
+ }
219
+
220
+ @include tablet() {
221
+ display: grid;
222
+ grid-gap: 1em;
223
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
224
+ }
225
+
226
+ .is-3by1 {
227
+ margin-top: 2em;
228
+ }
229
+
230
+ .entity-logo {
231
+ max-height: 100%;
232
+ max-width: 100%;
233
+ width: auto !important;
234
+ height: auto !important;
235
+ position: absolute !important;
236
+ }
237
+
238
+ .entity-description-question {
239
+ font-style: italic;
240
+ }
241
+
242
+ .entity-card-meta {
243
+ @include reset-links();
244
+ }
245
+ }
246
+
247
+ .post {
248
+ display: flex;
249
+ justify-content: center;
250
+ align-items: center;
251
+ flex-wrap: wrap;
252
+
253
+ .card {
254
+ background-color: #fff;
255
+ box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.28);
256
+ height: 100%;
257
+ width: fit-content;
258
+ }
259
+
260
+ .image {
261
+ height: 300px;
262
+ width: auto;
263
+ overflow: hidden;
264
+
265
+ img {
266
+ max-height: 100%;
267
+ object-fit: cover;
268
+ }
269
+ }
270
+
271
+
272
+ .card-content {
273
+ padding: 2rem;
274
+
275
+ .content .title {
276
+ height: 250px;
277
+ }
278
+ }
279
+
280
+ @include mobile() {
281
+ .card {
282
+ margin-bottom: 1em;
283
+
284
+ .media-content {
285
+ overflow-x: initial;
286
+ }
287
+
288
+ .media-left {
289
+ display: none;
290
+ }
291
+ }
292
+
293
+ .image {
294
+ height: auto;
295
+ }
296
+ .card-content .content .title {
297
+ height: auto;
298
+ }
299
+ }
300
+
301
+ @include tablet() {
302
+ display: grid;
303
+ grid-gap: 2em;
304
+ grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
305
+ }
306
+
307
+ .subtitle {
308
+ font-size: 1.1rem;
309
+ color: #464646;
310
+ }
311
+
312
+ .title {
313
+ a {
314
+ border-bottom: none;
315
+ color: inherit;
316
+ padding: 2px;
317
+
318
+ &:active,
319
+ &:focus,
320
+ &:hover {
321
+ color: $black;
322
+ background: none;
323
+ }
324
+ }
325
+ }
326
+
327
+ figure {
328
+ margin-top: 2em;
329
+ }
330
+ }
331
+
332
+ .calendar {
333
+ border: 0;
334
+ width: 100%;
335
+ height: 350px;
336
+ }
337
+
338
+ .twitter-tweet {
339
+ margin: 0 auto;
340
+ max-width: 550px;
341
+ text-align: center;
342
+ }
343
+
344
+ .community {
345
+ margin-bottom: 1em;
346
+
347
+ .card {
348
+ box-shadow: none;
349
+ }
350
+
351
+ .card-content {
352
+ padding-top: 1em;
353
+ padding-left: 0em;
354
+ padding-right: 0em;
355
+ padding-bottom: 0em;
356
+ }
357
+
358
+ @include mobile() {
359
+ .people-card {
360
+ margin-bottom: 1em;
361
+ }
362
+
363
+ .people-card-meta {
364
+ overflow-x: initial;
365
+ }
366
+
367
+ display: grid;
368
+ grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
369
+ }
370
+
371
+ @include tablet() {
372
+ display: grid;
373
+ grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
374
+ }
375
+
376
+ .image {
377
+ margin-left: 0px;
378
+ margin-right: 0px;
379
+ }
380
+
381
+ a {
382
+ border-bottom: none;
383
+ color: inherit;
384
+
385
+ &:active,
386
+ &:focus,
387
+ &:hover {
388
+ background: none;
389
+ }
390
+ }
391
+ }
392
+
393
+ .peoples {
394
+ margin-top: 1em;
395
+ }
396
+
397
+ code {
398
+ background-color: #DBDBDB;
399
+ color: #85001B;
400
+ font-weight: bold;
401
+ }
402
+
403
+ .schedule-overview{
404
+ width: 80%;
405
+ display: block;
406
+ margin-left: auto;
407
+ margin-right: auto;
408
+ margin-top: 25px;
409
+ margin-bottom: 20px;
410
+ }
411
+
412
+ // table responsiveness (mobile)
413
+ @media screen and (max-width: 768px) and (min-width: 320px) {
414
+ table {
415
+ font-size: 1em;
416
+ line-height: 1.5;
417
+ display: block;
418
+ overflow-x: auto;
419
+ padding-bottom: 20px;
420
+ }
421
+ }
422
+
423
+ .field {
424
+ padding: 30px;
425
+ }
426
+
427
+ .is-hidden {
428
+ display: none;
429
+ }
430
+
431
+
432
+ .links {
433
+ .hero {
434
+ background-color: $dark-green;
435
+ max-height: 500px;
436
+ min-height: 250px;
437
+ height: 10vh;
438
+
439
+ .hero-body {
440
+ padding-top: 20px;
441
+
442
+ img {
443
+ max-width: 120px;
444
+ margin: 20px auto;
445
+ padding: 12px;
446
+ border-radius: 12px;
447
+ background-color: $white;
448
+ }
449
+ }
450
+ }
451
+
452
+ .section {
453
+ padding-top: 20px;
454
+
455
+ .button {
456
+ background-color: $dark-green;
457
+ color: $white;
458
+ text-shadow: 2px 2px 5px $black;
459
+ margin: 20px auto;
460
+ padding: 20px auto;
461
+ min-height: 50px;
462
+ }
463
+ }
464
+
465
+ }
466
+
467
+
468
+ // menu
469
+ .menu {
470
+ font-size: small;
471
+
472
+ ul {
473
+ margin-left: 0px;
474
+ margin-right: 2em;
475
+
476
+ list-style-type: none;
477
+
478
+ ul {
479
+ list-style-type: none;
480
+
481
+ ul {
482
+ list-style-type: none;
483
+
484
+ }
485
+ }
486
+ }
487
+
488
+ }
489
+
490
+ .columns-toc {
491
+ margin-top: 2em;
492
+ }
Binary file
Binary file
@@ -0,0 +1 @@
1
+ !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bulmaCollapsible=t():e.bulmaCollapsible=t()}(window,function(){return function(e){var t={};function __webpack_require__(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(__webpack_require__.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)__webpack_require__.d(n,r,function(t){return e[t]}.bind(null,r));return n},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=12)}([function(e,t){function _getPrototypeOf(t){return e.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(t)}e.exports=_getPrototypeOf},function(e,t){e.exports=function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}},function(e,t){e.exports=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(8);e.exports=function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t,n){var r=n(6),o=n(3);e.exports=function _possibleConstructorReturn(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function _typeof2(e){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof2(e){return typeof e}:function _typeof2(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(t){return"function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?e.exports=_typeof=function _typeof(e){return _typeof2(e)}:e.exports=_typeof=function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)},_typeof(t)}e.exports=_typeof},function(e,t,n){var r=n(11);e.exports=function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){e.exports=function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){n(0);var r=n(10);function _get(t,n,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=_get=Reflect.get:e.exports=_get=function _get(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},_get(t,n,o||t)}e.exports=_get},function(e,t,n){var r=n(0);e.exports=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t){function _setPrototypeOf(t,n){return e.exports=_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(t,n)}e.exports=_setPrototypeOf},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(2),s=n.n(i),l=n(5),a=n.n(l),c=n(3),u=n.n(c),f=n(0),p=n.n(f),d=n(9),h=n.n(d),_=n(7),y=n.n(_),v=n(4),m=n.n(v),b=function(){function EventEmitter(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o()(this,EventEmitter),this._listeners=new Map(e),this._middlewares=new Map}return s()(EventEmitter,[{key:"listenerCount",value:function listenerCount(e){return this._listeners.has(e)?this._listeners.get(e).length:0}},{key:"removeListeners",value:function removeListeners(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null!==t?Array.isArray(t)?name.forEach(function(t){return e.removeListeners(t,n)}):(this._listeners.delete(t),n&&this.removeMiddleware(t)):this._listeners=new Map}},{key:"middleware",value:function middleware(e,t){var n=this;Array.isArray(e)?name.forEach(function(e){return n.middleware(e,t)}):(Array.isArray(this._middlewares.get(e))||this._middlewares.set(e,[]),this._middlewares.get(e).push(t))}},{key:"removeMiddleware",value:function removeMiddleware(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!==t?Array.isArray(t)?name.forEach(function(t){return e.removeMiddleware(t)}):this._middlewares.delete(t):this._middlewares=new Map}},{key:"on",value:function on(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(e))e.forEach(function(e){return n.on(e,t)});else{var o=(e=e.toString()).split(/,|, | /);o.length>1?o.forEach(function(e){return n.on(e,t)}):(Array.isArray(this._listeners.get(e))||this._listeners.set(e,[]),this._listeners.get(e).push({once:r,callback:t}))}}},{key:"once",value:function once(e,t){this.on(e,t,!0)}},{key:"emit",value:function emit(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=e.toString();var o=this._listeners.get(e),i=null,s=0,l=r;if(Array.isArray(o))for(o.forEach(function(a,c){r||(i=n._middlewares.get(e),Array.isArray(i)?(i.forEach(function(n){n(t,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!==e&&(t=e),s++},e)}),s>=i.length&&(l=!0)):l=!0),l&&(a.once&&(o[c]=null),a.callback(t))});-1!==o.indexOf(null);)o.splice(o.indexOf(null),1)}}]),EventEmitter}(),g=n(8),w=n.n(g),k=n(6),O=n.n(k),E=function isFunction(e){return"function"==typeof e},x=function isString(e){return"string"==typeof e||!!e&&"object"===O()(e)&&"[object String]"===Object.prototype.toString.call(e)},P=function isNode(e){try{return Node.prototype.cloneNode.call(e,!1),!0}catch(e){return!1}},S=function isNodeList(e){return NodeList.prototype.isPrototypeOf(e)},j=/^(?:f(?:alse)?|no?|0+)$/i,C=function uuid(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})},A=function detectSupportsPassive(){var e=!1;if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=Object.defineProperty({},"passive",{get:function get(){return e=!0,!0}}),n=function noop(){};window.addEventListener("testPassive",n,t),window.removeEventListener("testPassive",n,t)}return e},T=function querySelectorAll(e,t){return E(e)?e(t||("undefined"!=typeof document?document:null)):x(e)?t&&P(t)?t.querySelectorAll(e):"undefined"!=typeof document?document.querySelectorAll(e):null:P(e)?[e]:S(e)?e:null},q=function optionsFromDataset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(e)&&e.dataset?Object.keys(e.dataset).filter(function(e){return Object.keys(t).includes(e)}).reduce(function(t,n){return m()({},t,w()({},n,e.dataset[n]))},{}):{}};"undefined"==typeof Node||Node.prototype.on||(Node.prototype.on=function(e,t){var n=this;return Array.isArray(e)||(e=e.split(" ")),e.forEach(function(e){n.addEventListener(e.trim(),t,!!A()&&{passive:!1})}),this}),"undefined"==typeof NodeList||NodeList.prototype.on||(NodeList.prototype.on=function(e,t){return this.forEach(function(n){n.on(e,t)}),this}),"undefined"==typeof Node||Node.prototype.off||(Node.prototype.off=function(e,t){var n=this;return Array.isArray(e)||(e=e.split(" ")),e.forEach(function(e){n.removeEventListener(e.trim(),t,!!A()&&{passive:!1})}),this}),"undefined"==typeof NodeList||NodeList.prototype.off||(NodeList.prototype.off=function(e,t){return this.forEach(function(n){n.off(e,t)}),this});var L=function(e){function Component(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(o()(this,Component),(t=a()(this,p()(Component).call(this))).element=x(e)?t.options.container.querySelector(e):e,!t.element)throw new Error("An invalid selector or non-DOM node has been provided for ".concat(t.constructor.name,"."));return t.element[t.constructor.name]=t.constructor._interface.bind(u()(t)),t.element[t.constructor.name].Constructor=t.constructor.name,t.id=C(t.constructor.name+"-"),t.options=m()({},r,n,q(t.element,r)),t}return y()(Component,e),s()(Component,null,[{key:"attach",value:function attach(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new Array;return null===t?o:(n=m()({},r,n,q(this.element,r)),(T(t,n.container)||[]).forEach(function(r){void 0===r[e.constructor.name]?o.push(new e(r,m()({selector:t},n))):o.push(r[e.constructor.name])}),o)}},{key:"_interface",value:function _interface(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e){if(void 0===this[e])throw new TypeError('No method named "'.concat(e,'"'));return this[e](e)}return this}}]),Component}(b),N={allowMultiple:!1,container:"undefined"!=typeof document?document:null};n.d(t,"default",function(){return M});var M=function(e){function bulmaCollapsible(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o()(this,bulmaCollapsible),(t=a()(this,p()(bulmaCollapsible).call(this,e,n,N))).onTriggerClick=t.onTriggerClick.bind(u()(t)),t.onTransitionEnd=t.onTransitionEnd.bind(u()(t)),t._init(),t}return y()(bulmaCollapsible,e),s()(bulmaCollapsible,[{key:"_init",value:function _init(){if(this._originalHeight=this.element.style.height,this._parent=this.element.dataset.parent,this._parent){var e=this.options.container.querySelector("#".concat(this._parent));this._siblings=T(this.options.selector,e)||[]}this._triggers=this.options.container.querySelectorAll('[data-action="collapse"][href="#'.concat(this.element.id,'"], [data-action="collapse"][data-target="').concat(this.element.id,'"]'))||null,this._triggers&&this._triggers.on("click touch",this.onTriggerClick),this._transitionEvent=function whichTransitionEvent(){var e=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(void 0!==e.style[n])return t[n]}(),this._transitionEvent&&this.element.on(this._transitionEvent,this.onTransitionEnd),this.element.classList.contains("is-active")?this.expand():this.collapse()}},{key:"destroy",value:function destroy(){this._triggers&&this._triggers.off("click touch",this.onTriggerClick,!1)}},{key:"collapsed",value:function collapsed(){return this._collapsed}},{key:"expand",value:function expand(){var e=this;(void 0===this._collapsed||this._collapsed)&&(this.emit("before:expand",this),this._collapsed=!1,this._parent&&!function BooleanParse(e){return!j.test(e)&&!!e}(this.options.allowMultiple)&&this._siblings.forEach(function(t){t.isSameNode(e.element)||t.bulmaCollapsible&&t.bulmaCollapsible("close")}),this.element.style.height=this.element.scrollHeight+"px",this.element.classList.add("is-active"),this.element.setAttribute("aria-expanded",!0),this._triggers&&this._triggers.forEach(function(e){e.classList.add("is-active")}),this.emit("after:expand",this))}},{key:"open",value:function open(){this.expand()}},{key:"collapse",value:function collapse(){void 0!==this._collapsed&&this._collapsed||(this.emit("before:collapse",this),this._collapsed=!0,this.element.style.height=0,this.element.classList.remove("is-active"),this.element.setAttribute("aria-expanded",!1),this._triggers&&this._triggers.forEach(function(e){e.classList.remove("is-active")}),this.emit("after:collapse",this))}},{key:"close",value:function close(){this.collapse()}},{key:"onTriggerClick",value:function onTriggerClick(e){e.preventDefault(),this.collapsed()?(e.currentTarget.classList.add("is-active"),this.expand()):(e.currentTarget.classList.remove("is-active"),this.collapse())}},{key:"onTransitionEnd",value:function onTransitionEnd(e){this._collapsed||(this.element.style.height=this._originalHeight)}}],[{key:"attach",value:function attach(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".is-collapsible",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h()(p()(bulmaCollapsible),"attach",this).call(this,e,t,N)}}]),bulmaCollapsible}(L)}]).default});
@@ -0,0 +1,21 @@
1
+ // Searchbar functionality
2
+
3
+ function searchPosts() {
4
+ // Find the cards
5
+ let cards = document.querySelectorAll('.card')
6
+ // Locate search input
7
+ let search_query = document.getElementById('searchbar').value;
8
+ // Loop through the cards
9
+ for (var i = 0; i < cards.length; i++) {
10
+ // If text is in the card:
11
+ if (cards[i].innerHTML.toLowerCase()
12
+ // AND if the text matches the search query:
13
+ .includes(search_query.toLowerCase())) {
14
+ // THEN remove the '.is-hidden' class
15
+ cards[i].classList.remove('is-hidden');
16
+ } else {
17
+ // Otherwise, add the class:
18
+ cards[i].classList.add('is-hidden');
19
+ }
20
+ }
21
+ };
@@ -0,0 +1,53 @@
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+
3
+ // Get all "navbar-burger" elements
4
+ const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
5
+
6
+ // Check if there are any navbar burgers
7
+ if ($navbarBurgers.length > 0) {
8
+
9
+ // Add a click event on each of them
10
+ $navbarBurgers.forEach( el => {
11
+ el.addEventListener('click', () => {
12
+
13
+ // Get the target from the "data-target" attribute
14
+ const target = el.dataset.target;
15
+ const $target = document.getElementById(target);
16
+
17
+ // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
18
+ el.classList.toggle('is-active');
19
+ $target.classList.toggle('is-active');
20
+
21
+ });
22
+ });
23
+ }
24
+
25
+ bulmaCollapsible.attach();
26
+ });
27
+
28
+ document.addEventListener('DOMContentLoaded', function() {
29
+ let cardToggles = document.getElementsByClassName('card-toggle');
30
+ for (let i = 0; i < cardToggles.length; i++) {
31
+ cardToggles[i].addEventListener('click', e => {
32
+ e.currentTarget.parentElement.parentElement.childNodes[3].classList.toggle('is-hidden');
33
+ });
34
+ }
35
+ });
36
+
37
+ document.addEventListener('DOMContentLoaded', function() {
38
+ let cardToggles = document.getElementsByClassName('expertise-toggle');
39
+ for (let i = 0; i < cardToggles.length; i++) {
40
+ cardToggles[i].addEventListener('click', e => {
41
+ e.currentTarget.parentElement.querySelector(".peoples").classList.toggle('is-hidden');
42
+ });
43
+ }
44
+ });
45
+
46
+ document.addEventListener('DOMContentLoaded', function() {
47
+ let cardToggles = document.getElementsByClassName('expertise-detail-toggle');
48
+ for (let i = 0; i < cardToggles.length; i++) {
49
+ cardToggles[i].addEventListener('click', e => {
50
+ e.currentTarget.parentElement.parentElement.querySelector(".expertise-detail").classList.toggle('is-hidden');
51
+ });
52
+ }
53
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ols-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NPDebs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-16 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -105,6 +105,12 @@ files:
105
105
  - _sass/bulma/sass/utilities/functions.sass
106
106
  - _sass/bulma/sass/utilities/initial-variables.sass
107
107
  - _sass/bulma/sass/utilities/mixins.sass
108
+ - assets/css/custom.scss
109
+ - assets/images/logo.png
110
+ - assets/images/open-seeds-logo.png
111
+ - assets/js/bulma-collapsible.min.js
112
+ - assets/js/posts.js
113
+ - assets/js/scripts.js
108
114
  homepage: https://we-are-ols.org/
109
115
  licenses:
110
116
  - MIT