@docubook/markdown 2.1.0 → 2.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/markdown",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Portable MDX components and framework adapters for DocuBook",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "mermaid": "^11.16.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@docubook/core": "^2.1.0",
42
+ "@docubook/core": "^2.1.2",
43
43
  "lucide-react": "^1.7.0",
44
44
  "react": ">=18",
45
45
  "react-dom": ">=18",
package/styles.css CHANGED
@@ -8,6 +8,18 @@
8
8
  overscroll-behavior-x: contain;
9
9
  }
10
10
 
11
+ /* Phones: code blocks bleed over the content gutter so the card spans the full
12
+ screen width. The host layout declares how wide that gutter is via
13
+ `--docubook-content-gutter` (1rem fallback); we pull back by it and drop the
14
+ radius and side borders that would otherwise float inside the screen. */
15
+ @media (max-width: 639.98px) {
16
+ .code-block-container {
17
+ margin-inline: calc(-1 * var(--docubook-content-gutter, 1rem)) !important;
18
+ border-radius: 0 !important;
19
+ border-inline: 0 !important;
20
+ }
21
+ }
22
+
11
23
  [data-card-hover]:hover {
12
24
  border-color: hsl(var(--primary, 210 81% 56%)) !important;
13
25
  box-shadow: 0 11px 28px rgba(34, 129, 227, 0.15) !important;