@eox/pages-theme-esa 0.8.0 → 0.8.1

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/README.md CHANGED
@@ -18,7 +18,6 @@ export default {
18
18
 
19
19
  See also the [Vitepress Docs](https://vitepress.dev/guide/custom-theme#consuming-a-custom-theme).
20
20
 
21
-
22
21
  ### Feedback Form
23
22
 
24
23
  **Feedback Form** for collecting user feedback can be enabled by configuring the theme:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/pages-theme-esa",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with ESA branding",
6
6
  "main": "src/index.js",
package/src/Layout.vue CHANGED
@@ -106,7 +106,7 @@ onMounted(async () => {
106
106
  ></esa-menu>
107
107
  <esa-header></esa-header>
108
108
  <esa-navbar
109
- :brand-logo="theme.logo? withBase(theme.logo) : undefined"
109
+ :brand-logo="theme.logo ? withBase(theme.logo) : undefined"
110
110
  :brand-title="site.title"
111
111
  .menuItems="theme.nav.map((n) => ({ title: n.text, href: withBase(n.link) }))"
112
112
  :enable-login="theme.login"
@@ -121,10 +121,18 @@ onMounted(async () => {
121
121
  :background-image="frontmatter.hero.background"
122
122
  :underline="frontmatter.hero.tagline"
123
123
  :cta="frontmatter.hero.actions?.[0]"
124
- :cta-link="frontmatter.hero.actions?.[0]?.link ? withBase(frontmatter.hero.actions?.[0]?.link) : undefined"
124
+ :cta-link="
125
+ frontmatter.hero.actions?.[0]?.link
126
+ ? withBase(frontmatter.hero.actions?.[0]?.link)
127
+ : undefined
128
+ "
125
129
  :cta-text="frontmatter.hero.actions?.[0]?.text"
126
130
  :alt="frontmatter.hero.actions?.[1]"
127
- :alt-link="frontmatter.hero.actions?.[1]?.link ? withBase(frontmatter.hero.actions?.[1]?.link) : undefined"
131
+ :alt-link="
132
+ frontmatter.hero.actions?.[1]?.link
133
+ ? withBase(frontmatter.hero.actions?.[1]?.link)
134
+ : undefined
135
+ "
128
136
  :alt-text="frontmatter.hero.actions?.[1]?.text"
129
137
  :image="frontmatter.hero.image"
130
138
  ></esa-cover>
@@ -184,7 +192,7 @@ onMounted(async () => {
184
192
  </ClientOnly>
185
193
  </template>
186
194
  <template #not-found>
187
- <section class="blue" style="margin-top: var(--vp-nav-height);">
195
+ <section class="blue" style="margin-top: var(--vp-nav-height)">
188
196
  <h1>404</h1>
189
197
  <p>Page not found</p>
190
198
  <a class="VPButton cta" :href="withBase('/')">Go to Home</a>
@@ -36,6 +36,7 @@ onMounted(async () => {
36
36
  eox-storytelling {
37
37
  --header-font-family: NotesESAbold, sans-serif;
38
38
  --body-font-family: Arial, sans-serif;
39
+ --color: var(--vp-c-black, #101213);
39
40
  margin: var(--vp-nav-height) 0 var(--vp-nav-height) 0;
40
41
  background: white;
41
42
  color: var(--vp-c-black);
package/src/style.css CHANGED
@@ -57,15 +57,15 @@ h6,
57
57
  }
58
58
 
59
59
  a:not(.VPButton) {
60
- border-bottom: 0.125rem solid #00AE9D;
60
+ border-bottom: 0.125rem solid #00ae9d;
61
61
  padding-bottom: 0.15625rem;
62
- transition: all .5s ease;
62
+ transition: all 0.5s ease;
63
63
  text-decoration: none;
64
64
  color: currentColor;
65
65
  }
66
66
  a:not(.VPButton):hover {
67
- padding-bottom: .3125rem;
68
- color: #00AE9D;
67
+ padding-bottom: 0.3125rem;
68
+ color: #00ae9d;
69
69
  }
70
70
 
71
71
  body {
@@ -239,3 +239,115 @@ section > p {
239
239
  eox-feedback-button {
240
240
  z-index: calc(var(--vp-z-index-footer) + 1);
241
241
  }
242
+
243
+ /*
244
+ * Lists
245
+ */
246
+ section ul,
247
+ section ol,
248
+ .VPPage ul,
249
+ .VPPage ol {
250
+ padding-left: 1.25rem;
251
+ margin: 16px 0;
252
+ }
253
+
254
+ section ul,
255
+ .VPPage ul {
256
+ list-style: disc;
257
+ }
258
+
259
+ section ol,
260
+ .VPPage ol {
261
+ list-style: decimal;
262
+ }
263
+
264
+ section ul ul,
265
+ .VPPage ul ul {
266
+ list-style: circle;
267
+ }
268
+
269
+ section ul ul ul,
270
+ .VPPage ul ul ul {
271
+ list-style: square;
272
+ }
273
+
274
+ section li + li,
275
+ .VPPage li + li {
276
+ margin-top: 8px;
277
+ }
278
+
279
+ section li > ol,
280
+ section li > ul,
281
+ .VPPage li > ol,
282
+ .VPPage li > ul {
283
+ margin: 8px 0 0;
284
+ }
285
+
286
+ section li,
287
+ .VPPage li {
288
+ line-height: 1.75rem;
289
+ font-size: 1.125rem;
290
+ }
291
+
292
+ /*
293
+ * Tables
294
+ */
295
+ section table,
296
+ .VPPage table {
297
+ width: 100%;
298
+ border-collapse: collapse;
299
+ margin: 24px 0;
300
+ display: table;
301
+ overflow-x: auto;
302
+ }
303
+
304
+ section tr,
305
+ .VPPage tr {
306
+ border-top: 1px solid rgba(255, 255, 255, 0.15);
307
+ transition: background-color 0.3s ease;
308
+ }
309
+
310
+ section.white tr,
311
+ section.light-grey tr {
312
+ border-top: 1px solid rgba(0, 0, 0, 0.12);
313
+ }
314
+
315
+ section th,
316
+ section td,
317
+ .VPPage th,
318
+ .VPPage td {
319
+ border: 1px solid rgba(255, 255, 255, 0.15);
320
+ padding: 10px 16px;
321
+ text-align: left;
322
+ font-size: 1rem;
323
+ line-height: 1.5rem;
324
+ }
325
+
326
+ section.white th,
327
+ section.white td,
328
+ section.light-grey th,
329
+ section.light-grey td {
330
+ border: 1px solid rgba(0, 0, 0, 0.12);
331
+ }
332
+
333
+ section th,
334
+ .VPPage th {
335
+ font-family: "NotesESAbold", sans-serif;
336
+ font-weight: 600;
337
+ background-color: rgba(255, 255, 255, 0.08);
338
+ }
339
+
340
+ section.white th,
341
+ section.light-grey th {
342
+ background-color: rgba(0, 0, 0, 0.05);
343
+ }
344
+
345
+ section tbody tr:nth-child(2n),
346
+ .VPPage tbody tr:nth-child(2n) {
347
+ background-color: rgba(255, 255, 255, 0.03);
348
+ }
349
+
350
+ section.white tbody tr:nth-child(2n),
351
+ section.light-grey tbody tr:nth-child(2n) {
352
+ background-color: rgba(0, 0, 0, 0.02);
353
+ }