@scalar/sidebar 0.12.6 → 0.12.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.
Files changed (2) hide show
  1. package/dist/style.css +11 -3
  2. package/package.json +5 -5
package/dist/style.css CHANGED
@@ -712,7 +712,8 @@
712
712
  color: var(--scalar-color-blue);
713
713
  }
714
714
 
715
- .scalar-code-block pre {
715
+ .scalar-code-block-pre {
716
+ font-family: var(--scalar-font-code);
716
717
  font-variant-ligatures: none;
717
718
  }
718
719
 
@@ -798,6 +799,10 @@
798
799
  stroke-width: var(--c07589c2);
799
800
  }
800
801
 
802
+ :where(pre:has( > code.hljs)) {
803
+ line-height: var(--scalar-code-line-height, 1.4);
804
+ }
805
+
801
806
  .scalar-app :where(code.hljs) * {
802
807
  font-size: inherit;
803
808
  font-family: var(--scalar-font-code);
@@ -813,7 +818,6 @@
813
818
  all: unset;
814
819
  font-size: inherit;
815
820
  color: var(--scalar-color-2);
816
- line-height: 1.4;
817
821
  font-family: var(--scalar-font-code);
818
822
  counter-reset: linenumber;
819
823
  }
@@ -1301,14 +1305,18 @@
1301
1305
  font-size: var(--scalar-small);
1302
1306
  }
1303
1307
 
1308
+ .scalar-app .markdown pre {
1309
+ line-height: var(--scalar-code-line-height, 1.5);
1310
+ }
1311
+
1304
1312
  .scalar-app .markdown pre code {
1305
1313
  white-space: pre;
1306
1314
  padding: var(--markdown-spacing-sm);
1315
+ line-height: inherit;
1307
1316
  margin: var(--markdown-spacing-sm) 0;
1308
1317
  -webkit-overflow-scrolling: touch;
1309
1318
  min-width: 100px;
1310
1319
  max-width: 100%;
1311
- line-height: 1.5;
1312
1320
  display: block;
1313
1321
  overflow-x: auto;
1314
1322
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/sidebar"
12
12
  },
13
- "version": "0.12.6",
13
+ "version": "0.12.7",
14
14
  "engines": {
15
15
  "node": ">=22"
16
16
  },
@@ -32,12 +32,12 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@scalar/components": "0.33.1",
36
- "@scalar/helpers": "0.16.4",
35
+ "@scalar/components": "0.33.2",
36
+ "@scalar/helpers": "0.17.0",
37
37
  "@scalar/icons": "0.7.8",
38
38
  "@scalar/themes": "0.20.0",
39
- "@scalar/use-hooks": "0.4.22",
40
- "@scalar/workspace-store": "0.69.3",
39
+ "@scalar/use-hooks": "0.4.23",
40
+ "@scalar/workspace-store": "0.70.0",
41
41
  "vue": "^3.5.44"
42
42
  },
43
43
  "devDependencies": {