@kitconcept/volto-light-theme 1.0.0-rc.5 → 1.0.0-rc.7
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/.eslintignore +2 -0
- package/CHANGELOG.md +20 -0
- package/dockerfiles/docker-compose.yml +6 -1
- package/locales/de/LC_MESSAGES/volto.po +141 -8
- package/locales/en/LC_MESSAGES/volto.po +141 -8
- package/locales/volto.pot +142 -9
- package/package.json +2 -1
- package/src/components/Theme/EventView.jsx +301 -0
- package/src/customizations/volto/components/theme/View/FileView.jsx +132 -0
- package/src/index.js +2 -0
- package/src/theme/_breadcrumbs.scss +5 -1
- package/src/theme/_content.scss +111 -2
- package/src/theme/_layout.scss +39 -29
- package/src/theme/_variables.scss +9 -0
- package/src/theme/blocks/_accordion.scss +51 -0
- package/src/theme/blocks/_grid.scss +4 -1
- package/src/theme/blocks/_listing.scss +20 -7
- package/src/theme/collections/grid.variables +2 -5
package/src/theme/_layout.scss
CHANGED
|
@@ -38,22 +38,16 @@ $narrow-container-width: 620px !default;
|
|
|
38
38
|
|
|
39
39
|
// One still cannot use CSS custom properties directly on @container queries
|
|
40
40
|
@mixin adjustMarginsToContainer($width) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// margin-left: 5px;
|
|
47
|
-
// }
|
|
48
|
-
|
|
49
|
-
// @container (max-width: #{$width}) {
|
|
50
|
-
// margin-right: 0px;
|
|
51
|
-
// margin-left: 0px;
|
|
52
|
-
// }
|
|
41
|
+
@container (max-width: #{$width + 2 * $horizontal-space-small-screens}) {
|
|
42
|
+
margin-right: $horizontal-space-small-screens;
|
|
43
|
+
margin-left: $horizontal-space-small-screens;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
margin-
|
|
47
|
+
@mixin adjustMarginsToEditContainer($width) {
|
|
48
|
+
@container (max-width: #{$width + 2 * $spacing-medium}) {
|
|
49
|
+
margin-right: $spacing-medium;
|
|
50
|
+
margin-left: $spacing-medium;
|
|
57
51
|
}
|
|
58
52
|
}
|
|
59
53
|
|
|
@@ -115,12 +109,16 @@ footer {
|
|
|
115
109
|
@include layout-container-width();
|
|
116
110
|
}
|
|
117
111
|
|
|
118
|
-
.header-wrapper .header
|
|
119
|
-
.breadcrumbs .breadcrumb {
|
|
112
|
+
.header-wrapper .header {
|
|
120
113
|
@include layout-container-width();
|
|
121
114
|
@include adjustMarginsToContainer($layout-container-width);
|
|
122
115
|
}
|
|
123
116
|
|
|
117
|
+
.breadcrumbs .breadcrumb {
|
|
118
|
+
@include default-container-width();
|
|
119
|
+
@include adjustMarginsToContainer($default-container-width);
|
|
120
|
+
}
|
|
121
|
+
|
|
124
122
|
// Content Layout Styling
|
|
125
123
|
#page-document .blocks-group-wrapper {
|
|
126
124
|
& > h2,
|
|
@@ -166,6 +164,7 @@ footer {
|
|
|
166
164
|
& > .block.introduction .block-container,
|
|
167
165
|
& > .block.teaser .teaser-item.default,
|
|
168
166
|
& > .table-of-contents,
|
|
167
|
+
& > .accordion-block,
|
|
169
168
|
& > .slate blockquote {
|
|
170
169
|
@include default-container-width();
|
|
171
170
|
@include adjustMarginsToContainer($default-container-width);
|
|
@@ -199,7 +198,7 @@ footer {
|
|
|
199
198
|
#page-edit {
|
|
200
199
|
[class*='block-editor-'] {
|
|
201
200
|
@include layout-container-width();
|
|
202
|
-
@include
|
|
201
|
+
@include adjustMarginsToEditContainer($layout-container-width);
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
204
|
|
|
@@ -218,7 +217,7 @@ footer {
|
|
|
218
217
|
.block-editor-codeBlock,
|
|
219
218
|
.block-editor-mermaidBlock {
|
|
220
219
|
@include narrow-container-width();
|
|
221
|
-
@include
|
|
220
|
+
@include adjustMarginsToEditContainer($narrow-container-width);
|
|
222
221
|
}
|
|
223
222
|
|
|
224
223
|
.block-editor-title h1,
|
|
@@ -236,7 +235,7 @@ footer {
|
|
|
236
235
|
.block-editor-teaser .teaser-item.default,
|
|
237
236
|
.block-editor-toc {
|
|
238
237
|
@include default-container-width();
|
|
239
|
-
@include
|
|
238
|
+
@include adjustMarginsToEditContainer($default-container-width);
|
|
240
239
|
}
|
|
241
240
|
|
|
242
241
|
.block-editor-slate,
|
|
@@ -245,7 +244,7 @@ footer {
|
|
|
245
244
|
.block-editor-teaser,
|
|
246
245
|
.block-editor-separator.has--align--left {
|
|
247
246
|
@include layout-container-width();
|
|
248
|
-
@include
|
|
247
|
+
@include adjustMarginsToEditContainer($layout-container-width);
|
|
249
248
|
}
|
|
250
249
|
}
|
|
251
250
|
|
|
@@ -257,17 +256,28 @@ footer {
|
|
|
257
256
|
.block.gridBlock .grid-items,
|
|
258
257
|
.block.gridBlock h2.headline {
|
|
259
258
|
@include default-container-width();
|
|
260
|
-
// Adding 2 *
|
|
261
|
-
// the gutter
|
|
262
|
-
max-width: calc(var(--default-container-width) + 2 *
|
|
259
|
+
// Adding 2 * 10px (one for each side) we force the container to extend the value of
|
|
260
|
+
// the gutter to match the other blocks margin.
|
|
261
|
+
max-width: calc(var(--default-container-width) + 2 * 10px);
|
|
263
262
|
}
|
|
264
263
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
// Custom adjustMarginsToContainer() for grids
|
|
265
|
+
// $default-container-width + 2 * 20px to compensate the width of the gutter on each side
|
|
266
|
+
// (2 * (10px from the margin + 10px from the inner padding of the column))
|
|
267
|
+
// It's a media query because we have to cancel the one imposed by SemanticUI Grid
|
|
268
|
+
@media only screen and (max-width: $default-container-width + 2 * 20px) {
|
|
269
|
+
.block.gridBlock {
|
|
270
|
+
margin-right: 10px;
|
|
271
|
+
margin-left: 10px;
|
|
268
272
|
}
|
|
269
|
-
|
|
270
|
-
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// We have to adjust the inner headings also because of the extra margin added in the
|
|
276
|
+
// above rule
|
|
277
|
+
#page-document .blocks-group-wrapper > .block h2.headline {
|
|
278
|
+
@container (max-width: #{$default-container-width + 2 * 20px}) {
|
|
279
|
+
margin-right: 10px;
|
|
280
|
+
margin-left: 10px;
|
|
271
281
|
}
|
|
272
282
|
}
|
|
273
283
|
|
|
@@ -73,6 +73,15 @@ $bold: 700 !default;
|
|
|
73
73
|
$extra-bold: 800 !default;
|
|
74
74
|
$bolder: 900 !default;
|
|
75
75
|
|
|
76
|
+
// Spacing
|
|
77
|
+
$spacing-small: 20px !default;
|
|
78
|
+
$spacing-medium: 40px !default;
|
|
79
|
+
$spacing-large: 60px !default;
|
|
80
|
+
$spacing-xlarge: 80px !default;
|
|
81
|
+
|
|
82
|
+
// Horizontal Spacing
|
|
83
|
+
$horizontal-space-small-screens: $spacing-small !default;
|
|
84
|
+
|
|
76
85
|
// Vertical Spacing
|
|
77
86
|
$block-vertical-space: 25px !default;
|
|
78
87
|
|
|
@@ -2,3 +2,54 @@
|
|
|
2
2
|
.block.accordion [data-rbd-draggable-context-id] {
|
|
3
3
|
margin-bottom: 2rem;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
.accordion-block {
|
|
7
|
+
.ui.styled.accordion {
|
|
8
|
+
border-top: 1px solid $black;
|
|
9
|
+
|
|
10
|
+
&:last-child {
|
|
11
|
+
border-bottom: 1px solid $black;
|
|
12
|
+
}
|
|
13
|
+
.title.accordion-title {
|
|
14
|
+
padding: 20px 0 20px 0;
|
|
15
|
+
background-color: unset;
|
|
16
|
+
|
|
17
|
+
& > svg {
|
|
18
|
+
height: 50px !important;
|
|
19
|
+
fill: $grey !important;
|
|
20
|
+
transform: rotate(-90deg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& > span {
|
|
24
|
+
@include introduction();
|
|
25
|
+
color: $darkGrey;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.active > span {
|
|
29
|
+
color: $black;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.active > svg {
|
|
33
|
+
fill: $black !important;
|
|
34
|
+
transform: rotate(180deg);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.block.listing {
|
|
39
|
+
&:first-child {
|
|
40
|
+
margin-top: 0;
|
|
41
|
+
}
|
|
42
|
+
.listing-item:last-child {
|
|
43
|
+
border-bottom: none !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.block:last-child {
|
|
48
|
+
margin-bottom: 0 !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.content {
|
|
52
|
+
padding: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -129,6 +129,9 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.block.listing {
|
|
132
|
+
&.previous--has--same--backgroundColor:not(.has--headline) {
|
|
133
|
+
margin-top: 0;
|
|
134
|
+
}
|
|
132
135
|
h2 {
|
|
133
136
|
margin-bottom: 40px !important;
|
|
134
137
|
}
|
|
@@ -144,7 +147,7 @@
|
|
|
144
147
|
|
|
145
148
|
.block-editor-empty {
|
|
146
149
|
padding: 0;
|
|
147
|
-
margin:
|
|
150
|
+
margin: 0.5rem 0.5rem 0.5rem 0.5rem !important;
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
153
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
padding-top: 0 !important;
|
|
59
59
|
|
|
60
60
|
img {
|
|
61
|
-
width:
|
|
61
|
+
width: 220px;
|
|
62
62
|
height: min-content;
|
|
63
63
|
aspect-ratio: $aspect-ratio;
|
|
64
64
|
}
|
|
@@ -91,6 +91,16 @@
|
|
|
91
91
|
@include block-title();
|
|
92
92
|
}
|
|
93
93
|
.listing-item {
|
|
94
|
+
padding-bottom: 0 !important;
|
|
95
|
+
border-bottom: none !important;
|
|
96
|
+
margin-right: auto !important;
|
|
97
|
+
margin-bottom: 0 !important;
|
|
98
|
+
margin-left: auto !important;
|
|
99
|
+
|
|
100
|
+
@media only screen and (max-width: $largest-mobile-screen) {
|
|
101
|
+
margin: 0 !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
94
104
|
@media only screen and (min-width: $tablet-breakpoint) {
|
|
95
105
|
width: 50%;
|
|
96
106
|
|
|
@@ -121,12 +131,10 @@
|
|
|
121
131
|
}
|
|
122
132
|
}
|
|
123
133
|
|
|
124
|
-
padding-bottom: 0 !important;
|
|
125
|
-
border-bottom: none !important;
|
|
126
|
-
margin-bottom: 0 !important;
|
|
127
|
-
|
|
128
134
|
&:last-child:nth-child(2n + 1) {
|
|
129
|
-
|
|
135
|
+
@media only screen and (min-width: $largest-mobile-screen) {
|
|
136
|
+
margin-left: 0 !important;
|
|
137
|
+
}
|
|
130
138
|
}
|
|
131
139
|
|
|
132
140
|
.card-container {
|
|
@@ -177,9 +185,14 @@
|
|
|
177
185
|
}
|
|
178
186
|
}
|
|
179
187
|
|
|
180
|
-
&.previous--
|
|
188
|
+
&.previous--has--same--backgroundColor:not(.has--headline) {
|
|
181
189
|
margin-top: 200px;
|
|
182
190
|
}
|
|
191
|
+
|
|
192
|
+
.documentFirstHeading
|
|
193
|
+
+ &.previous--has--same--backgroundColor:not(.has--headline) {
|
|
194
|
+
margin-top: 0;
|
|
195
|
+
}
|
|
183
196
|
}
|
|
184
197
|
|
|
185
198
|
#page-add .block-editor-listing.has--backgroundColor--grey,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
// We want the separation between cells in grids to be
|
|
1
|
+
// We want the separation between cells in grids to be $horizontal-space-small-screens
|
|
2
|
+
// Keep in sync with _variables.scss $horizontal-space-small-screens
|
|
2
3
|
@gutterWidth: 20px;
|
|
3
4
|
@rowSpacing: 20px;
|
|
4
|
-
|
|
5
|
-
// This has to be 2 * 20px because it's going to be 1/2 in the source.
|
|
6
|
-
@stackableGutter: 2 * 20px;
|
|
7
|
-
|