@kitconcept/volto-light-theme 1.0.0-rc.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.
- package/.dockerignore +1 -0
- package/.editorconfig +36 -0
- package/.eslintignore +2 -0
- package/.eslintrc.local.js +50 -0
- package/.github/workflows/changelog.yml +43 -0
- package/.github/workflows/code.yml +15 -0
- package/.github/workflows/unit.yml +15 -0
- package/.prettierignore +3 -0
- package/.release-it.json +19 -0
- package/.stylelintrc +33 -0
- package/.yarn/releases/yarn-3.2.3.cjs +783 -0
- package/.yarnrc.yml +3 -0
- package/CHANGELOG.md +80 -0
- package/Makefile +129 -0
- package/README.md +133 -0
- package/acceptance/.gitkeep +0 -0
- package/acceptance/ci.yml +29 -0
- package/acceptance/cypress/.gitkeep +0 -0
- package/acceptance/cypress/fixtures/broccoli.jpg +0 -0
- package/acceptance/cypress/fixtures/example.json +5 -0
- package/acceptance/cypress/fixtures/file.pdf +0 -0
- package/acceptance/cypress/fixtures/image.png +0 -0
- package/acceptance/cypress/plugins/index.js +17 -0
- package/acceptance/cypress/support/commands.js +1 -0
- package/acceptance/cypress/support/e2e.js +14 -0
- package/acceptance/cypress/support/reset-fixture.js +45 -0
- package/acceptance/cypress/support/slate.js +14 -0
- package/acceptance/cypress/tests/.gitkeep +0 -0
- package/acceptance/cypress/tests/basic.cy.js +71 -0
- package/acceptance/cypress.config.js +9 -0
- package/acceptance/docker-compose.yml +57 -0
- package/acceptance/package.json +5 -0
- package/acceptance/yarn.lock +2597 -0
- package/dockerfiles/Dockerfile +24 -0
- package/dockerfiles/Dockerfile.acceptance +13 -0
- package/dockerfiles/Dockerfile.dev +20 -0
- package/dockerfiles/docker-compose.yml +33 -0
- package/locales/de/LC_MESSAGES/volto.po +68 -0
- package/locales/en/LC_MESSAGES/volto.po +62 -0
- package/locales/volto.pot +64 -0
- package/news/.gitkeep +0 -0
- package/package.json +55 -0
- package/src/components/Anontools/Anontools.jsx +79 -0
- package/src/components/Atoms/Container/Container.jsx +28 -0
- package/src/components/Atoms/helpers.jsx +9 -0
- package/src/components/Blocks/Accordion/schema.jsx +11 -0
- package/src/components/Blocks/Button/schema.js +28 -0
- package/src/components/Blocks/Listing/GridTemplate.jsx +80 -0
- package/src/components/Blocks/Listing/SummaryTemplate.jsx +66 -0
- package/src/components/Blocks/Search/TopSideFacets.jsx +159 -0
- package/src/components/Blocks/Slate/ExtraAlignWrapper.js +22 -0
- package/src/components/Blocks/Teaser/schema.js +5 -0
- package/src/components/Blocks/schema.js +38 -0
- package/src/components/Breadcrumbs/Breadcrumbs.jsx +117 -0
- package/src/components/CQPolyfill.jsx +9 -0
- package/src/components/Footer/Footer.jsx +131 -0
- package/src/components/Header/Header.jsx +64 -0
- package/src/components/Logo/Logo.jsx +39 -0
- package/src/components/Navigation/Navigation.jsx +199 -0
- package/src/components/SearchWidget/SearchWidget.jsx +173 -0
- package/src/components/Widgets/AlignWidget.jsx +80 -0
- package/src/customizations/@root/theme.js +5 -0
- package/src/customizations/volto/components/manage/Blocks/Grid/View.jsx +44 -0
- package/src/customizations/volto/components/manage/Blocks/Listing/DefaultTemplate.jsx +47 -0
- package/src/customizations/volto/components/manage/Blocks/Listing/SummaryTemplate.jsx +11 -0
- package/src/customizations/volto/components/manage/Blocks/Search/components/SearchDetails.jsx +33 -0
- package/src/customizations/volto/components/manage/Blocks/Search/components/SearchInput.jsx +56 -0
- package/src/customizations/volto/components/manage/Form/Form.jsx +803 -0
- package/src/customizations/volto/components/theme/Anontools/Anontools.jsx +11 -0
- package/src/customizations/volto/components/theme/Breadcrumbs/Breadcrumbs.jsx +11 -0
- package/src/customizations/volto/components/theme/Footer/Footer.jsx +11 -0
- package/src/customizations/volto/components/theme/Header/Header.jsx +11 -0
- package/src/customizations/volto/components/theme/Logo/Logo.jsx +11 -0
- package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +11 -0
- package/src/customizations/volto/components/theme/SearchWidget/SearchWidget.jsx +11 -0
- package/src/customizations/volto/components/theme/View/RenderBlocks.jsx +164 -0
- package/src/customizations/volto/components/theme/View/RenderBlocks.test.jsx +308 -0
- package/src/icons/block_icn_accordion.svg +1 -0
- package/src/icons/block_icn_grid.svg +1 -0
- package/src/index.js +239 -0
- package/src/static/container-query-polyfill.modern.js +1 -0
- package/src/theme/_bgcolor-blocks-layout.scss +47 -0
- package/src/theme/_breadcrumbs.scss +39 -0
- package/src/theme/_content.scss +7 -0
- package/src/theme/_footer.scss +44 -0
- package/src/theme/_header.scss +253 -0
- package/src/theme/_layout.scss +271 -0
- package/src/theme/_temp.scss +2 -0
- package/src/theme/_toolbar.scss +3 -0
- package/src/theme/_typo-custom.scss +193 -0
- package/src/theme/_typography.scss +271 -0
- package/src/theme/_utils.scss +43 -0
- package/src/theme/_variables.scss +254 -0
- package/src/theme/atoms/_container.scss +11 -0
- package/src/theme/blocks/_accordion.scss +4 -0
- package/src/theme/blocks/_button.scss +29 -0
- package/src/theme/blocks/_grid.scss +242 -0
- package/src/theme/blocks/_highlight.scss +11 -0
- package/src/theme/blocks/_image.scss +357 -0
- package/src/theme/blocks/_introduction.scss +27 -0
- package/src/theme/blocks/_listing.scss +77 -0
- package/src/theme/blocks/_search.scss +168 -0
- package/src/theme/blocks/_separator.scss +13 -0
- package/src/theme/blocks/_slate.scss +5 -0
- package/src/theme/blocks/_slider.scss +135 -0
- package/src/theme/blocks/_teaser.scss +109 -0
- package/src/theme/blocks/_toc.scss +9 -0
- package/src/theme/collections/grid.variables +2 -0
- package/src/theme/custom/_main.scss +2 -0
- package/src/theme/custom/_variables.scss +2 -0
- package/src/theme/extras/README.md +8 -0
- package/src/theme/extras/custom.less +2 -0
- package/src/theme/extras/custom.overrides +3 -0
- package/src/theme/fonts/Inter-Black.ttf +0 -0
- package/src/theme/fonts/Inter-Bold.ttf +0 -0
- package/src/theme/fonts/Inter-ExtraBold.ttf +0 -0
- package/src/theme/fonts/Inter-ExtraLight.ttf +0 -0
- package/src/theme/fonts/Inter-Light.ttf +0 -0
- package/src/theme/fonts/Inter-Medium.ttf +0 -0
- package/src/theme/fonts/Inter-Regular.ttf +0 -0
- package/src/theme/fonts/Inter-SemiBold.ttf +0 -0
- package/src/theme/fonts/Inter-Thin.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Black.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Black.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Black.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Black.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BlackItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BlackItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BlackItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BlackItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Bold.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Bold.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Bold.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Bold.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BoldItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BoldItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BoldItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-BoldItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBold.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBold.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBold.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBold.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBoldItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBoldItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBoldItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraBoldItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLight.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLight.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLight.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLight.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLightItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLightItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLightItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ExtraLightItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Light.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Light.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Light.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Light.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-LightItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-LightItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-LightItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-LightItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Medium.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Medium.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Medium.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Medium.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-MediumItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-MediumItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-MediumItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-MediumItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Regular.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Regular.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Regular.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Regular.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-RegularItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-RegularItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-RegularItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-RegularItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBold.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBold.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBold.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBold.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBoldItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBoldItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBoldItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-SemiBoldItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Thin.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Thin.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Thin.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-Thin.woff2 +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ThinItalic.eot +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ThinItalic.ttf +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ThinItalic.woff +0 -0
- package/src/theme/fonts/metropolis/Metropolis-ThinItalic.woff2 +0 -0
- package/src/theme/fonts/metropolis/demo.html +685 -0
- package/src/theme/fonts/metropolis/stylesheet.css +217 -0
- package/src/theme/globals/site.variables +64 -0
- package/src/theme/main.scss +33 -0
- package/src/theme/theme.config +88 -0
- package/towncrier.toml +33 -0
- package/volto.config.js +7 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
.header-wrapper .header {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column-reverse;
|
|
4
|
+
|
|
5
|
+
.logo-nav-wrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
flex-grow: 2;
|
|
9
|
+
align-items: baseline;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
padding-top: 2rem;
|
|
12
|
+
padding-bottom: 1rem;
|
|
13
|
+
|
|
14
|
+
.logo {
|
|
15
|
+
align-self: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.navigation {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-grow: 2;
|
|
21
|
+
align-self: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
@media only screen and (max-width: $computer-width) {
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.desktop.menu {
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: flex-end;
|
|
30
|
+
|
|
31
|
+
a.item {
|
|
32
|
+
padding: 0 5px;
|
|
33
|
+
margin: 0 5px;
|
|
34
|
+
color: $black;
|
|
35
|
+
font-size: 18px;
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
line-height: 24px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mobile-menu {
|
|
42
|
+
.mobile-menu-nav {
|
|
43
|
+
> div {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
a.item {
|
|
49
|
+
width: 100%;
|
|
50
|
+
padding: 2rem 1.2rem 1.5rem 1.2rem;
|
|
51
|
+
color: $black;
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
|
|
54
|
+
&.active {
|
|
55
|
+
border-bottom: 4px solid $black;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.search-wrapper {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: row-reverse;
|
|
65
|
+
|
|
66
|
+
.search {
|
|
67
|
+
.searchbox {
|
|
68
|
+
display: flex;
|
|
69
|
+
|
|
70
|
+
input {
|
|
71
|
+
border: none;
|
|
72
|
+
|
|
73
|
+
&:focus {
|
|
74
|
+
outline: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.search-button {
|
|
80
|
+
text-align: right;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
button {
|
|
84
|
+
width: 75px;
|
|
85
|
+
height: 75px;
|
|
86
|
+
border: none;
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
transition: background-color 200ms ease-in-out, color 300ms ease-in-out;
|
|
90
|
+
|
|
91
|
+
svg {
|
|
92
|
+
transition: transform 300ms ease-in-out;
|
|
93
|
+
transition-property: transform;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:hover {
|
|
97
|
+
background-color: $darkGrey;
|
|
98
|
+
color: $white;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
|
|
101
|
+
svg {
|
|
102
|
+
transform: scale(0.75);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&:active {
|
|
106
|
+
transform: scale(0.85);
|
|
107
|
+
transition-duration: 100ms;
|
|
108
|
+
transition-property: transform;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.search-bar {
|
|
113
|
+
position: absolute;
|
|
114
|
+
z-index: 10;
|
|
115
|
+
top: -135px;
|
|
116
|
+
left: 0;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 90px;
|
|
119
|
+
padding-top: 2rem;
|
|
120
|
+
background-color: $lightgrey;
|
|
121
|
+
transition: top 500ms ease-in-out, height 600ms ease-in-out;
|
|
122
|
+
transition-property: top height;
|
|
123
|
+
|
|
124
|
+
&.active {
|
|
125
|
+
top: 0;
|
|
126
|
+
height: 190px;
|
|
127
|
+
|
|
128
|
+
@media only screen and (max-width: $largest-mobile-screen) {
|
|
129
|
+
height: 232px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ui.container {
|
|
134
|
+
display: flex;
|
|
135
|
+
height: 100%;
|
|
136
|
+
align-items: center;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
|
|
139
|
+
form {
|
|
140
|
+
width: 100%;
|
|
141
|
+
|
|
142
|
+
.searchbox {
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
padding-top: 0;
|
|
145
|
+
padding-bottom: 0.5rem;
|
|
146
|
+
border-bottom: 2px solid $black;
|
|
147
|
+
border-left: none;
|
|
148
|
+
margin-left: 12.6rem;
|
|
149
|
+
|
|
150
|
+
@media only screen and (max-width: $tablet-breakpoint) {
|
|
151
|
+
padding-top: 2rem;
|
|
152
|
+
margin-left: 0.5rem;
|
|
153
|
+
}
|
|
154
|
+
@media only screen and (max-width: $large-monitor-breakpoint) {
|
|
155
|
+
padding-top: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
input {
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
width: 70%;
|
|
161
|
+
padding-left: 0;
|
|
162
|
+
margin-right: 1rem;
|
|
163
|
+
background-color: $lightgrey;
|
|
164
|
+
color: $black;
|
|
165
|
+
font-size: 1.5rem;
|
|
166
|
+
@media only screen and (min-width: $tablet-breakpoint) and (max-width: 788px) {
|
|
167
|
+
margin-left: 1.5rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&::placeholder {
|
|
171
|
+
color: $black;
|
|
172
|
+
opacity: 0.5;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
button {
|
|
177
|
+
width: 75px;
|
|
178
|
+
height: 75px;
|
|
179
|
+
padding: 10px;
|
|
180
|
+
margin-right: 7px;
|
|
181
|
+
|
|
182
|
+
&:hover {
|
|
183
|
+
background-color: $darkGrey;
|
|
184
|
+
border-radius: 50%;
|
|
185
|
+
svg {
|
|
186
|
+
fill: $white !important;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
svg {
|
|
191
|
+
fill: $black !important;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.tools-wrapper {
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: row-reverse;
|
|
204
|
+
padding-top: 16px;
|
|
205
|
+
|
|
206
|
+
.language-selector {
|
|
207
|
+
padding-left: 40px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.language-selector a {
|
|
211
|
+
text-transform: uppercase;
|
|
212
|
+
}
|
|
213
|
+
.tools {
|
|
214
|
+
display: flex;
|
|
215
|
+
}
|
|
216
|
+
.tools a {
|
|
217
|
+
margin-right: 10px;
|
|
218
|
+
color: $black;
|
|
219
|
+
font-size: 14px;
|
|
220
|
+
text-align: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.tools a::after {
|
|
224
|
+
padding-right: 0;
|
|
225
|
+
padding-left: 10px;
|
|
226
|
+
content: '|';
|
|
227
|
+
font-size: 1rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.tools a:last-child:after {
|
|
231
|
+
padding-right: 5px;
|
|
232
|
+
padding-left: 5px;
|
|
233
|
+
content: '';
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.tools .anontools {
|
|
237
|
+
display: flex;
|
|
238
|
+
margin-right: 10px;
|
|
239
|
+
|
|
240
|
+
a {
|
|
241
|
+
margin-right: 0;
|
|
242
|
+
color: $black;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
> div {
|
|
246
|
+
&:first-of-type::after {
|
|
247
|
+
content: '|';
|
|
248
|
+
font-size: 1rem;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--layout-container-width: 1440px;
|
|
3
|
+
--default-container-width: 940px;
|
|
4
|
+
--narrow-container-width: 620px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// Container queries still do not work with CSS properties
|
|
8
|
+
// They should be exact numbers
|
|
9
|
+
// For now, maintain in sync with the above
|
|
10
|
+
$layout-container-width: 1440px;
|
|
11
|
+
$default-container-width: 940px;
|
|
12
|
+
$narrow-container-width: 620px;
|
|
13
|
+
|
|
14
|
+
@mixin narrow-container-width() {
|
|
15
|
+
max-width: var(--narrow-container-width);
|
|
16
|
+
margin-right: auto;
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin default-container-width() {
|
|
21
|
+
max-width: var(--default-container-width);
|
|
22
|
+
margin-right: auto;
|
|
23
|
+
margin-left: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin layout-container-width() {
|
|
27
|
+
max-width: var(--layout-container-width);
|
|
28
|
+
margin-right: auto;
|
|
29
|
+
margin-left: auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// One still cannot use variables or CSS properties directly on @container queries
|
|
33
|
+
@mixin adjustMarginsToContainer($width) {
|
|
34
|
+
@container (max-width: #{$width - 1}) {
|
|
35
|
+
margin-right: 2rem;
|
|
36
|
+
margin-left: 2rem;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Container adjustments for dealing correctly with absoluted elements
|
|
41
|
+
@mixin container-preference-order($zindex) {
|
|
42
|
+
position: relative;
|
|
43
|
+
z-index: $zindex;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// We expect initially three main containers
|
|
47
|
+
.header-wrapper {
|
|
48
|
+
.a.container {
|
|
49
|
+
@include container-preference-order(12);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.content-area {
|
|
54
|
+
.a.container {
|
|
55
|
+
@include container-preference-order(10);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
footer {
|
|
60
|
+
.a.container {
|
|
61
|
+
@include container-preference-order(8);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// If using popperjs, we need also to set preference too to the
|
|
66
|
+
// popperjs container.
|
|
67
|
+
[data-popper-placement] {
|
|
68
|
+
@include container-preference-order(100);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Container widths for configurable via block styling wrapper
|
|
72
|
+
// TODO: consider renaming "align" property to something more meaningful
|
|
73
|
+
.has--align--center {
|
|
74
|
+
@include narrow-container-width();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.has--align--wide {
|
|
78
|
+
@include default-container-width();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.has--align--full {
|
|
82
|
+
@include layout-container-width();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Container definitions for elements
|
|
86
|
+
#page-document > * {
|
|
87
|
+
@include layout-container-width();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#page-history > * {
|
|
91
|
+
@include layout-container-width();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#page-contents > * {
|
|
95
|
+
@include layout-container-width();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.header-wrapper .header,
|
|
99
|
+
.breadcrumbs .breadcrumb {
|
|
100
|
+
@include layout-container-width();
|
|
101
|
+
@include adjustMarginsToContainer($layout-container-width);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Content Layout Styling
|
|
105
|
+
#page-document .blocks-group-wrapper {
|
|
106
|
+
& > h2,
|
|
107
|
+
& > h3,
|
|
108
|
+
& > h4,
|
|
109
|
+
& > h5,
|
|
110
|
+
& > h6,
|
|
111
|
+
& > ul,
|
|
112
|
+
& > ol,
|
|
113
|
+
& > li,
|
|
114
|
+
& > p,
|
|
115
|
+
& > span,
|
|
116
|
+
& > blockquote,
|
|
117
|
+
& > .block.image.align.left.medium,
|
|
118
|
+
& > .block.image.align.left.small,
|
|
119
|
+
& > .block.image.align.right.medium,
|
|
120
|
+
& > .block.image.align.right.small,
|
|
121
|
+
.block.image.align.center figure,
|
|
122
|
+
.event-details,
|
|
123
|
+
.download-event,
|
|
124
|
+
.block.separator.has--align--left .line,
|
|
125
|
+
.block.separator.has--align--center .line,
|
|
126
|
+
& > table,
|
|
127
|
+
& > pre,
|
|
128
|
+
& > .block.code {
|
|
129
|
+
@include narrow-container-width();
|
|
130
|
+
@include adjustMarginsToContainer($narrow-container-width + 2 * 36px);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
& > h1.documentFirstHeading,
|
|
134
|
+
& > .block.image.align.left,
|
|
135
|
+
& > .block.image.align.right,
|
|
136
|
+
& > .block.image.align.wide figure,
|
|
137
|
+
& > .block.__button,
|
|
138
|
+
& > .block.listing .listing-item,
|
|
139
|
+
& > .block.listing .emptyListing,
|
|
140
|
+
& > .block.listing.grid,
|
|
141
|
+
& > .block h2.headline,
|
|
142
|
+
& > .block.heading .heading-wrapper,
|
|
143
|
+
& > .block.separator.has--align--full .line,
|
|
144
|
+
& > .block.introduction .block-container,
|
|
145
|
+
& > .block.teaser .grid-teaser-item.default,
|
|
146
|
+
& > .table-of-contents,
|
|
147
|
+
& > .slate blockquote {
|
|
148
|
+
@include default-container-width();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
& > .block.teaser,
|
|
152
|
+
& > .block.image.align.full,
|
|
153
|
+
& > .block.video.align.full,
|
|
154
|
+
& > .block.maps.align.full {
|
|
155
|
+
@include layout-container-width();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
& > h1.documentFirstHeading {
|
|
159
|
+
@include adjustMarginsToContainer($default-container-width);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
& > .block {
|
|
163
|
+
// This is the default, same color spacing for all blocks
|
|
164
|
+
margin-bottom: $block-vertical-space;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:last-child {
|
|
168
|
+
margin-bottom: -1rem !important;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Setting a default, for all blocks
|
|
173
|
+
// We want all blocks in edit go layout by default
|
|
174
|
+
// But block's inner containers can go less (eg. grid)
|
|
175
|
+
#page-add,
|
|
176
|
+
#page-edit {
|
|
177
|
+
[class*='block-editor-'] {
|
|
178
|
+
@include layout-container-width();
|
|
179
|
+
@include adjustMarginsToContainer($layout-container-width);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Add/Edit views
|
|
184
|
+
#page-add,
|
|
185
|
+
#page-edit {
|
|
186
|
+
.block.slate .slate-editor,
|
|
187
|
+
.block-editor-image.left.medium,
|
|
188
|
+
.block-editor-image.left.small,
|
|
189
|
+
.block-editor-image.right.medium,
|
|
190
|
+
.block-editor-image.right.small,
|
|
191
|
+
.block-editor-image.center figure,
|
|
192
|
+
.block-editor-separator.has--align--left .block.separator,
|
|
193
|
+
.block-editor-separator.has--align--center .block.separator,
|
|
194
|
+
.block-editor-slateTable,
|
|
195
|
+
.block-editor-codeBlock,
|
|
196
|
+
.block-editor-mermaidBlock {
|
|
197
|
+
@include narrow-container-width();
|
|
198
|
+
@include adjustMarginsToContainer($narrow-container-width);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.block-editor-title h1,
|
|
202
|
+
.block-editor-image.left.large,
|
|
203
|
+
.block-editor-image.right.large,
|
|
204
|
+
.block-editor-image.wide figure, // Wide images are always large
|
|
205
|
+
.block-editor-image.wide.large figure,
|
|
206
|
+
.block.introduction .slate-editor,
|
|
207
|
+
.block.heading .heading-wrapper,
|
|
208
|
+
.block-editor-listing .items,
|
|
209
|
+
.block-editor-listing .listing.message,
|
|
210
|
+
.block-editor-separator.has--align--full .block.separator,
|
|
211
|
+
.block-editor-separator .block.separator.has--align--full,
|
|
212
|
+
.block.teaser.has--align--center,
|
|
213
|
+
.block-editor-teaser .grid-teaser-item.default,
|
|
214
|
+
.block-editor-toc {
|
|
215
|
+
@include default-container-width();
|
|
216
|
+
@include adjustMarginsToContainer($default-container-width);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.block-editor-slate,
|
|
220
|
+
.block-editor-image,
|
|
221
|
+
.block-editor-slider,
|
|
222
|
+
.block-editor-teaser,
|
|
223
|
+
.block-editor-separator.has--align--left {
|
|
224
|
+
@include layout-container-width();
|
|
225
|
+
@include adjustMarginsToContainer($layout-container-width);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// Grids adjustments (has to be paired with collections/grid.variables)
|
|
230
|
+
// TODO: Move to our own grid component
|
|
231
|
+
.block.__grid .ui.stackable,
|
|
232
|
+
.block.__grid h2.headline,
|
|
233
|
+
.block.gridBlock .ui.stackable,
|
|
234
|
+
.block.gridBlock .grid-items,
|
|
235
|
+
.block.gridBlock h2.headline {
|
|
236
|
+
@include default-container-width();
|
|
237
|
+
max-width: calc(var(--default-container-width) + 1rem);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Fix for Image Grid with only one image
|
|
241
|
+
#page-document .block.gridBlock .block.image.align.center figure,
|
|
242
|
+
#page-document .block.gridBlock .block.image.align.center figure {
|
|
243
|
+
max-width: unset;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// handlers adjustments
|
|
247
|
+
body.has-toolbar.has-sidebar .drag.handle.wrapper {
|
|
248
|
+
margin-left: -30px !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
body.has-toolbar.has-sidebar .block .ui.basic.button.delete-button {
|
|
252
|
+
margin-right: -30px !important;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
#page-add,
|
|
256
|
+
#page-edit {
|
|
257
|
+
.block-editor-accordion {
|
|
258
|
+
[class*='block-editor-'] {
|
|
259
|
+
margin-right: 0;
|
|
260
|
+
margin-left: 0;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.contenttype-file {
|
|
266
|
+
a {
|
|
267
|
+
text-decoration: underline;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@import 'bgcolor-blocks-layout';
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
body,
|
|
2
|
+
h1,
|
|
3
|
+
h2,
|
|
4
|
+
h3,
|
|
5
|
+
h4,
|
|
6
|
+
h5,
|
|
7
|
+
h6,
|
|
8
|
+
p,
|
|
9
|
+
a,
|
|
10
|
+
li {
|
|
11
|
+
font-family: $page-font;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
@include body-text();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
p,
|
|
17
|
+
ul,
|
|
18
|
+
ol {
|
|
19
|
+
margin-bottom: $block-vertical-space;
|
|
20
|
+
|
|
21
|
+
&:last-child {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
strong {
|
|
27
|
+
@include add(weight, bold);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
em,
|
|
31
|
+
em span span {
|
|
32
|
+
font-style: italic;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#page-document {
|
|
36
|
+
blockquote {
|
|
37
|
+
padding: 18px 40px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
h1.documentFirstHeading {
|
|
42
|
+
border: none;
|
|
43
|
+
@include page-title();
|
|
44
|
+
@include vertical-space-h1();
|
|
45
|
+
span {
|
|
46
|
+
border: none;
|
|
47
|
+
@include page-title();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Block Title
|
|
56
|
+
.block h2.headline {
|
|
57
|
+
@include block-title();
|
|
58
|
+
@include vertical-space-h2();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Heading block
|
|
62
|
+
.heading-wrapper h2,
|
|
63
|
+
.block .heading-wrapper h2:last-child {
|
|
64
|
+
// Needed to cancel the Semantic one
|
|
65
|
+
@include block-title();
|
|
66
|
+
@include vertical-space-heading();
|
|
67
|
+
}
|
|
68
|
+
.heading-wrapper h3 {
|
|
69
|
+
padding-top: 3rem;
|
|
70
|
+
padding-bottom: 1rem;
|
|
71
|
+
font-size: 42px;
|
|
72
|
+
font-weight: $light;
|
|
73
|
+
line-height: 48px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Slate headings
|
|
77
|
+
h2 {
|
|
78
|
+
@include text-heading-h2();
|
|
79
|
+
@include vertical-space-h2();
|
|
80
|
+
span {
|
|
81
|
+
font-size: inherit;
|
|
82
|
+
font-weight: inherit;
|
|
83
|
+
line-height: inherit;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
h3 {
|
|
87
|
+
@include text-heading-h3();
|
|
88
|
+
@include vertical-space-h3();
|
|
89
|
+
span {
|
|
90
|
+
font-size: inherit;
|
|
91
|
+
font-weight: inherit;
|
|
92
|
+
line-height: inherit;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
h4 {
|
|
96
|
+
@include text-heading-h4();
|
|
97
|
+
@include vertical-space-h4();
|
|
98
|
+
span {
|
|
99
|
+
font-size: inherit;
|
|
100
|
+
font-weight: inherit;
|
|
101
|
+
line-height: inherit;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Head-title
|
|
106
|
+
.head-title,
|
|
107
|
+
.head-title span {
|
|
108
|
+
@include body-text-bold();
|
|
109
|
+
padding-bottom: 10px;
|
|
110
|
+
letter-spacing: 1px;
|
|
111
|
+
text-transform: uppercase !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#page-add,
|
|
115
|
+
#page-edit {
|
|
116
|
+
.head-title,
|
|
117
|
+
.head-title span {
|
|
118
|
+
user-select: none;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@font-face {
|
|
123
|
+
font-family: 'Inter';
|
|
124
|
+
font-style: thin;
|
|
125
|
+
font-weight: 100;
|
|
126
|
+
src: local('Inter');
|
|
127
|
+
src: url('./fonts/Inter-Thin.ttf');
|
|
128
|
+
src: url('./fonts/Inter-Thin.ttf') format('truetype');
|
|
129
|
+
}
|
|
130
|
+
@font-face {
|
|
131
|
+
font-family: 'Inter';
|
|
132
|
+
// font-style: extra-light;
|
|
133
|
+
font-weight: 200;
|
|
134
|
+
src: local('Inter');
|
|
135
|
+
src: url('./fonts/Inter-ExtraLight.ttf');
|
|
136
|
+
src: url('./fonts/Inter-ExtraLight.ttf') format('truetype');
|
|
137
|
+
}
|
|
138
|
+
@font-face {
|
|
139
|
+
font-family: 'Inter';
|
|
140
|
+
font-style: light;
|
|
141
|
+
font-weight: 300;
|
|
142
|
+
src: local('Inter');
|
|
143
|
+
src: url('./fonts/Inter-Light.ttf');
|
|
144
|
+
src: url('./fonts/Inter-Light.ttf') format('truetype');
|
|
145
|
+
}
|
|
146
|
+
@font-face {
|
|
147
|
+
font-family: 'Inter';
|
|
148
|
+
font-style: normal; //regular
|
|
149
|
+
font-weight: 400;
|
|
150
|
+
src: local('Inter');
|
|
151
|
+
src: url('./fonts/Inter-Regular.ttf');
|
|
152
|
+
src: url('./fonts/Inter-Regular.ttf') format('truetype');
|
|
153
|
+
}
|
|
154
|
+
@font-face {
|
|
155
|
+
font-family: 'Inter';
|
|
156
|
+
font-style: medium;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
src: local('Inter');
|
|
159
|
+
src: url('./fonts/Inter-Medium.ttf');
|
|
160
|
+
src: url('./fonts/Inter-Medium.ttf') format('truetype');
|
|
161
|
+
}
|
|
162
|
+
@font-face {
|
|
163
|
+
font-family: 'Inter';
|
|
164
|
+
// font-style: semi-bold;
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
src: local('Inter');
|
|
167
|
+
src: url('./fonts/Inter-SemiBold.ttf');
|
|
168
|
+
src: url('./fonts/Inter-SemiBold.ttf') format('truetype');
|
|
169
|
+
}
|
|
170
|
+
@font-face {
|
|
171
|
+
font-family: 'Inter';
|
|
172
|
+
font-style: bold;
|
|
173
|
+
font-weight: 700;
|
|
174
|
+
src: local('Inter');
|
|
175
|
+
src: url('./fonts/Inter-Bold.ttf');
|
|
176
|
+
src: url('./fonts/Inter-Bold.ttf') format('truetype');
|
|
177
|
+
}
|
|
178
|
+
@font-face {
|
|
179
|
+
font-family: 'Inter';
|
|
180
|
+
// font-style: extra-bold;
|
|
181
|
+
font-weight: 800;
|
|
182
|
+
src: local('Inter');
|
|
183
|
+
src: url('./fonts/Inter-ExtraBold.ttf');
|
|
184
|
+
src: url('./fonts/Inter-ExtraBold.ttf') format('truetype');
|
|
185
|
+
}
|
|
186
|
+
@font-face {
|
|
187
|
+
font-family: 'Inter';
|
|
188
|
+
// font-style: black;
|
|
189
|
+
font-weight: 900;
|
|
190
|
+
src: local('Inter');
|
|
191
|
+
src: url('./fonts/Inter-Black.ttf');
|
|
192
|
+
src: url('./fonts/Inter-Black.ttf') format('truetype');
|
|
193
|
+
}
|