@jant/core 0.4.2 → 0.4.3
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/dist/{app-FtJ5R8pi.js → app-BrwhXxi4.js} +13 -13
- package/dist/app-Cu677p4b.js +6 -0
- package/dist/client/.vite/manifest.json +1 -1
- package/dist/client/_assets/{client-BbJ0FhON.css → client-gnH6Uk3M.css} +1 -1
- package/dist/{export-1DCaq4BR.js → export-B7P3YE3x.js} +3 -3
- package/dist/{github-sync-BoYWQKCr.js → github-sync-LvT27JR9.js} +2 -2
- package/dist/{github-sync-BWIpO72V.js → github-sync-Yg2zs-iC.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/node.js +4 -4
- package/package.json +1 -1
- package/src/preset.css +8 -0
- package/src/services/export-theme/layouts/partials/media-gallery.html +4 -4
- package/src/services/export-theme/styles/main.css +4 -1
- package/src/styles/tokens.css +1 -1
- package/dist/app-73ovSon0.js +0 -6
package/package.json
CHANGED
package/src/preset.css
CHANGED
|
@@ -503,6 +503,10 @@ html {
|
|
|
503
503
|
margin-top: 3rem;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
+
article:has(.media-gallery-scroll-wrap) [data-post-meta] {
|
|
507
|
+
width: auto;
|
|
508
|
+
}
|
|
509
|
+
|
|
506
510
|
@media (max-width: 1024px) {
|
|
507
511
|
[data-page="search"],
|
|
508
512
|
.site-home-header,
|
|
@@ -521,4 +525,8 @@ html {
|
|
|
521
525
|
[data-post-end] {
|
|
522
526
|
width: min(100%, 35rem);
|
|
523
527
|
}
|
|
528
|
+
|
|
529
|
+
article:has(.media-gallery-scroll-wrap) [data-post-meta] {
|
|
530
|
+
width: auto;
|
|
531
|
+
}
|
|
524
532
|
}
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"display: block; width: 100%; height: auto;")
|
|
135
135
|
(printf "display: block; width: 100%%; height: %dpx; object-fit: cover;" $rowHeight) -}}
|
|
136
136
|
{{- if $isShort -}}
|
|
137
|
-
<div class="media-video-wrap media-video-wrap-short" style="{{ $videoWrapStyle }}">
|
|
137
|
+
<div class="media-video-wrap media-video-wrap-short" style="{{ $videoWrapStyle | safeCSS }}">
|
|
138
138
|
<a href="{{ .src }}" data-lightbox-index="{{ ._lbIdx }}" class="media-visual-frame media-video-link" style="display: block; cursor: pointer;">
|
|
139
139
|
<video preload="none" muted playsinline loop
|
|
140
140
|
{{- with .poster }} poster="{{ . }}"{{- end -}}
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
data-video-src="{{ .src }}"
|
|
145
145
|
data-feed-video-id="{{ .id }}"
|
|
146
146
|
class="media-visual"
|
|
147
|
-
style="{{ $videoStyle }}"></video>
|
|
147
|
+
style="{{ $videoStyle | safeCSS }}"></video>
|
|
148
148
|
</a>
|
|
149
149
|
<button type="button" class="media-feed-video-mute" data-feed-video-mute-toggle data-muted="true" aria-label="Play with sound">
|
|
150
150
|
<svg class="media-feed-video-icon media-feed-video-icon-muted" width="12" height="12" viewBox="0 0 48 48" fill="currentColor" aria-hidden="true">
|
|
@@ -160,13 +160,13 @@
|
|
|
160
160
|
{{- else -}}
|
|
161
161
|
<a href="{{ .src }}" data-lightbox-index="{{ ._lbIdx }}"
|
|
162
162
|
class="media-video-wrap media-visual-frame"
|
|
163
|
-
style="{{ $videoWrapStyle }}">
|
|
163
|
+
style="{{ $videoWrapStyle | safeCSS }}">
|
|
164
164
|
<video preload="none" muted playsinline
|
|
165
165
|
{{- with .poster }} poster="{{ . }}"{{- end -}}
|
|
166
166
|
{{- with .width }} width="{{ . }}"{{- end -}}
|
|
167
167
|
{{- with .height }} height="{{ . }}"{{- end }}
|
|
168
168
|
class="media-visual"
|
|
169
|
-
style="{{ $videoStyle }}"></video>
|
|
169
|
+
style="{{ $videoStyle | safeCSS }}"></video>
|
|
170
170
|
<div class="media-video-play-overlay">
|
|
171
171
|
<svg viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>
|
|
172
172
|
</div>
|
|
@@ -1314,7 +1314,10 @@ hr.feed-divider {
|
|
|
1314
1314
|
position: relative;
|
|
1315
1315
|
display: flex;
|
|
1316
1316
|
flex-direction: column;
|
|
1317
|
-
|
|
1317
|
+
/* Match runtime `.thread-group-preview .thread-item` which uses
|
|
1318
|
+
`padding: var(--site-thread-item-spacing) 0` — adjacent items have
|
|
1319
|
+
2x the token between them, so the flex `gap` here is 2x to match. */
|
|
1320
|
+
gap: calc(var(--site-thread-item-spacing) * 2);
|
|
1318
1321
|
margin: 0;
|
|
1319
1322
|
padding: 0;
|
|
1320
1323
|
border-left: 0;
|
package/src/styles/tokens.css
CHANGED