@celar-ui/svelte 1.8.1 → 2.0.0
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/buttons/BaseButton.svelte +0 -2
- package/dist/buttons/BaseButton.svelte.d.ts +0 -1
- package/dist/buttons/ElevatedButton.svelte +1 -3
- package/dist/buttons/ElevatedButton.svelte.d.ts +1 -1
- package/dist/buttons/ExpandedTextButton.svelte +2 -2
- package/dist/buttons/ExpandedTextButton.svelte.d.ts +1 -1
- package/dist/buttons/FilledButton.svelte +1 -2
- package/dist/buttons/FilledButton.svelte.d.ts +1 -1
- package/dist/buttons/IconButton.svelte +1 -1
- package/dist/buttons/IconButton.svelte.d.ts +1 -1
- package/dist/buttons/OutlinedButton.svelte +1 -3
- package/dist/buttons/OutlinedButton.svelte.d.ts +1 -1
- package/dist/buttons/TextBaseButton.svelte +15 -46
- package/dist/buttons/TextButton.svelte +1 -3
- package/dist/buttons/TextButton.svelte.d.ts +1 -1
- package/dist/buttons/styles/button_utils.css +37 -0
- package/dist/buttons/styles/elevated_button.css +19 -0
- package/dist/buttons/styles/expanded_text_button.css +23 -0
- package/dist/buttons/styles/filled_button.css +21 -0
- package/dist/buttons/styles/icon_button.css +42 -0
- package/dist/buttons/styles/outlined_button.css +21 -0
- package/dist/buttons/styles/text_button.css +22 -0
- package/dist/containment/Avatar.svelte +1 -1
- package/dist/containment/Avatar.svelte.d.ts +1 -1
- package/dist/containment/Breadcrumb.svelte +1 -23
- package/dist/containment/Breadcrumb.svelte.d.ts +1 -0
- package/dist/containment/Card.svelte +1 -1
- package/dist/containment/Card.svelte.d.ts +1 -1
- package/dist/containment/Container.svelte +1 -1
- package/dist/containment/Container.svelte.d.ts +1 -1
- package/dist/containment/Spacer.svelte +17 -11
- package/dist/containment/SurfaceContainer.svelte +1 -1
- package/dist/containment/SurfaceContainer.svelte.d.ts +1 -1
- package/dist/containment/styles/avatar.css +20 -0
- package/dist/containment/styles/breadcrumb.css +27 -0
- package/dist/containment/styles/card.css +7 -0
- package/dist/containment/styles/container.css +26 -0
- package/dist/containment/styles/surface-container.css +29 -0
- package/dist/inputs/Checkbox.svelte +43 -45
- package/dist/inputs/ColorInput.svelte +63 -51
- package/dist/inputs/FileInput.svelte +39 -30
- package/dist/inputs/RadioGroup.svelte +1 -2
- package/dist/inputs/RadioGroup.svelte.d.ts +1 -1
- package/dist/inputs/RadioItem.svelte +38 -36
- package/dist/inputs/Slider.svelte +78 -86
- package/dist/inputs/Switch.svelte +49 -54
- package/dist/inputs/TagInput.svelte +77 -67
- package/dist/inputs/TextInput.svelte +83 -76
- package/dist/inputs/styles/radio_group.css +6 -0
- package/dist/misc/Badge.svelte +48 -40
- package/dist/misc/DotSpinner.svelte +8 -4
- package/dist/misc/DuckSpinner.svelte +92 -70
- package/dist/misc/Gap.svelte +12 -6
- package/dist/misc/LinearProgressIndicator.svelte +38 -29
- package/dist/navigation/AdaptiveSidebar.svelte +64 -71
- package/dist/navigation/AdaptiveSidebar.svelte.d.ts +1 -1
- package/dist/navigation/AppBar.svelte +39 -32
- package/dist/navigation/NavigationBar.svelte +27 -35
- package/dist/navigation/NavigationBarButton.svelte +42 -33
- package/dist/navigation/NavigationDrawer.svelte +1 -82
- package/dist/navigation/NavigationDrawer.svelte.d.ts +1 -0
- package/dist/navigation/styles/navigation_drawer.css +93 -0
- package/dist/overlay/CommandDialog.svelte +1 -1
- package/dist/overlay/CommandDialog.svelte.d.ts +1 -1
- package/dist/overlay/Dialog.svelte +1 -1
- package/dist/overlay/Dialog.svelte.d.ts +1 -1
- package/dist/overlay/MinimalDialog.svelte +1 -1
- package/dist/overlay/MinimalDialog.svelte.d.ts +1 -1
- package/dist/overlay/MinimalSurfaceDialog.svelte +3 -3
- package/dist/overlay/MinimalSurfaceDialog.svelte.d.ts +3 -3
- package/dist/overlay/Popover.svelte +1 -1
- package/dist/overlay/Popover.svelte.d.ts +1 -1
- package/dist/overlay/styles/command.css +125 -0
- package/dist/overlay/styles/dialog.css +64 -0
- package/dist/overlay/styles/popover.css +9 -0
- package/dist/overlay/styles/surface-dialog.css +21 -0
- package/package.json +23 -21
- package/src/styles/index.css +6 -0
- package/src/styles/theme.css +94 -0
- package/dist/buttons/styles/base_button.scss +0 -30
- package/dist/buttons/styles/elevated_button.scss +0 -20
- package/dist/buttons/styles/expanded_text_button.scss +0 -20
- package/dist/buttons/styles/filled_button.scss +0 -17
- package/dist/buttons/styles/icon_button.scss +0 -38
- package/dist/buttons/styles/outlined_button.scss +0 -18
- package/dist/buttons/styles/text_button.scss +0 -17
- package/dist/containment/styles/avatar.scss +0 -16
- package/dist/containment/styles/card.scss +0 -3
- package/dist/containment/styles/container.scss +0 -22
- package/dist/containment/styles/surface-container.scss +0 -27
- package/dist/inputs/styles/radio_group.scss +0 -3
- package/dist/overlay/styles/command.scss +0 -121
- package/dist/overlay/styles/dialog.scss +0 -69
- package/dist/overlay/styles/popover.scss +0 -5
- package/dist/overlay/styles/surface-dialog.scss +0 -17
- package/src/styles/colors.scss +0 -43
- package/src/styles/config.scss +0 -1
- package/src/styles/misc.scss +0 -15
- package/src/styles/scheme.scss +0 -80
- package/src/styles/spacing.scss +0 -23
- package/src/styles/utils.scss +0 -27
|
@@ -105,70 +105,80 @@
|
|
|
105
105
|
/>
|
|
106
106
|
</div>
|
|
107
107
|
|
|
108
|
-
<style>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
108
|
+
<style>
|
|
109
|
+
@reference '$style/index.css';
|
|
110
|
+
|
|
111
|
+
@layer components {
|
|
112
|
+
[data-tag-input] {
|
|
113
|
+
--color-background: transparent;
|
|
114
|
+
|
|
115
|
+
@apply border-onBackground/20 rounded-2xl border border-solid transition-all;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
gap: --spacing(1.5);
|
|
120
|
+
position: relative;
|
|
121
|
+
width: 100%;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
background-color: var(--color-background);
|
|
124
|
+
padding: --spacing(2);
|
|
125
|
+
cursor: text;
|
|
126
|
+
|
|
127
|
+
&:focus-within {
|
|
128
|
+
@apply border-primary;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
input {
|
|
132
|
+
flex: 1;
|
|
133
|
+
border: none;
|
|
134
|
+
outline: none;
|
|
135
|
+
background: transparent;
|
|
136
|
+
font-size: inherit;
|
|
137
|
+
font-family: inherit;
|
|
138
|
+
color: inherit;
|
|
139
|
+
|
|
140
|
+
&::-moz-placeholder {
|
|
141
|
+
@apply text-onBackground/70;
|
|
142
|
+
opacity: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&::placeholder {
|
|
146
|
+
@apply text-onBackground/70;
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:disabled {
|
|
151
|
+
opacity: 0.5;
|
|
152
|
+
cursor: not-allowed;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[data-tag-remove] {
|
|
157
|
+
@apply transition-all;
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
align-items: center;
|
|
161
|
+
background-color: transparent;
|
|
162
|
+
border: none;
|
|
163
|
+
color: inherit;
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
padding: --spacing(1);
|
|
166
|
+
border-radius: 50%;
|
|
167
|
+
aspect-ratio: 1;
|
|
168
|
+
margin-left: --spacing(1.5);
|
|
169
|
+
|
|
170
|
+
&:hover {
|
|
171
|
+
background-color: var(--color-surfaceContainer);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&:focus {
|
|
175
|
+
@apply outline-onBackground/20 outline outline-solid;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
svg {
|
|
179
|
+
width: --spacing(4);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
</style>
|
|
@@ -19,79 +19,86 @@
|
|
|
19
19
|
<div data-text-input-placeholder>{placeholder}</div>
|
|
20
20
|
</label>
|
|
21
21
|
|
|
22
|
-
<style>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
22
|
+
<style>
|
|
23
|
+
@reference '$style/index.css';
|
|
24
|
+
|
|
25
|
+
@layer components {
|
|
26
|
+
[data-text-input] {
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
display: block;
|
|
30
|
+
position: relative;
|
|
31
|
+
width: 100%;
|
|
32
|
+
pointer-events: all;
|
|
33
|
+
|
|
34
|
+
input {
|
|
35
|
+
@apply border-onBackground/20 rounded-2xl border border-solid transition-all;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
padding: --spacing(1.5) --spacing(4);
|
|
39
|
+
padding-left: --spacing(14);
|
|
40
|
+
width: 100%;
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
color: inherit;
|
|
44
|
+
|
|
45
|
+
&:focus {
|
|
46
|
+
@apply border-primary;
|
|
47
|
+
outline: none;
|
|
48
|
+
caret-color: var(--color-primary);
|
|
49
|
+
|
|
50
|
+
+ [data-text-input-icon] {
|
|
51
|
+
color: var(--color-primary);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:is(:-moz-placeholder) ~ [data-text-input-placeholder] {
|
|
56
|
+
transform: translateY(50%);
|
|
57
|
+
visibility: hidden;
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:is(:placeholder-shown) ~ [data-text-input-placeholder] {
|
|
62
|
+
transform: translateY(50%);
|
|
63
|
+
visibility: hidden;
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&::-moz-placeholder {
|
|
68
|
+
@apply text-onBackground/70;
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&::placeholder {
|
|
73
|
+
@apply text-onBackground/70;
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-text-input-icon] {
|
|
79
|
+
@apply transition-all;
|
|
80
|
+
display: flex;
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
align-items: center;
|
|
86
|
+
width: --spacing(14);
|
|
87
|
+
height: 100%;
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-text-input-placeholder] {
|
|
92
|
+
@apply text-onBackground/70 transition-all;
|
|
93
|
+
position: absolute;
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
font-size: 0.8em;
|
|
96
|
+
top: 0;
|
|
97
|
+
right: --spacing(4);
|
|
98
|
+
transform: translateY(0);
|
|
99
|
+
visibility: visible;
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
</style>
|
package/dist/misc/Badge.svelte
CHANGED
|
@@ -13,43 +13,51 @@
|
|
|
13
13
|
{@render children?.()}
|
|
14
14
|
</span>
|
|
15
15
|
|
|
16
|
-
<style>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
[data-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
[data-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
[data-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
[data-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
[data-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
16
|
+
<style>
|
|
17
|
+
@reference '$style/index.css';
|
|
18
|
+
|
|
19
|
+
@layer components {
|
|
20
|
+
[data-badge] {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
border-radius: var(--radius-2xl);
|
|
23
|
+
line-height: 1;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
|
|
28
|
+
&[data-color='surface'] {
|
|
29
|
+
background-color: var(--color-surfaceContainerHighest);
|
|
30
|
+
color: var(--color-onSurface);
|
|
31
|
+
}
|
|
32
|
+
&[data-color='info'] {
|
|
33
|
+
background-color: var(--color-info);
|
|
34
|
+
color: var(--color-onInfo);
|
|
35
|
+
}
|
|
36
|
+
&[data-color='success'] {
|
|
37
|
+
background-color: var(--color-success);
|
|
38
|
+
color: var(--color-onSuccess);
|
|
39
|
+
}
|
|
40
|
+
&[data-color='warning'] {
|
|
41
|
+
background-color: var(--color-warning);
|
|
42
|
+
color: var(--color-onWarning);
|
|
43
|
+
}
|
|
44
|
+
&[data-color='error'] {
|
|
45
|
+
background-color: var(--color-error);
|
|
46
|
+
color: var(--color-onError);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&[data-size='small'] {
|
|
50
|
+
font-size: 0.8em;
|
|
51
|
+
padding: --spacing(1.5) --spacing(2);
|
|
52
|
+
}
|
|
53
|
+
&[data-size='medium'] {
|
|
54
|
+
font-size: 0.9em;
|
|
55
|
+
padding: --spacing(1.5) --spacing(2);
|
|
56
|
+
}
|
|
57
|
+
&[data-size='large'] {
|
|
58
|
+
font-size: 1em;
|
|
59
|
+
padding: --spacing(1.5) --spacing(3);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -137,73 +137,95 @@
|
|
|
137
137
|
</g>
|
|
138
138
|
</svg>
|
|
139
139
|
|
|
140
|
-
<style>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
140
|
+
<style>
|
|
141
|
+
@reference '$style/index.css';
|
|
142
|
+
|
|
143
|
+
@layer components {
|
|
144
|
+
[data-duck-spinner] {
|
|
145
|
+
.line {
|
|
146
|
+
fill: none;
|
|
147
|
+
stroke: var(--color-onSurface);
|
|
148
|
+
stroke-width: 1.2;
|
|
149
|
+
stroke-linecap: round;
|
|
150
|
+
stroke-linejoin: round;
|
|
151
|
+
stroke-dasharray: none;
|
|
152
|
+
transition-duration: var(--tw-duration, 150ms);
|
|
153
|
+
transition-property: stroke;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.spinner {
|
|
157
|
+
transform-origin: center;
|
|
158
|
+
scale: 1.1;
|
|
159
|
+
|
|
160
|
+
& > * {
|
|
161
|
+
transform-origin: center;
|
|
162
|
+
opacity: 0.64;
|
|
163
|
+
animation-duration: 3s;
|
|
164
|
+
animation-timing-function: linear;
|
|
165
|
+
animation-iteration-count: infinite;
|
|
166
|
+
animation-name: spin;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.circle-1 {
|
|
170
|
+
scale: 0.85;
|
|
171
|
+
opacity: 0.32;
|
|
172
|
+
animation-direction: reverse;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes spin {
|
|
176
|
+
from {
|
|
177
|
+
rotate: 0;
|
|
178
|
+
}
|
|
179
|
+
to {
|
|
180
|
+
rotate: 359deg;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.duck {
|
|
186
|
+
transform-origin: center;
|
|
187
|
+
scale: 1.2;
|
|
188
|
+
animation-duration: 2s;
|
|
189
|
+
animation-timing-function: ease;
|
|
190
|
+
animation-iteration-count: infinite;
|
|
191
|
+
animation-name: slay;
|
|
192
|
+
|
|
193
|
+
@keyframes slay {
|
|
194
|
+
0% {
|
|
195
|
+
rotate: -24deg;
|
|
196
|
+
}
|
|
197
|
+
50% {
|
|
198
|
+
rotate: 24deg;
|
|
199
|
+
}
|
|
200
|
+
100% {
|
|
201
|
+
rotate: -24deg;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.body {
|
|
206
|
+
stroke-width: 1.5;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.eye {
|
|
210
|
+
stroke-width: 1;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
[data-thin='true'] {
|
|
216
|
+
.line {
|
|
217
|
+
stroke-width: 0.5;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.duck {
|
|
221
|
+
.body {
|
|
222
|
+
stroke-width: 1;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.eye {
|
|
226
|
+
stroke-width: 0.8;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
</style>
|
package/dist/misc/Gap.svelte
CHANGED
|
@@ -8,9 +8,15 @@
|
|
|
8
8
|
|
|
9
9
|
<div data-gap style:width={size}></div>
|
|
10
10
|
|
|
11
|
-
<style>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
<style>
|
|
12
|
+
@reference '$style/index.css';
|
|
13
|
+
|
|
14
|
+
@layer components {
|
|
15
|
+
[data-gap] {
|
|
16
|
+
display: block;
|
|
17
|
+
aspect-ratio: 1;
|
|
18
|
+
width: 1rem;
|
|
19
|
+
height: auto;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</style>
|