@commonpub/layer 0.21.17 → 0.21.18
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.
|
@@ -1010,13 +1010,30 @@ async function handleBuild(): Promise<void> {
|
|
|
1010
1010
|
word-break: break-word;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
|
-
/* Prevent images and media from overflowing prose
|
|
1013
|
+
/* Prevent images and media from overflowing prose, AND cap them at a
|
|
1014
|
+
reading-friendly size in wide content columns. Without this cap, body
|
|
1015
|
+
images blew up to 900px+ once the right sidebar was made optional in
|
|
1016
|
+
0.21.16 (the content column got wider when no BOM/community). 760px
|
|
1017
|
+
for images matches what photographers + technical-writing layouts
|
|
1018
|
+
converge on; videos/iframes get a touch more (880px) for visibility.
|
|
1019
|
+
Cover photo lives OUTSIDE .cpub-prose so it still goes full-width. */
|
|
1014
1020
|
.cpub-prose :deep(img),
|
|
1015
1021
|
.cpub-prose :deep(video),
|
|
1016
1022
|
.cpub-prose :deep(iframe) {
|
|
1017
1023
|
max-width: 100%;
|
|
1018
1024
|
height: auto;
|
|
1019
1025
|
}
|
|
1026
|
+
.cpub-prose :deep(img) {
|
|
1027
|
+
max-width: min(100%, 760px);
|
|
1028
|
+
margin-inline: auto;
|
|
1029
|
+
display: block;
|
|
1030
|
+
}
|
|
1031
|
+
.cpub-prose :deep(video),
|
|
1032
|
+
.cpub-prose :deep(iframe) {
|
|
1033
|
+
max-width: min(100%, 880px);
|
|
1034
|
+
margin-inline: auto;
|
|
1035
|
+
display: block;
|
|
1036
|
+
}
|
|
1020
1037
|
|
|
1021
1038
|
/* Code blocks scroll horizontally instead of overflowing */
|
|
1022
1039
|
.cpub-prose :deep(pre) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"vue-router": "^4.3.0",
|
|
52
52
|
"zod": "^4.3.6",
|
|
53
53
|
"@commonpub/auth": "0.6.0",
|
|
54
|
-
"@commonpub/learning": "0.5.2",
|
|
55
54
|
"@commonpub/config": "0.13.0",
|
|
56
55
|
"@commonpub/explainer": "0.7.15",
|
|
57
|
-
"@commonpub/docs": "0.6.3",
|
|
58
|
-
"@commonpub/editor": "0.7.10",
|
|
59
|
-
"@commonpub/schema": "0.16.0",
|
|
60
56
|
"@commonpub/server": "2.55.0",
|
|
61
57
|
"@commonpub/protocol": "0.12.0",
|
|
58
|
+
"@commonpub/schema": "0.16.0",
|
|
59
|
+
"@commonpub/learning": "0.5.2",
|
|
60
|
+
"@commonpub/editor": "0.7.10",
|
|
61
|
+
"@commonpub/docs": "0.6.3",
|
|
62
62
|
"@commonpub/ui": "0.8.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|