@troshab/slidev-theme-troshab 0.1.4 → 0.1.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/components/Definition.vue +1 -1
- package/components/Stepper.vue +6 -0
- package/components/StyledList.vue +1 -1
- package/package.json +3 -3
- package/scripts/generate-component-docs.mjs +759 -0
- package/setup/shiki.ts +12 -3
- package/styles/base.css +155 -113
- package/styles/motion.css +1 -1
- package/fonts/IBMPlexMono-Medium.woff2 +0 -1449
- package/fonts/IBMPlexMono-Regular.woff2 +0 -1449
- package/fonts/IBMPlexSans-Bold.woff2 +0 -1449
- package/fonts/IBMPlexSans-Medium.woff2 +0 -1449
- package/fonts/IBMPlexSans-Regular.woff2 +0 -1449
- package/fonts/IBMPlexSans-SemiBold.woff2 +0 -1449
|
@@ -19,7 +19,7 @@ defineProps<{
|
|
|
19
19
|
<h1 class="definition-term">{{ term }}</h1>
|
|
20
20
|
<div v-if="pronunciation || partOfSpeech" class="definition-meta">
|
|
21
21
|
<span v-if="pronunciation" class="definition-pronunciation">{{ pronunciation }}</span>
|
|
22
|
-
<span v-if="partOfSpeech" class="definition-pos">{{ partOfSpeech }}</span>
|
|
22
|
+
<span v-if="pronunciation && partOfSpeech" class="definition-pos">{{ partOfSpeech }}</span>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="definition-body">
|
|
25
25
|
<slot />
|
package/components/Stepper.vue
CHANGED
|
@@ -267,6 +267,12 @@ function isUpcoming(index: number) {
|
|
|
267
267
|
.stepper-step {
|
|
268
268
|
display: flex;
|
|
269
269
|
align-items: center;
|
|
270
|
+
/* Reserve horizontal space for .stepper-marker's transform: scale(1.15) on
|
|
271
|
+
* active state. Scaled marker's visible box extends ~6px past its layout
|
|
272
|
+
* box; without padding, step.scrollWidth exceeds clientWidth by 1-3px on
|
|
273
|
+
* short labels. Per CSS spec, transformed descendants count toward parent
|
|
274
|
+
* scrollable overflow. */
|
|
275
|
+
padding: 0 var(--transform-scale-comp);
|
|
270
276
|
}
|
|
271
277
|
|
|
272
278
|
.stepper-horizontal .stepper-step {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@troshab/slidev-theme-troshab",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "A minimal, universal Slidev theme with flexible layouts and ready-to-use slide templates",
|
|
5
5
|
"author": "troshab",
|
|
6
6
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"slidev": ">=0.50.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@fontsource/ibm-plex-mono": "^5.2.7",
|
|
36
|
+
"@fontsource/ibm-plex-sans": "^5.2.8",
|
|
35
37
|
"qrcode": "^1.5.4",
|
|
36
38
|
"slidev-addon-asciinema": "^0.1.11",
|
|
37
39
|
"slidev-addon-fancy-arrow": "^0.16.0",
|
|
@@ -49,8 +51,6 @@
|
|
|
49
51
|
"audit:all": "node scripts/contrast-audit.mjs && node scripts/shiki-audit.mjs && node scripts/typography-audit.mjs && node scripts/chart-audit.mjs && node scripts/integrity-audit.mjs"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
|
-
"@fontsource/ibm-plex-mono": "^5.2.7",
|
|
53
|
-
"@fontsource/ibm-plex-sans": "^5.2.8",
|
|
54
54
|
"@iconify-json/ph": "^1.2.2",
|
|
55
55
|
"@slidev/cli": "^0.50.0",
|
|
56
56
|
"@types/qrcode": "^1.5.5",
|