@kitconcept/volto-light-theme 8.0.0-alpha.17 → 8.0.0-alpha.19
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/.changelog.draft +8 -21
- package/CHANGELOG.md +27 -0
- package/package.json +3 -3
- package/src/components/Blocks/EventCalendar/Search/components/EventTemplate.tsx +1 -1
- package/src/components/Blocks/Listing/DefaultTemplate.jsx +5 -5
- package/src/components/Blocks/Listing/GridTemplate.jsx +9 -6
- package/src/components/Blocks/Listing/ListingBody.jsx +1 -1
- package/src/components/Blocks/Listing/SummaryTemplate.jsx +9 -6
- package/src/components/Blocks/Teaser/DefaultBody.tsx +0 -1
- package/src/components/Summary/DefaultSummary.tsx +10 -3
- package/src/components/Summary/EventSummary.tsx +10 -3
- package/src/components/Summary/FileSummary.tsx +10 -3
- package/src/components/Summary/NewsItemSummary.tsx +10 -3
- package/src/components/Summary/PersonSummary.tsx +10 -3
- package/src/components/Summary/Summary.stories.tsx +46 -30
- package/src/primitives/Card/Card.stories.tsx +4 -1
- package/src/primitives/Card/Card.test.tsx +11 -33
- package/src/primitives/Card/Card.tsx +33 -49
- package/src/theme/_bgcolor-blocks-layout.scss +27 -41
- package/src/theme/_export_import.scss +94 -0
- package/src/theme/_footer.scss +27 -1
- package/src/theme/_header.scss +13 -1
- package/src/theme/_insets.scss +1 -1
- package/src/theme/_layout.scss +15 -10
- package/src/theme/_search-page.scss +25 -0
- package/src/theme/_typo-custom.scss +12 -5
- package/src/theme/_variables.scss +10 -5
- package/src/theme/blocks/_accordion.scss +10 -4
- package/src/theme/blocks/_grid.scss +0 -77
- package/src/theme/blocks/_listing.scss +54 -129
- package/src/theme/blocks/_search.scss +3 -4
- package/src/theme/blocks/_table.scss +1 -0
- package/src/theme/blocks/_teaser.scss +7 -118
- package/src/theme/card.scss +107 -70
- package/src/theme/main.scss +1 -0
- package/src/theme/person.scss +7 -1
|
@@ -37,13 +37,6 @@
|
|
|
37
37
|
padding-top: 0;
|
|
38
38
|
margin-bottom: 0;
|
|
39
39
|
|
|
40
|
-
// External link icon
|
|
41
|
-
a.external {
|
|
42
|
-
.card-summary h2:after {
|
|
43
|
-
@include external-link-icon();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
40
|
a {
|
|
48
41
|
text-decoration: none;
|
|
49
42
|
}
|
|
@@ -55,39 +48,6 @@
|
|
|
55
48
|
) !important;
|
|
56
49
|
}
|
|
57
50
|
}
|
|
58
|
-
|
|
59
|
-
.teaser-item {
|
|
60
|
-
height: 100%;
|
|
61
|
-
|
|
62
|
-
.image-wrapper {
|
|
63
|
-
margin-bottom: $spacing-medium;
|
|
64
|
-
|
|
65
|
-
img {
|
|
66
|
-
position: relative;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
.content {
|
|
70
|
-
padding: 0 $spacing-small $spacing-small $spacing-small;
|
|
71
|
-
@include body-text();
|
|
72
|
-
|
|
73
|
-
.headline {
|
|
74
|
-
margin-bottom: $spacing-small;
|
|
75
|
-
letter-spacing: 1px;
|
|
76
|
-
text-transform: uppercase;
|
|
77
|
-
@include headtitle1();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
h2 {
|
|
81
|
-
padding: 0;
|
|
82
|
-
margin-bottom: $spacing-small !important;
|
|
83
|
-
@include text-heading-h3();
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
p {
|
|
87
|
-
margin-bottom: $spacing-small;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
51
|
}
|
|
92
52
|
|
|
93
53
|
.block-editor-teaser {
|
|
@@ -303,11 +263,6 @@
|
|
|
303
263
|
#page-add .block-editor-gridBlock .block.gridBlock {
|
|
304
264
|
@media only screen and (min-width: $largest-mobile-screen) {
|
|
305
265
|
.one {
|
|
306
|
-
.block.teaser .teaser-item .content h2 {
|
|
307
|
-
margin-bottom: $spacing-medium !important;
|
|
308
|
-
@include text-heading-h2();
|
|
309
|
-
}
|
|
310
|
-
|
|
311
266
|
.slate {
|
|
312
267
|
h2 {
|
|
313
268
|
margin-bottom: $spacing-medium !important;
|
|
@@ -330,14 +285,6 @@
|
|
|
330
285
|
|
|
331
286
|
.two,
|
|
332
287
|
.three {
|
|
333
|
-
.teaser {
|
|
334
|
-
.teaser-item .content {
|
|
335
|
-
h2 {
|
|
336
|
-
margin-bottom: $spacing-small !important;
|
|
337
|
-
@include text-heading-h3();
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
288
|
.image {
|
|
342
289
|
figcaption {
|
|
343
290
|
.title {
|
|
@@ -364,26 +311,6 @@
|
|
|
364
311
|
}
|
|
365
312
|
|
|
366
313
|
.four {
|
|
367
|
-
.teaser {
|
|
368
|
-
.teaser-item {
|
|
369
|
-
.image-wrapper {
|
|
370
|
-
margin-bottom: $spacing-small !important;
|
|
371
|
-
}
|
|
372
|
-
.content {
|
|
373
|
-
.headline {
|
|
374
|
-
@include headtitle2();
|
|
375
|
-
}
|
|
376
|
-
h2 {
|
|
377
|
-
margin-bottom: $spacing-small !important;
|
|
378
|
-
@include text-heading-h4();
|
|
379
|
-
}
|
|
380
|
-
p {
|
|
381
|
-
margin-bottom: 0;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
314
|
.image {
|
|
388
315
|
figcaption {
|
|
389
316
|
.title {
|
|
@@ -424,10 +351,6 @@
|
|
|
424
351
|
margin-bottom: 0;
|
|
425
352
|
}
|
|
426
353
|
|
|
427
|
-
.block.gridBlock h2.title {
|
|
428
|
-
margin-bottom: $spacing-small !important;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
354
|
// Watch out for the following rule, it is used to override the default
|
|
432
355
|
// behavior of the block editor when selecting a block but it stopped working
|
|
433
356
|
// if the z-index is still -1 (from 6.0.0-alpha.0)
|
|
@@ -15,38 +15,54 @@
|
|
|
15
15
|
.block-editor-search,
|
|
16
16
|
.block.rssBlock,
|
|
17
17
|
.block-editor-rssBlock {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
.items {
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
& + .pagination-wrapper {
|
|
22
|
+
margin-top: $spacing-xlarge;
|
|
23
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
24
|
+
margin-top: $spacing-large;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
&:not(:has(+ .pagination-wrapper)) {
|
|
28
|
+
.listing-item:last-child {
|
|
29
|
+
padding-bottom: 0;
|
|
30
|
+
border-bottom: none;
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
|
|
33
|
+
.card-inner {
|
|
34
|
+
padding-bottom: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
23
37
|
}
|
|
24
38
|
}
|
|
25
39
|
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
&.next--has--same--backgroundColor.next--is--same--block-type:not(
|
|
41
|
+
:last-child
|
|
42
|
+
),
|
|
43
|
+
&.next--is--__button {
|
|
44
|
+
.items > .listing-item:last-child {
|
|
45
|
+
border-bottom: 1px solid var(--theme-font-color, black);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
&.next--is--__button {
|
|
49
|
+
margin-bottom: 0 !important;
|
|
50
|
+
.listing-item:last-child {
|
|
51
|
+
padding-bottom: $spacing-medium !important;
|
|
30
52
|
}
|
|
31
53
|
}
|
|
32
54
|
|
|
33
55
|
.listing-item {
|
|
34
|
-
padding-bottom: 40px !important;
|
|
35
56
|
border-bottom: 1px solid $black;
|
|
36
57
|
margin-bottom: 40px;
|
|
58
|
+
.card-summary {
|
|
59
|
+
padding: 0;
|
|
37
60
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
@include external-link-icon();
|
|
61
|
+
p:empty {
|
|
62
|
+
display: none;
|
|
41
63
|
}
|
|
42
64
|
}
|
|
43
65
|
|
|
44
|
-
&:last-child {
|
|
45
|
-
padding-bottom: 0 !important;
|
|
46
|
-
border-bottom: none !important;
|
|
47
|
-
margin-bottom: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
66
|
img {
|
|
51
67
|
object-fit: cover;
|
|
52
68
|
}
|
|
@@ -54,44 +70,15 @@
|
|
|
54
70
|
.card-inner a {
|
|
55
71
|
display: inline;
|
|
56
72
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
h2.headline {
|
|
60
|
-
@container (max-width: #{$default-container-width + 2 * 20px}) {
|
|
61
|
-
margin-right: 20px !important;
|
|
62
|
-
margin-left: 20px !important;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Default variation
|
|
67
|
-
&.default,
|
|
68
|
-
& .default-variation {
|
|
69
|
-
.headline {
|
|
70
|
-
@include block-title();
|
|
71
|
-
}
|
|
72
73
|
|
|
73
|
-
.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
text-transform: uppercase;
|
|
82
|
-
@include headtitle1();
|
|
83
|
-
}
|
|
84
|
-
h2 {
|
|
85
|
-
margin-top: 0;
|
|
86
|
-
margin-bottom: $spacing-medium;
|
|
87
|
-
@include text-heading-h2();
|
|
88
|
-
}
|
|
89
|
-
p {
|
|
90
|
-
margin-bottom: 0;
|
|
91
|
-
@include body-text();
|
|
92
|
-
}
|
|
93
|
-
p:empty {
|
|
94
|
-
display: none;
|
|
74
|
+
.title {
|
|
75
|
+
display: block;
|
|
76
|
+
margin-top: 0;
|
|
77
|
+
margin-bottom: $spacing-medium !important;
|
|
78
|
+
@include text-heading-h2();
|
|
79
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
80
|
+
@include text-heading-h3();
|
|
81
|
+
margin-bottom: $spacing-small;
|
|
95
82
|
}
|
|
96
83
|
}
|
|
97
84
|
}
|
|
@@ -100,44 +87,21 @@
|
|
|
100
87
|
&.summary,
|
|
101
88
|
& .summary-variation {
|
|
102
89
|
.listing-item {
|
|
103
|
-
padding-top: 0 !important;
|
|
104
|
-
|
|
105
90
|
.card {
|
|
106
|
-
width: 100%;
|
|
107
91
|
.card-inner .image-wrapper {
|
|
108
92
|
flex: 0 0 220px;
|
|
109
93
|
img {
|
|
94
|
+
width: 220px;
|
|
110
95
|
max-width: 100%;
|
|
96
|
+
height: min-content;
|
|
97
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
98
|
+
width: 100%;
|
|
99
|
+
min-width: 335px;
|
|
100
|
+
margin-bottom: $spacing-small;
|
|
101
|
+
}
|
|
111
102
|
}
|
|
112
103
|
}
|
|
113
104
|
}
|
|
114
|
-
|
|
115
|
-
img {
|
|
116
|
-
width: 220px;
|
|
117
|
-
height: min-content;
|
|
118
|
-
aspect-ratio: var(--image-aspect-ratio, $aspect-ratio) !important;
|
|
119
|
-
@container (max-width: #{$largest-mobile-screen}) {
|
|
120
|
-
width: 100%;
|
|
121
|
-
min-width: 335px;
|
|
122
|
-
margin-bottom: 20px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
.headline {
|
|
126
|
-
margin-bottom: 20px;
|
|
127
|
-
letter-spacing: 1px;
|
|
128
|
-
text-transform: uppercase;
|
|
129
|
-
@include headtitle1();
|
|
130
|
-
}
|
|
131
|
-
h3 {
|
|
132
|
-
margin-top: 0 !important;
|
|
133
|
-
margin-bottom: 40px !important;
|
|
134
|
-
color: $black;
|
|
135
|
-
@include text-heading-h2();
|
|
136
|
-
@container (max-width: #{$largest-mobile-screen}) {
|
|
137
|
-
@include text-heading-h3();
|
|
138
|
-
margin-bottom: 20px !important;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
105
|
}
|
|
142
106
|
}
|
|
143
107
|
|
|
@@ -159,15 +123,10 @@
|
|
|
159
123
|
flex-direction: column;
|
|
160
124
|
|
|
161
125
|
.listing-item {
|
|
162
|
-
padding-bottom:
|
|
126
|
+
padding-bottom: $spacing-small !important;
|
|
163
127
|
}
|
|
164
128
|
}
|
|
165
129
|
}
|
|
166
|
-
.headline {
|
|
167
|
-
@include block-title();
|
|
168
|
-
margin-right: 0 !important;
|
|
169
|
-
margin-left: 0 !important;
|
|
170
|
-
}
|
|
171
130
|
.listing-item {
|
|
172
131
|
align-items: normal;
|
|
173
132
|
border-bottom: none;
|
|
@@ -208,35 +167,16 @@
|
|
|
208
167
|
.card-inner {
|
|
209
168
|
.image-wrapper {
|
|
210
169
|
img {
|
|
211
|
-
width: 100%;
|
|
212
170
|
margin: 0;
|
|
213
|
-
aspect-ratio: var(--image-aspect-ratio, $aspect-ratio) !important;
|
|
214
171
|
}
|
|
215
172
|
}
|
|
216
173
|
.card-summary {
|
|
217
|
-
padding:
|
|
218
|
-
margin-top: $spacing-medium;
|
|
219
|
-
|
|
220
|
-
.headline {
|
|
221
|
-
padding: 0 !important;
|
|
222
|
-
margin-bottom: $spacing-small;
|
|
223
|
-
letter-spacing: 1px;
|
|
224
|
-
text-transform: uppercase;
|
|
225
|
-
@include headtitle1();
|
|
226
|
-
@include word-break();
|
|
227
|
-
}
|
|
174
|
+
padding: $spacing-medium $spacing-small 0 $spacing-small;
|
|
228
175
|
|
|
229
|
-
|
|
230
|
-
margin: 0 0 $spacing-small 0;
|
|
176
|
+
.title {
|
|
177
|
+
margin: 0 0 $spacing-small 0 !important;
|
|
231
178
|
@include text-heading-h3();
|
|
232
179
|
}
|
|
233
|
-
p {
|
|
234
|
-
margin-bottom: 0;
|
|
235
|
-
@include body-text();
|
|
236
|
-
}
|
|
237
|
-
p:empty {
|
|
238
|
-
display: none;
|
|
239
|
-
}
|
|
240
180
|
}
|
|
241
181
|
}
|
|
242
182
|
}
|
|
@@ -459,21 +399,6 @@
|
|
|
459
399
|
#page-edit .block-editor-listing.has--backgroundColor--grey,
|
|
460
400
|
.block.listing.has--backgroundColor--grey {
|
|
461
401
|
background-color: $lightgrey;
|
|
462
|
-
|
|
463
|
-
&.grid {
|
|
464
|
-
.listing-item {
|
|
465
|
-
.card-container {
|
|
466
|
-
background-color: $white;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
.block.listing.grid {
|
|
471
|
-
.listing-item {
|
|
472
|
-
.card-container {
|
|
473
|
-
background-color: $white;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
402
|
}
|
|
478
403
|
|
|
479
404
|
.listing-item .headline span:not(:last-child)::after {
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
#page-add,
|
|
3
3
|
#page-edit {
|
|
4
4
|
.block.search {
|
|
5
|
+
&.next--has--same--backgroundColor.next--is--same--block-type {
|
|
6
|
+
margin-bottom: $spacing-xlarge;
|
|
7
|
+
}
|
|
5
8
|
&.grid {
|
|
6
|
-
.card-container > img {
|
|
7
|
-
width: 100% !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
9
|
.listing-item:last-child {
|
|
11
10
|
padding-bottom: 0;
|
|
12
11
|
border-bottom: none;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// Override the Image component `aspect-ratio`
|
|
2
|
-
.teaser-item .image-wrapper img {
|
|
3
|
-
aspect-ratio: var(--image-aspect-ratio, $aspect-ratio) !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
// Block Teaser Standalone
|
|
7
2
|
#page-document .block.teaser {
|
|
8
3
|
@include vertical-space-teaser();
|
|
@@ -19,124 +14,18 @@
|
|
|
19
14
|
}
|
|
20
15
|
}
|
|
21
16
|
|
|
22
|
-
a.external {
|
|
23
|
-
.card-summary h2:after {
|
|
24
|
-
@include external-link-icon();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.teaser-item:not(.placeholder) {
|
|
29
|
-
align-items: start;
|
|
30
|
-
padding-bottom: 40px; // same as vertical spacing in margin-bottom
|
|
31
|
-
border-bottom: 1px solid $black;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.image-wrapper {
|
|
35
|
-
width: 100%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.has--align--left,
|
|
39
|
-
&.has--align--right {
|
|
40
|
-
.card-inner {
|
|
41
|
-
padding-bottom: 40px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.teaser-item.default {
|
|
45
|
-
display: flex;
|
|
46
|
-
|
|
47
|
-
.image-wrapper {
|
|
48
|
-
align-self: flex-start;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@media only screen and (max-width: $largest-mobile-screen) {
|
|
52
|
-
flex-direction: column !important;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.has--align--left {
|
|
58
|
-
.teaser-item.default {
|
|
59
|
-
flex-direction: row;
|
|
60
|
-
|
|
61
|
-
.image-wrapper {
|
|
62
|
-
margin-right: 20px;
|
|
63
|
-
|
|
64
|
-
@media only screen and (max-width: $largest-mobile-screen) {
|
|
65
|
-
margin-right: 0;
|
|
66
|
-
margin-bottom: 26px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.has--align--right {
|
|
73
|
-
.teaser-item.default {
|
|
74
|
-
flex-direction: row-reverse;
|
|
75
|
-
|
|
76
|
-
.image-wrapper {
|
|
77
|
-
margin-right: 0px;
|
|
78
|
-
margin-left: 20px;
|
|
79
|
-
|
|
80
|
-
@media only screen and (max-width: $largest-mobile-screen) {
|
|
81
|
-
margin-bottom: 26px;
|
|
82
|
-
margin-left: 0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.has--align--center {
|
|
89
|
-
.teaser-item.default {
|
|
90
|
-
display: block;
|
|
91
|
-
a {
|
|
92
|
-
display: block;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.image-wrapper {
|
|
96
|
-
margin-bottom: 26px;
|
|
97
|
-
@container (max-width: #{$largest-mobile-screen}) {
|
|
98
|
-
margin: 0 0 20px 0 !important;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.card-summary {
|
|
105
|
-
.headline {
|
|
106
|
-
margin-bottom: 20px;
|
|
107
|
-
letter-spacing: 1px;
|
|
108
|
-
text-transform: uppercase;
|
|
109
|
-
@include headtitle1();
|
|
110
|
-
}
|
|
111
|
-
h2 {
|
|
112
|
-
margin-top: 0;
|
|
113
|
-
margin-bottom: 20px;
|
|
114
|
-
@include text-heading-h2();
|
|
115
|
-
@container (max-width: #{$largest-mobile-screen}) {
|
|
116
|
-
@include text-heading-h3();
|
|
117
|
-
margin-bottom: 20px;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
p {
|
|
121
|
-
margin: 0;
|
|
122
|
-
@include body-text();
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
17
|
&.is--last--of--block-type,
|
|
127
18
|
&.next--has--different--backgroundColor {
|
|
128
|
-
.card-inner
|
|
129
|
-
.teaser-item.default {
|
|
19
|
+
.card-inner {
|
|
130
20
|
padding-bottom: 0;
|
|
131
21
|
border-bottom: none;
|
|
132
22
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
23
|
+
}
|
|
24
|
+
&.next--is--__button {
|
|
25
|
+
margin-bottom: 0 !important;
|
|
26
|
+
.card-inner {
|
|
27
|
+
padding-bottom: $spacing-medium;
|
|
28
|
+
border-bottom: 1px solid;
|
|
140
29
|
}
|
|
141
30
|
}
|
|
142
31
|
}
|