@leuffen/themejs1 6.1.34 → 7.0.2
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/.schiller-context.txt +4 -0
- package/_tpl/_root/docs/_includes/el/address.html +2 -0
- package/_tpl/_root/docs/_layouts/legal/impressum.html +1 -1
- package/_tpl/_root/package.json +1 -12
- package/_tpl/_root/src/_variables.scss +2 -3
- package/_tpl/pages/hausarzt-index-singleleistung.de.md +13 -5
- package/_tpl/pages/hausarzt-index.de.md +7 -4
- package/_tpl/pages/index-singlepage-frauenarzt.de.md +10 -4
- package/_tpl/pages/index.de.md +8 -4
- package/_tpl/service/online-anmeldung.de.md +49 -0
- package/_tpl/service/online-videosprechstunde.de.md +55 -0
- package/_variables.scss +8 -1
- package/dist/elements/button-group/button-group.d.ts +1 -0
- package/dist/elements/button-group/button-group.js +8 -0
- package/dist/elements/elements.d.ts +2 -0
- package/dist/elements/elements.js +2 -0
- package/dist/elements/hero-slide/hero-slide.d.ts +1 -0
- package/dist/elements/hero-slide/hero-slide.js +15 -0
- package/dist/sections/hero-max/hero-max.js +1 -7
- package/dist/sections/navbar-centerlogo/navbar-centerlogo.d.ts +1 -0
- package/dist/sections/navbar-centerlogo/navbar-centerlogo.js +77 -0
- package/dist/sections/sec-card-2col/sec-card-2col.js +2 -1
- package/dist/sections/sections.d.ts +1 -0
- package/dist/sections/sections.js +1 -0
- package/elements/_text-format.scss +3 -0
- package/elements/button-group/button-group.scss +31 -0
- package/elements/button-group/button-group.ts +10 -0
- package/elements/elements.scss +3 -0
- package/elements/elements.ts +2 -0
- package/elements/hero-slide/hero-slide.scss +44 -0
- package/elements/hero-slide/hero-slide.ts +21 -0
- package/font/cinzel-opensans.scss +9 -0
- package/font/opensans-condensed.scss +4 -1
- package/font/opensans-regular.scss +3 -0
- package/font/ubuntu.scss +3 -0
- package/package.json +10 -8
- package/sections/_defaults.scss +11 -1
- package/sections/hero-max/hero-max.scss +7 -17
- package/sections/hero-max/hero-max.ts +1 -7
- package/sections/navbar-centerlogo/_burger-menu.scss +48 -0
- package/sections/navbar-centerlogo/_sidebar.scss +80 -0
- package/sections/navbar-centerlogo/navbar-centerlogo.scss +149 -0
- package/sections/navbar-centerlogo/navbar-centerlogo.ts +88 -0
- package/sections/sec-card-2col/sec-card-2col.scss +28 -0
- package/sections/sec-card-2col/sec-card-2col.ts +2 -1
- package/sections/sec-testimonial-ribbon/sec-testimonial-ribbon.scss +6 -3
- package/sections/sections.scss +1 -0
- package/sections/sections.ts +1 -0
- package/themes/_vendor/font-cinzel.scss +26 -0
- package/themes/theme1/index.scss +3 -1
- package/themes/theme2/index.scss +1 -1
package/font/ubuntu.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leuffen/themejs1",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "proprietary",
|
|
@@ -54,17 +54,19 @@
|
|
|
54
54
|
],
|
|
55
55
|
"author": "",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@leuffen/jodastyle": "^3.
|
|
58
|
-
"@kasimirjs/embed": "^1.0.
|
|
59
|
-
"@leuffen/isl-base": "^3.0.
|
|
60
|
-
"@leuffen/liscom": "^2.0.
|
|
61
|
-
"@leuffen/liscom-loader": "^1.0.
|
|
62
|
-
"@leuffen/liweco-base": "^2.0.
|
|
57
|
+
"@leuffen/jodastyle": "^3.1.2",
|
|
58
|
+
"@kasimirjs/embed": "^1.0.23",
|
|
59
|
+
"@leuffen/isl-base": "^3.0.7",
|
|
60
|
+
"@leuffen/liscom": "^2.0.10",
|
|
61
|
+
"@leuffen/liscom-loader": "^1.0.9",
|
|
62
|
+
"@leuffen/liweco-base": "^2.0.3",
|
|
63
63
|
"@micx/lib-js": "^1.0.22",
|
|
64
64
|
"bootstrap": "^5.3.0"
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
65
68
|
},
|
|
66
69
|
"devDependencies": {
|
|
67
|
-
"@micx/lib-js": "^1.0.18",
|
|
68
70
|
"@kasimirjs/kit-bootstrap": "^1.0.4",
|
|
69
71
|
"markdown-it": "^13.0.1",
|
|
70
72
|
"markdown-it-attrs": "^4.1.6",
|
package/sections/_defaults.scss
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
--t-background-footer: #{$background-footer};
|
|
4
4
|
--t-section-background: transparent;
|
|
5
5
|
--t-section-background-accent: #{$background-accent};
|
|
6
|
-
--t-section-background-primary: #
|
|
6
|
+
--t-section-background-primary: #{$soft-primary};
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
--t-font-family-base: #{$font-family-base};
|
|
10
|
+
--t-font-family-header: #{$font-family-header};
|
|
11
|
+
|
|
12
|
+
|
|
7
13
|
|
|
8
14
|
--t-section-border-color: #{$section-border-color};
|
|
9
15
|
--t-section-border-radius: #{$section-border-radius};
|
|
@@ -27,5 +33,9 @@
|
|
|
27
33
|
--t-section-padding: 40px 0;
|
|
28
34
|
--t-section-inner-padding: 3rem;
|
|
29
35
|
|
|
36
|
+
--t-accent: #{$accent};
|
|
37
|
+
--t-primary: #{$primary};
|
|
38
|
+
--t-soft-primary: #{$soft-primary};
|
|
39
|
+
--t-soft-accent: #{$soft-accent};
|
|
30
40
|
|
|
31
41
|
}
|
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
.tjs__hero-max--container {
|
|
48
|
+
height: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
46
51
|
min-height: var(--layout-min-height, 400px);
|
|
47
52
|
position: relative;
|
|
48
53
|
&.tjs__hero-max--autoheight {
|
|
@@ -87,33 +92,18 @@
|
|
|
87
92
|
|
|
88
93
|
|
|
89
94
|
|
|
90
|
-
h1 {
|
|
91
|
-
font-size: calc(1.5em + 1vw);
|
|
92
|
-
}
|
|
93
95
|
|
|
94
96
|
.slideshow:empty {
|
|
95
97
|
display: none;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
text-shadow: 0 0 10px var(--t-text-color), 0 0 20px var(--t-text-color), 0 0 30px var(--t-text-color), 0 0 40px var(--t-text-color), 0 0 50px var(--t-text-color), 0 0 60px var(--t-text-color), 0 0 70px var(--t-text-color);
|
|
101
|
-
}
|
|
100
|
+
slot.content{
|
|
101
|
+
display: grid;
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
.tjs-_hero-max--inner-wrapper {
|
|
105
|
-
position: relative;
|
|
106
|
-
width: 100%;
|
|
107
103
|
height: 100%;
|
|
108
104
|
}
|
|
109
105
|
|
|
110
106
|
|
|
111
|
-
.tjs__hero-max--section-text {
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.offsetmodifier {
|
|
115
|
-
height: 100px;
|
|
116
|
-
}
|
|
117
107
|
|
|
118
108
|
|
|
119
109
|
}
|
|
@@ -9,19 +9,13 @@ Joda.registerTemplate("hero-max",
|
|
|
9
9
|
<slot data-select="img.background, :scope>.content>p.background>img" class="slideshow"></slot>
|
|
10
10
|
<div class="tjs__hero-max--out-wrapper ">
|
|
11
11
|
<div class="tjs__hero-max--container [[layout.container]] ">
|
|
12
|
-
<
|
|
13
|
-
<div class="tjs__hero-max--section-text">
|
|
14
|
-
<slot></slot>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
12
|
+
<slot class="content" data-select=".slide || :scope > * "></slot>
|
|
18
13
|
</div>
|
|
19
14
|
</div>
|
|
20
15
|
</section>
|
|
21
16
|
|
|
22
17
|
`,
|
|
23
18
|
{
|
|
24
|
-
cols: "6",
|
|
25
19
|
'aspect-ratio': "5/4",
|
|
26
20
|
},
|
|
27
21
|
{
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.burger-menu {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
height: 30px;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
justify-content: flex-end;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
& > .burger-menu__text {
|
|
17
|
+
padding-right: 5px;
|
|
18
|
+
font-family: var(--t-font-family-header);
|
|
19
|
+
font-size: var(--t-font-size-header);
|
|
20
|
+
color: var(--t-text-color-primary);
|
|
21
|
+
@media (width < 768px) {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& > .burger-menu__burger {
|
|
27
|
+
position: relative;
|
|
28
|
+
padding: 20px; // Make the clickable area bigger
|
|
29
|
+
margin: -20px; // Make the clickable area bigger
|
|
30
|
+
z-index: 3;
|
|
31
|
+
transition: all 0.1s ease-in-out;
|
|
32
|
+
opacity: 0.7;
|
|
33
|
+
transform: scale(1);
|
|
34
|
+
div {
|
|
35
|
+
width: 35px;
|
|
36
|
+
height: 3px;
|
|
37
|
+
background-color: var(--layout-burger-color);
|
|
38
|
+
margin: 6px 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:hover > .burger-menu__burger {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
transform: scale(1.1);
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
aside {
|
|
2
|
+
&>.backdrop {
|
|
3
|
+
position: fixed;
|
|
4
|
+
background-color: var(--nav-sidbar-backgrond-color, $primary);
|
|
5
|
+
opacity: 0.4;
|
|
6
|
+
top:0; bottom: 0; left: 0; right: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
transform: scale(0%);
|
|
10
|
+
-webkit-transform: scale(0, 0);
|
|
11
|
+
transition: all 0.1s ease-in-out;
|
|
12
|
+
z-index:9998;
|
|
13
|
+
}
|
|
14
|
+
&>.menu {
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: 0; bottom: 0; right: 0;
|
|
19
|
+
width: 90vw;
|
|
20
|
+
max-width: 300px;
|
|
21
|
+
z-index: 9999;
|
|
22
|
+
transform: translateX(100%);
|
|
23
|
+
background-color: var(--nav-sidbar-backgrond-color, $primary);
|
|
24
|
+
// Do big black shadow
|
|
25
|
+
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
|
|
26
|
+
transition: all 0.2s ease-in-out;
|
|
27
|
+
|
|
28
|
+
ul {
|
|
29
|
+
padding: 0;
|
|
30
|
+
margin: 0;
|
|
31
|
+
&>li {
|
|
32
|
+
list-style: none;
|
|
33
|
+
width: 100%;
|
|
34
|
+
&>a {
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--nav-sidbar-backgrond-color-hover, darken($primary, 10%));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
display: block;
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
width: 100%;
|
|
42
|
+
padding: 15px;
|
|
43
|
+
color: $white;
|
|
44
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&>.menu-header {
|
|
50
|
+
width: 100%;
|
|
51
|
+
border-bottom: 1px solid rgba(255, 255,255,0.5);
|
|
52
|
+
display: flex;
|
|
53
|
+
align-content: center;
|
|
54
|
+
justify-content: end;
|
|
55
|
+
|
|
56
|
+
&>svg {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
margin: 20px;
|
|
59
|
+
color: $white;
|
|
60
|
+
height: 38px;
|
|
61
|
+
width: 38px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.sidebar {
|
|
69
|
+
aside {
|
|
70
|
+
&>.backdrop {
|
|
71
|
+
transform: scale(100%);
|
|
72
|
+
-webkit-transform: scale(100%, 100%);
|
|
73
|
+
}
|
|
74
|
+
&>.menu {
|
|
75
|
+
transform: translateX(0%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
.navbar-centerlogo {
|
|
17
|
+
|
|
18
|
+
--layout-bg-default: transparent;
|
|
19
|
+
--layout-bg-sticky: #fff;
|
|
20
|
+
--layout-bg-sticky-shadow: 0px 1px 5px rgba(0, 0, 0, 0.6);
|
|
21
|
+
--layout-burger-color: var(--t-accent);
|
|
22
|
+
--layout-menu-color: var(--bs-primary);
|
|
23
|
+
--layout-image-height: 80px;
|
|
24
|
+
--layout-zoom-ratio: 2;
|
|
25
|
+
--layout-zoom-ratio-mobile: 1.3;
|
|
26
|
+
--layout-backdrop-height: 20px;
|
|
27
|
+
|
|
28
|
+
--layout-spacer-height: 0px;
|
|
29
|
+
--layout-spacer-color: rgba(255,255,255,1);
|
|
30
|
+
--layout-spacer-height-mobile: calc(var(--layout-image-height) * var(--layout-zoom-ratio-mobile));
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
--e-zoom-ratio: var(--layout-zoom-ratio);
|
|
34
|
+
@media (width < 750px) {
|
|
35
|
+
--e-zoom-ratio: var(--layout-zoom-ratio-mobile);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
&>.e--spacer {
|
|
42
|
+
@media (width < 750px) {
|
|
43
|
+
height: var(--layout-spacer-height-mobile);
|
|
44
|
+
}
|
|
45
|
+
height: var(--layout-spacer-height);
|
|
46
|
+
position: relative;
|
|
47
|
+
background-color: var(--layout-spacer-color);
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
&>.e--backdrop {
|
|
51
|
+
position: absolute;
|
|
52
|
+
width: 100vw;
|
|
53
|
+
left: 0;
|
|
54
|
+
z-index: 9;
|
|
55
|
+
height: var(--layout-backdrop-height);
|
|
56
|
+
background: linear-gradient(180deg, var(--layout-spacer-color) 0%, rgba(0,0,0,0) 100%);
|
|
57
|
+
}
|
|
58
|
+
&>.navbar {
|
|
59
|
+
background-color: var(--layout-bg-default);
|
|
60
|
+
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0;
|
|
63
|
+
width: 100vw;
|
|
64
|
+
height: auto;
|
|
65
|
+
z-index: 999;
|
|
66
|
+
|
|
67
|
+
.brand img {
|
|
68
|
+
height: auto;
|
|
69
|
+
|
|
70
|
+
width: 50%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
&.unscrolled {
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.scrolled {
|
|
80
|
+
box-shadow: var(--layout-bg-sticky-shadow);
|
|
81
|
+
img.brand {
|
|
82
|
+
width: auto;
|
|
83
|
+
height: 80px;
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
transform: translateY(0);
|
|
90
|
+
transition: all 0.3s ease-in-out;
|
|
91
|
+
&.scrollup {
|
|
92
|
+
transform: translateY(-100%);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
&>.navbar__wrapper {
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: space-between;
|
|
99
|
+
flex-wrap: nowrap;
|
|
100
|
+
flex-direction: row;
|
|
101
|
+
|
|
102
|
+
& > *{
|
|
103
|
+
flex-grow: 1;
|
|
104
|
+
display: flex;
|
|
105
|
+
width: 33%;
|
|
106
|
+
}
|
|
107
|
+
&>.navbar__logo {
|
|
108
|
+
transition: all 0.5s ease-in-out;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
display: flex;
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
img {
|
|
115
|
+
height: var(--layout-image-height);
|
|
116
|
+
transition: all 0.25s ease-in-out;
|
|
117
|
+
width: auto; transform: translateY(50% ) scale(var(--e-zoom-ratio));
|
|
118
|
+
max-width: 70vw;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
}
|
|
122
|
+
@import "burger-menu";
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
&.scrolled {
|
|
131
|
+
height: var(--layout-scrolled-height);
|
|
132
|
+
position: fixed;
|
|
133
|
+
top: 0;
|
|
134
|
+
width: 100vw;
|
|
135
|
+
background-color: var(--layout-bg-sticky);
|
|
136
|
+
.navbar__logo img {
|
|
137
|
+
transform: translateY(0) scale(1);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
@import "sidebar";
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
// language=HTML
|
|
3
|
+
import {Joda, JodaDescriptionManager} from "@leuffen/jodastyle";
|
|
4
|
+
|
|
5
|
+
const html = `
|
|
6
|
+
|
|
7
|
+
<nav class="navbar-centerlogo">
|
|
8
|
+
<div class="e--spacer"></div>
|
|
9
|
+
<div class="e--backdrop"></div>
|
|
10
|
+
<div class="navbar">
|
|
11
|
+
<div class="navbar__wrapper [[ layout.container ]]">
|
|
12
|
+
<slot class="" data-select="ul.navbar-top "></slot>
|
|
13
|
+
|
|
14
|
+
<slot class="navbar__logo" data-select="[[ layout.slot_logo_selector ]]"></slot>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<div class="burger-menu" onclick="this.closest('nav').classList.toggle('sidebar')">
|
|
19
|
+
<div class="burger-menu__text">
|
|
20
|
+
[[ layout.burger_text ]]
|
|
21
|
+
</div>
|
|
22
|
+
<div class="burger-menu__burger">
|
|
23
|
+
<div></div>
|
|
24
|
+
<div></div>
|
|
25
|
+
<div></div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
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-switch1__nav--items-item"></slot>
|
|
41
|
+
</div>
|
|
42
|
+
</aside>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
Joda.registerTemplate(
|
|
48
|
+
"navbar-centerlogo",
|
|
49
|
+
html,
|
|
50
|
+
{
|
|
51
|
+
slot_logo_selector: ".brand",
|
|
52
|
+
burger_text: "Menü",
|
|
53
|
+
container: "container",
|
|
54
|
+
|
|
55
|
+
scrollup_position: 100
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"onAfterAllTemplatesConnectedCallback": (element: HTMLElement) => {
|
|
59
|
+
// Query css variable --layout-scrollup from elment
|
|
60
|
+
|
|
61
|
+
// If the page is scrolled down, the navbar should be sticky
|
|
62
|
+
// Update this on scroll event
|
|
63
|
+
let lastY = 0;
|
|
64
|
+
let navbar = element.querySelector(".navbar")
|
|
65
|
+
let changer = () => {
|
|
66
|
+
if (window.scrollY > 1) {
|
|
67
|
+
navbar.classList.add("scrolled");
|
|
68
|
+
navbar.classList.remove("unscrolled");
|
|
69
|
+
} else {
|
|
70
|
+
navbar.classList.remove("scrolled");
|
|
71
|
+
navbar.classList.add("unscrolled");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
let isScrollingUp = window.scrollY < lastY;
|
|
75
|
+
lastY = window.scrollY;
|
|
76
|
+
|
|
77
|
+
if (window.scrollY > 250 && ! isScrollingUp) {
|
|
78
|
+
navbar.classList.add("scrollup");
|
|
79
|
+
} else {
|
|
80
|
+
navbar.classList.remove("scrollup");
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
window.addEventListener("scroll", changer, {passive: true});
|
|
86
|
+
changer()
|
|
87
|
+
}
|
|
88
|
+
});
|
|
@@ -5,11 +5,39 @@
|
|
|
5
5
|
background: var(--t-section-background);
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
--layout-title-aspect-ratio: 16 / 9;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
.tjs__sec-card-2col--col-start > slot > .children > *:last-child {
|
|
9
13
|
margin-bottom: 0 !important;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
|
|
17
|
+
|
|
18
|
+
slot.title {
|
|
19
|
+
&:empty {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
display: block;
|
|
23
|
+
width: 100%;
|
|
24
|
+
text-align: center;
|
|
25
|
+
|
|
26
|
+
aspect-ratio: var(--layout-title-aspect-ratio);
|
|
27
|
+
|
|
28
|
+
object-fit: cover;
|
|
29
|
+
object-position: center center;
|
|
30
|
+
&>p {
|
|
31
|
+
display: contents;
|
|
32
|
+
}
|
|
33
|
+
img {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
object-fit: cover;
|
|
37
|
+
object-position: center center;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
13
41
|
map.aside {
|
|
14
42
|
--joda-class: "";
|
|
15
43
|
display: block;
|
|
@@ -10,13 +10,14 @@ Joda.registerTemplate(
|
|
|
10
10
|
|
|
11
11
|
<section class="tjs__sec-card-2col [[layout.class]] :: mobile :lg: desktop">
|
|
12
12
|
<div class="tjs__sec-card-2col--container [[layout.container]]">
|
|
13
|
+
<slot class="title" data-select="img.title || .title > img"></slot>
|
|
13
14
|
<div class="row [[layout.order === 'reverse' ? 'flex-column-reverse': '']] [[layout.mobile_reverse === 'yes' ? ':: flex-column-reverse :lg:': '']]">
|
|
14
15
|
<div class="tjs__sec-card-2col--col-start tjs__section-text p-4 p-lg-5 :: col-12 :lg: col-[[layout.cols]]">
|
|
15
16
|
<slot></slot>
|
|
16
17
|
</div>
|
|
17
18
|
<div class="tjs__sec-card-2col--col-end image-side :: col-12 :lg: col-[[12 - layout.cols]] ">
|
|
18
19
|
|
|
19
|
-
<slot class="[[layout.slideshow === true ? 'slideshow' : '']]" data-select="img, .children > .section-hr.aside
|
|
20
|
+
<slot class="[[layout.slideshow === true ? 'slideshow' : '']]" data-select=".aside || img, .children > .section-hr.aside" [[layout.slideshow !== true ? 'data-limit="1"' : '' ]]></slot>
|
|
20
21
|
</div>
|
|
21
22
|
</div>
|
|
22
23
|
</div>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
.tjs__sec-testimonial-ribbon {
|
|
2
|
-
padding: var(--t-section-padding);
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
--layout-bg: var(--t-section-background);
|
|
4
|
+
--layout-bg-ribbon: var(--t-soft-primary);
|
|
5
|
+
|
|
6
|
+
padding: var(--t-section-padding);
|
|
7
|
+
background-color: var(--layout-bg);
|
|
5
8
|
|
|
6
9
|
&.mobile {
|
|
7
10
|
padding-top: 40px;
|
|
@@ -26,7 +29,7 @@
|
|
|
26
29
|
& > .tjs__sec-testimonial-ribbon--wrapper {
|
|
27
30
|
padding-top: 40px;
|
|
28
31
|
padding-bottom: 40px;
|
|
29
|
-
background-color: var(--
|
|
32
|
+
background-color: var(--layout-bg-ribbon);
|
|
30
33
|
font-size: 1.2em;
|
|
31
34
|
font-style: italic;
|
|
32
35
|
letter-spacing: 1px;
|
package/sections/sections.scss
CHANGED
package/sections/sections.ts
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Cinzel";
|
|
3
|
+
src: url("https://cdn.leuffen.de/global/fonts/cinzel/Cinzel-Regular.woff?v=1.101") format("woff");
|
|
4
|
+
font-weight: 300;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "Cinzel";
|
|
12
|
+
src: url("https://cdn.leuffen.de/global/fonts/cinzel/Cinzel-Bold.woff?v=1.101") format("woff");
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: "Cinzel";
|
|
21
|
+
src: url("https://cdn.leuffen.de/global/fonts/cinzel/Cinzel-Black.woff?v=1.101") format("woff");
|
|
22
|
+
font-weight: 900;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
|
|
26
|
+
}
|
package/themes/theme1/index.scss
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
text-transform: var(--t-header-text-transform, uppercase);
|
|
56
56
|
font-weight: bold;
|
|
57
57
|
font-size: 16px;
|
|
58
|
+
font-family: var(--t-font-family-base);
|
|
58
59
|
color: var(--t-text-color-primary) !important;
|
|
59
60
|
margin: var(--t-paragraf-margin);
|
|
60
61
|
}
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
h2, blockquote > p {
|
|
63
64
|
font-size: 1.9em;
|
|
64
65
|
line-height: 1.2em;
|
|
66
|
+
font-family: var(--t-font-family-header);
|
|
65
67
|
color: var(--t-text-color) !important;
|
|
66
68
|
margin: var(--t-header-margin, 0 0 20px 0);
|
|
67
69
|
hyphens: manual;
|
|
@@ -155,7 +157,7 @@
|
|
|
155
157
|
}
|
|
156
158
|
.content {
|
|
157
159
|
background-color: #fff;
|
|
158
|
-
p {
|
|
160
|
+
p,ul,ol {
|
|
159
161
|
margin: 20px 20px 20px 0;
|
|
160
162
|
}
|
|
161
163
|
}
|