spaper 1.1.0 → 1.1.1
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/README.md +1 -1
- package/components/Hero.svelte +22 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Browse [documentation and demo here](https://oli8.github.io/spaper/).
|
|
|
14
14
|
Add a link to the CDN into your HTML file:
|
|
15
15
|
|
|
16
16
|
```html
|
|
17
|
-
<link rel="stylesheet" href="https://unpkg.com/papercss
|
|
17
|
+
<link rel="stylesheet" href="https://unpkg.com/papercss/dist/paper.min.css">
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Or use NPM:
|
package/components/Hero.svelte
CHANGED
|
@@ -30,9 +30,9 @@ export let size = 'default';
|
|
|
30
30
|
export let border = true;
|
|
31
31
|
export let title = '';
|
|
32
32
|
export let textLead = '';
|
|
33
|
-
$: classes = `hero
|
|
33
|
+
$: classes = `hero
|
|
34
34
|
${(_a = $$restProps.class) !== null && _a !== void 0 ? _a : ''}
|
|
35
|
-
${computeClasses('hero', { size })}`;
|
|
35
|
+
${computeClasses('hero', { size, type })}`;
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
38
|
<style >.hero {
|
|
@@ -52,8 +52,27 @@ $: classes = `hero background-${type}
|
|
|
52
52
|
padding: 0 1.5rem;
|
|
53
53
|
}
|
|
54
54
|
.hero-large {
|
|
55
|
-
padding: 5rem
|
|
55
|
+
padding: 5rem;
|
|
56
56
|
}
|
|
57
57
|
.hero-fullheight {
|
|
58
58
|
min-height: 100vh;
|
|
59
|
+
}
|
|
60
|
+
.hero-primary {
|
|
61
|
+
background-color: var(--primary-light);
|
|
62
|
+
}
|
|
63
|
+
.hero-secondary {
|
|
64
|
+
background-color: var(--secondary-light);
|
|
65
|
+
}
|
|
66
|
+
.hero-success {
|
|
67
|
+
background-color: var(--success-light);
|
|
68
|
+
}
|
|
69
|
+
.hero-warning {
|
|
70
|
+
background-color: var(--warning-light);
|
|
71
|
+
}
|
|
72
|
+
.hero-danger {
|
|
73
|
+
background-color: var(--danger-light);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:global(.dark .hero-primary) {
|
|
77
|
+
color: var(--primary-text);
|
|
59
78
|
}</style>
|