intia-theme 0.1.50 → 0.1.53

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: cec1ea04e1cc6720050be7285b05d244e2058d920be8591f4bf66c8f78142494
4
- data.tar.gz: d6d7190cdc4e9d53000b6179b68737f7d59750d8e6f8e1f4a41d844b2010fd90
3
+ metadata.gz: 84ee3907348e454a62313b289b4b92838253c3456f614a2485165cecb472399d
4
+ data.tar.gz: bc2cfc46a79efb5865b9413db2912b438692f53695ffb2bed8c2d7b5d9dfa4f8
5
5
  SHA512:
6
- metadata.gz: c356fedd81ea2eb43105a3337a6c2f6a2f6bb2113752d01b50e5f73d5796b852e64c14062806df2c6ade7fb75e6c79f82651ef4630ff1f9504ccad92af3f5599
7
- data.tar.gz: 397dbfd6df6e4db964502498bcaf9368780f2df9290a8c0633b97b4730b07c29c60649fe82ef3000c81473c370a6e40cb6a275014a629f257e5c62508d3d06ab
6
+ metadata.gz: 4e74178ced381a75a79046a788e5ff314e08d0728aba81b2906656dd1dfc189e6e6e01121ea99061d00cea69158a275d04a8135c4ae17e433ad40d8e12fa472e
7
+ data.tar.gz: d6651d53e18f1d4218fb263a99656ec5ea40089c583b2059f2e99c5e331544f4972afdbffef66248cf6108ca01f67c54a69ba7b215e1fad5ec96bf2abd9374c8
@@ -12,7 +12,26 @@
12
12
  </a>
13
13
  </div>
14
14
  <div class="navbar-menu" id="navMenu" :class="{ 'is-active': openNav }">
15
- <div class="navbar-end buttons">
15
+ <div id="SearchOverlay" class="searchbar-overlay navbar-end buttons">
16
+ <div class="navbar-item searchbar">
17
+ <div class="field">
18
+ <div id="search-container" class="control">
19
+ <input class="input search-input" type="text" id="search-input" placeholder="Suchbegriff eintippen">
20
+ </div>
21
+ </div>
22
+ <ul id="results-container" class="search-result-list"></ul>
23
+ </div>
24
+ <div class="navbar-end">
25
+ <div class="navbar-item navbar-search">
26
+ <a id="closeSearch">
27
+ <span class="icon">
28
+ <i class="fa-solid icon-remove"></i>
29
+ </span>
30
+ </a>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ <div id="navmenu" class="navbar-end buttons">
16
35
  {% if site.data.navigation %}
17
36
  {% for item in site.data.navigation %}
18
37
  {% if item.dropdown %}
@@ -42,11 +61,19 @@
42
61
  {% endif %}
43
62
  {% endfor %}
44
63
  {% endif %}
64
+ <div class="navbar-end">
65
+ <div class="navbar-item navbar-search">
66
+ <a id="openSearch">
67
+ <span class="icon">
68
+ <i class="fa-solid icon-search"></i>
69
+ </span>
70
+ </a>
71
+ </div>
72
+ </div>
45
73
  </div>
46
74
  </div>
47
75
  </div>
48
76
  </nav>
49
-
50
77
  {% unless page.hide_beadcrumb %}
51
78
  <section class="breadcrumb-section green-version">
52
79
  <div class="container breadcrumb-container">
@@ -80,4 +107,17 @@
80
107
  </div>
81
108
  </section>
82
109
  {% else %}
83
- {% endunless %}
110
+ {% endunless %}
111
+
112
+ <!-- Script pointing to search-script.js -->
113
+ <script src="/assets/js/search.js" type="text/javascript"></script>
114
+
115
+ <!-- Configuration -->
116
+ <script>
117
+ SimpleJekyllSearch({
118
+ searchInput: document.getElementById('search-input'),
119
+ resultsContainer: document.getElementById('results-container'),
120
+ json: '/search.json',
121
+ searchResultTemplate: '<li><a class="search-item" href="{{ site.url }}{url}">{title}</a></li>'
122
+ })
123
+ </script>
data/_sass/_icons.scss CHANGED
@@ -12,3 +12,18 @@
12
12
  background: url(/assets/img/icons/external.svg) no-repeat;
13
13
  transform: rotate(-90deg);
14
14
  }
15
+ .icon-search:before {
16
+ @extend .custom-button-icons;
17
+ background: url(/assets/img/icons/search.svg) no-repeat;
18
+ width: 32px;
19
+ height: 32px;
20
+ filter: invert(35%) sepia(93%) saturate(355%) hue-rotate(124deg) brightness(93%) contrast(88%);
21
+ }
22
+ .icon-remove:before {
23
+ @extend .custom-button-icons;
24
+ background: url(/assets/img/icons/remove.svg) no-repeat;
25
+ width: 32px;
26
+ height: 32px;
27
+ filter: invert(35%) sepia(93%) saturate(355%) hue-rotate(124deg) brightness(93%) contrast(88%);
28
+ }
29
+
data/_sass/_layout.scss CHANGED
@@ -79,6 +79,21 @@ ul {
79
79
  list-style-type: disc;
80
80
  padding-left: 1em;
81
81
  }
82
+ a:link {
83
+ color: #1E7D73;
84
+ }
85
+
86
+ a:visited {
87
+ color: #1E7D73;
88
+ }
89
+
90
+ a:hover {
91
+ color: #77B9A5;
92
+ }
93
+
94
+ a:active {
95
+ color: #1E7D73;
96
+ }
82
97
  // Button Animation + Gleiche Breite
83
98
  .button {
84
99
  // Schrifft
@@ -177,6 +192,43 @@ ul {
177
192
  .navbar-dropdown {
178
193
  display: none;
179
194
  }
195
+ // Search
196
+ .navbar-search{
197
+ padding-left: 0.75rem !important;
198
+ padding-top: 0.5rem !important;
199
+ }
200
+ //Search overlay
201
+ .searchbar .field{
202
+ margin-bottom: 0;
203
+ }
204
+ .searchbar-overlay{
205
+ display: none;
206
+ }
207
+ .searchbar{
208
+ height: 47px;
209
+ width: 800px;
210
+ padding-top: 0 !important;
211
+ }
212
+ .search-item {
213
+ color: black;
214
+ }
215
+ .searchbar-overlay ul{
216
+ list-style-type: none;
217
+ }
218
+ .search-result-list {
219
+ display: none;
220
+ background-color: #e7f2ea;
221
+ color: black;
222
+ border-bottom-left-radius: 45px;
223
+ border-bottom-right-radius: 45px;
224
+ border-left: 3px solid #1e7d73;
225
+ border-right: 3px solid #1e7d73;
226
+ border-bottom: 3px solid #1e7d73;
227
+ }
228
+ .search-input:active, .search-input:hover{
229
+ border-color: #1e7d73 !important ;
230
+ }
231
+
180
232
  .button.is-dark.has-dropdown:hover .navbar-dropdown,
181
233
  .button.is-dark.is-hovered.has-dropdown .navbar-dropdown {
182
234
  display: block;
@@ -330,7 +382,6 @@ a .tooltip-popup {
330
382
  // Navi
331
383
  .navbar {
332
384
  padding-top: 0.6rem;
333
- padding-bottom: 2.6rem;
334
385
  }
335
386
 
336
387
  .navbar.is-primary .navbar-dropdown a.navbar-item.is-active {
@@ -1063,9 +1114,6 @@ div.faq {
1063
1114
  color: #1e7d73;
1064
1115
  cursor: default;
1065
1116
  }
1066
- .navbar {
1067
- padding-bottom: 2.3rem;
1068
- }
1069
1117
  .hero.is-medium .hero-body {
1070
1118
  padding-top: 1rem;
1071
1119
  }
@@ -1095,6 +1143,9 @@ div.faq {
1095
1143
  color: #ffffff;
1096
1144
  }
1097
1145
 
1146
+
1147
+
1148
+
1098
1149
  // Mobil
1099
1150
 
1100
1151
  @include mobile {
@@ -1150,7 +1201,6 @@ div.faq {
1150
1201
  }
1151
1202
  .navbar {
1152
1203
  padding-top: 0.6rem;
1153
- padding-bottom: 0.6rem;
1154
1204
  }
1155
1205
  .navbar-brand img {
1156
1206
  margin: 1rem;
@@ -1269,4 +1319,10 @@ div.faq {
1269
1319
  image-rendering: -webkit-optimize-contrast;
1270
1320
  padding-bottom: 15px;
1271
1321
  }
1322
+ //Searchbar
1323
+ .searchbar{
1324
+ height: 47px;
1325
+ width: auto;
1326
+ padding-top: 0 !important;
1327
+ }
1272
1328
  }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
2
+
3
+ <g transform="matrix(2,0,0,2,0,0)"><path d="M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z" style="fill: #000000"></path></g></svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
2
+
3
+ <g transform="matrix(2,0,0,2,0,0)"><path d="M23.41,20.59,18.77,16a10.25,10.25,0,1,0-8.52,4.56,10.14,10.14,0,0,0,5.69-1.74l4.65,4.65a2,2,0,0,0,2.82,0A2,2,0,0,0,23.41,20.59ZM10.25,3A7.25,7.25,0,1,1,3,10.26,7.26,7.26,0,0,1,10.25,3Z" style="fill: #000000"></path></g></svg>
data/assets/js/main.js CHANGED
@@ -47,4 +47,36 @@ window.onscroll = function(ev) {
47
47
  scrollDownArrow.classList.remove("is-hidden");
48
48
  scrollUpArrow.classList.remove("is-hidden");
49
49
  }
50
- };
50
+ };
51
+
52
+ document.getElementById("openSearch").addEventListener("click", openSearch);
53
+ document.getElementById("closeSearch").addEventListener("click", closeSearch);
54
+ document.getElementById("search-input").addEventListener("input", showsearchresults);
55
+
56
+ var searchOverlay = document.getElementById("SearchOverlay");
57
+ var navmenu = document.getElementById("navmenu");
58
+ var resultsContainer = document.getElementById("results-container");
59
+ var searchInput = document.getElementById("search-input");
60
+
61
+ function openSearch() {
62
+ searchOverlay.style.display = "flex";
63
+ navmenu.style.display = "none";
64
+ }
65
+
66
+ function closeSearch() {
67
+ searchOverlay.style.display = "none";
68
+ navmenu.style.display = "flex";
69
+ }
70
+
71
+
72
+ function showsearchresults(e) {
73
+ if(e.target.value.length>0){
74
+ resultsContainer.style.display = "block";
75
+ searchInput.style.borderBottomLeftRadius = "0px";
76
+ searchInput.style.borderBottomRightRadius = "0px";
77
+ }else{
78
+ resultsContainer.style.display = "none";
79
+ searchInput.style.borderBottomLeftRadius = "45px";
80
+ searchInput.style.borderBottomRightRadius = "45px";
81
+ }
82
+ }
data/assets/js/search.js CHANGED
@@ -3,4 +3,4 @@
3
3
  * Copyright 2015-2020, Christian Fei
4
4
  * Licensed under the MIT License.
5
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)}();
6
+ !function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){function load(location,callback){var xhr=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");xhr.open("GET",location,!0),xhr.onreadystatechange=function(){if(200==xhr.status&&4==xhr.readyState)try{callback(null,JSON.parse(xhr.responseText))}catch(err){callback(err,null)}},xhr.send()}module.exports={load:load}},{}],2:[function(require,module,exports){function put(data){return isObject(data)?addObject(data):isArray(data)?addArray(data):void 0}function clear(){return data.length=0,data}function get(){return data}function isObject(obj){return!!obj&&"[object Object]"==Object.prototype.toString.call(obj)}function isArray(obj){return!!obj&&"[object Array]"==Object.prototype.toString.call(obj)}function addObject(_data){return data.push(_data),data}function addArray(_data){for(var added=[],i=0;i<_data.length;i++)isObject(_data[i])&&added.push(addObject(_data[i]));return added}function search(crit){return crit?findMatches(data,crit,opt.searchStrategy,opt):[]}function setOptions(_opt){opt=_opt||{},opt.fuzzy=_opt.fuzzy||!1,opt.limit=_opt.limit||10,opt.searchStrategy=require(_opt.fuzzy?"./SearchStrategies/FuzzySearchStrategy":"./SearchStrategies/LiteralSearchStrategy")}function findMatches(data,crit,strategy,opt){for(var matches=[],i=0;i<data.length&&matches.length<opt.limit;i++){var match=findMatchesInObject(data[i],crit,strategy,opt);match&&matches.push(match)}return matches}function findMatchesInObject(obj,crit,strategy,opt){for(var key in obj)if(!isExcluded(obj[key],opt.exclude)&&strategy.matches(obj[key],crit))return obj}function isExcluded(term,excludedTerms){var excluded=!1;excludedTerms=excludedTerms||[];for(var i=0;i<excludedTerms.length;i++){var excludedTerm=excludedTerms[i];!excluded&&new RegExp(term).test(excludedTerm)&&(excluded=!0)}return excluded}module.exports={put:put,clear:clear,get:get,search:search,setOptions:setOptions};var data=[],opt={};opt.fuzzy=!1,opt.limit=10,opt.searchStrategy=require(opt.fuzzy?"./SearchStrategies/FuzzySearchStrategy":"./SearchStrategies/LiteralSearchStrategy")},{"./SearchStrategies/FuzzySearchStrategy":3,"./SearchStrategies/LiteralSearchStrategy":4}],3:[function(require,module,exports){function FuzzySearchStrategy(){function fuzzyRegexFromString(string){return new RegExp(string.split("").join(".*?"),"gi")}this.matches=function(string,crit){return"string"!=typeof string?!1:(string=string.trim(),!!fuzzyRegexFromString(crit).test(string))}}module.exports=new FuzzySearchStrategy},{}],4:[function(require,module,exports){function LiteralSearchStrategy(){this.matches=function(string,crit){return"string"!=typeof string?!1:(string=string.trim(),string.toLowerCase().indexOf(crit.toLowerCase())>=0)}}module.exports=new LiteralSearchStrategy},{}],5:[function(require,module,exports){function setOptions(_opt){opt=_opt||{},opt.templatePattern=_opt.templatePattern||/\{(.*?)\}/g}function render(t,data){return t.replace(opt.templatePattern,function(match,prop){return data[prop]||match})}module.exports={render:render,setOptions:setOptions};var opt={};opt.templatePattern=/\{(.*?)\}/g},{}],6:[function(require,module,exports){!function(window,document,undefined){"use strict";function initWithJSON(json){store.put(opt.json),registerInput()}function initWithURL(url){jsonLoader.load(url,function(err,json){err?throwError("failed to get JSON ("+url+")"):(store.put(json),registerInput())})}function throwError(message){throw new Error("SimpleJekyllSearch --- "+message)}function validateOptions(_opt){for(var i=0;i<requiredOptions.length;i++){var req=requiredOptions[i];_opt[req]||throwError("You must specify a "+req)}var ret=_opt;for(var option in opt)ret[option]=_opt[option]||opt[option];return ret}function isJSON(json){try{return json instanceof Object&&JSON.parse(JSON.stringify(json))}catch(e){return!1}}function emptyResultsContainer(){opt.resultsContainer.innerHTML=""}function appendToResultsContainer(text){opt.resultsContainer.innerHTML+=text}function registerInput(){opt.searchInput.addEventListener("keyup",function(e){return 0==e.target.value.length?void emptyResultsContainer():void render(store.search(e.target.value))})}function render(results){if(emptyResultsContainer(),0==results.length)return appendToResultsContainer(opt.noResultsText);for(var i=0;i<results.length;i++)appendToResultsContainer(templater.render(opt.searchResultTemplate,results[i]))}var templater=require("./Templater"),store=require("./Repository"),jsonLoader=require("./JSONLoader"),requiredOptions=["searchInput","resultsContainer","json"],opt={searchInput:null,resultsContainer:null,json:[],searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]};window.SimpleJekyllSearch=function(_opt){opt=validateOptions(_opt),store.setOptions(_opt),isJSON(opt.json)?initWithJSON(opt.json):initWithURL(opt.json)},window.SimpleJekyllSearch.init=window.SimpleJekyllSearch}(window,document)},{"./JSONLoader":1,"./Repository":2,"./Templater":5}]},{},[6]);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intia-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.50
4
+ version: 0.1.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -67,6 +67,8 @@ files:
67
67
  - assets/img/icons/external.svg
68
68
  - assets/img/icons/handshake.svg
69
69
  - assets/img/icons/internal.png
70
+ - assets/img/icons/remove.svg
71
+ - assets/img/icons/search.svg
70
72
  - assets/img/internal-link.png
71
73
  - assets/img/logo-black.png
72
74
  - assets/img/logo-dites.png