intia-theme 0.1.6 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/button.html +7 -0
  3. data/_includes/contact.html +70 -0
  4. data/_includes/footer.html +1 -1
  5. data/_includes/hero.html +18 -6
  6. data/_includes/highlighter.html +7 -0
  7. data/_includes/introduction.md +6 -0
  8. data/_includes/latest-story.html +35 -0
  9. data/_includes/left-right-blocks.html +46 -49
  10. data/_includes/stories.html +40 -0
  11. data/_includes/story-slider.html +3 -4
  12. data/_layouts/default.html +6 -3
  13. data/_layouts/plattform.html +0 -0
  14. data/_sass/_layout.scss +258 -9
  15. data/_sass/_main.scss +23 -8
  16. data/assets/img/arrow-down.png +0 -0
  17. data/assets/img/external-link.png +0 -0
  18. data/assets/img/logo-green-white.png +0 -0
  19. data/assets/img/logo-short-green.png +0 -0
  20. data/assets/img/logo-short.png +0 -0
  21. data/assets/js/main.js +42 -1
  22. data/assets/js/search.js +6 -0
  23. data/assets/templates/contact.png +0 -0
  24. data/assets/templates/glossary-abstract.png +0 -0
  25. data/assets/templates/glossary-full-entry.png +0 -0
  26. data/assets/templates/header-a.png +0 -0
  27. data/assets/templates/header-b.png +0 -0
  28. data/assets/templates/header-c.png +0 -0
  29. data/assets/templates/header-glossary.png +0 -0
  30. data/assets/templates/highlighter-a.png +0 -0
  31. data/assets/templates/highlighter-b.png +0 -0
  32. data/assets/templates/highlighter-c.png +0 -0
  33. data/assets/templates/highlighter-d.png +0 -0
  34. data/assets/templates/left-right-blocks.png +0 -0
  35. data/assets/templates/methods-filter.png +0 -0
  36. data/assets/templates/stories-a.png +0 -0
  37. data/assets/templates/stories-b.png +0 -0
  38. data/assets/templates/stories-teaser.png +0 -0
  39. data/assets/templates/textblock-highlight.png +0 -0
  40. data/assets/templates/textblock-with-image.png +0 -0
  41. data/assets/templates/textblock.png +0 -0
  42. data/assets/templates/tooltip.png +0 -0
  43. data/node_modules/@creativebulma/bulma-tooltip/LICENSE +21 -0
  44. data/node_modules/@creativebulma/bulma-tooltip/README.md +34 -0
  45. data/node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip.css +1919 -0
  46. data/node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip.min.css +2 -0
  47. data/node_modules/@creativebulma/bulma-tooltip/package.json +104 -0
  48. data/node_modules/@creativebulma/bulma-tooltip/src/docs/archetypes/default.md +6 -0
  49. data/node_modules/@creativebulma/bulma-tooltip/src/docs/config.toml +18 -0
  50. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/_index.md +27 -0
  51. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/changelog.md +11 -0
  52. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/get-started.md +128 -0
  53. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/how-to/customize.md +48 -0
  54. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.0.1.md +11 -0
  55. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.0.2.md +13 -0
  56. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.1.0.md +13 -0
  57. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.2.md +13 -0
  58. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.md +13 -0
  59. data/node_modules/@creativebulma/bulma-tooltip/src/docs/data/social.json +7 -0
  60. data/node_modules/@creativebulma/bulma-tooltip/src/docs/data/variables.json +62 -0
  61. data/node_modules/@creativebulma/bulma-tooltip/src/docs/data/versions.json +14 -0
  62. data/node_modules/@creativebulma/bulma-tooltip/src/docs/layouts/partials/head.html +26 -0
  63. data/node_modules/@creativebulma/bulma-tooltip/src/docs/static/css/bulma-tooltip.css +1919 -0
  64. data/node_modules/@creativebulma/bulma-tooltip/src/docs/static/css/bulma-tooltip.min.css +2 -0
  65. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/LICENSE +20 -0
  66. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/archetypes/changelog.md +11 -0
  67. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/archetypes/default.md +2 -0
  68. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/404.html +33 -0
  69. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/_markup/render-link.html +1 -0
  70. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/baseof.html +11 -0
  71. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/list.html +0 -0
  72. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/single.html +25 -0
  73. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/index.html +24 -0
  74. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/footer.html +6 -0
  75. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/head.html +25 -0
  76. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/header.html +0 -0
  77. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/menu.html +33 -0
  78. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/navbar.html +31 -0
  79. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/api.html +71 -0
  80. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/button.html +17 -0
  81. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/changelog.html +13 -0
  82. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/link.html +13 -0
  83. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/notification.html +2 -0
  84. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/options.html +22 -0
  85. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/preview.html +31 -0
  86. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/tab.html +16 -0
  87. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/table.html +21 -0
  88. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/tabs.html +24 -0
  89. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/tag.html +35 -0
  90. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/variables.html +18 -0
  91. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/css/docs.css +375 -0
  92. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/images/clippy.svg +1 -0
  93. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/js/clipboard.min.js +7 -0
  94. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/js/docs.js +79 -0
  95. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/js/highlight.pack.js +3 -0
  96. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/theme.toml +21 -0
  97. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_animation.sass +4 -0
  98. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_position.sass +124 -0
  99. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_responsiveness.sass +151 -0
  100. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_variables.sass +12 -0
  101. data/node_modules/@creativebulma/bulma-tooltip/src/sass/index.sass +131 -0
  102. data/package-lock.json +6 -0
  103. data/package.json +3 -0
  104. metadata +93 -3
  105. data/_includes/introduction.html +0 -8
data/_sass/_layout.scss CHANGED
@@ -62,9 +62,6 @@ div.highlight {
62
62
  border-radius: 65px;
63
63
  margin-top: 3em;
64
64
  }
65
- .highlighter-image {
66
- }
67
-
68
65
  .overtitle {
69
66
  margin-bottom: 0 !important;
70
67
  padding-bottom: 0 !important;
@@ -79,12 +76,28 @@ img.is-rounded {
79
76
  }
80
77
  .arrow-image {
81
78
  z-index: 10;
82
- position: relative;
83
- bottom: -90px;
79
+ top: calc(50% - 68px);
80
+ position: sticky;
84
81
  width: 64px;
85
82
  cursor: pointer;
83
+ display: flex;
84
+ flex-direction: column;
85
+ }
86
+ .is-pointed-down {
87
+ transform: scaleY(-1);
88
+ }
89
+ .is-hidden {
90
+ visibility: hidden;
91
+ }
92
+ .is-visible {
93
+ visibility: visible;
94
+ }
95
+ .left {
96
+ text-align: left;
97
+ }
98
+ .right {
99
+ text-align: right;
86
100
  }
87
-
88
101
  .clear {
89
102
  clear: both;
90
103
  display: block;
@@ -93,12 +106,13 @@ img.is-rounded {
93
106
 
94
107
  // Buttons - Mybe global in Buttons und raus damit?
95
108
  .button.is-dark {
96
- background-color: #229387;
109
+ background-color: $primary-dark;
97
110
  }
98
111
 
99
112
  // Navi
100
113
  .navbar {
101
114
  padding-top: 0.6rem;
115
+ padding-bottom: 2.6rem;
102
116
  }
103
117
 
104
118
  .navbar.is-primary .navbar-dropdown a.navbar-item.is-active {
@@ -149,6 +163,9 @@ img.is-rounded {
149
163
  .hero-body {
150
164
  background-color: white;
151
165
  }
166
+ .home .hero-body h1 {
167
+ max-width: 60%;
168
+ }
152
169
  .hero.is-large .hero-body {
153
170
  padding-bottom: 12rem;
154
171
  }
@@ -156,6 +173,13 @@ img.is-rounded {
156
173
  .hero-body img {
157
174
  float: right;
158
175
  margin-left: 200px;
176
+ top: -175px;
177
+ position: inherit;
178
+ }
179
+ .home .hero-body img {
180
+ max-width: 40%;
181
+ height: 66vh;
182
+ object-fit: cover;
159
183
  }
160
184
  .hero {
161
185
  display: block;
@@ -165,7 +189,7 @@ img.is-rounded {
165
189
  padding-top: 70px;
166
190
  }
167
191
  .hero.is-medium .hero-body {
168
- padding: 13rem 9rem 4.5rem;
192
+ padding: 10rem 9rem 4.5rem;
169
193
  }
170
194
 
171
195
  .hero-body .button,
@@ -183,14 +207,52 @@ img.is-rounded {
183
207
  //// Hero sub-pages with green text
184
208
  .subpage h1,
185
209
  .subpage p {
186
- color: #229387 !important;
210
+ color: $primary-dark !important;
211
+ }
212
+ .subpage .hero-body img,
213
+ .toppage .hero-body img {
214
+ float: none;
215
+ margin-left: auto;
216
+ margin-right: auto;
217
+ display: block;
218
+ top: 0;
219
+ max-width: auto;
220
+ }
221
+ .buttons-hero {
222
+ display: none;
223
+ }
224
+
225
+ .pdf .buttons-hero {
226
+ display: block;
227
+ align-items: center;
228
+ flex-wrap: wrap;
229
+ justify-content: flex-start;
230
+ }
231
+ .hero-body .container .buttons-hero .button {
232
+ float: none;
233
+ }
234
+
235
+ //// Hero top-pages with green box
236
+ .toppage .hero-body {
237
+ background-color: $light !important;
238
+ }
239
+
240
+ .glossary {
241
+ text-align: center;
187
242
  }
188
243
 
189
244
  // Content
245
+ #main .columns {
246
+ width: 100%;
247
+ }
190
248
  .subtitle {
191
249
  padding: 50px;
192
250
  }
193
251
 
252
+ .post h3 {
253
+ font-weight: 600;
254
+ padding-top: 2rem;
255
+ }
194
256
  .card {
195
257
  // margin-left: 3rem;
196
258
  // margin-right: 3rem;
@@ -224,6 +286,7 @@ img.is-rounded {
224
286
  .card-image:first-child img {
225
287
  border-top-left-radius: 65px;
226
288
  border-top-right-radius: 65px;
289
+ max-height: 100vh;
227
290
  }
228
291
 
229
292
  .card-content {
@@ -241,6 +304,7 @@ img.is-rounded {
241
304
  .card-image:last-child img {
242
305
  border-bottom-left-radius: 65px;
243
306
  border-bottom-right-radius: 65px;
307
+ max-height: 100vh;
244
308
  }
245
309
 
246
310
  .story-card {
@@ -324,12 +388,81 @@ img.is-rounded {
324
388
  border: 0px !important;
325
389
  box-shadow: none !important;
326
390
  }
391
+ .slider-navigation-previous img,
392
+ .slider-navigation-next img {
393
+ border-radius: 0%;
394
+ }
395
+
396
+ //highlighter
397
+ .highlighter {
398
+ background-color: $light;
399
+ border-radius: 65px;
400
+ padding: 75px;
401
+ font-size: 1.4rem;
402
+ }
403
+
404
+ .min-height25p {
405
+ min-height: 25vw;
406
+ }
407
+
408
+ .highlighter h1 {
409
+ text-align: left;
410
+ padding-top: 0;
411
+ }
412
+ .highlighter h2 {
413
+ padding-top: 0;
414
+ font-size: 2rem;
415
+ font-weight: 600;
416
+ }
417
+ .two-columns p {
418
+ column-count: 2;
419
+ column-gap: 5rem;
420
+ }
421
+
422
+ .highlighter .button {
423
+ float: right;
424
+ }
425
+
426
+ .highlighter img {
427
+ border-radius: 0;
428
+ height: auto;
429
+ width: 50%;
430
+ float: right;
431
+ padding-left: 5rem;
432
+ padding-right: 5rem;
433
+ }
434
+ .highlighter .column {
435
+ margin-right: 4rem;
436
+ padding-top: 2rem;
437
+ padding-bottom: 2rem;
438
+ }
439
+
440
+ .highlighter .is-round {
441
+ display: flex;
442
+ background-color: white;
443
+ border-radius: 1000px;
444
+ padding: 3rem;
445
+ float: none;
446
+ overflow: hidden;
447
+ height: 300px;
448
+ width: 300px;
449
+ }
450
+ .highlighter .is-round img {
451
+ background-color: white;
452
+ padding-left: 0;
453
+ padding-right: 0;
454
+ object-fit: contain;
455
+ height: auto;
456
+ width: auto;
457
+ }
458
+
327
459
  // Footer
328
460
 
329
461
  .footer {
330
462
  font-size: 0.75rem;
331
463
  margin-top: 5rem;
332
464
  line-height: 1rem;
465
+ padding-top: 0;
333
466
  }
334
467
  .footer img.column {
335
468
  padding: 0 !important;
@@ -349,6 +482,14 @@ footer .columns {
349
482
  margin-left: auto;
350
483
  margin-right: auto;
351
484
  font-size: 0.75rem;
485
+ padding-top: 2em;
486
+ padding-bottom: 2em;
487
+ }
488
+ .footer .footer-nav {
489
+ padding-top: 0;
490
+ }
491
+ .footer .footer-nav .column {
492
+ padding-left: 0;
352
493
  }
353
494
  .footer-logos .column {
354
495
  flex-basis: auto;
@@ -393,3 +534,111 @@ footer .columns {
393
534
  text-align: left !important;
394
535
  }
395
536
  }
537
+
538
+ // Tool-Tip
539
+
540
+ a:hover .tooltip-popup {
541
+ visibility: visible;
542
+ display: block;
543
+ }
544
+ .tooltip-popup {
545
+ position: relative;
546
+ width: 20vw;
547
+ visibility: hidden;
548
+ display: none;
549
+ background: $light;
550
+ border-radius: 65px;
551
+ }
552
+
553
+ // Contect
554
+
555
+ .input,
556
+ .textarea,
557
+ #thema {
558
+ border: 3px solid $primary-dark;
559
+ border-radius: 45px;
560
+ padding-left: 2.5em;
561
+ padding-right: 2.5em;
562
+ }
563
+ .input,
564
+ #thema {
565
+ height: 2.75em;
566
+ }
567
+
568
+ .textarea {
569
+ padding-left: 2.5em;
570
+ padding-top: 1.5em;
571
+ min-height: 13.5em !important;
572
+ }
573
+ .label {
574
+ color: $primary-dark;
575
+ font-weight: 600;
576
+ padding-left: 1rem;
577
+ margin-bottom: 0 !important;
578
+ }
579
+ .contact .column {
580
+ padding: 5rem;
581
+ padding-left: 0;
582
+ }
583
+ .select:not(.is-multiple):not(.is-loading)::after {
584
+ border-color: $primary-dark;
585
+ right: 2.3em;
586
+ z-index: 4;
587
+ }
588
+ .contact .control.has-icons-left .icon.is-left {
589
+ left: 5px;
590
+ top: 2px;
591
+ }
592
+ .contact .button {
593
+ float: right;
594
+ }
595
+
596
+ // newss
597
+ .news {
598
+ box-shadow: none;
599
+ }
600
+ .news-item {
601
+ margin-left: 5%;
602
+ margin-right: 5%;
603
+ }
604
+ .news-container .card-content .content {
605
+ margin: 50px;
606
+ }
607
+ .story-news {
608
+ background-color: $light;
609
+ border-bottom-left-radius: 65px !important;
610
+ border-bottom-right-radius: 65px !important;
611
+ border-top-left-radius: 65px !important;
612
+ border-top-right-radius: 65px !important;
613
+ }
614
+ .news-slider .button {
615
+ float: right;
616
+ }
617
+ .column.news-image {
618
+ padding: 0;
619
+ }
620
+ .column.news-image .image {
621
+ height: 100%;
622
+ }
623
+ .column.news-image img {
624
+ border-top-right-radius: 0 !important;
625
+ border-bottom-right-radius: 0 !important;
626
+ height: 100%;
627
+ object-fit: cover;
628
+ }
629
+ .column.news-content {
630
+ padding: 3em;
631
+ }
632
+ .news-content h2 {
633
+ margin-bottom: 2rem;
634
+ padding-top: 0;
635
+ }
636
+ .news-content h4 {
637
+ font-size: 0.75rem;
638
+ letter-spacing: 0.3rem;
639
+ }
640
+ .news-content {
641
+ width: 100%;
642
+ display: flow-root;
643
+ margin: auto;
644
+ }
data/_sass/_main.scss CHANGED
@@ -17,26 +17,39 @@ $dark: #09443e;
17
17
  @import "../node_modules/bulma/bulma.sass";
18
18
  // Extensions
19
19
  @import "../node_modules/bulma-block-list/src/block-list.scss";
20
+ @import "../node_modules/@creativebulma/bulma-tooltip/src/sass/index.sass";
20
21
  // Bulma Config
21
22
  $column-gap: 1rem;
22
23
  $modal-content-width: 800px;
23
24
  $tabs-link-active-color: $primary;
24
25
  $tabs-link-active-border-bottom-color: $primary;
25
26
  // Global
27
+ html {
28
+ scroll-behavior: smooth;
29
+ }
26
30
  body {
27
31
  font-size: 1.5rem;
28
32
  line-height: 2.25rem;
29
33
  }
30
34
 
31
- h1, h2, h3, p {
32
- padding-bottom:30px;
35
+ h1,
36
+ h2,
37
+ h3,
38
+ p {
39
+ padding-bottom: 30px;
33
40
  }
34
- h1, h2{
35
- padding-top:90px;
41
+ h1,
42
+ h2 {
43
+ padding-top: 90px;
36
44
  }
37
45
 
38
- .card h1, .card h2, .card p, .slider h1, .slider h2, .slider p {
39
- padding-top:0;
46
+ .card h1,
47
+ .card h2,
48
+ .card p,
49
+ .slider h1,
50
+ .slider h2,
51
+ .slider p {
52
+ padding-top: 0;
40
53
  padding-bottom: 0;
41
54
  }
42
55
 
@@ -49,7 +62,7 @@ h1 p {
49
62
  }
50
63
 
51
64
  .green h1,
52
- .green h1 p{
65
+ .green h1 p {
53
66
  text-align: left;
54
67
  }
55
68
 
@@ -64,7 +77,9 @@ h2 p {
64
77
  }
65
78
 
66
79
  h3 {
67
- font-size: 1.17rem;
80
+ font-weight: 600;
81
+ font-size: 1.7rem;
82
+ padding-top: 50px;
68
83
  }
69
84
 
70
85
  h4 {
Binary file
Binary file
Binary file
Binary file
Binary file
data/assets/js/main.js CHANGED
@@ -6,4 +6,45 @@ const carousels = bulmaCarousel.attach('.carousel',{
6
6
  icons: {
7
7
  'previous': `<img src="../assets/img/arrow-left.png"></img>`,
8
8
  'next': `<img src="../assets/img/arrow-left.png" style="transform: rotate(180deg);"></img>`}
9
- });
9
+ });
10
+
11
+ var scrollUpArrow= document.getElementById("scroll-up");
12
+ var scrollDownArrow= document.getElementById("scroll-down");
13
+ var scrollStep=10,
14
+ scrollTimer=null
15
+
16
+ scrollUpArrow.addEventListener("mouseenter", function(evt){
17
+ scroll(-scrollStep)
18
+ })
19
+ scrollUpArrow.addEventListener("mouseleave", function(evt){
20
+ if(scrollTimer!=null)clearTimeout(scrollTimer);
21
+ })
22
+ scrollDownArrow.addEventListener("mouseleave", function(evt){
23
+ if(scrollTimer!=null)clearTimeout(scrollTimer);
24
+ })
25
+ scrollDownArrow.addEventListener("mouseenter", function(evt){
26
+ scroll(scrollStep)
27
+ })
28
+ function scroll(yDisplacement){
29
+ if(scrollTimer!=null)clearTimeout(scrollTimer);
30
+
31
+ scrollTimer = setTimeout(function(){
32
+ window.scroll({
33
+ top:window.scrollY+yDisplacement,
34
+ left:0,
35
+ behavior: 'smooth'
36
+ })
37
+ scroll(yDisplacement)
38
+ }, 50);
39
+ }
40
+
41
+ window.onscroll = function(ev) {
42
+ if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
43
+ scrollDownArrow.classList.add("is-hidden");
44
+ }else if(window.pageYOffset === 0){
45
+ scrollUpArrow.classList.add("is-hidden");
46
+ }else{
47
+ scrollDownArrow.classList.remove("is-hidden");
48
+ scrollUpArrow.classList.remove("is-hidden");
49
+ }
50
+ };
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Simple-Jekyll-Search
3
+ * Copyright 2015-2020, Christian Fei
4
+ * Licensed under the MIT License.
5
+ */
6
+ !function(){"use strict";var f={compile:function(r){return i.template.replace(i.pattern,function(t,e){var n=i.middleware(e,r[e],i.template);return void 0!==n?n:r[e]||t})},setOptions:function(t){i.pattern=t.pattern||i.pattern,i.template=t.template||i.template,"function"==typeof t.middleware&&(i.middleware=t.middleware)}};const i={pattern:/\{(.*?)\}/g,template:"",middleware:function(){}};var n=function(t,e){var n=e.length,r=t.length;if(n<r)return!1;if(r===n)return t===e;t:for(var i=0,o=0;i<r;i++){for(var u=t.charCodeAt(i);o<n;)if(e.charCodeAt(o++)===u)continue t;return!1}return!0},e=new function(){this.matches=function(t,e){return n(e.toLowerCase(),t.toLowerCase())}},r=new function(){this.matches=function(e,t){return!!e&&(e=e.trim().toLowerCase(),(t=t.trim().toLowerCase()).split(" ").filter(function(t){return 0<=e.indexOf(t)}).length===t.split(" ").length)}},d={put:function(t){if(l(t))return a(t);if(function(t){return Boolean(t)&&"[object Array]"===Object.prototype.toString.call(t)}(t))return function(n){const r=[];s();for(let t=0,e=n.length;t<e;t++)l(n[t])&&r.push(a(n[t]));return r}(t);return undefined},clear:s,search:function(t){return t?function(e,n,r,i){const o=[];for(let t=0;t<e.length&&o.length<i.limit;t++){var u=function(t,e,n,r){for(const i in t)if(!function(n,r){for(let t=0,e=r.length;t<e;t++){var i=r[t];if(new RegExp(i).test(n))return!0}return!1}(t[i],r.exclude)&&n.matches(t[i],e))return t}(e[t],n,r,i);u&&o.push(u)}return o}(u,t,c.searchStrategy,c).sort(c.sort):[]},setOptions:function(t){c=t||{},c.fuzzy=t.fuzzy||!1,c.limit=t.limit||10,c.searchStrategy=t.fuzzy?e:r,c.sort=t.sort||o,c.exclude=t.exclude||[]}};function o(){return 0}const u=[];let c={};function s(){return u.length=0,u}function l(t){return Boolean(t)&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return u.push(t),u}c.fuzzy=!1,c.limit=10,c.searchStrategy=c.fuzzy?e:r,c.sort=o,c.exclude=[];var p={load:function(t,e){const n=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("GET",t,!0),n.onreadystatechange=h(n,e),n.send()}};function h(e,n){return function(){if(4===e.readyState&&200===e.status)try{n(null,JSON.parse(e.responseText))}catch(t){n(t,null)}}}var m=function y(t){if(!(e=t)||!("undefined"!=typeof e.required&&e.required instanceof Array))throw new Error("-- OptionsValidator: required options missing");var e;if(!(this instanceof y))return new y(t);const r=t.required;this.getRequiredOptions=function(){return r},this.validate=function(e){const n=[];return r.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}},w={merge:function(t,e){const n={};for(const r in t)n[r]=t[r],"undefined"!=typeof e[r]&&(n[r]=e[r]);return n},isJSON:function(t){try{return t instanceof Object&&JSON.parse(JSON.stringify(t))?!0:!1}catch(e){return!1}}};!function(t){let i={searchInput:null,resultsContainer:null,json:[],success:Function.prototype,searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:Function.prototype,sortMiddleware:function(){return 0},noResultsText:"No results found",limit:10,fuzzy:!1,debounceTime:null,exclude:[]},n;const e=function(t,e){e?(clearTimeout(n),n=setTimeout(t,e)):t.call()};var r=["searchInput","resultsContainer","json"];const o=m({required:r});function u(t){d.put(t),i.searchInput.addEventListener("input",function(t){-1===[13,16,20,37,38,39,40,91].indexOf(t.which)&&(c(),e(function(){l(t.target.value)},i.debounceTime))})}function c(){i.resultsContainer.innerHTML=""}function s(t){i.resultsContainer.innerHTML+=t}function l(t){var e;(e=t)&&0<e.length&&(c(),function(e,n){var r=e.length;if(0===r)return s(i.noResultsText);for(let t=0;t<r;t++)e[t].query=n,s(f.compile(e[t]))}(d.search(t),t))}function a(t){throw new Error("SimpleJekyllSearch --- "+t)}t.SimpleJekyllSearch=function(t){var n;0<o.validate(t).length&&a("You must specify the following required options: "+r),i=w.merge(i,t),f.setOptions({template:i.searchResultTemplate,middleware:i.templateMiddleware}),d.setOptions({fuzzy:i.fuzzy,limit:i.limit,sort:i.sortMiddleware,exclude:i.exclude}),w.isJSON(i.json)?u(i.json):(n=i.json,p.load(n,function(t,e){t&&a("failed to get JSON ("+n+")"),u(e)}));t={search:l};return"function"==typeof i.success&&i.success.call(t),t}}(window)}();
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 CreativeBulma
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
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 THE
21
+ SOFTWARE.
@@ -0,0 +1,34 @@
1
+ # Introduction
2
+ This components has been developped as a [Bulma](https://bulma.io) extension and brings the ability to **easily display a tooltip attached to any kind of element, in different position**.
3
+
4
+ [![npm](https://img.shields.io/npm/v/@creativebulma/bulma-tooltip.svg)](https://www.npmjs.com/package/@creativebulma/bulma-tooltip)
5
+ [![npm](https://img.shields.io/npm/dm/@creativebulma/bulma-tooltip.svg)](https://www.npmjs.com/package/@creativebulma/bulma-tooltip)
6
+ [![](https://data.jsdelivr.com/v1/package/npm/@creativebulma/bulma-tooltip/badge)](https://www.jsdelivr.com/package/npm/@creativebulma/bulma-tooltip)
7
+
8
+ ---
9
+
10
+ ## Prerequisites
11
+ This component extends [Bulma CSS Framework](https://bulma.io) and requires it to work.
12
+
13
+ ## Get Started
14
+ ```shell
15
+ npm i -D @creativebulma/bulma-tooltip
16
+ ```
17
+ Full installation steps can be found here: [installation steps](https://demo.creativebulma.net/components/tooltip/1.2/get-started)
18
+
19
+ ## Documentation & Demo
20
+ Full documentation and demo are available [here](https://demo.creativebulma.net/components/tooltip/1.2/get-started)
21
+
22
+ ## About the project
23
+ BulmaBoilerplate is © 2020 by [CreativeBulma](https://creativebulma.net).
24
+
25
+ **If you enjoy this component, have a look at our [MarketPlace](https://creativebulma.net) and discover Free and Premium Bulma components and Templates.**
26
+
27
+ ## License
28
+ BulmaBoilerplate is distributed under [MIT](https://github.com/CreativeBulma/bulma-tooltip/blob/master/LICENSE) license.
29
+
30
+ ## Contributing
31
+ **Contribution are welcome!**
32
+ You found a bug, a typo issue ? Feel free to create a PR on the [github repository](https://github.com/CreativeBulma/bulma-tooltip/) of this project.
33
+
34
+ When contributing to this project, please first discuss the change you wish to make via issue on the [github repository](https://github.com/CreativeBulma/bulma-tooltip/issues), email, or any other method with the owners of this project before making a change.