@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
package/src/theme/card.scss
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
.card {
|
|
2
|
+
// Base
|
|
2
3
|
position: relative;
|
|
4
|
+
width: 100%;
|
|
3
5
|
transition: box-shadow 0.15s ease;
|
|
4
|
-
}
|
|
5
6
|
|
|
6
|
-
.card
|
|
7
|
-
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
7
|
+
&:has(.card-primary-link) {
|
|
8
|
+
cursor: pointer;
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
// Primary card link stretched via ::after pseudo-element
|
|
11
|
+
.card-summary .card-primary-link {
|
|
12
|
+
color: inherit;
|
|
13
|
+
font: inherit;
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
&::after {
|
|
16
|
+
position: absolute;
|
|
17
|
+
z-index: 0;
|
|
18
|
+
content: '';
|
|
19
|
+
inset: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
// Image
|
|
22
25
|
.image-wrapper {
|
|
23
26
|
width: 100%;
|
|
24
27
|
|
|
@@ -30,48 +33,66 @@
|
|
|
30
33
|
aspect-ratio: var(--image-aspect-ratio, $aspect-ratio) !important;
|
|
31
34
|
}
|
|
32
35
|
}
|
|
36
|
+
&:not(.contained) .card-inner {
|
|
37
|
+
padding-bottom: $spacing-medium;
|
|
33
38
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
40
|
+
padding-top: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.previous--has--different--backgroundColor & .card-inner {
|
|
44
|
+
padding-top: 0;
|
|
45
|
+
}
|
|
37
46
|
|
|
47
|
+
// Summary
|
|
48
|
+
:not(.has--align--left, .has--align--right) > & .card-summary {
|
|
49
|
+
padding-top: $spacing-medium;
|
|
50
|
+
}
|
|
51
|
+
.card-summary {
|
|
52
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
53
|
+
padding-top: $spacing-small !important;
|
|
54
|
+
}
|
|
38
55
|
.headline {
|
|
39
|
-
margin-bottom:
|
|
56
|
+
margin-bottom: $spacing-small;
|
|
40
57
|
letter-spacing: 1px;
|
|
41
58
|
text-transform: uppercase;
|
|
42
59
|
@include headtitle1();
|
|
43
60
|
}
|
|
44
|
-
|
|
61
|
+
|
|
62
|
+
.title {
|
|
45
63
|
margin-top: 0;
|
|
46
|
-
margin-bottom:
|
|
64
|
+
margin-bottom: $spacing-small !important; // Override margin from volto
|
|
47
65
|
@include text-heading-h2();
|
|
66
|
+
|
|
48
67
|
@container (max-width: #{$largest-mobile-screen}) {
|
|
49
68
|
@include text-heading-h3();
|
|
50
|
-
margin-bottom:
|
|
69
|
+
margin-bottom: $spacing-small;
|
|
51
70
|
}
|
|
52
71
|
}
|
|
72
|
+
|
|
53
73
|
p {
|
|
54
74
|
margin: 0;
|
|
55
75
|
@include body-text();
|
|
76
|
+
|
|
77
|
+
&:empty {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
56
80
|
}
|
|
57
81
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
.contained & .card-inner {
|
|
64
|
-
background: var(--theme-high-contrast-color);
|
|
82
|
+
// Additional links within the card
|
|
83
|
+
a:not(.card-primary-link) {
|
|
84
|
+
position: relative;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
cursor: pointer;
|
|
65
87
|
}
|
|
66
88
|
|
|
89
|
+
// Contained
|
|
67
90
|
.contained & .card-summary {
|
|
68
|
-
padding-right:
|
|
69
|
-
padding-left:
|
|
91
|
+
padding-right: $spacing-small;
|
|
92
|
+
padding-left: $spacing-small;
|
|
70
93
|
}
|
|
71
|
-
}
|
|
72
94
|
|
|
73
|
-
//
|
|
74
|
-
.card {
|
|
95
|
+
// Side-aligned
|
|
75
96
|
.has--align--left:not(.contained) &,
|
|
76
97
|
.has--align--right:not(.contained) & {
|
|
77
98
|
.card-inner {
|
|
@@ -80,84 +101,60 @@
|
|
|
80
101
|
.image-wrapper {
|
|
81
102
|
flex: 1 1 50%;
|
|
82
103
|
|
|
83
|
-
@
|
|
84
|
-
margin
|
|
85
|
-
margin-bottom: 26px;
|
|
104
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
105
|
+
margin: 0;
|
|
86
106
|
}
|
|
87
107
|
}
|
|
88
108
|
|
|
89
109
|
.card-summary {
|
|
90
|
-
// width: 50%;
|
|
91
110
|
flex: 1 1 50%;
|
|
92
|
-
padding: 0;
|
|
111
|
+
// padding: 0;
|
|
93
112
|
}
|
|
94
113
|
}
|
|
95
114
|
}
|
|
96
115
|
|
|
97
116
|
.has--align--left:not(.contained) & {
|
|
98
117
|
.image-wrapper {
|
|
99
|
-
margin-right:
|
|
118
|
+
margin-right: $spacing-small;
|
|
100
119
|
}
|
|
101
120
|
}
|
|
102
121
|
|
|
103
|
-
.has--align--right & {
|
|
122
|
+
.has--align--right:not(.contained) & {
|
|
104
123
|
.card-inner {
|
|
105
124
|
flex-direction: row-reverse;
|
|
106
125
|
}
|
|
107
126
|
|
|
108
127
|
.image-wrapper {
|
|
109
|
-
margin-right:
|
|
110
|
-
margin-left:
|
|
128
|
+
margin-right: 0;
|
|
129
|
+
margin-left: $spacing-small;
|
|
111
130
|
}
|
|
112
131
|
}
|
|
113
|
-
}
|
|
114
132
|
|
|
115
|
-
@container (max-width: #{$largest-mobile-screen}) {
|
|
116
|
-
.card {
|
|
133
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
117
134
|
.has--align--left:not(.contained) &,
|
|
118
135
|
.has--align--right:not(.contained) & {
|
|
119
136
|
.card-inner {
|
|
120
137
|
display: block;
|
|
121
138
|
}
|
|
139
|
+
|
|
122
140
|
.image-wrapper {
|
|
123
141
|
margin-right: 0;
|
|
124
142
|
margin-left: 0;
|
|
125
143
|
}
|
|
126
144
|
}
|
|
127
145
|
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Heading sizes
|
|
131
|
-
@container (min-width: #{$largest-mobile-screen}) {
|
|
132
|
-
.card {
|
|
133
|
-
.card-summary {
|
|
134
|
-
.one & h2 {
|
|
135
|
-
margin-bottom: 40px !important;
|
|
136
|
-
@include text-heading-h2();
|
|
137
|
-
}
|
|
138
|
-
.two & h2,
|
|
139
|
-
.three & h2 {
|
|
140
|
-
@include text-heading-h3();
|
|
141
|
-
}
|
|
142
|
-
.four & h2 {
|
|
143
|
-
@include text-heading-h4();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
146
|
|
|
149
|
-
// Listing
|
|
150
|
-
.card {
|
|
147
|
+
// Listing
|
|
151
148
|
.card-listing & .card-inner {
|
|
152
149
|
display: flex;
|
|
153
150
|
|
|
154
151
|
.image-wrapper {
|
|
155
152
|
flex: 0 1 var(--card-listing-image-size, 220px);
|
|
156
|
-
margin-right:
|
|
153
|
+
margin-right: $spacing-small;
|
|
157
154
|
|
|
158
|
-
@
|
|
155
|
+
@container (max-width: #{$largest-mobile-screen}) {
|
|
159
156
|
margin-right: 0;
|
|
160
|
-
margin-bottom:
|
|
157
|
+
margin-bottom: $spacing-small;
|
|
161
158
|
}
|
|
162
159
|
}
|
|
163
160
|
|
|
@@ -167,3 +164,43 @@
|
|
|
167
164
|
}
|
|
168
165
|
}
|
|
169
166
|
}
|
|
167
|
+
|
|
168
|
+
// Cards in columns
|
|
169
|
+
@container (min-width: #{$largest-mobile-screen}) {
|
|
170
|
+
.card {
|
|
171
|
+
.card-inner {
|
|
172
|
+
.one & {
|
|
173
|
+
.card-summary {
|
|
174
|
+
padding-top: $spacing-medium;
|
|
175
|
+
}
|
|
176
|
+
.title {
|
|
177
|
+
margin-bottom: $spacing-medium !important; // Override margin from volto
|
|
178
|
+
@include text-heading-h2();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.two &,
|
|
183
|
+
.three & {
|
|
184
|
+
.card-summary {
|
|
185
|
+
padding-top: $spacing-medium;
|
|
186
|
+
}
|
|
187
|
+
.title {
|
|
188
|
+
@include text-heading-h3();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.four & {
|
|
193
|
+
.card-summary {
|
|
194
|
+
padding-top: $spacing-small;
|
|
195
|
+
}
|
|
196
|
+
padding-bottom: $spacing-small;
|
|
197
|
+
.headline {
|
|
198
|
+
@include headtitle2();
|
|
199
|
+
}
|
|
200
|
+
.title {
|
|
201
|
+
@include text-heading-h4();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
package/src/theme/main.scss
CHANGED
package/src/theme/person.scss
CHANGED
|
@@ -166,11 +166,17 @@ body .block.gridBlock .contained .person-teaser .card-inner {
|
|
|
166
166
|
display: flex;
|
|
167
167
|
align-items: center;
|
|
168
168
|
margin-bottom: $spacing-small;
|
|
169
|
+
svg {
|
|
170
|
+
margin-right: 0.25em;
|
|
171
|
+
}
|
|
169
172
|
}
|
|
170
173
|
|
|
171
174
|
.summary-room-phone {
|
|
172
175
|
display: flex;
|
|
173
176
|
gap: $spacing-small;
|
|
177
|
+
svg {
|
|
178
|
+
margin-right: 0.25em;
|
|
179
|
+
}
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
// One person teaser in Grid, edit mode
|
|
@@ -214,7 +220,7 @@ body .block.gridBlock .contained .person-teaser .card-inner {
|
|
|
214
220
|
|
|
215
221
|
img {
|
|
216
222
|
width: 100%;
|
|
217
|
-
height: 100
|
|
223
|
+
height: 100% !important;
|
|
218
224
|
object-fit: cover;
|
|
219
225
|
object-position: center;
|
|
220
226
|
}
|