intia-theme 0.1.48 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/button.html +12 -2
- data/_includes/header.html +57 -7
- data/_sass/_helper.scss +13 -0
- data/_sass/_icons.scss +16 -0
- data/_sass/_layout.scss +73 -0
- data/assets/img/icons/download.png +0 -0
- data/assets/img/icons/download.svg +6 -0
- data/assets/img/icons/external.png +0 -0
- data/assets/img/icons/external.svg +3 -0
- data/assets/img/icons/internal.png +0 -0
- data/assets/img/icons/search.svg +3 -0
- data/assets/js/main.js +12 -1
- data/assets/js/search.js +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f905a7cf72167a88c327e3a8de72dc0bf24395f73a2786c333f89880a557fb06
|
4
|
+
data.tar.gz: 363c862e72c5da5ba2d0a8cd62f5f3c67de986af1624aa608661e84ea7da19e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 929a33259fa68ca2656dc4f52dfd2cc45c676c5b9cc0356ad50c21529d3516b8ca3dceab982fa084e53e097da6dbba217598a5039cf9e7320b819fdf8a098594
|
7
|
+
data.tar.gz: 5a650a0bfd4ab32dfca2808849136c632f2d0eb1ab1dac9023c4546109c42199503c5af296ca13752493283c6fc8a126c3aadb179fc57e31a65e532c0dd72746
|
data/_includes/button.html
CHANGED
@@ -3,8 +3,18 @@
|
|
3
3
|
<span> {{ include.label }} </span>
|
4
4
|
|
5
5
|
{% unless include.no-icon %}
|
6
|
+
{% if include.type == "external" %}
|
6
7
|
<span class="icon is-small">
|
7
|
-
<i class="fas
|
8
|
-
</span>
|
8
|
+
<i class="fas icon-external fa-xs invert"></i>
|
9
|
+
</span>
|
10
|
+
{% elsif include.type == "download" %}
|
11
|
+
<span class="icon is-small">
|
12
|
+
<i class="fas icon-download fa-xs invert"></i>
|
13
|
+
</span>
|
14
|
+
{% else %}
|
15
|
+
<span class="icon is-small">
|
16
|
+
<i class="fas fa-chevron-right fa-xs"></i>
|
17
|
+
</span>
|
18
|
+
{% endif %}
|
9
19
|
{% endunless %}
|
10
20
|
</a>
|
data/_includes/header.html
CHANGED
@@ -42,6 +42,15 @@
|
|
42
42
|
{% endif %}
|
43
43
|
{% endfor %}
|
44
44
|
{% endif %}
|
45
|
+
<div class="navbar-end">
|
46
|
+
<div class="navbar-item navbar-search">
|
47
|
+
<a id="openSearch">
|
48
|
+
<span class="icon">
|
49
|
+
<i class="fa-solid icon-search"></i>
|
50
|
+
</span>
|
51
|
+
</a>
|
52
|
+
</div>
|
53
|
+
</div>
|
45
54
|
</div>
|
46
55
|
</div>
|
47
56
|
</div>
|
@@ -53,17 +62,58 @@
|
|
53
62
|
<nav class="breadcrumb has-arrow-separator" aria-label="breadcrumbs">
|
54
63
|
<ul>
|
55
64
|
{% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
|
56
|
-
<li><a href="/">
|
57
|
-
{%
|
58
|
-
|
59
|
-
|
65
|
+
<li><a href="/">{{ site.title }}</a></li>
|
66
|
+
{% if site.breadcrumb_from_url %}
|
67
|
+
{% for crumb in crumbs offset: 1 %}
|
68
|
+
{% if forloop.last %}
|
69
|
+
<li><a href="#">{{ page.title }}</a></li>
|
70
|
+
{% else %}
|
71
|
+
<li><a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
|
72
|
+
{% endif %}
|
73
|
+
{% endfor %}
|
60
74
|
{% else %}
|
61
|
-
|
75
|
+
{% if page.breadcrumbs %}
|
76
|
+
{% for crumb in page.breadcrumbs %}
|
77
|
+
<li><a>{{ crumb }}</a></li>
|
78
|
+
{% endfor %}
|
79
|
+
{% elsif page.title_above %}
|
80
|
+
<li><a >{{ page.title_above }}</a></li>
|
81
|
+
{% else %}
|
82
|
+
{% endif %}
|
83
|
+
{% unless crumbs == empty %}
|
84
|
+
<li><a href="#">{{ page.title }}</a></li>
|
85
|
+
{% endunless %}
|
62
86
|
{% endif %}
|
63
|
-
{% endfor %}
|
64
87
|
</ul>
|
65
88
|
</nav>
|
66
89
|
</div>
|
67
90
|
</section>
|
68
91
|
{% else %}
|
69
|
-
{% endunless %}
|
92
|
+
{% endunless %}
|
93
|
+
|
94
|
+
|
95
|
+
<div id="SearchOverlay" class="overlay">
|
96
|
+
|
97
|
+
<div class="overlay-content">
|
98
|
+
|
99
|
+
<div class="field">
|
100
|
+
<div id="search-container" class="control">
|
101
|
+
<input class="input" type="text" id="search-input" placeholder="Suchbegriff eintippen">
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
<span class="closebtn" id="closeSearch" title="Close Overlay">×</span>
|
105
|
+
<ul id="results-container"></ul>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
<!-- Script pointing to search-script.js -->
|
109
|
+
<script src="/assets/js/search.js" type="text/javascript"></script>
|
110
|
+
|
111
|
+
<!-- Configuration -->
|
112
|
+
<script>
|
113
|
+
SimpleJekyllSearch({
|
114
|
+
searchInput: document.getElementById('search-input'),
|
115
|
+
resultsContainer: document.getElementById('results-container'),
|
116
|
+
json: '/search.json',
|
117
|
+
searchResultTemplate: '<li><a class="search-item" href="{{ site.url }}{url}">{title}</a></li>'
|
118
|
+
})
|
119
|
+
</script>
|
data/_sass/_helper.scss
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
.fas {
|
5
5
|
line-height: 2.25rem !important;
|
6
6
|
}
|
7
|
+
.invert{
|
8
|
+
filter: invert(100%);
|
9
|
+
}
|
7
10
|
.custom-icon {
|
8
11
|
content: "";
|
9
12
|
background: url(https://via.placeholder.com/48x48) no-repeat;
|
@@ -13,3 +16,13 @@
|
|
13
16
|
height: 48px;
|
14
17
|
float: left;
|
15
18
|
}
|
19
|
+
.custom-button-icons {
|
20
|
+
content: "";
|
21
|
+
background: url(https://via.placeholder.com/48x48) no-repeat;
|
22
|
+
background-position: center center;
|
23
|
+
background-size: contain !important;
|
24
|
+
display: block;
|
25
|
+
width: 15px;
|
26
|
+
height: 15px;
|
27
|
+
float: left;
|
28
|
+
}
|
data/_sass/_icons.scss
CHANGED
@@ -3,3 +3,19 @@
|
|
3
3
|
@extend .custom-icon;
|
4
4
|
background: url(/assets/img/icons/handshake.svg) no-repeat;
|
5
5
|
}
|
6
|
+
.icon-download:before {
|
7
|
+
@extend .custom-button-icons;
|
8
|
+
background: url(/assets/img/icons/download.svg) no-repeat;
|
9
|
+
}
|
10
|
+
.icon-external:before {
|
11
|
+
@extend .custom-button-icons;
|
12
|
+
background: url(/assets/img/icons/external.svg) no-repeat;
|
13
|
+
transform: rotate(-90deg);
|
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
|
+
}
|
data/_sass/_layout.scss
CHANGED
@@ -177,6 +177,75 @@ ul {
|
|
177
177
|
.navbar-dropdown {
|
178
178
|
display: none;
|
179
179
|
}
|
180
|
+
// Search
|
181
|
+
.navbar-search{
|
182
|
+
padding-left: 0.75rem !important;
|
183
|
+
padding-top: 0.5rem !important;
|
184
|
+
}
|
185
|
+
//Search overlay
|
186
|
+
.overlay {
|
187
|
+
height: 100%;
|
188
|
+
width: 100%;
|
189
|
+
display: none;
|
190
|
+
position: fixed;
|
191
|
+
z-index: 40;
|
192
|
+
top: 0;
|
193
|
+
left: 0;
|
194
|
+
background-color: #1e7d73be;
|
195
|
+
}
|
196
|
+
|
197
|
+
.overlay-content {
|
198
|
+
position: relative;
|
199
|
+
top: 46%;
|
200
|
+
width: 80%;
|
201
|
+
margin-top: 30px;
|
202
|
+
margin: auto;
|
203
|
+
}
|
204
|
+
|
205
|
+
.overlay .closebtn {
|
206
|
+
font-size: 60px;
|
207
|
+
cursor: pointer;
|
208
|
+
color: white;
|
209
|
+
}
|
210
|
+
|
211
|
+
.overlay .closebtn:hover {
|
212
|
+
color: #ccc;
|
213
|
+
}
|
214
|
+
|
215
|
+
.overlay input[type=text] {
|
216
|
+
padding: 15px;
|
217
|
+
font-size: 17px;
|
218
|
+
float: left;
|
219
|
+
width: 80%;
|
220
|
+
background: white;
|
221
|
+
border: 3px solid $primary-dark;
|
222
|
+
}
|
223
|
+
|
224
|
+
.overlay input[type=text]:hover {
|
225
|
+
background: #f1f1f1;
|
226
|
+
}
|
227
|
+
|
228
|
+
.overlay button {
|
229
|
+
float: left;
|
230
|
+
width: 20%;
|
231
|
+
padding: 15px;
|
232
|
+
background: #ddd;
|
233
|
+
font-size: 17px;
|
234
|
+
border: none;
|
235
|
+
cursor: pointer;
|
236
|
+
}
|
237
|
+
|
238
|
+
.overlay button:hover {
|
239
|
+
background: #bbb;
|
240
|
+
}
|
241
|
+
|
242
|
+
.search-item {
|
243
|
+
color: white;
|
244
|
+
}
|
245
|
+
.overlay-content ul{
|
246
|
+
list-style-type: none;
|
247
|
+
}
|
248
|
+
|
180
249
|
.button.is-dark.has-dropdown:hover .navbar-dropdown,
|
181
250
|
.button.is-dark.is-hovered.has-dropdown .navbar-dropdown {
|
182
251
|
display: block;
|
@@ -1061,6 +1130,7 @@ div.faq {
|
|
1061
1130
|
}
|
1062
1131
|
.breadcrumb a {
|
1063
1132
|
color: #1e7d73;
|
1133
|
+
cursor: default;
|
1064
1134
|
}
|
1065
1135
|
.navbar {
|
1066
1136
|
padding-bottom: 2.3rem;
|
@@ -1094,6 +1164,9 @@ div.faq {
|
|
1094
1164
|
color: #ffffff;
|
1095
1165
|
}
|
1096
1166
|
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
1097
1170
|
// Mobil
|
1098
1171
|
|
1099
1172
|
@include mobile {
|
Binary file
|
@@ -0,0 +1,6 @@
|
|
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)"><g>
|
4
|
+
<path d="M11.33,14.08a.94.94,0,0,0,1.34,0l9-9A.95.95,0,0,0,21,3.5H19.56a.93.93,0,0,0-.67.28l-6.54,6.53a.48.48,0,0,1-.7,0L5.11,3.78a1,1,0,0,0-.67-.28H3a.95.95,0,0,0-.67,1.61Z" style="fill: #000000"></path>
|
5
|
+
<path d="M22.39,17.67H1.61a1.42,1.42,0,1,0,0,2.83H22.39a1.42,1.42,0,1,0,0-2.83Z" style="fill: #000000"></path>
|
6
|
+
</g></g></svg>
|
Binary file
|
@@ -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="M21.5,4a1.5,1.5,0,0,0-3,0V15.76a.25.25,0,0,1-.15.23.26.26,0,0,1-.28-.05l-13-13A1.5,1.5,0,0,0,2.94,5.06l13,13a.24.24,0,0,1,0,.27.25.25,0,0,1-.23.15H4a1.5,1.5,0,0,0,0,3H19a2.5,2.5,0,0,0,1.78-.74A2.53,2.53,0,0,0,21.5,19Z" style="fill: #000000"></path></g></svg>
|
Binary file
|
@@ -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,15 @@ 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
|
+
|
55
|
+
function openSearch() {
|
56
|
+
document.getElementById("SearchOverlay").style.display = "block";
|
57
|
+
}
|
58
|
+
|
59
|
+
function closeSearch() {
|
60
|
+
document.getElementById("SearchOverlay").style.display = "none";
|
61
|
+
}
|
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
|
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.
|
4
|
+
version: 0.1.51
|
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-
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -61,7 +61,13 @@ files:
|
|
61
61
|
- assets/img/arrow-left.png
|
62
62
|
- assets/img/download_link.png
|
63
63
|
- assets/img/external-link.png
|
64
|
+
- assets/img/icons/download.png
|
65
|
+
- assets/img/icons/download.svg
|
66
|
+
- assets/img/icons/external.png
|
67
|
+
- assets/img/icons/external.svg
|
64
68
|
- assets/img/icons/handshake.svg
|
69
|
+
- assets/img/icons/internal.png
|
70
|
+
- assets/img/icons/search.svg
|
65
71
|
- assets/img/internal-link.png
|
66
72
|
- assets/img/logo-black.png
|
67
73
|
- assets/img/logo-dites.png
|