@nightshadeui/components 3.1.1 → 3.2.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/README.md +21 -0
- package/css.d.ts +2 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/_virtual/_rolldown/runtime.js +10 -0
- package/dist/components/BaseMenu.css +1 -0
- package/dist/components/BaseMenu.js +108 -0
- package/dist/components/BaseMenu.vue.d.ts +21 -8
- package/dist/components/BaseMenu.vue.d.ts.map +1 -1
- package/dist/components/Btn.css +1 -0
- package/dist/components/Btn.js +186 -0
- package/dist/components/Btn.vue.d.ts +38 -2
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Bubble.css +1 -0
- package/dist/components/Bubble.js +37 -0
- package/dist/components/Bubble.vue.d.ts +12 -2
- package/dist/components/Bubble.vue.d.ts.map +1 -1
- package/dist/components/Checkbox.css +1 -0
- package/dist/components/Checkbox.js +116 -0
- package/dist/components/Checkbox.vue.d.ts +15 -3
- package/dist/components/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Chip.css +1 -0
- package/dist/components/Chip.js +91 -0
- package/dist/components/Chip.vue.d.ts +16 -2
- package/dist/components/Chip.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu.js +56 -0
- package/dist/components/ContextMenu.vue.d.ts +28 -8
- package/dist/components/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextPopup.js +166 -0
- package/dist/components/ContextPopup.vue.d.ts +23 -2
- package/dist/components/ContextPopup.vue.d.ts.map +1 -1
- package/dist/components/Filler.css +1 -0
- package/dist/components/Filler.js +18 -0
- package/dist/components/Filler.vue.d.ts +6 -2
- package/dist/components/Filler.vue.d.ts.map +1 -1
- package/dist/components/HGroup.css +1 -0
- package/dist/components/HGroup.js +44 -0
- package/dist/components/HGroup.vue.d.ts +21 -8
- package/dist/components/HGroup.vue.d.ts.map +1 -1
- package/dist/components/InputBase.css +1 -0
- package/dist/components/InputBase.js +115 -0
- package/dist/components/InputBase.vue.d.ts +16 -2
- package/dist/components/InputBase.vue.d.ts.map +1 -1
- package/dist/components/InputGroup.css +1 -0
- package/dist/components/InputGroup.js +21 -0
- package/dist/components/InputGroup.vue.d.ts +12 -2
- package/dist/components/InputGroup.vue.d.ts.map +1 -1
- package/dist/components/InputSelect.css +1 -0
- package/dist/components/InputSelect.js +110 -0
- package/dist/components/InputSelect.vue.d.ts +18 -2
- package/dist/components/InputSelect.vue.d.ts.map +1 -1
- package/dist/components/InputText.css +1 -0
- package/dist/components/InputText.js +77 -0
- package/dist/components/InputText.vue.d.ts +18 -2
- package/dist/components/InputText.vue.d.ts.map +1 -1
- package/dist/components/InputTextarea.css +1 -0
- package/dist/components/InputTextarea.js +80 -0
- package/dist/components/InputTextarea.vue.d.ts +18 -2
- package/dist/components/InputTextarea.vue.d.ts.map +1 -1
- package/dist/components/ModalOverlay.css +1 -0
- package/dist/components/ModalOverlay.js +45 -0
- package/dist/components/ModalOverlay.vue.d.ts +12 -2
- package/dist/components/ModalOverlay.vue.d.ts.map +1 -1
- package/dist/components/RouterBtn.js +39 -0
- package/dist/components/RouterBtn.vue.d.ts +10 -2
- package/dist/components/RouterBtn.vue.d.ts.map +1 -1
- package/dist/components/Slider.css +1 -0
- package/dist/components/Slider.js +326 -0
- package/dist/components/Slider.vue.d.ts +10 -2
- package/dist/components/Slider.vue.d.ts.map +1 -1
- package/dist/components/Tab.css +1 -0
- package/dist/components/Tab.js +56 -0
- package/dist/components/Tab.vue.d.ts +12 -2
- package/dist/components/Tab.vue.d.ts.map +1 -1
- package/dist/components/TabCap.css +1 -0
- package/dist/components/TabCap.js +28 -0
- package/dist/components/TabCap.vue.d.ts +6 -2
- package/dist/components/TabCap.vue.d.ts.map +1 -1
- package/dist/components/Toggle.css +1 -0
- package/dist/components/Toggle.js +102 -0
- package/dist/components/Toggle.vue.d.ts +6 -2
- package/dist/components/Toggle.vue.d.ts.map +1 -1
- package/dist/components/ToolPanel.css +1 -0
- package/dist/components/ToolPanel.js +33 -0
- package/dist/components/ToolPanel.vue.d.ts +12 -2
- package/dist/components/ToolPanel.vue.d.ts.map +1 -1
- package/dist/components/Tooltip.css +1 -0
- package/dist/components/Tooltip.js +97 -0
- package/dist/components/Tooltip.vue.d.ts +225 -0
- package/dist/components/Tooltip.vue.d.ts.map +1 -0
- package/dist/components/VGroup.css +1 -0
- package/dist/components/VGroup.js +36 -0
- package/dist/components/VGroup.vue.d.ts +21 -8
- package/dist/components/VGroup.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +51 -0
- package/dist/components.css +39 -1
- package/dist/directives/index.d.ts +2 -0
- package/dist/directives/index.d.ts.map +1 -0
- package/dist/directives/tooltip.d.ts +14 -0
- package/dist/directives/tooltip.d.ts.map +1 -0
- package/dist/directives/tooltip.js +23 -0
- package/dist/glyphs/GlyphCheck.js +17 -0
- package/dist/glyphs/GlyphCheck.vue.d.ts +2 -1
- package/dist/glyphs/GlyphCheck.vue.d.ts.map +1 -1
- package/dist/glyphs/GlyphXmark.js +17 -0
- package/dist/glyphs/GlyphXmark.vue.d.ts +2 -1
- package/dist/glyphs/GlyphXmark.vue.d.ts.map +1 -1
- package/dist/helpers/props.js +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -0
- package/package.json +14 -8
- package/src/components/BaseMenu.vue +36 -29
- package/src/components/Btn.vue +197 -191
- package/src/components/Bubble.vue +110 -103
- package/src/components/Checkbox.vue +93 -86
- package/src/components/Chip.vue +109 -102
- package/src/components/ContextPopup.vue +9 -1
- package/src/components/Filler.vue +21 -14
- package/src/components/HGroup.vue +47 -41
- package/src/components/InputBase.vue +137 -130
- package/src/components/InputGroup.vue +26 -16
- package/src/components/InputSelect.vue +28 -21
- package/src/components/InputText.vue +24 -17
- package/src/components/InputTextarea.vue +31 -24
- package/src/components/ModalOverlay.vue +21 -14
- package/src/components/Slider.vue +258 -249
- package/src/components/Tab.vue +73 -66
- package/src/components/TabCap.vue +20 -13
- package/src/components/Toggle.vue +102 -95
- package/src/components/ToolPanel.vue +36 -35
- package/src/components/Tooltip.vue +184 -0
- package/src/components/VGroup.vue +43 -37
- package/src/components/index.ts +2 -0
- package/src/directives/index.ts +1 -0
- package/src/directives/tooltip.ts +50 -0
- package/src/index.ts +1 -0
- package/dist/components.mjs +0 -1719
package/src/components/Btn.vue
CHANGED
|
@@ -189,197 +189,203 @@ export default {
|
|
|
189
189
|
</script>
|
|
190
190
|
|
|
191
191
|
<style scoped>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
var(--
|
|
208
|
-
var(--
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.Btn-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
192
|
+
/* The order, stated wherever these styles load first: the styles, then the components */
|
|
193
|
+
@layer nightshade, nightshade-components;
|
|
194
|
+
|
|
195
|
+
@layer nightshade-components {
|
|
196
|
+
|
|
197
|
+
.Btn {
|
|
198
|
+
--Btn-size: var(--input-major-height);
|
|
199
|
+
--Btn-padding: var(--input-major-padding);
|
|
200
|
+
--Btn-gap: var(--input-gap);
|
|
201
|
+
--Btn-font-size: var(--input-font-size);
|
|
202
|
+
|
|
203
|
+
--Btn-text: var(--tone-fill-text);
|
|
204
|
+
|
|
205
|
+
--Btn-outline: transparent;
|
|
206
|
+
|
|
207
|
+
--Btn-fill: var(--tone-fill);
|
|
208
|
+
--Btn-fill-top: var(--tone-fill-top);
|
|
209
|
+
--Btn-fill-bottom: var(--tone-fill-bottom);
|
|
210
|
+
--Btn-background: linear-gradient(
|
|
211
|
+
to bottom,
|
|
212
|
+
var(--Btn-fill-top),
|
|
213
|
+
var(--Btn-fill-bottom)
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
--Btn-border-size: 0px;
|
|
217
|
+
--Btn-border: transparent;
|
|
218
|
+
--Btn-radius: var(--radius-m);
|
|
219
|
+
|
|
220
|
+
--Btn-shadow: var(--tone-shadow);
|
|
221
|
+
--Btn-box-shadow:
|
|
222
|
+
0 1px 1px var(--Btn-shadow),
|
|
223
|
+
0 1px 5px var(--shadow-medium);
|
|
224
|
+
--Btn-text-shadow: 0 1px 1px var(--text-shadow-auto);
|
|
225
|
+
|
|
226
|
+
-webkit-appearance: none;
|
|
227
|
+
appearance: none;
|
|
228
|
+
|
|
229
|
+
position: relative;
|
|
230
|
+
margin: 0;
|
|
231
|
+
padding: 0 calc(var(--Btn-padding) - var(--Btn-border-size));
|
|
232
|
+
height: var(--Btn-size);
|
|
233
|
+
line-height: var(--Btn-size);
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: flex-start;
|
|
239
|
+
flex-shrink: 0;
|
|
240
|
+
gap: var(--Btn-gap);
|
|
241
|
+
|
|
242
|
+
border: var(--Btn-border-size) solid var(--Btn-border);
|
|
243
|
+
border-radius: var(--Btn-radius);
|
|
244
|
+
|
|
245
|
+
color: var(--Btn-text);
|
|
246
|
+
text-shadow: var(--Btn-text-shadow);
|
|
247
|
+
outline: var(--input-outline-size) solid var(--Btn-outline);
|
|
248
|
+
outline-offset: var(--input-outline-offset);
|
|
249
|
+
background: var(--Btn-background);
|
|
250
|
+
box-shadow: var(--Btn-box-shadow);
|
|
251
|
+
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
user-select: none;
|
|
254
|
+
|
|
255
|
+
font-family: inherit;
|
|
256
|
+
font-size: var(--Btn-font-size);
|
|
257
|
+
|
|
258
|
+
transition: color .3s, outline .3s, filter .3s, border-radius .3s;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.Btn::after {
|
|
262
|
+
content: '';
|
|
263
|
+
position: absolute;
|
|
264
|
+
z-index: 1;
|
|
265
|
+
top: 0;
|
|
266
|
+
left: 0;
|
|
267
|
+
width: 100%;
|
|
268
|
+
height: 100%;
|
|
269
|
+
border-radius: var(--Btn-radius);
|
|
270
|
+
|
|
271
|
+
background: var(--input-hover-overlay);
|
|
272
|
+
mix-blend-mode: color-dodge;
|
|
273
|
+
pointer-events: none;
|
|
274
|
+
opacity: 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.Label {
|
|
278
|
+
line-height: var(--Btn-size);
|
|
279
|
+
white-space: nowrap;
|
|
280
|
+
overflow: hidden;
|
|
281
|
+
text-overflow: ellipsis;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.Icon {
|
|
285
|
+
width: var(--sp2);
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
justify-content: center;
|
|
289
|
+
font-size: var(--Btn-font-size);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.Btn-iconPos-right .Icon {
|
|
293
|
+
order: 100;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* States */
|
|
297
|
+
|
|
298
|
+
.Btn:focus, .Btn:active, .Btn:hover {
|
|
299
|
+
transition: none;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.Btn:not(.Btn-disabled):hover::after, .Btn.Btn-forceHover::after {
|
|
303
|
+
opacity: 1;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.Btn:not(.Btn-disabled):focus-visible, .Btn.Btn-forceFocus {
|
|
307
|
+
z-index: 10;
|
|
308
|
+
--Btn-outline: var(--tone-focus-outline);
|
|
309
|
+
--Btn-border: var(--tone-focus-border);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.Btn:not(.Btn-disabled):active, .Btn.Btn-forceActive {
|
|
313
|
+
padding-top: 1px;
|
|
314
|
+
box-shadow:
|
|
315
|
+
0 6px 12px var(--shadow-light) inset,
|
|
316
|
+
0 1px 2px var(--shadow-medium) inset;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.Btn-disabled {
|
|
320
|
+
opacity: var(--input-disabled-opacity);
|
|
321
|
+
filter: var(--input-disabled-filter);
|
|
322
|
+
cursor: not-allowed;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* Styles */
|
|
326
|
+
|
|
327
|
+
.Btn-round {
|
|
328
|
+
--Btn-radius: calc(.5 * var(--Btn-size));
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.Btn-outline {
|
|
332
|
+
--Btn-border: var(--tone-border);
|
|
333
|
+
--Btn-border-size: var(--input-border-size);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.Btn-ghost {
|
|
337
|
+
--Btn-fill: transparent;
|
|
338
|
+
--Btn-fill-top: transparent;
|
|
339
|
+
--Btn-fill-bottom: transparent;
|
|
340
|
+
--Btn-border: var(--tone-text);
|
|
341
|
+
--Btn-text: var(--tone-text);
|
|
342
|
+
--Btn-text-shadow: none;
|
|
343
|
+
--Btn-box-shadow: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.Btn-flat {
|
|
347
|
+
--Btn-fill-top: var(--Btn-fill);
|
|
348
|
+
--Btn-fill-bottom: var(--Btn-fill);
|
|
349
|
+
--Btn-text-shadow: none;
|
|
350
|
+
--Btn-box-shadow: none;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.Btn-translucent {
|
|
354
|
+
--Btn-background: linear-gradient(
|
|
355
|
+
to bottom,
|
|
356
|
+
color-mix(in srgb, var(--Btn-fill-top), transparent var(--translucency-mix-light)),
|
|
357
|
+
color-mix(in srgb, var(--Btn-fill-bottom), transparent var(--translucency-mix-light))
|
|
358
|
+
);
|
|
359
|
+
--Btn-box-shadow:
|
|
360
|
+
0 1px 1px var(--Btn-shadow),
|
|
361
|
+
0 1px 5px var(--shadow-medium),
|
|
362
|
+
0 0 3px var(--translucency-highlight) inset;
|
|
363
|
+
|
|
364
|
+
backdrop-filter: blur(var(--translucency-blur));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.Btn-flat.Btn-translucent {
|
|
368
|
+
--Btn-box-shadow: 0 0 3px var(--translucency-highlight) inset;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.Btn-ghost.Btn-translucent {
|
|
372
|
+
--Btn-background: transparent;
|
|
373
|
+
--Btn-box-shadow: none;
|
|
374
|
+
backdrop-filter: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.Btn-square {
|
|
378
|
+
padding-left: 0;
|
|
379
|
+
padding-right: 0;
|
|
380
|
+
width: var(--Btn-size);
|
|
381
|
+
justify-content: center;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.Btn-block {
|
|
385
|
+
flex: 1 1 auto;
|
|
386
|
+
display: flex;
|
|
387
|
+
justify-content: center;
|
|
388
|
+
}
|
|
347
389
|
|
|
348
|
-
.Btn-translucent {
|
|
349
|
-
--Btn-background: linear-gradient(
|
|
350
|
-
to bottom,
|
|
351
|
-
color-mix(in srgb, var(--Btn-fill-top), transparent var(--translucency-mix-light)),
|
|
352
|
-
color-mix(in srgb, var(--Btn-fill-bottom), transparent var(--translucency-mix-light))
|
|
353
|
-
);
|
|
354
|
-
--Btn-box-shadow:
|
|
355
|
-
0 1px 1px var(--Btn-shadow),
|
|
356
|
-
0 1px 5px var(--shadow-medium),
|
|
357
|
-
0 0 3px var(--translucency-highlight) inset;
|
|
358
|
-
|
|
359
|
-
backdrop-filter: blur(var(--translucency-blur));
|
|
360
390
|
}
|
|
361
|
-
|
|
362
|
-
.Btn-flat.Btn-translucent {
|
|
363
|
-
--Btn-box-shadow: 0 0 3px var(--translucency-highlight) inset;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.Btn-ghost.Btn-translucent {
|
|
367
|
-
--Btn-background: transparent;
|
|
368
|
-
--Btn-box-shadow: none;
|
|
369
|
-
backdrop-filter: none;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.Btn-square {
|
|
373
|
-
padding-left: 0;
|
|
374
|
-
padding-right: 0;
|
|
375
|
-
width: var(--Btn-size);
|
|
376
|
-
justify-content: center;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.Btn-block {
|
|
380
|
-
flex: 1 1 auto;
|
|
381
|
-
display: flex;
|
|
382
|
-
justify-content: center;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
391
|
</style>
|
|
@@ -35,109 +35,116 @@ export default {
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<style scoped>
|
|
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
|
-
.Bubble-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.Bubble-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.Bubble-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
.Bubble-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.Bubble-
|
|
104
|
-
.Bubble-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
.Bubble-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
.Bubble-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.Bubble-
|
|
121
|
-
.Bubble-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
38
|
+
/* The order, stated wherever these styles load first: the styles, then the components */
|
|
39
|
+
@layer nightshade, nightshade-components;
|
|
40
|
+
|
|
41
|
+
@layer nightshade-components {
|
|
42
|
+
|
|
43
|
+
.Bubble {
|
|
44
|
+
--Bubble-background: var(--surface-raised);
|
|
45
|
+
--Bubble-arrow-size: var(--sp);
|
|
46
|
+
--Bubble-arrow-offset: var(--sp2);
|
|
47
|
+
--Bubble-radius: var(--radius-m);
|
|
48
|
+
--Bubble-shadow: var(--shadow-light);
|
|
49
|
+
--Bubble-filter: drop-shadow(0 1px 3px var(--Bubble-shadow));
|
|
50
|
+
|
|
51
|
+
position: absolute;
|
|
52
|
+
z-index: 10;
|
|
53
|
+
filter: var(--Bubble-filter);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.Body {
|
|
57
|
+
position: absolute;
|
|
58
|
+
min-width: var(--sp6);
|
|
59
|
+
min-height: var(--sp2);
|
|
60
|
+
border-radius: var(--Bubble-radius);
|
|
61
|
+
background: var(--Bubble-background);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.Arrow {
|
|
65
|
+
position: absolute;
|
|
66
|
+
z-index: 5;
|
|
67
|
+
width: 0;
|
|
68
|
+
height: 0;
|
|
69
|
+
border: var(--Bubble-arrow-size) solid transparent;
|
|
70
|
+
transform: translate(-50%, -50%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Directions */
|
|
74
|
+
|
|
75
|
+
.Bubble-top > .Body {
|
|
76
|
+
margin-bottom: var(--Bubble-arrow-size);
|
|
77
|
+
bottom: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.Bubble-bottom > .Body {
|
|
81
|
+
margin-top: var(--Bubble-arrow-size);
|
|
82
|
+
top: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.Bubble-left > .Body {
|
|
86
|
+
margin-right: var(--Bubble-arrow-size);
|
|
87
|
+
right: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.Bubble-right > .Body {
|
|
91
|
+
margin-left: var(--Bubble-arrow-size);
|
|
92
|
+
left: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Alignments */
|
|
96
|
+
|
|
97
|
+
.Bubble-start.Bubble-top > .Body,
|
|
98
|
+
.Bubble-start.Bubble-bottom > .Body {
|
|
99
|
+
left: 0;
|
|
100
|
+
transform: translateX(calc(-1 * var(--Bubble-arrow-offset)));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.Bubble-center.Bubble-top > .Body,
|
|
104
|
+
.Bubble-center.Bubble-bottom > .Body {
|
|
105
|
+
transform: translateX(-50%);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.Bubble-end.Bubble-top > .Body,
|
|
109
|
+
.Bubble-end.Bubble-bottom > .Body {
|
|
110
|
+
right: 0;
|
|
111
|
+
transform: translateX(var(--Bubble-arrow-offset));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.Bubble-start.Bubble-left > .Body,
|
|
115
|
+
.Bubble-start.Bubble-right > .Body {
|
|
116
|
+
top: 0;
|
|
117
|
+
transform: translateY(calc(-1 * var(--Bubble-arrow-offset)));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.Bubble-center.Bubble-left > .Body,
|
|
121
|
+
.Bubble-center.Bubble-right > .Body {
|
|
122
|
+
transform: translateY(-50%);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.Bubble-end.Bubble-left > .Body,
|
|
126
|
+
.Bubble-end.Bubble-right > .Body {
|
|
127
|
+
bottom: 0;
|
|
128
|
+
transform: translateY(var(--Bubble-arrow-offset));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Arrows */
|
|
132
|
+
|
|
133
|
+
.Bubble-top > .Arrow {
|
|
134
|
+
border-top-color: var(--Bubble-background);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.Bubble-bottom > .Arrow {
|
|
138
|
+
border-bottom-color: var(--Bubble-background);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.Bubble-left > .Arrow {
|
|
142
|
+
border-left-color: var(--Bubble-background);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.Bubble-right > .Arrow {
|
|
146
|
+
border-right-color: var(--Bubble-background);
|
|
147
|
+
}
|
|
139
148
|
|
|
140
|
-
.Bubble-right > .Arrow {
|
|
141
|
-
border-right-color: var(--Bubble-background);
|
|
142
149
|
}
|
|
143
150
|
</style>
|