@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.
@@ -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 />
@@ -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 {
@@ -115,7 +115,7 @@ const props = withDefaults(defineProps<{
115
115
  left: 0;
116
116
  color: var(--marker-color);
117
117
  font-weight: var(--font-weight-bold);
118
- font-size: var(--font-size-base);
118
+ font-size: inherit;
119
119
  width: 1.5em;
120
120
  text-align: center;
121
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@troshab/slidev-theme-troshab",
3
- "version": "0.1.4",
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",