@sit-onyx/nuxt-docs 0.5.1-dev-20260422105150 → 0.5.2-dev-20260422151010

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.
@@ -85,12 +85,12 @@ const toc = computed(() => collection.data.value?.body.toc?.links ?? []);
85
85
 
86
86
  <slot name="hero"></slot>
87
87
 
88
- <div class="content onyx-grid-layout">
89
- <div>
88
+ <div class="main onyx-grid-layout">
89
+ <div class="content">
90
90
  <slot></slot>
91
91
  </div>
92
92
 
93
- <TableOfContents v-if="toc.length" class="content__toc" :links="toc" />
93
+ <TableOfContents v-if="toc.length" class="main__toc" :links="toc" />
94
94
  </div>
95
95
 
96
96
  <template v-if="!!slots.footer" #footer>
@@ -117,7 +117,7 @@ const toc = computed(() => collection.data.value?.body.toc?.links ?? []);
117
117
  }
118
118
  }
119
119
 
120
- .content {
120
+ .main {
121
121
  /** Gap between page content and TOC. Equivalent to one grid column + 2 * grid gutter/gap */
122
122
  --onyx-content-toc-gap: calc(2 * var(--onyx-grid-gutter) + (100 / var(--onyx-grid-columns)) * 1%);
123
123
  display: grid;
@@ -136,9 +136,16 @@ const toc = computed(() => collection.data.value?.body.toc?.links ?? []);
136
136
  @include breakpoints.container(max, md) {
137
137
  grid-template-columns: 1fr;
138
138
 
139
- .content__toc {
139
+ .main__toc {
140
140
  display: none;
141
141
  }
142
142
  }
143
143
  }
144
+
145
+ .content {
146
+ // remove the top margin of the first child since its redundant to the page padding
147
+ :deep(> div > :first-child) {
148
+ margin-top: 0;
149
+ }
150
+ }
144
151
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt-docs",
3
- "version": "0.5.1-dev-20260422105150",
3
+ "version": "0.5.2-dev-20260422151010",
4
4
  "description": "Nuxt layer/template for creating documentations with the onyx design system",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
@@ -23,7 +23,7 @@
23
23
  "nuxt.config.ts"
24
24
  ],
25
25
  "dependencies": {
26
- "@sit-onyx/mdc": "^0.1.0-dev-20260422105150"
26
+ "@sit-onyx/mdc": "^0.2.0-dev-20260422151010"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@fontsource-variable/source-code-pro": ">= 5",
@@ -33,9 +33,9 @@
33
33
  "@nuxtjs/i18n": ">= 10",
34
34
  "@nuxtjs/mdc": ">= 0.20.2",
35
35
  "sass-embedded": ">= 1",
36
- "@sit-onyx/icons": "^1.9.0-dev-20260422105150",
37
- "@sit-onyx/nuxt": "^1.0.1",
38
- "sit-onyx": "^1.12.0-dev-20260422105150"
36
+ "@sit-onyx/icons": "^1.9.0",
37
+ "sit-onyx": "^1.12.0",
38
+ "@sit-onyx/nuxt": "^1.0.1"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@fontsource-variable/source-code-pro": "^5.2.7",
@@ -50,10 +50,10 @@
50
50
  "sass-embedded": "1.99.0",
51
51
  "typescript": "5.9.3",
52
52
  "vue": "3.5.32",
53
- "@sit-onyx/icons": "^1.9.0-dev-20260422105150",
53
+ "@sit-onyx/icons": "^1.9.0",
54
54
  "@sit-onyx/nuxt": "^1.0.1",
55
- "@sit-onyx/shared": "^0.1.0",
56
- "sit-onyx": "^1.12.0-dev-20260422105150"
55
+ "sit-onyx": "^1.12.0",
56
+ "@sit-onyx/shared": "^0.1.0"
57
57
  },
58
58
  "scripts": {
59
59
  "dev": "pnpm dev:prepare && nuxi dev playground",