@leuffen/themejs1 3.0.7 → 3.0.9

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/_variables.scss CHANGED
@@ -31,8 +31,3 @@ $border-radius: 0 !default;
31
31
 
32
32
 
33
33
 
34
- .tjs__navbar-blox {
35
- --height: 88px !important;
36
- }
37
-
38
-
@@ -1,18 +1,33 @@
1
+ @import "bootstrap/scss/bootstrap";
2
+
1
3
  .tjs__e-card-default {
4
+
5
+ border: 1px solid var(--bs-gray-500);
6
+ background-color: white;
2
7
  height: 100%;
3
8
  min-width: 300px;
4
9
 
5
10
  &.card {
6
11
  height: 100%;
7
12
  }
8
- .card-body {
9
- height: 100%;
10
- }
11
- img {
13
+
14
+ --aspect-ratio: var(--layout-aspect-ratio, 16 / 9);
15
+
16
+ .tjs__e-card-default__img {
12
17
  width: 100%;
18
+ aspect-ratio: var(--aspect-ratio);
19
+ display: block;
20
+ overflow: hidden;
21
+ img {
22
+
23
+ width: 100%;
24
+ height: 100%;
25
+ object-fit: cover;
26
+ }
27
+ }
28
+
29
+ .tjs__e-card-default__body {
30
+ @extend .p-4;
13
31
  height: 100%;
14
- --joda-class: card-img-top;
15
- aspect-ratio: 16 / 9;
16
- object-fit: cover;
17
32
  }
18
33
  }
@@ -4,9 +4,12 @@ import {Joda} from "@leuffen/jodastyle";
4
4
  Joda.registerTemplate("e-card-default",
5
5
  // language=HTML
6
6
  `
7
- <div class="card tjs__e-card-default">
8
- <slot data-select="img" data-replace></slot>
9
- <div class="card-body text-format p-4">
7
+ <div class="tjs__e-card-default">
8
+ <div class="tjs__e-card-default__img">
9
+ <slot data-select="img" data-replace></slot>
10
+ </div>
11
+
12
+ <div class="tjs__e-card-default__body text-format">
10
13
  <slot></slot>
11
14
  </div>
12
15
  </div>
package/late.scss CHANGED
@@ -1,4 +1,3 @@
1
1
  /* Very imporant for Pagespeed: Load fonts last */
2
2
  @import "themes/_vendor/font-bootstrap-icons";
3
3
  @import "themes/_vendor/font-ubuntu";
4
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leuffen/themejs1",
3
- "version": "3.0.7",
3
+ "version": "3.0.9",
4
4
  "description": "",
5
5
  "license": "proprietary",
6
6
  "main": "./dist/index.js",
@@ -1,8 +1,9 @@
1
1
 
2
2
 
3
3
  .tjs__hero-max {
4
- --joda-class: ":: mobile :lg: desktop";
4
+ --s-box-background: rgba(255, 255, 255, 0.8);
5
5
 
6
+ --joda-class: ":: mobile :lg: desktop";
6
7
  --layout-image-ratio: 6 / 4;
7
8
 
8
9
  &.mobile {
@@ -32,7 +33,7 @@
32
33
 
33
34
  &.box {
34
35
  .content {
35
- background: rgba(255, 255, 255, 0.8);
36
+ background: var(--s-box-background);
36
37
  padding: var(--content-padding, 1rem);
37
38
  }
38
39
 
@@ -162,6 +162,18 @@
162
162
  }
163
163
 
164
164
 
165
+ .brand {
166
+ display: grid;
167
+ min-height: var(--height);
168
+ place-items: center;
169
+ a {
170
+ font-size: 1.4em;
171
+ line-height: 1.0em;
172
+ color: black;
173
+ text-decoration: none;
174
+ }
175
+ }
176
+
165
177
  .sidenav-positioner {
166
178
  position: relative;
167
179
  }
@@ -20,6 +20,11 @@
20
20
  &:has(> .aside) {
21
21
  --joda-class: "col-12 col-md-6 order-2 order-md-1";
22
22
  }
23
+ slot {
24
+ display: block;
25
+ width: 100%;
26
+ height: 100%;
27
+ }
23
28
  img {
24
29
  height: 100%;
25
30
  width: 100%;
@@ -11,8 +11,8 @@ Joda.registerTemplate("sec-card-2col",
11
11
  <div class="tjs__sec-card-2col--col-start tjs__section-text">
12
12
  <slot></slot>
13
13
  </div>
14
- <div class="tjs__sec-card-2col--col-end image-side">
15
- <slot data-select="img, .children > .section-hr.aside" data-replace data-limit="1"></slot>
14
+ <div class="tjs__sec-card-2col--col-end image-side ">
15
+ <slot class="[[layout.slideshow === true ? 'slideshow' : '']]" data-select="img, .children > .section-hr.aside" [[layout.slideshow !== true ? 'data-limit="1"' : '' ]]></slot>
16
16
  </div>
17
17
  </div>
18
18
  </div>