@threadlabs/looma 0.44.5 → 0.44.6
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/docs/card.html +11 -7
- package/docs/catalog.json +1 -1
- package/package.json +1 -1
package/docs/card.html
CHANGED
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
<div $if="$resizable" class="preview-width"> <ui-form-field><label slot="label">Preview width</label><span slot="help">Explore the example at a narrower width.</span><ui-input $ref="width" type="number" min="240" max="1600" value="720" aria-label="Preview width in pixels" size="sm"></ui-input></ui-form-field></div>
|
|
26
26
|
<div $if="not $reference and not $previewOnly" class="body"><ui-stack gap="xs">
|
|
27
27
|
<div class="meta"><span>{$category}</span><code>{$nativeRoot}</code></div>
|
|
28
|
-
<h3><a from:href="$href">{$title}</a></h3>
|
|
28
|
+
<h3><a class="destination" from:href="$href">{$title}</a></h3>
|
|
29
29
|
<p class="description">{$description}</p>
|
|
30
30
|
<p class="owner" $if="$packageName">{$packageName}</p>
|
|
31
31
|
<p class="example-caption" $if="$exampleTitle">{$exampleTitle}</p>
|
|
32
32
|
|
|
33
|
-
<footer><
|
|
33
|
+
<footer><span $if="$href" class="view-link">View component</span><div class="secondary-actions"><ui-button $if="$removable" $ref="remove" variant="ghost" size="sm">Remove</ui-button><slot name="actions"></slot></div></footer>
|
|
34
34
|
</ui-stack></div>
|
|
35
35
|
</article>
|
|
36
36
|
<style>
|
|
@@ -43,14 +43,11 @@
|
|
|
43
43
|
border: var(--ui-border-width) solid var(--ui-border);
|
|
44
44
|
border-radius: var(--ui-radius-lg);
|
|
45
45
|
box-shadow: var(--ui-shadow-sm);
|
|
46
|
-
transition: border-color var(--ui-motion-fast) var(--ui-motion-ease), box-shadow var(--ui-motion-fast) var(--ui-motion-ease), transform var(--ui-motion-fast) var(--ui-motion-ease);
|
|
47
46
|
}
|
|
48
47
|
:host([category="display"]) { --_card-accent: var(--ui-success); }
|
|
49
48
|
:host([category="overlay"]) { --_card-accent: var(--ui-danger); }
|
|
50
49
|
:host([category="layout"]) { --_card-accent: var(--ui-info); }
|
|
51
50
|
:host([category="editor"]) { --_card-accent: var(--ui-warning); }
|
|
52
|
-
:host:hover { border-color: color-mix(in srgb, var(--_card-accent) 45%, var(--ui-border)); box-shadow: var(--ui-shadow-md); transform: translateY(-2px); }
|
|
53
|
-
:host([reference]):hover { transform: none; border-color: var(--ui-border); box-shadow: var(--ui-shadow-sm); }
|
|
54
51
|
.example-heading { padding: var(--ui-space-5) !important; border-block-end: var(--ui-border-width) solid var(--ui-border); }
|
|
55
52
|
.example-code { padding: var(--ui-space-5) !important; border-block-start: var(--ui-border-width) solid var(--ui-border); }
|
|
56
53
|
.example-code h4 { margin: 0 0 var(--ui-space-3) !important; font-size: var(--ui-font-size-md); }
|
|
@@ -62,7 +59,14 @@
|
|
|
62
59
|
.stage { inline-size: var(--_preview-width, 100%); max-inline-size: 100%; min-inline-size: 0; }
|
|
63
60
|
footer { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: var(--ui-space-2) !important; }
|
|
64
61
|
.preview-width { padding: var(--ui-space-4) !important; }
|
|
65
|
-
.body { padding: var(--ui-space-5) !important; }
|
|
62
|
+
.body { position: relative; isolation: isolate; padding: var(--ui-space-5) !important; background: var(--ui-surface-raised); transition: background-color var(--ui-motion-fast) var(--ui-motion-ease); }
|
|
63
|
+
.body:has(.destination[href]:hover), .body:has(.destination[href]:focus-visible) { background: var(--ui-accent-subtle); }
|
|
64
|
+
.body:has(.destination[href]:active) { background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-surface-raised)); }
|
|
65
|
+
.destination[href]::after { position: absolute; inset: 0; z-index: 1; content: ""; cursor: pointer; }
|
|
66
|
+
.destination:focus-visible { outline: none; }
|
|
67
|
+
.destination:focus-visible::after { outline: var(--ui-focus-width) solid var(--ui-focus-ring); outline-offset: calc(-1 * var(--ui-focus-width)); }
|
|
68
|
+
.view-link { color: var(--ui-link-color); font-size: var(--ui-font-size-sm); font-weight: var(--ui-font-semibold); text-decoration: underline; text-underline-offset: .2em; }
|
|
69
|
+
.secondary-actions { position: relative; z-index: 2; display: flex !important; align-items: center !important; gap: var(--ui-space-2) !important; }
|
|
66
70
|
.meta { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: var(--ui-space-2) !important; margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-xs); font-weight: var(--ui-font-bold); letter-spacing: .09em; text-transform: uppercase; }
|
|
67
71
|
.meta code { padding: 0 !important; background: transparent; color: inherit; text-transform: none; }
|
|
68
72
|
h3 { margin: 0 !important; padding: 0 !important; font-size: var(--ui-font-size-lg); letter-spacing: -.035em; }
|
|
@@ -70,6 +74,6 @@
|
|
|
70
74
|
.description { margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-sm); line-height: var(--ui-line-height); }
|
|
71
75
|
.owner { margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-xs); overflow-wrap: anywhere; }
|
|
72
76
|
.example-caption { margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-xs); }
|
|
73
|
-
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
@media (prefers-reduced-motion: reduce) { .body { transition: none; } }
|
|
74
78
|
</style>
|
|
75
79
|
</template>
|
package/docs/catalog.json
CHANGED