@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.
Files changed (36) hide show
  1. package/.changelog.draft +8 -21
  2. package/CHANGELOG.md +27 -0
  3. package/package.json +3 -3
  4. package/src/components/Blocks/EventCalendar/Search/components/EventTemplate.tsx +1 -1
  5. package/src/components/Blocks/Listing/DefaultTemplate.jsx +5 -5
  6. package/src/components/Blocks/Listing/GridTemplate.jsx +9 -6
  7. package/src/components/Blocks/Listing/ListingBody.jsx +1 -1
  8. package/src/components/Blocks/Listing/SummaryTemplate.jsx +9 -6
  9. package/src/components/Blocks/Teaser/DefaultBody.tsx +0 -1
  10. package/src/components/Summary/DefaultSummary.tsx +10 -3
  11. package/src/components/Summary/EventSummary.tsx +10 -3
  12. package/src/components/Summary/FileSummary.tsx +10 -3
  13. package/src/components/Summary/NewsItemSummary.tsx +10 -3
  14. package/src/components/Summary/PersonSummary.tsx +10 -3
  15. package/src/components/Summary/Summary.stories.tsx +46 -30
  16. package/src/primitives/Card/Card.stories.tsx +4 -1
  17. package/src/primitives/Card/Card.test.tsx +11 -33
  18. package/src/primitives/Card/Card.tsx +33 -49
  19. package/src/theme/_bgcolor-blocks-layout.scss +27 -41
  20. package/src/theme/_export_import.scss +94 -0
  21. package/src/theme/_footer.scss +27 -1
  22. package/src/theme/_header.scss +13 -1
  23. package/src/theme/_insets.scss +1 -1
  24. package/src/theme/_layout.scss +15 -10
  25. package/src/theme/_search-page.scss +25 -0
  26. package/src/theme/_typo-custom.scss +12 -5
  27. package/src/theme/_variables.scss +10 -5
  28. package/src/theme/blocks/_accordion.scss +10 -4
  29. package/src/theme/blocks/_grid.scss +0 -77
  30. package/src/theme/blocks/_listing.scss +54 -129
  31. package/src/theme/blocks/_search.scss +3 -4
  32. package/src/theme/blocks/_table.scss +1 -0
  33. package/src/theme/blocks/_teaser.scss +7 -118
  34. package/src/theme/card.scss +107 -70
  35. package/src/theme/main.scss +1 -0
  36. package/src/theme/person.scss +7 -1
@@ -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:has(> a):hover,
7
- .card:has(> a):focus-within {
8
- cursor: pointer;
9
- }
7
+ &:has(.card-primary-link) {
8
+ cursor: pointer;
10
9
 
11
- .card a {
12
- inset: 0; /* top:0 right:0 bottom:0 left:0 */
13
- text-decoration: none; /* remove default underline */
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
- .card .card-summary,
17
- .card .card-summary * {
18
- user-select: text; /* explicit for clarity */
19
- }
15
+ &::after {
16
+ position: absolute;
17
+ z-index: 0;
18
+ content: '';
19
+ inset: 0;
20
+ }
21
+ }
22
+ }
20
23
 
21
- .card {
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
- .card-summary {
35
- padding-top: 40px;
36
- padding-bottom: 40px;
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: 20px;
56
+ margin-bottom: $spacing-small;
40
57
  letter-spacing: 1px;
41
58
  text-transform: uppercase;
42
59
  @include headtitle1();
43
60
  }
44
- h2 {
61
+
62
+ .title {
45
63
  margin-top: 0;
46
- margin-bottom: 20px;
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: 20px;
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
- // Variants
61
- // // Contained
62
- .card {
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: 20px;
69
- padding-left: 20px;
91
+ padding-right: $spacing-small;
92
+ padding-left: $spacing-small;
70
93
  }
71
- }
72
94
 
73
- // // Side-aligned
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
- @media only screen and (max-width: $largest-mobile-screen) {
84
- margin-right: 0;
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: 20px;
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: 0px;
110
- margin-left: 20px;
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: 20px;
153
+ margin-right: $spacing-small;
157
154
 
158
- @media only screen and (max-width: $largest-mobile-screen) {
155
+ @container (max-width: #{$largest-mobile-screen}) {
159
156
  margin-right: 0;
160
- margin-bottom: 26px;
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
+ }
@@ -44,6 +44,7 @@
44
44
  @import 'person';
45
45
  @import 'notfound';
46
46
  @import 'search-page';
47
+ @import 'export_import';
47
48
 
48
49
  @import 'temp';
49
50
 
@@ -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
  }