@kitconcept/volto-light-theme 1.0.0-rc.3 → 1.0.0-rc.4

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.
@@ -1,6 +1,7 @@
1
1
  name: Release and deploy
2
2
  on:
3
- - push
3
+ push:
4
+ workflow_dispatch:
4
5
 
5
6
  env:
6
7
  ENVIRONMENT: "light-theme.kitconcept.io"
package/CHANGELOG.md CHANGED
@@ -8,6 +8,13 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 1.0.0-rc.4 (2023-07-11)
12
+
13
+ ### Bugfix
14
+
15
+ - Fix Teaser block CSS. @danalvrz [#134](https://github.com/kitconcept/volto-light-theme/pull/134)
16
+
17
+
11
18
  ## 1.0.0-rc.3 (2023-07-10)
12
19
 
13
20
  ### Breaking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.4",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -40,10 +40,10 @@ const GridTemplate = ({ items, linkTitle, linkHref, isEditMode }) => {
40
40
  componentName="PreviewImage"
41
41
  item={item}
42
42
  alt=""
43
- className="grid-item-image"
43
+ className="item-image"
44
44
  />
45
45
  )}
46
- <div className="grid-item">
46
+ <div className="item">
47
47
  <div className="content">
48
48
  {item?.head_title && (
49
49
  <div className="headline">{item.head_title}</div>
package/src/index.js CHANGED
@@ -35,6 +35,7 @@ defineMessages({
35
35
 
36
36
  const applyConfig = (config) => {
37
37
  config.settings.enableAutoBlockGroupingByBackgroundColor = true;
38
+ config.settings.navDepth = 3;
38
39
 
39
40
  // No required blocks (eg. Title)
40
41
  config.blocks.requiredBlocks = [];
@@ -49,7 +50,14 @@ const applyConfig = (config) => {
49
50
  ...config.settings.apiExpanders,
50
51
  {
51
52
  match: '',
52
- GET_CONTENT: ['breadcrumbs', 'navigation', 'actions', 'types'],
53
+ GET_CONTENT: ['breadcrumbs', 'actions', 'types'],
54
+ },
55
+ {
56
+ match: '',
57
+ GET_CONTENT: ['navigation'],
58
+ querystring: {
59
+ 'expand.navigation.depth': config.settings.navDepth,
60
+ },
53
61
  },
54
62
  ];
55
63
 
@@ -30,3 +30,9 @@
30
30
  }
31
31
  }
32
32
  }
33
+
34
+ .contenttype-file {
35
+ .content-area a {
36
+ text-decoration: underline;
37
+ }
38
+ }
@@ -164,7 +164,7 @@ footer {
164
164
  & > .block.heading .heading-wrapper,
165
165
  & > .block.separator.has--align--full .line,
166
166
  & > .block.introduction .block-container,
167
- & > .block.teaser .grid-teaser-item.default,
167
+ & > .block.teaser .teaser-item.default,
168
168
  & > .table-of-contents,
169
169
  & > .slate blockquote {
170
170
  @include default-container-width();
@@ -233,7 +233,7 @@ footer {
233
233
  .block-editor-separator.has--align--full .block.separator,
234
234
  .block-editor-separator .block.separator.has--align--full,
235
235
  .block.teaser.has--align--center,
236
- .block-editor-teaser .grid-teaser-item.default,
236
+ .block-editor-teaser .teaser-item.default,
237
237
  .block-editor-toc {
238
238
  @include default-container-width();
239
239
  @include adjustMarginsToContainer($default-container-width);
@@ -301,10 +301,4 @@ body.has-toolbar.has-sidebar .block .ui.basic.button.delete-button {
301
301
  }
302
302
  }
303
303
 
304
- .contenttype-file {
305
- a {
306
- text-decoration: underline;
307
- }
308
- }
309
-
310
304
  @import 'bgcolor-blocks-layout';
@@ -16,10 +16,10 @@
16
16
  .block.teaser {
17
17
  margin-bottom: 0;
18
18
  background-color: $lightgrey;
19
- .grid-teaser-item {
19
+ .teaser-item {
20
20
  height: 100%;
21
21
 
22
- .grid-image-wrapper {
22
+ .image-wrapper {
23
23
  margin: 0 0 40px 0 !important;
24
24
 
25
25
  img {
@@ -54,7 +54,7 @@
54
54
  .block-editor-teaser {
55
55
  padding: 0;
56
56
  margin: 0.5rem !important;
57
- .grid-teaser-item {
57
+ .teaser-item {
58
58
  border: none !important;
59
59
  }
60
60
  }
@@ -128,10 +128,18 @@
128
128
  margin: 0.5rem !important;
129
129
  }
130
130
 
131
- .listing {
131
+ .block.listing {
132
132
  h2 {
133
133
  margin-bottom: 40px !important;
134
134
  }
135
+ &.previous--is--same--block-type.previous--has--same--backgroundColor:not(.has--headline) {
136
+ margin-top: unset;
137
+ }
138
+ .listing-item,
139
+ .listing-item:last-child {
140
+ padding-bottom: 40px !important;
141
+ border-bottom: 1px solid $black !important;
142
+ }
135
143
  }
136
144
 
137
145
  .block-editor-empty {
@@ -144,7 +152,7 @@
144
152
  .block.gridBlock,
145
153
  .block-editor-gridBlock {
146
154
  .one {
147
- .grid-teaser-item .content h2 {
155
+ .teaser-item .content h2 {
148
156
  margin-bottom: 40px !important;
149
157
  @include text-heading-h2();
150
158
  }
@@ -159,7 +167,7 @@
159
167
  .two,
160
168
  .three {
161
169
  .teaser {
162
- .grid-teaser-item .content {
170
+ .teaser-item .content {
163
171
  h2 {
164
172
  margin-bottom: 20px !important;
165
173
  @include text-heading-h3();
@@ -187,8 +195,8 @@
187
195
 
188
196
  .four {
189
197
  .teaser {
190
- .grid-teaser-item {
191
- .grid-image-wrapper {
198
+ .teaser-item {
199
+ .image-wrapper {
192
200
  margin-bottom: 20px !important;
193
201
  }
194
202
  .content {
@@ -239,7 +247,7 @@
239
247
  #page-add .block-editor-gridBlock.has--backgroundColor--grey,
240
248
  #page-edit .block-editor-gridBlock.has--backgroundColor--grey {
241
249
  background-color: $lightgrey;
242
- .grid-teaser-item {
250
+ .teaser-item {
243
251
  background: white;
244
252
  }
245
253
  .slate {
@@ -1,5 +1,6 @@
1
1
  // Listing Block
2
- .block.listing {
2
+ .block.listing,
3
+ .column > .block.listing {
3
4
  &.next--has--same--backgroundColor.next--is--same--block-type,
4
5
  &.next--is--__button {
5
6
  .listing-item:last-child {
@@ -13,7 +14,7 @@
13
14
  border-bottom: 1px solid $black;
14
15
  margin-bottom: 40px;
15
16
 
16
- &:last-child:not(> .column) {
17
+ &:last-child {
17
18
  padding-bottom: 0 !important;
18
19
  border-bottom: none !important;
19
20
  margin-bottom: 0;
@@ -62,7 +63,7 @@
62
63
  aspect-ratio: $aspect-ratio;
63
64
  }
64
65
  h3 {
65
- margin-bottom: 40px;
66
+ margin-bottom: 40px !important;
66
67
  color: $black;
67
68
  @include text-heading-h2();
68
69
  }
@@ -138,13 +139,13 @@
138
139
  }
139
140
  }
140
141
 
141
- img.grid-item-image {
142
+ img.item-image {
142
143
  width: 100%;
143
144
  margin: 0;
144
145
  aspect-ratio: $aspect-ratio;
145
146
  }
146
147
 
147
- .grid-item {
148
+ .item {
148
149
  margin-top: 40px;
149
150
  }
150
151
 
@@ -8,13 +8,13 @@
8
8
  // We want the image to extend in all its container width
9
9
  height: 100%;
10
10
 
11
- .grid-teaser-item.default {
11
+ .teaser-item.default {
12
12
  align-items: start;
13
13
  padding-bottom: 40px; // same as vertical spacing in margin-bottom
14
14
  border-bottom: 1px solid $black;
15
15
  }
16
16
 
17
- .grid-image-wrapper {
17
+ .image-wrapper {
18
18
  width: 100%;
19
19
  img {
20
20
  object-position: center;
@@ -23,10 +23,10 @@
23
23
 
24
24
  &.has--align--left,
25
25
  &.has--align--right {
26
- .grid-teaser-item.default {
26
+ .teaser-item.default {
27
27
  display: flex;
28
28
 
29
- .grid-image-wrapper {
29
+ .image-wrapper {
30
30
  align-self: flex-start;
31
31
  }
32
32
 
@@ -37,10 +37,10 @@
37
37
  }
38
38
 
39
39
  &.has--align--left {
40
- .grid-teaser-item.default {
40
+ .teaser-item.default {
41
41
  flex-direction: row;
42
42
 
43
- .grid-image-wrapper {
43
+ .image-wrapper {
44
44
  margin-right: 20px;
45
45
 
46
46
  @media only screen and (max-width: $largest-mobile-screen) {
@@ -52,10 +52,10 @@
52
52
  }
53
53
 
54
54
  &.has--align--right {
55
- .grid-teaser-item.default {
55
+ .teaser-item.default {
56
56
  flex-direction: row-reverse;
57
57
 
58
- .grid-image-wrapper {
58
+ .image-wrapper {
59
59
  margin-left: 20px;
60
60
 
61
61
  @media only screen and (max-width: $largest-mobile-screen) {
@@ -67,13 +67,13 @@
67
67
  }
68
68
 
69
69
  &.has--align--center {
70
- .grid-teaser-item.default {
70
+ .teaser-item.default {
71
71
  display: block;
72
72
  a {
73
73
  display: block;
74
74
  }
75
75
 
76
- .grid-image-wrapper {
76
+ .image-wrapper {
77
77
  margin-bottom: 26px;
78
78
  }
79
79
  }
@@ -102,12 +102,12 @@
102
102
 
103
103
  &.is--last--of--block-type,
104
104
  &.next--has--different--backgroundColor {
105
- .grid-teaser-item.default {
105
+ .teaser-item.default {
106
106
  padding-bottom: 0;
107
107
  border-bottom: none;
108
108
  }
109
109
  &.next--is--__button {
110
- .grid-teaser-item.default {
110
+ .teaser-item.default {
111
111
  padding-bottom: 40px;
112
112
  border-bottom: 1px solid $black;
113
113
  }