ofs-object 0.1.5 → 0.1.7
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 +4 -0
- package/dist/index.d.ts +47 -3
- package/dist/ofs-object.cjs +71 -71
- package/dist/ofs-object.css +30 -6
- package/dist/ofs-object.js +4913 -4850
- package/docs/API.md +5 -0
- package/package.json +1 -1
package/dist/ofs-object.css
CHANGED
|
@@ -310,6 +310,22 @@
|
|
|
310
310
|
|
|
311
311
|
.ofs-sym-row input[type='color'], .ofs-sym-table input[type='color'] { width: 34px; height: 22px; padding: 0; border: none; background: none; }
|
|
312
312
|
|
|
313
|
+
.ofs-sym-color { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
|
|
314
|
+
|
|
315
|
+
.ofs-sym-color-well { display: inline-flex; border-radius: 3px; }
|
|
316
|
+
|
|
317
|
+
.ofs-sym-color.is-none .ofs-sym-color-well {
|
|
318
|
+
background:
|
|
319
|
+
linear-gradient(to top right, transparent calc(50% - 1px), #ef4444 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
|
|
320
|
+
repeating-conic-gradient(#cbd5e1 0 25%, #ffffff 0 50%) 0 0 / 8px 8px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.ofs-sym-color.is-none input[type='color'] { opacity: 0; }
|
|
324
|
+
|
|
325
|
+
.ofs-sym-nocolor { font-size: 13px; line-height: 1; }
|
|
326
|
+
|
|
327
|
+
.ofs-sym-nocolor[aria-pressed='true'] { color: var(--ofs-text-primary); background: rgba(255, 255, 255, 0.15); }
|
|
328
|
+
|
|
313
329
|
.ofs-sym-pair { display: flex; gap: 4px; flex: 1; align-items: center; min-width: 0; }
|
|
314
330
|
|
|
315
331
|
.ofs-sym-pair > * { flex: 1; min-width: 0; }
|
|
@@ -341,16 +357,24 @@
|
|
|
341
357
|
/* ==========================================================================
|
|
342
358
|
AutoCAD-Style Web CLI Console (Bottom)
|
|
343
359
|
========================================================================== */
|
|
360
|
+
/*
|
|
361
|
+
* mount() adds this class to the host's own element, so it styles the look only. Where the console
|
|
362
|
+
* sits is the host's page layout. It used to float it here too - `left: 80px; right: 420px` were the
|
|
363
|
+
* playground's toolbar and sidebar widths - and every other page had to write CSS over it.
|
|
364
|
+
*/
|
|
344
365
|
.ofs-console-container {
|
|
345
|
-
position: absolute;
|
|
346
|
-
bottom: 20px;
|
|
347
|
-
left: 80px;
|
|
348
|
-
right: 420px;
|
|
349
|
-
z-index: 15;
|
|
350
366
|
box-shadow: var(--ofs-shadow-lg);
|
|
351
367
|
border-radius: 12px;
|
|
352
368
|
overflow: hidden;
|
|
353
|
-
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* Opt in to a console floating along the bottom of a positioned parent (e.g. the map container) */
|
|
372
|
+
.ofs-console-floating {
|
|
373
|
+
position: absolute;
|
|
374
|
+
bottom: 20px;
|
|
375
|
+
left: 20px;
|
|
376
|
+
right: 20px;
|
|
377
|
+
z-index: 15;
|
|
354
378
|
}
|
|
355
379
|
|
|
356
380
|
.ofs-console-card {
|