@leuffen/themejs1 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_tpl/_root/.kick.yml +5 -0
- package/_tpl/_root/.schiller-context.txt +12 -0
- package/_tpl/_root/docs/_includes/el/lang-chooser-list.html +24 -0
- package/_tpl/_root/docs/_includes/footer.md +2 -2
- package/_tpl/_root/docs/_layouts/0_blanc.html +9 -5
- package/_tpl/_root/docs/_layouts/3_1_navbar.html +1 -1
- package/_tpl/pages/hausarzt-index-singleleistung.de.md +1 -1
- package/dist/sections/navbar-switch2/navbar-switch2.d.ts +1 -0
- package/dist/sections/navbar-switch2/navbar-switch2.js +44 -0
- package/dist/sections/sections.d.ts +1 -0
- package/dist/sections/sections.js +1 -0
- package/package.json +7 -7
- package/sections/navbar-switch2/navbar-switch2.scss +274 -0
- package/sections/navbar-switch2/navbar-switch2.ts +47 -0
- package/sections/sections.scss +1 -0
- package/sections/sections.ts +1 -0
package/_tpl/_root/.kick.yml
CHANGED
|
@@ -11,6 +11,11 @@ command:
|
|
|
11
11
|
jekyll: |
|
|
12
12
|
jekyll serve -s /opt/docs -d /var/www/html --drafts --livereload --port 4000 --livereload-port 4100 --host 0.0.0.0
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
# Create a Backup to send to customer
|
|
16
|
+
export:
|
|
17
|
+
- "jekyll build -s /opt/docs -d /tmp/build && tar -cf /opt/backup_html.tar --transform 's,^,www/,' -C /tmp/build --exclude='./.*' . && tar -rf /opt/backup_html.tar --transform 's,^,source/,' -C /opt/docs --exclude='./.*' . && gzip /opt/backup_html.tar"
|
|
18
|
+
|
|
14
19
|
dev:
|
|
15
20
|
- killall jekyll || echo "no job"
|
|
16
21
|
- killall webpack || echo "no job"
|
|
@@ -7,6 +7,10 @@ explizit vor Namen im Context genannt wurden.
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
Gliederung der Leistungen: (Onkologie)
|
|
11
|
+
- Diagnostik und Bewertung
|
|
12
|
+
- Behandlung
|
|
13
|
+
- Nachsorge und Support
|
|
10
14
|
|
|
11
15
|
Gliederung für Leistungen: (Allgemeinmediziner)
|
|
12
16
|
- Vorsorge
|
|
@@ -78,6 +82,14 @@ Für HNO-Ärzte:
|
|
|
78
82
|

|
|
79
83
|

|
|
80
84
|
|
|
85
|
+
Für Onkologen:
|
|
86
|
+

|
|
87
|
+

|
|
88
|
+

|
|
89
|
+

|
|
90
|
+
|
|
81
91
|
Für Hebammen und Frauenärzte:
|
|
82
92
|

|
|
83
93
|

|
|
94
|
+
|
|
95
|
+
Nutze generische Bilder, wenn kein passendes Bild zum Inhalt vorliegt.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<div class="" style="" id="langchooser">
|
|
2
|
+
{% for _lang in site.data.languages %}
|
|
3
|
+
{% assign _page = site.pages | where: "pid", page.pid | where: "lang", _lang.lang | first %}
|
|
4
|
+
<a class="flag {% if _page.lang == page.lang %}active{% endif %} {% if _page == null %}disabled{% endif %}" href="{{ site.baseurl }}{{ _page.url }}">
|
|
5
|
+
<img class="border border-dark" src="https://cdn.leuffen.de/global/flags/4x3/{{ _lang.flag }}.svg" alt="{{ _lang.name }}" width="21" height="16" style="">
|
|
6
|
+
</a>
|
|
7
|
+
{% endfor %}
|
|
8
|
+
</div>
|
|
9
|
+
<style>
|
|
10
|
+
#langchooser .flag {
|
|
11
|
+
margin: 0 10px;
|
|
12
|
+
padding: 2px;
|
|
13
|
+
}
|
|
14
|
+
#langchooser a.disabled {
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#langchooser img {
|
|
19
|
+
opacity: 0.5;
|
|
20
|
+
}
|
|
21
|
+
#langchooser .active img {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
### Kontakt
|
|
2
|
+
### {% include do/trans.html val="Kontakt" %}
|
|
3
3
|
|
|
4
4
|
{% include el/address.html %}
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
### Links
|
|
11
11
|
|
|
12
|
-
{% assign navi2 = site.pages | where: "lang",
|
|
12
|
+
{% assign navi2 = site.pages | where: "lang", "de" | where: "ptags", "footernav" | sort: "order" %}
|
|
13
13
|
{%- for it in navi2 -%}
|
|
14
14
|
{%- assign title = it.short_title | default: it.title -%}
|
|
15
15
|
- [{{title}}]({%- include do/link.html pid=it.pid -%})
|
|
@@ -85,14 +85,18 @@ layout: null
|
|
|
85
85
|
{{ js | replace: "</script>", "<\/script>"}}
|
|
86
86
|
</script>
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
{% comment %} ======== Liquid script for alternative language links ======= {% endcomment %}
|
|
89
|
+
{%- assign alt_lang_pages = site.pages | where: "pid", page.pid | where_exp: "item", "item.lang != page.lang" -%}
|
|
90
|
+
{%- for alt_page in alt_lang_pages -%}
|
|
91
|
+
<link rel="alternate" href="{{ alt_page.url | absolute_url }}" hreflang="{{ alt_page.lang }}" />
|
|
92
|
+
{% endfor %}
|
|
89
93
|
|
|
90
94
|
|
|
91
95
|
</head>
|
|
92
96
|
{{ content }}
|
|
93
97
|
|
|
94
|
-
<script src="assets/dist/index.js" type="module" defer async></script>
|
|
95
|
-
<link rel="preload" href="assets/dist/style_custom.css" as="style" onload="this.onload=null;this.rel='stylesheet';">
|
|
96
|
-
<link rel="preload" href="assets/dist/style.css" as="style" onload="this.onload=null;this.rel='stylesheet';this.nextElementSibling.rel='preload'">
|
|
97
|
-
<link rel="" href="assets/dist/style_late.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
98
|
+
<script src="assets/dist/index.js?{{ site.time | date: '%Y%m%d%H%M%S' }}" type="module" defer async></script>
|
|
99
|
+
<link rel="preload" href="assets/dist/style_custom.css?{{ site.time | date: '%Y%m%d%H%M%S' }}" as="style" onload="this.onload=null;this.rel='stylesheet';">
|
|
100
|
+
<link rel="preload" href="assets/dist/style.css?{{ site.time | date: '%Y%m%d%H%M%S' }}" as="style" onload="this.onload=null;this.rel='stylesheet';this.nextElementSibling.rel='preload'">
|
|
101
|
+
<link rel="" href="assets/dist/style_late.css?{{ site.time | date: '%Y%m%d%H%M%S' }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
98
102
|
</html>
|
|
@@ -7,7 +7,7 @@ layout: 2_script
|
|
|
7
7
|
|
|
8
8
|
<div class="brand" style="margin-right: 20px;z-index: 0">
|
|
9
9
|
<a href="/">
|
|
10
|
-
<img src="/assets/logo.webp" alt="{{ site.data.general.logoalt }}" height="64" class="p-1" style="float:left">
|
|
10
|
+
<img src="/assets/logo.webp" alt="{{ site.data.general.logoalt }}" height="64" class="p-1 loader-image" style="float:left">
|
|
11
11
|
<div style="font-size: 1.1em;float:right" class="m-2 text-black">
|
|
12
12
|
<div style="font-size: 1.1em">{{ site.data.general.fachrichtung}}</div>
|
|
13
13
|
<div style="font-size: 1.6em">{{ site.data.general.logoalt }}</div>
|
|
@@ -25,7 +25,7 @@ type: website
|
|
|
25
25
|

|
|
26
26
|
{: .background}
|
|
27
27
|
|
|
28
|
-
# Augenarzt<br>Prof. Dr. Daniel
|
|
28
|
+
# Augenarzt<br>Prof. Dr. Daniel Mustermann
|
|
29
29
|
{: .section-h3 layout="use: #hero-slide; align-self: self-end; justify-self: left; x-adjust: 0%; y-adjust: 0% " .sec-box .sec-slide}
|
|
30
30
|
|
|
31
31
|
---
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// language=HTML
|
|
2
|
+
import { Joda } from "@leuffen/jodastyle";
|
|
3
|
+
const html = `
|
|
4
|
+
|
|
5
|
+
<nav class="isl-navbar-switch2 :: mobile :xl:">
|
|
6
|
+
|
|
7
|
+
<div class="isl-navbar-switch2__top-bar container-xxl">
|
|
8
|
+
<slot data-select="ul.navbar-top"></slot>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="isl-navbar-switch2__nav">
|
|
11
|
+
<div class="container-xl">
|
|
12
|
+
<div class="isl-navbar-switch2__nav--inner">
|
|
13
|
+
<div class="isl-navbar-switch2__nav--logo">
|
|
14
|
+
<slot data-select=".brand"></slot>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="isl-navbar-switch2__nav--items :: d-none :xl: d-block">
|
|
17
|
+
<slot data-select="ul.navbar-main" data-child-class="isl-navbar-switch2__nav--items-item"></slot>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="isl-navbar-switch2__nav--mobile-menu :: :xl: d-none" >
|
|
20
|
+
<div class="isl-navbar-switch2__nav--mobile-menu-selector" onclick="this.closest('nav').classList.toggle('sidebar')">
|
|
21
|
+
<div></div>
|
|
22
|
+
<div></div>
|
|
23
|
+
<div></div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<aside>
|
|
31
|
+
<div class="backdrop" onclick="this.closest('nav').classList.remove('sidebar')"></div>
|
|
32
|
+
<div class="menu">
|
|
33
|
+
<div class="menu-header">
|
|
34
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16" onclick="this.closest('nav').classList.remove('sidebar')">
|
|
35
|
+
<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
|
|
36
|
+
</svg>
|
|
37
|
+
</div>
|
|
38
|
+
<slot data-select="ul.navbar-main" data-copy="1" data-child-class="isl-navbar-switch2__nav--items-item"></slot>
|
|
39
|
+
</div>
|
|
40
|
+
</aside>
|
|
41
|
+
</nav>
|
|
42
|
+
|
|
43
|
+
`;
|
|
44
|
+
Joda.registerTemplate("navbar-switch2", html);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./navbar-blox/navbar-blox";
|
|
2
2
|
import "./navbar-centerlogo/navbar-centerlogo";
|
|
3
|
+
import "./navbar-switch2/navbar-switch2";
|
|
3
4
|
import "./sec-legal-content/sec-legal-content";
|
|
4
5
|
import "./sec-testimonial-ribbon/sec-testimonial-ribbon";
|
|
5
6
|
import "./sec-card-2col/sec-card-2col";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./navbar-blox/navbar-blox";
|
|
2
2
|
import "./navbar-centerlogo/navbar-centerlogo";
|
|
3
|
+
import "./navbar-switch2/navbar-switch2";
|
|
3
4
|
import "./sec-legal-content/sec-legal-content";
|
|
4
5
|
import "./sec-testimonial-ribbon/sec-testimonial-ribbon";
|
|
5
6
|
import "./sec-card-2col/sec-card-2col";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leuffen/themejs1",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "proprietary",
|
|
@@ -58,15 +58,11 @@
|
|
|
58
58
|
"@kasimirjs/embed": "^1.0.23",
|
|
59
59
|
"@leuffen/isl-base": "^3.0.7",
|
|
60
60
|
"@leuffen/liscom": "^2.0.10",
|
|
61
|
-
"@leuffen/liscom-loader": "^1.
|
|
61
|
+
"@leuffen/liscom-loader": "^1.1.10",
|
|
62
62
|
"@leuffen/liweco-base": "^2.0.3",
|
|
63
63
|
"@micx/lib-js": "^1.0.22",
|
|
64
|
-
"bootstrap": "^5.3.0"
|
|
64
|
+
"bootstrap": "^5.3.0",
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
66
|
"@kasimirjs/kit-bootstrap": "^1.0.4",
|
|
71
67
|
"markdown-it": "^13.0.1",
|
|
72
68
|
"markdown-it-attrs": "^4.1.6",
|
|
@@ -81,6 +77,10 @@
|
|
|
81
77
|
"webpack": "^5.75.0",
|
|
82
78
|
"webpack-cli": "^5.0.1",
|
|
83
79
|
"webpack-dev-server": "^4.11.1"
|
|
80
|
+
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"make.mjs": "tsc -d",
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
@import "bootstrap/scss/functions";
|
|
2
|
+
|
|
3
|
+
// 2. Include any default variable overrides here
|
|
4
|
+
|
|
5
|
+
// 3. Include remainder of required Bootstrap stylesheets
|
|
6
|
+
@import "bootstrap/scss/variables";
|
|
7
|
+
|
|
8
|
+
// 4. Include any default map overrides here
|
|
9
|
+
|
|
10
|
+
// 5. Include remainder of required parts
|
|
11
|
+
@import "bootstrap/scss/maps";
|
|
12
|
+
@import "bootstrap/scss/mixins";
|
|
13
|
+
@import "bootstrap/scss/root";
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
.isl-navbar-switch2 {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
background: transparent;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
img {
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__top-bar {
|
|
29
|
+
margin-top: 15px;
|
|
30
|
+
margin-bottom: 15px;
|
|
31
|
+
|
|
32
|
+
ul {
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: end;
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
&>li {
|
|
37
|
+
list-style: none;
|
|
38
|
+
border-radius: 0;
|
|
39
|
+
padding: 7px 15px;
|
|
40
|
+
|
|
41
|
+
height: auto;
|
|
42
|
+
p {
|
|
43
|
+
margin-bottom: 0;
|
|
44
|
+
font-size: 15px;
|
|
45
|
+
color: $black;
|
|
46
|
+
}
|
|
47
|
+
&:not(:last-child) {
|
|
48
|
+
margin-right: 30px;
|
|
49
|
+
}
|
|
50
|
+
a {
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__nav {
|
|
58
|
+
background: $white;
|
|
59
|
+
border-radius: 0;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 80px;
|
|
62
|
+
align-content: center;
|
|
63
|
+
box-shadow: 0px 1px 2px #00000029;
|
|
64
|
+
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
&--inner {
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: end;
|
|
69
|
+
align-items: center;
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--logo {
|
|
74
|
+
margin-right: auto;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&--items {
|
|
80
|
+
display: flex;
|
|
81
|
+
margin-bottom: 0;
|
|
82
|
+
|
|
83
|
+
ul {
|
|
84
|
+
margin-bottom: 0;
|
|
85
|
+
|
|
86
|
+
li {
|
|
87
|
+
list-style: none;
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
a {
|
|
90
|
+
|
|
91
|
+
font-size: 18px;
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
margin-right: 2rem;
|
|
94
|
+
height: 80px;
|
|
95
|
+
line-height: 80px;
|
|
96
|
+
color: var(--text-color, black);
|
|
97
|
+
padding: 0 1rem;
|
|
98
|
+
transition: 0.3s;
|
|
99
|
+
text-decoration: none;
|
|
100
|
+
|
|
101
|
+
@include media-breakpoint-down(lg) {
|
|
102
|
+
margin-right: 0.5rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:hover {
|
|
106
|
+
background: $primary;
|
|
107
|
+
color: $white;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&--mobile-menu {
|
|
116
|
+
position: relative;
|
|
117
|
+
width: 35px;
|
|
118
|
+
height: 30px;
|
|
119
|
+
opacity: 0.6;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
|
|
122
|
+
&-selector {
|
|
123
|
+
position: absolute;
|
|
124
|
+
padding: 20px; // Make the clickable area bigger
|
|
125
|
+
margin: -20px; // Make the clickable area bigger
|
|
126
|
+
z-index: 3;
|
|
127
|
+
div {
|
|
128
|
+
width: 35px;
|
|
129
|
+
height: 3px;
|
|
130
|
+
background-color: black;
|
|
131
|
+
margin: 6px 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.floating {
|
|
143
|
+
position: absolute;
|
|
144
|
+
top:0;
|
|
145
|
+
left:0;
|
|
146
|
+
right:0;
|
|
147
|
+
z-index: 999;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&.mobile {
|
|
151
|
+
|
|
152
|
+
&.floating {
|
|
153
|
+
position: static;
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
.isl-navbar-switch2__top-bar {
|
|
157
|
+
justify-content: unset;
|
|
158
|
+
|
|
159
|
+
&--item {
|
|
160
|
+
&:last-child {
|
|
161
|
+
margin-left: auto;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
.isl-navbar-switch2__nav {
|
|
170
|
+
height: auto;
|
|
171
|
+
padding: 20px 10px 20px 0;
|
|
172
|
+
|
|
173
|
+
&--inner {
|
|
174
|
+
justify-content: unset;
|
|
175
|
+
padding-left: unset;
|
|
176
|
+
padding-right: unset;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&--items {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&--logo {
|
|
184
|
+
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
aside {
|
|
193
|
+
&>.backdrop {
|
|
194
|
+
position: fixed;
|
|
195
|
+
background-color: var(--nav-sidbar-backgrond-color, $primary);
|
|
196
|
+
opacity: 0.4;
|
|
197
|
+
top:0; bottom: 0; left: 0; right: 0;
|
|
198
|
+
width: 100%;
|
|
199
|
+
height: 100%;
|
|
200
|
+
transform: scale(0%);
|
|
201
|
+
-webkit-transform: scale(0, 0);
|
|
202
|
+
transition: all 0.1s ease-in-out;
|
|
203
|
+
z-index:9998;
|
|
204
|
+
}
|
|
205
|
+
&>.menu {
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
position: fixed;
|
|
209
|
+
top: 0; bottom: 0; right: 0;
|
|
210
|
+
width: 90vw;
|
|
211
|
+
max-width: 300px;
|
|
212
|
+
z-index: 9999;
|
|
213
|
+
transform: translateX(100%);
|
|
214
|
+
background-color: var(--nav-sidbar-backgrond-color, $primary);
|
|
215
|
+
// Do big black shadow
|
|
216
|
+
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
|
|
217
|
+
transition: all 0.2s ease-in-out;
|
|
218
|
+
|
|
219
|
+
ul {
|
|
220
|
+
padding: 0;
|
|
221
|
+
margin: 0;
|
|
222
|
+
&>li {
|
|
223
|
+
list-style: none;
|
|
224
|
+
width: 100%;
|
|
225
|
+
&>a {
|
|
226
|
+
&:hover {
|
|
227
|
+
background-color: var(--nav-sidbar-backgrond-color-hover, darken($primary, 10%));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
display: block;
|
|
231
|
+
text-decoration: none;
|
|
232
|
+
width: 100%;
|
|
233
|
+
padding: 15px;
|
|
234
|
+
color: $white;
|
|
235
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&>.menu-header {
|
|
241
|
+
width: 100%;
|
|
242
|
+
border-bottom: 1px solid rgba(255, 255,255,0.5);
|
|
243
|
+
display: flex;
|
|
244
|
+
align-content: center;
|
|
245
|
+
justify-content: end;
|
|
246
|
+
|
|
247
|
+
&>svg {
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
margin: 20px;
|
|
250
|
+
color: $white;
|
|
251
|
+
height: 38px;
|
|
252
|
+
width: 38px;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&.sidebar {
|
|
260
|
+
aside {
|
|
261
|
+
&>.backdrop {
|
|
262
|
+
transform: scale(100%);
|
|
263
|
+
-webkit-transform: scale(100%, 100%);
|
|
264
|
+
}
|
|
265
|
+
&>.menu {
|
|
266
|
+
transform: translateX(0%);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
// language=HTML
|
|
3
|
+
import {Joda, JodaDescriptionManager} from "@leuffen/jodastyle";
|
|
4
|
+
|
|
5
|
+
const html = `
|
|
6
|
+
|
|
7
|
+
<nav class="isl-navbar-switch2 :: mobile :xl:">
|
|
8
|
+
|
|
9
|
+
<div class="isl-navbar-switch2__top-bar container-xxl">
|
|
10
|
+
<slot data-select="ul.navbar-top"></slot>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="isl-navbar-switch2__nav">
|
|
13
|
+
<div class="container-xl">
|
|
14
|
+
<div class="isl-navbar-switch2__nav--inner">
|
|
15
|
+
<div class="isl-navbar-switch2__nav--logo">
|
|
16
|
+
<slot data-select=".brand"></slot>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="isl-navbar-switch2__nav--items :: d-none :xl: d-block">
|
|
19
|
+
<slot data-select="ul.navbar-main" data-child-class="isl-navbar-switch2__nav--items-item"></slot>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="isl-navbar-switch2__nav--mobile-menu :: :xl: d-none" >
|
|
22
|
+
<div class="isl-navbar-switch2__nav--mobile-menu-selector" onclick="this.closest('nav').classList.toggle('sidebar')">
|
|
23
|
+
<div></div>
|
|
24
|
+
<div></div>
|
|
25
|
+
<div></div>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<aside>
|
|
33
|
+
<div class="backdrop" onclick="this.closest('nav').classList.remove('sidebar')"></div>
|
|
34
|
+
<div class="menu">
|
|
35
|
+
<div class="menu-header">
|
|
36
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16" onclick="this.closest('nav').classList.remove('sidebar')">
|
|
37
|
+
<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
|
|
38
|
+
</svg>
|
|
39
|
+
</div>
|
|
40
|
+
<slot data-select="ul.navbar-main" data-copy="1" data-child-class="isl-navbar-switch2__nav--items-item"></slot>
|
|
41
|
+
</div>
|
|
42
|
+
</aside>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
Joda.registerTemplate("navbar-switch2", html);
|
package/sections/sections.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@import "defaults";
|
|
3
3
|
@import "navbar-blox/navbar-blox.scss";
|
|
4
4
|
@import "navbar-centerlogo/navbar-centerlogo.scss";
|
|
5
|
+
@import "navbar-switch2/navbar-switch2";
|
|
5
6
|
@import "sec-legal-content/sec-legal-content";
|
|
6
7
|
@import "sec-testimonial-ribbon/sec-testimonial-ribbon";
|
|
7
8
|
@import "sec-card-2col/sec-card-2col";
|
package/sections/sections.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import "./navbar-blox/navbar-blox";
|
|
3
3
|
import "./navbar-centerlogo/navbar-centerlogo";
|
|
4
|
+
import "./navbar-switch2/navbar-switch2";
|
|
4
5
|
import "./sec-legal-content/sec-legal-content";
|
|
5
6
|
import "./sec-testimonial-ribbon/sec-testimonial-ribbon";
|
|
6
7
|
import "./sec-card-2col/sec-card-2col";
|