@kitconcept/volto-light-theme 5.0.0 → 6.0.0-alpha.0

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 (112) hide show
  1. package/.changelog.draft +26 -10
  2. package/CHANGELOG.md +44 -0
  3. package/README.md +7 -367
  4. package/package.json +23 -10
  5. package/razzle.extend.js +38 -0
  6. package/src/components/Anontools/Anontools.jsx +1 -1
  7. package/src/components/Blocks/Button/schema.js +25 -5
  8. package/src/components/Blocks/EventMetadata/View.jsx +8 -7
  9. package/src/components/Blocks/Image/Edit.jsx +4 -6
  10. package/src/components/Blocks/Image/ImageSidebar.jsx +4 -2
  11. package/src/components/Blocks/Image/View.jsx +3 -6
  12. package/src/components/Blocks/Image/schema.js +37 -6
  13. package/src/components/Blocks/Listing/DefaultTemplate.jsx +3 -2
  14. package/src/components/Blocks/Listing/GridTemplate.jsx +4 -2
  15. package/src/components/Blocks/Listing/ImageGallery.jsx +2 -2
  16. package/src/components/Blocks/Listing/SummaryTemplate.jsx +3 -2
  17. package/src/components/Blocks/Search/components/SearchInput.jsx +1 -1
  18. package/src/components/Blocks/Separator/schema.js +59 -0
  19. package/src/components/Blocks/Slider/DefaultBody.jsx +4 -2
  20. package/src/components/Blocks/Teaser/schema.js +21 -1
  21. package/src/components/Blocks/schema.js +16 -15
  22. package/src/components/Breadcrumbs/Breadcrumbs.jsx +4 -3
  23. package/src/components/Footer/Footer.jsx +77 -27
  24. package/src/components/Header/Header.jsx +37 -30
  25. package/src/components/LanguageSelector/{LanguageSelector.js → LanguageSelector.jsx} +11 -7
  26. package/src/components/Logo/Logo.jsx +28 -22
  27. package/src/components/MobileNavigation/MobileNavigation.jsx +3 -2
  28. package/src/components/MobileNavigation/MobileToolsFooter.jsx +1 -1
  29. package/src/components/Navigation/Navigation.jsx +4 -3
  30. package/src/components/SearchWidget/IntranetSearchWidget.jsx +1 -1
  31. package/src/components/SearchWidget/SearchWidget.jsx +1 -1
  32. package/src/components/Theme/EventView.jsx +3 -2
  33. package/src/components/Theme/FileView.jsx +1 -1
  34. package/src/components/Theme/NewsItemView.jsx +1 -1
  35. package/src/components/Theming/Theming.tsx +52 -0
  36. package/src/components/Widgets/AlignWidget.jsx +2 -2
  37. package/src/components/Widgets/BackgroundColorWidget.tsx +18 -0
  38. package/src/components/Widgets/BlockAlignmentWidget.tsx +81 -0
  39. package/src/components/Widgets/BlockWidthWidget.tsx +94 -0
  40. package/src/components/Widgets/BlocksObjectWidget.tsx +333 -0
  41. package/src/components/Widgets/ButtonsWidget.tsx +68 -0
  42. package/src/components/Widgets/ColorPickerWidget.tsx +60 -0
  43. package/src/components/Widgets/FooterLinksWidget.tsx +106 -0
  44. package/src/components/Widgets/FooterLogosWidget.tsx +120 -0
  45. package/src/components/Widgets/ThemingColorPicker.tsx +33 -0
  46. package/src/config/blocks.tsx +352 -0
  47. package/src/config/classExtenders.ts +101 -0
  48. package/src/config/settings.ts +35 -0
  49. package/src/config/slots.ts +12 -0
  50. package/src/config/widgets.ts +31 -0
  51. package/src/customizations/volto/components/theme/View/RenderBlocks.jsx +97 -80
  52. package/src/customizations/volto/components/theme/View/RenderBlocks.test.jsx +16 -48
  53. package/src/helpers/helpers.test.ts +51 -0
  54. package/src/helpers/helpers.ts +48 -0
  55. package/src/index.ts +54 -0
  56. package/src/theme/_bgcolor-blocks-layout.scss +1127 -20
  57. package/src/theme/_footer.scss +8 -5
  58. package/src/theme/_header.scss +3 -8
  59. package/src/theme/_layout.scss +24 -7
  60. package/src/theme/_typo-custom.scss +1 -1
  61. package/src/theme/_variables.scss +95 -12
  62. package/src/theme/_widgets.scss +102 -0
  63. package/src/theme/blocks/_accordion.scss +2 -4
  64. package/src/theme/blocks/_button.scss +32 -31
  65. package/src/theme/blocks/_eventMetadata.scss +7 -0
  66. package/src/theme/blocks/_grid.scss +11 -36
  67. package/src/theme/blocks/_highlight.scss +1 -0
  68. package/src/theme/blocks/_image.scss +38 -17
  69. package/src/theme/blocks/_introduction.scss +16 -0
  70. package/src/theme/blocks/_listing.scss +1 -6
  71. package/src/theme/blocks/_search.scss +1 -23
  72. package/src/theme/blocks/_separator.scss +17 -20
  73. package/src/theme/blocks/_slider.scss +57 -56
  74. package/src/theme/blocks/_teaser.scss +3 -3
  75. package/src/theme/main.scss +1 -0
  76. package/src/transforms/to6.ts +94 -0
  77. package/tsconfig.json +33 -0
  78. package/.release-it.json +0 -31
  79. package/babel.config.js +0 -17
  80. package/build/messages/src/components/Anontools/Anontools.json +0 -10
  81. package/build/messages/src/components/Blocks/Button/schema.json +0 -6
  82. package/build/messages/src/components/Blocks/EventMetadata/View.json +0 -30
  83. package/build/messages/src/components/Blocks/Image/Edit.json +0 -10
  84. package/build/messages/src/components/Blocks/Image/ImageSidebar.json +0 -18
  85. package/build/messages/src/components/Blocks/Image/schema.json +0 -10
  86. package/build/messages/src/components/Blocks/Listing/ListingBody.json +0 -26
  87. package/build/messages/src/components/Blocks/Search/TopSideFacets.json +0 -10
  88. package/build/messages/src/components/Blocks/Search/components/SearchDetails.json +0 -10
  89. package/build/messages/src/components/Blocks/Search/components/SearchInput.json +0 -6
  90. package/build/messages/src/components/Blocks/Slider/DefaultBody.json +0 -18
  91. package/build/messages/src/components/Blocks/Slider/schema.json +0 -14
  92. package/build/messages/src/components/Blocks/schema.json +0 -6
  93. package/build/messages/src/components/Breadcrumbs/Breadcrumbs.json +0 -10
  94. package/build/messages/src/components/Footer/Footer.json +0 -30
  95. package/build/messages/src/components/Header/Header.json +0 -6
  96. package/build/messages/src/components/LanguageSelector/LanguageSelector.json +0 -6
  97. package/build/messages/src/components/Logo/Logo.json +0 -10
  98. package/build/messages/src/components/MobileNavigation/MobileNavigation.json +0 -26
  99. package/build/messages/src/components/Navigation/Navigation.json +0 -10
  100. package/build/messages/src/components/SearchWidget/IntranetSearchWidget.json +0 -14
  101. package/build/messages/src/components/SearchWidget/SearchWidget.json +0 -10
  102. package/build/messages/src/components/Theme/EventView.json +0 -6
  103. package/build/messages/src/components/Widgets/AlignWidget.json +0 -22
  104. package/build/messages/src/index.json +0 -10
  105. package/news/.gitkeep +0 -0
  106. package/src/components/Atoms/Container/Container.jsx +0 -32
  107. package/src/components/Atoms/README.md +0 -1
  108. package/src/components/Atoms/helpers.jsx +0 -9
  109. package/src/components/CQPolyfill.jsx +0 -9
  110. package/src/index.js +0 -367
  111. package/towncrier.toml +0 -33
  112. /package/src/components/Blocks/Slate/{ExtraAlignWrapper.js → ExtraAlignWrapper.jsx} +0 -0
@@ -1,5 +1,5 @@
1
1
  #footer {
2
- margin-top: $footer-vertical-spacing-top;
2
+ margin-top: 0;
3
3
  text-align: center;
4
4
 
5
5
  .footer {
@@ -33,18 +33,21 @@
33
33
 
34
34
  li {
35
35
  padding: 0 7px;
36
- border-right: 1px solid #205c90;
37
36
  font-size: 18px;
38
37
 
39
- &:last-of-type {
40
- border: none;
41
- }
42
38
  a {
43
39
  color: $blue-for-grey-contrast;
44
40
  }
45
41
  }
46
42
  }
47
43
 
44
+ ul.footer-links li {
45
+ border-right: 1px solid #205c90;
46
+ &:last-of-type {
47
+ border: none;
48
+ }
49
+ }
50
+
48
51
  .logo {
49
52
  margin: 5rem 0 1.8rem 0;
50
53
  }
@@ -131,7 +131,6 @@
131
131
  width: 100%;
132
132
  height: 90px;
133
133
  padding-top: 2rem;
134
- background-color: $lightgrey;
135
134
  transition:
136
135
  top 500ms ease-in-out,
137
136
  height 600ms ease-in-out;
@@ -139,7 +138,7 @@
139
138
 
140
139
  &.active {
141
140
  top: 0;
142
- height: 190px;
141
+ height: 188px;
143
142
 
144
143
  @media only screen and (max-width: $largest-mobile-screen) {
145
144
  height: calc(100vh - 130px);
@@ -179,8 +178,6 @@
179
178
  width: 70%;
180
179
  padding-left: 0;
181
180
  margin-right: 1rem;
182
- background-color: $lightgrey;
183
- color: $black;
184
181
  font-size: 1.5rem;
185
182
 
186
183
  @media only screen and (min-width: $tablet-breakpoint) and (max-width: 788px) {
@@ -188,7 +185,6 @@
188
185
  }
189
186
 
190
187
  &::placeholder {
191
- color: $black;
192
188
  opacity: 0.5;
193
189
  }
194
190
  }
@@ -208,7 +204,7 @@
208
204
  }
209
205
 
210
206
  svg {
211
- fill: $black !important;
207
+ fill: $black;
212
208
  }
213
209
  }
214
210
  }
@@ -422,7 +418,7 @@ body.has-toolbar.has-sidebar {
422
418
  position: absolute;
423
419
  bottom: -49px;
424
420
  width: 100%;
425
- border-bottom: 9px solid $black;
421
+ border-bottom: 9px solid var(--accent-color, $black);
426
422
  content: '';
427
423
  }
428
424
  }
@@ -517,7 +513,6 @@ body.has-toolbar.has-sidebar {
517
513
  li {
518
514
  padding: 0;
519
515
  padding-bottom: 10px;
520
- color: $white;
521
516
 
522
517
  a {
523
518
  padding-bottom: 0;
@@ -2,6 +2,10 @@
2
2
  --layout-container-width: #{$layout-container-width};
3
3
  --default-container-width: #{$default-container-width};
4
4
  --narrow-container-width: #{$narrow-container-width};
5
+
6
+ --align-right: end;
7
+ --align-left: start;
8
+ --align-center: center;
5
9
  }
6
10
 
7
11
  @mixin narrow-container-width() {
@@ -29,6 +33,12 @@
29
33
  margin-left: auto;
30
34
  }
31
35
 
36
+ @mixin variable-container-width() {
37
+ max-width: var(--block-width, --layout-container-width);
38
+ margin-right: auto;
39
+ margin-left: auto;
40
+ }
41
+
32
42
  // One still cannot use CSS custom properties directly on @container queries
33
43
  @mixin adjustMarginsToContainer($width) {
34
44
  @container (max-width: #{$width + 2 * $horizontal-space-small-screens}) {
@@ -178,8 +188,6 @@ External link removal for all the blocks.
178
188
  & > .block.image.align.right.small,
179
189
  & > .block.video.align.center .video-inner,
180
190
  & > .block.maps.align.center .maps-inner,
181
- .block.image.align.center figure,
182
- .event-details,
183
191
  .download-event,
184
192
  .block.separator.has--align--left .line,
185
193
  .block.separator.has--align--center .line,
@@ -212,8 +220,6 @@ External link removal for all the blocks.
212
220
  & > .block.search .searchBlock-container,
213
221
  & > .block h2.headline,
214
222
  & > .block.heading .heading-wrapper,
215
- & > .block.separator.has--align--full .line,
216
- & > .block.introduction .block-container,
217
223
  & > .block.teaser .teaser-item.default,
218
224
  & > .block.highlight .teaser-description-title,
219
225
  & > table,
@@ -246,8 +252,21 @@ External link removal for all the blocks.
246
252
  }
247
253
 
248
254
  & > .block {
249
- // This is the default, same color spacing for all blocks
255
+ // This is the default spacing in between same-color blocks
250
256
  margin-bottom: $block-vertical-space;
257
+
258
+ // Default side margins on smaller screens
259
+ &.has--block-width--narrow {
260
+ @include adjustMarginsToContainer($narrow-container-width);
261
+ }
262
+
263
+ &:not(.highlight, .teaser, .gridBlock, .slider).has--block-width--default {
264
+ @include adjustMarginsToContainer($default-container-width);
265
+ }
266
+
267
+ &.has--block-width--layout {
268
+ @include adjustMarginsToContainer($layout-container-width);
269
+ }
251
270
  }
252
271
 
253
272
  &:last-child {
@@ -275,7 +294,6 @@ External link removal for all the blocks.
275
294
  .block-editor-image.left.small,
276
295
  .block-editor-image.right.medium,
277
296
  .block-editor-image.right.small,
278
- .block-editor-image.center figure,
279
297
  .block-editor-video.align.left,
280
298
  .block-editor-video.align.right,
281
299
  .block-editor-video.center .video-inner,
@@ -314,7 +332,6 @@ External link removal for all the blocks.
314
332
  .block-editor-listing .items,
315
333
  .block-editor-listing .listing.message,
316
334
  .block-editor-search .searchBlock-container,
317
- .block-editor-separator.has--align--full .block.separator .line,
318
335
  .block.teaser.has--align--center,
319
336
  .block.eventMetadata .details-container,
320
337
  .block-editor-teaser .teaser-item.default,
@@ -32,7 +32,7 @@ li::marker {
32
32
  p > a,
33
33
  li > a,
34
34
  .breadcrumb a {
35
- color: $blue-for-grey-contrast !important;
35
+ color: $blue-for-grey-contrast;
36
36
  text-decoration: underline;
37
37
  }
38
38
  }
@@ -44,12 +44,6 @@ $layout-container-width: 1440px !default;
44
44
  $default-container-width: 940px !default;
45
45
  $narrow-container-width: 620px !default;
46
46
 
47
- // Rest of theme variables
48
- :root {
49
- --text-color: #666;
50
- --text-size: 18px;
51
- }
52
-
53
47
  // Colors
54
48
  $white: #fff !default;
55
49
  $veryLightGrey: #eee !default;
@@ -65,8 +59,97 @@ $greySmoke: #e4e8ec !default;
65
59
  $darkBlue: #023d6b !default;
66
60
  $secondary-grey: #ececec !default;
67
61
 
62
+ // Register custom properties
63
+ @property --background {
64
+ inherits: true;
65
+ initial-value: #fff;
66
+ syntax: '<color>';
67
+ }
68
+
69
+ @property --text-color {
70
+ inherits: true;
71
+ initial-value: #666;
72
+ syntax: '<color>';
73
+ }
74
+
75
+ @property --text-size {
76
+ inherits: true;
77
+ initial-value: 18px;
78
+ syntax: '<length> | <percentage>';
79
+ }
80
+
81
+ @property --primary-color {
82
+ inherits: true;
83
+ initial-value: #fff;
84
+ syntax: '<color>';
85
+ }
86
+
87
+ @property --primary-foreground-color {
88
+ inherits: true;
89
+ initial-value: #000;
90
+ syntax: '<color>';
91
+ }
92
+
93
+ @property --secondary-color {
94
+ inherits: true;
95
+ initial-value: #ecebeb;
96
+ syntax: '<color>';
97
+ }
98
+
99
+ @property --secondary-foreground-color {
100
+ inherits: true;
101
+ initial-value: #000;
102
+ syntax: '<color>';
103
+ }
104
+
105
+ @property --accent-color {
106
+ inherits: true;
107
+ initial-value: #ecebeb;
108
+ syntax: '<color>';
109
+ }
110
+
111
+ @property --accent-foreground-color {
112
+ inherits: true;
113
+ initial-value: #000;
114
+ syntax: '<color>';
115
+ }
116
+
117
+ :root {
118
+ --background: initial;
119
+ --text-color: initial;
120
+ --primary-color: var(--background);
121
+
122
+ // Header
123
+ --header-background: var(--primary-color);
124
+ --header-foreground: var(--primary-foreground-color);
125
+
126
+ //Footer
127
+ --footer-background: var(--secondary-color);
128
+ --footer-foreground: var(--secondary-foreground-color);
129
+
130
+ // Fat Menu
131
+ --fatmenu-background: var(--accent-color);
132
+ --fatmenu-foreground: var(--accent-foreground-color);
133
+
134
+ // Breadcrumbs
135
+ --breadcrumbs-background: var(--accent-color);
136
+ --breadcrumbs-foreground: var(--accent-foreground-color);
137
+
138
+ // Search bar
139
+ --search-background: var(--accent-color);
140
+ --search-foreground: var(--accent-foreground-color);
141
+
142
+ // Link color
143
+ --link-color: #0070a2;
144
+ // Comment out following line to turn <a> links the same color as the text
145
+ --link-foreground-color: var(--link-color);
146
+
147
+ // It is possible to set an aspect ratio for all images, using the folowing CSS custom property:
148
+ // --image-aspect-ratio: 16/9;
149
+ }
150
+
68
151
  // Image Aspect Ratio
69
- $aspect-ratio: var(--image-aspect-ratio, 16/9) !default;
152
+ $aspect-ratio: 16/9 !default;
70
153
 
71
154
  // Weights
72
155
  $thin: 100 !default;
@@ -99,7 +182,7 @@ $grid-block-vertical-spacing-top: $spacing-xlarge !default;
99
182
  $grid-block-vertical-spacing-bottom: $spacing-xlarge !default;
100
183
 
101
184
  @mixin vertical-space-h1() {
102
- margin-top: $spacing-medium;
185
+ padding-top: $spacing-medium;
103
186
  margin-bottom: $spacing-xlarge;
104
187
  @media only screen and (max-width: $largest-mobile-screen) {
105
188
  margin-bottom: $spacing-large;
@@ -143,11 +226,11 @@ $grid-block-vertical-spacing-bottom: $spacing-xlarge !default;
143
226
  }
144
227
 
145
228
  @mixin vertical-space-button() {
146
- margin-top: $spacing-xlarge;
147
- margin-bottom: $spacing-xlarge;
229
+ padding-top: $spacing-xlarge;
230
+ padding-bottom: $spacing-xlarge;
148
231
  @media only screen and (max-width: $largest-mobile-screen) {
149
- margin-top: $spacing-large;
150
- margin-bottom: $spacing-large;
232
+ padding-top: $spacing-large;
233
+ padding-bottom: $spacing-large;
151
234
  }
152
235
  }
153
236
 
@@ -0,0 +1,102 @@
1
+ #sidebar-properties {
2
+ .field.widget {
3
+ .buttons {
4
+ display: flex;
5
+ align-items: center;
6
+
7
+ button {
8
+ padding: 5px;
9
+ border-radius: 3px;
10
+ margin-right: 3px;
11
+ aspect-ratio: 1/1;
12
+ font-size: 1em;
13
+ line-height: initial;
14
+ &[data-hovered='true'] {
15
+ box-shadow: inset 0 0 0 1px var(--border-color-pressed, #2996da);
16
+ }
17
+ &.active {
18
+ box-shadow: inset 0 0 0 1px var(--border-color-pressed, #2996da);
19
+ }
20
+
21
+ svg.icon {
22
+ margin: 0 !important;
23
+ opacity: 0.9;
24
+ vertical-align: top;
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
30
+
31
+ .field.color {
32
+ .eight.wide.column {
33
+ flex-direction: row;
34
+ align-items: center;
35
+
36
+ input {
37
+ padding-left: 8px;
38
+ line-height: 1;
39
+ }
40
+ }
41
+ }
42
+
43
+ .react-aria-ColorSwatch {
44
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
45
+ }
46
+
47
+ .theme-picker-widget {
48
+ .buttons {
49
+ flex: 1 1 100%;
50
+ margin: 1rem 0 0.5rem;
51
+ text-align: center;
52
+ }
53
+
54
+ button {
55
+ position: relative;
56
+ width: 32px;
57
+ height: 32px;
58
+ padding: 1rem;
59
+ border: 2px solid #ccc;
60
+ border-radius: 100%;
61
+ margin-right: 0.25rem;
62
+
63
+ &.active {
64
+ border: 2px solid red;
65
+
66
+ &:after {
67
+ position: absolute;
68
+ top: -0.25rem;
69
+ right: -0.25rem;
70
+ width: 0.5rem;
71
+ height: 0.5rem;
72
+ border-radius: 100%;
73
+ background-color: red;
74
+ content: '';
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ .theme-picker-widget button {
81
+ background-color: var(--theme-color);
82
+ }
83
+
84
+ // TODO: Remove when layers are in place
85
+ .theme-picker-widget .button.grey,
86
+ .theme-picker-widget .button.grey.active,
87
+ .theme-picker-widget .ui.grey.button:hover {
88
+ background-color: var(--theme-color);
89
+ }
90
+ .theme-picker-widget .button.active,
91
+ .theme-picker-widget .button.active:hover {
92
+ background-color: var(--theme-color);
93
+ }
94
+
95
+ .buttons-widget {
96
+ button {
97
+ &[data-disabled] {
98
+ border-color: var(--border-color-disabled);
99
+ color: var(--text-color-disabled);
100
+ }
101
+ }
102
+ }
@@ -13,11 +13,10 @@
13
13
  }
14
14
  .title.accordion-title {
15
15
  padding: 20px 0 20px 0;
16
- background-color: unset;
17
16
 
18
17
  & > svg {
19
18
  height: 50px !important;
20
- fill: $grey !important;
19
+ fill: $grey;
21
20
  transform: rotate(-90deg);
22
21
  }
23
22
 
@@ -32,7 +31,7 @@
32
31
  }
33
32
 
34
33
  &.active > svg {
35
- fill: $black !important;
34
+ fill: $black;
36
35
  transform: rotate(180deg);
37
36
  }
38
37
  }
@@ -83,7 +82,6 @@
83
82
  padding: 0;
84
83
  margin-bottom: 10px;
85
84
  background-color: transparent;
86
- color: $grey;
87
85
  text-transform: none;
88
86
  @include marginal-title();
89
87
  }
@@ -1,52 +1,53 @@
1
1
  .block.__button {
2
+ margin-bottom: 0 !important;
2
3
  .button.container {
3
- @include narrow-container-width();
4
+ display: grid;
5
+ justify-content: var(--block-alignment);
6
+ text-align: unset !important;
4
7
 
8
+ @include variable-container-width();
5
9
  @include vertical-space-button();
6
10
  }
7
11
 
8
12
  p + & {
9
13
  .button.container {
10
- margin-top: 60px;
14
+ padding-top: 60px;
11
15
  @container (max-width: #{$largest-mobile-screen}) {
12
- margin-top: 40px;
16
+ padding-top: 40px;
13
17
  }
14
18
  }
15
19
  }
16
20
 
17
- button {
18
- margin: 0;
21
+ .separator + & {
22
+ .button.container {
23
+ padding-top: 0;
24
+ @container (max-width: #{$largest-mobile-screen}) {
25
+ padding-top: 0;
26
+ }
27
+ }
19
28
  }
20
- }
21
29
 
22
- .block-editor-__button.has--buttonAlign--wide {
23
- .button.container {
24
- @include default-container-width();
30
+ & + .gridBlock {
31
+ margin-top: 0 !important;
32
+ .headline {
33
+ margin-top: 0 !important;
34
+ }
25
35
  }
26
- }
27
36
 
28
- .block.__button.has--buttonAlign--wide {
29
- .button.container {
30
- @include default-container-width();
37
+ &:last-child {
38
+ .button.container {
39
+ padding-bottom: 0;
40
+ }
31
41
  }
32
- }
33
42
 
34
- .block.__button .ui.button {
35
- padding: 8px 20px;
36
- border: 1px solid $black;
37
- border-radius: unset;
38
- background: none;
39
- color: $black;
40
-
41
- @include body-text-bold();
42
- }
43
-
44
- .block.__button .ui.button:focus,
45
- .block.__button .ui.button:hover {
46
- background-color: $black;
47
- color: $white;
48
- }
43
+ .ui.button {
44
+ padding: 8px 20px;
45
+ border: 1px solid $black;
46
+ border-radius: unset;
47
+ margin: 0;
48
+ background: none;
49
+ color: $black;
49
50
 
50
- .block-editor-__button.has--backgroundColor--grey {
51
- background-color: $lightgrey;
51
+ @include body-text-bold();
52
+ }
52
53
  }
@@ -29,6 +29,9 @@
29
29
  font-size: 24px;
30
30
  font-weight: 300;
31
31
  line-height: 33px;
32
+ overflow-wrap: break-word;
33
+ word-break: break-word;
34
+ word-wrap: break-word;
32
35
  p,
33
36
  a {
34
37
  margin-top: 10px;
@@ -46,6 +49,10 @@
46
49
  }
47
50
  }
48
51
  }
52
+
53
+ @container (max-width: #{$largest-mobile-screen} ) {
54
+ flex-direction: column;
55
+ }
49
56
  }
50
57
  .event-button {
51
58
  padding-top: 50px;
@@ -34,8 +34,8 @@
34
34
  }
35
35
 
36
36
  .block.teaser {
37
+ padding-top: 0;
37
38
  margin-bottom: 0;
38
- background-color: $lightgrey;
39
39
 
40
40
  // External link icon
41
41
  a.external {
@@ -44,6 +44,10 @@
44
44
  }
45
45
  }
46
46
 
47
+ a {
48
+ text-decoration: none;
49
+ }
50
+
47
51
  .teaser-item {
48
52
  height: 100%;
49
53
 
@@ -95,8 +99,6 @@
95
99
  .slate:not(.inner) {
96
100
  padding: 40px 20px 20px 20px;
97
101
  margin: 0;
98
- background-color: $lightgrey;
99
-
100
102
  p {
101
103
  padding: 0;
102
104
  margin-bottom: 20px;
@@ -182,13 +184,6 @@
182
184
  ) {
183
185
  margin-top: unset;
184
186
  }
185
- &:not(.grid) {
186
- .listing-item,
187
- .listing-item:last-child {
188
- padding-bottom: 40px !important;
189
- border-bottom: 1px solid $black !important;
190
- }
191
- }
192
187
 
193
188
  &.grid {
194
189
  .listing-item {
@@ -207,6 +202,12 @@
207
202
  padding: 0;
208
203
  margin: 0.5rem 0.5rem 0.5rem 0.5rem !important;
209
204
  }
205
+
206
+ & + .block.__button {
207
+ .button.container {
208
+ padding-top: 0 !important;
209
+ }
210
+ }
210
211
  }
211
212
 
212
213
  #page-edit .block-editor-gridBlock,
@@ -324,32 +325,6 @@
324
325
  }
325
326
  }
326
327
 
327
- .block.gridBlock.has--backgroundColor--grey,
328
- #page-add .block-editor-gridBlock.has--backgroundColor--grey,
329
- #page-edit .block-editor-gridBlock.has--backgroundColor--grey {
330
- background-color: $lightgrey;
331
- .teaser-item {
332
- background: white;
333
- }
334
- .slate {
335
- background-color: $white;
336
- }
337
-
338
- .slate-editor {
339
- background-color: $white !important;
340
- }
341
-
342
- .slate:not(.inner) {
343
- background-color: $white !important;
344
- }
345
-
346
- .grid-block-image {
347
- .block.image {
348
- background: white;
349
- }
350
- }
351
- }
352
-
353
328
  // Teasers in grids specific
354
329
  #page-document .block.gridBlock .block.teaser {
355
330
  margin-bottom: 0;
@@ -15,6 +15,7 @@ $black: #000 !default;
15
15
  .highlight-description {
16
16
  a {
17
17
  @include introduction();
18
+ text-decoration: none;
18
19
  }
19
20
  }
20
21