@commonpub/layer 0.86.0 → 0.86.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.
@@ -640,7 +640,7 @@ function onHandlePointerDown(e: PointerEvent): void {
640
640
  gap: 4px;
641
641
  align-items: center;
642
642
  }
643
- .cpub-layout-section-placeholder code { color: var(--accent); }
643
+ .cpub-layout-section-placeholder code { color: var(--code-inline); }
644
644
  .cpub-layout-section-placeholder-hint {
645
645
  font-size: var(--text-xs);
646
646
  color: var(--text-faint);
@@ -205,7 +205,7 @@ export function digestFor(body: string): string {
205
205
  .scene-muted { font-size: var(--text-sm); color: var(--text-dim); margin: 0; }
206
206
  .scene-faint { font-size: var(--text-sm); color: var(--text-faint); margin: 0; }
207
207
  .scene-mono-label { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-dim); margin: 0; }
208
- .scene-inline-code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; background: var(--surface2); color: var(--accent); border: var(--border-width-thin) solid var(--border2); }
208
+ .scene-inline-code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; background: var(--surface2); color: var(--code-inline); border: var(--border-width-thin) solid var(--border2); }
209
209
 
210
210
  /* Buttons */
211
211
  .scene-btn {
@@ -119,7 +119,7 @@
119
119
  color: var(--text-dim);
120
120
  background: var(--accent-bg);
121
121
  }
122
- .scene-prose-code-inline { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; background: var(--surface2); border: var(--border-width-thin) solid var(--border2); color: var(--accent); }
122
+ .scene-prose-code-inline { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; background: var(--surface2); border: var(--border-width-thin) solid var(--border2); color: var(--code-inline); }
123
123
  .scene-prose-pre {
124
124
  background: var(--code-bg);
125
125
  color: var(--code-text);
@@ -56,17 +56,20 @@ const size = computed<EmbedSize>(() => {
56
56
  .cpub-embed-label i { color: var(--accent); }
57
57
 
58
58
  .cpub-embed-wrap {
59
- position: relative;
60
- padding-bottom: 56.25%;
61
- height: 0;
59
+ display: block;
60
+ line-height: 0;
62
61
  border-radius: 0;
63
62
  }
64
63
 
64
+ /* 16:9 via aspect-ratio so a prose `iframe { height: auto }` rule cooperates with
65
+ the ratio rather than collapsing the iframe (see BlockVideoView). */
65
66
  .cpub-embed-iframe {
66
- position: absolute;
67
- top: 0;
68
- left: 0;
67
+ display: block;
69
68
  width: 100%;
70
- height: 100%;
69
+ aspect-ratio: 16 / 9;
70
+ height: auto;
71
+ border: 0;
72
+ background: var(--text);
73
+ border-radius: 0;
71
74
  }
72
75
  </style>
@@ -25,7 +25,7 @@ const html = computed(() => sanitizeBlockHtml((props.content.html as string) ||
25
25
  .cpub-block-text :deep(code) {
26
26
  font-family: var(--font-mono);
27
27
  font-size: 13px;
28
- color: var(--teal);
28
+ color: var(--code-inline);
29
29
  background: var(--surface2);
30
30
  border: var(--border-width-default) solid var(--border);
31
31
  padding: 1px 6px;
@@ -78,18 +78,22 @@ const platform = computed(() => {
78
78
  .cpub-video-label i { color: var(--accent); }
79
79
 
80
80
  .cpub-video-wrap {
81
- position: relative;
82
- padding-bottom: 56.25%;
83
- height: 0;
84
- background: var(--text);
81
+ display: block;
82
+ line-height: 0;
85
83
  border-radius: 0;
86
84
  }
87
85
 
86
+ /* 16:9 via aspect-ratio on the iframe (not the legacy padding-bottom hack), so a
87
+ prose `iframe { height: auto }` rule (ProjectView/ArticleView/ExplainerView)
88
+ COOPERATES with the ratio instead of collapsing the iframe inside a 0-height
89
+ wrap and leaving black space below it. */
88
90
  .cpub-video-iframe {
89
- position: absolute;
90
- top: 0;
91
- left: 0;
91
+ display: block;
92
92
  width: 100%;
93
- height: 100%;
93
+ aspect-ratio: 16 / 9;
94
+ height: auto;
95
+ border: 0;
96
+ background: var(--text);
97
+ border-radius: 0;
94
98
  }
95
99
  </style>
@@ -568,7 +568,7 @@ useJsonLd({
568
568
  .cpub-prose :deep(code) {
569
569
  font-family: var(--font-mono);
570
570
  font-size: 13px;
571
- color: var(--teal);
571
+ color: var(--code-inline);
572
572
  background: var(--surface2);
573
573
  border: var(--border-width-default) solid var(--border);
574
574
  padding: 1px 6px;
@@ -696,7 +696,7 @@ onUnmounted(() => { document.removeEventListener('keydown', onKeydown); });
696
696
  background: var(--surface2);
697
697
  border: var(--border-width-default) solid var(--border);
698
698
  padding: 1px 6px;
699
- color: var(--accent);
699
+ color: var(--code-inline);
700
700
  }
701
701
 
702
702
  .cpub-empty-section {
@@ -926,7 +926,7 @@ async function handleBuild(): Promise<void> {
926
926
  background: var(--surface2);
927
927
  padding: 2px 5px;
928
928
  border: var(--border-width-default) solid var(--border2);
929
- color: var(--accent);
929
+ color: var(--code-inline);
930
930
  }
931
931
 
932
932
  .cpub-prose :deep(pre code) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/layer",
3
- "version": "0.86.0",
3
+ "version": "0.86.2",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -55,16 +55,16 @@
55
55
  "vue-router": "^4.3.0",
56
56
  "zod": "^4.3.6",
57
57
  "@commonpub/auth": "0.8.0",
58
- "@commonpub/learning": "0.5.2",
59
- "@commonpub/explainer": "0.8.0",
58
+ "@commonpub/config": "0.23.0",
60
59
  "@commonpub/schema": "0.48.0",
60
+ "@commonpub/learning": "0.5.2",
61
61
  "@commonpub/server": "2.92.0",
62
62
  "@commonpub/protocol": "0.14.0",
63
- "@commonpub/theme-studio": "0.6.1",
64
- "@commonpub/config": "0.23.0",
65
- "@commonpub/ui": "0.13.1",
66
63
  "@commonpub/editor": "0.9.0",
67
- "@commonpub/docs": "0.6.3"
64
+ "@commonpub/theme-studio": "0.6.1",
65
+ "@commonpub/docs": "0.6.3",
66
+ "@commonpub/explainer": "0.8.0",
67
+ "@commonpub/ui": "0.13.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@testing-library/jest-dom": "^6.9.1",