ui-svelte 0.2.8 → 0.2.10
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.
|
@@ -50,22 +50,14 @@
|
|
|
50
50
|
};
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
|
-
<div
|
|
54
|
-
class={cn(
|
|
55
|
-
'section',
|
|
56
|
-
variantClasses[variant],
|
|
57
|
-
isSolid && 'is-solid',
|
|
58
|
-
isBoxed && 'boxed',
|
|
59
|
-
rootClass
|
|
60
|
-
)}
|
|
61
|
-
>
|
|
53
|
+
<div class={cn('section', variantClasses[variant], isSolid && 'is-solid', rootClass)}>
|
|
62
54
|
{#if cover}
|
|
63
55
|
<img src={cover} alt="cover" class={cn('section-cover', coverClass)} />
|
|
64
56
|
{/if}
|
|
65
57
|
{#if hasOverlay}
|
|
66
58
|
<div class={cn('section-overlay', overlayClass)}></div>
|
|
67
59
|
{/if}
|
|
68
|
-
<div class={cn('section-body', bodyClass)}>
|
|
60
|
+
<div class={cn('section-body', isBoxed && 'boxed', bodyClass)}>
|
|
69
61
|
{@render children()}
|
|
70
62
|
</div>
|
|
71
63
|
</div>
|
|
@@ -22,20 +22,17 @@
|
|
|
22
22
|
@apply bg-transparent border-transparent shadow-none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/* Floating mode - when not scrolled */
|
|
26
25
|
&.is-floating-enabled {
|
|
27
26
|
@apply left-1/2 -translate-x-1/2;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
&.is-floating {
|
|
31
|
-
@apply mt-4 w-[calc(100%-2rem)] rounded-
|
|
32
|
-
@apply bg-background/90 backdrop-blur-md;
|
|
30
|
+
@apply mt-4 w-[calc(100%-2rem)] rounded-ui shadow-md shadow-muted border border-muted;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
/* When scrolled - full width sticky */
|
|
36
33
|
&.is-floating-enabled:not(.is-floating) {
|
|
37
34
|
@apply mt-0 w-full rounded-none;
|
|
38
|
-
@apply
|
|
35
|
+
@apply border-b border-muted;
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
.appbar-content {
|