canvas_erd 0.1.0 → 0.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.
@@ -321,6 +321,214 @@ select:focus-visible {
321
321
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.12);
322
322
  }
323
323
 
324
+ .note-formatting,
325
+ .table-formatting,
326
+ .arrow-formatting,
327
+ .frame-formatting {
328
+ position: absolute;
329
+ bottom: 4rem;
330
+ left: 50%;
331
+ z-index: 2;
332
+ display: flex;
333
+ flex-wrap: wrap;
334
+ align-items: center;
335
+ justify-content: center;
336
+ gap: 0.25rem;
337
+ max-width: calc(100% - 1.5rem);
338
+ border: 1px solid rgba(203, 213, 225, 0.9);
339
+ border-radius: 0.75rem;
340
+ background: rgba(255, 255, 255, 0.96);
341
+ padding: 0.35rem;
342
+ transform: translateX(-50%);
343
+ box-shadow: 0 5px 18px rgba(15, 23, 42, 0.12);
344
+ }
345
+
346
+ .format-button {
347
+ width: 2.25rem;
348
+ padding: 0;
349
+ }
350
+
351
+ .format-button[aria-pressed="true"] {
352
+ border-color: #2563eb;
353
+ color: #1d4ed8;
354
+ background: #eff6ff;
355
+ }
356
+
357
+ .note-bold {
358
+ font-weight: 700;
359
+ }
360
+
361
+ .note-italic {
362
+ font-style: italic;
363
+ }
364
+
365
+ .note-underline {
366
+ text-decoration: underline;
367
+ }
368
+
369
+ .note-format-field {
370
+ display: flex;
371
+ align-items: center;
372
+ gap: 0.35rem;
373
+ min-height: 2.25rem;
374
+ color: #526277;
375
+ padding: 0 0.35rem;
376
+ font-size: 0.72rem;
377
+ }
378
+
379
+ .color-control {
380
+ position: relative;
381
+ }
382
+
383
+ .note-color-button {
384
+ display: flex;
385
+ align-items: center;
386
+ gap: 0.4rem;
387
+ padding: 0.35rem 0.55rem;
388
+ font-size: 0.72rem;
389
+ }
390
+
391
+ .color-preview {
392
+ width: 1.15rem;
393
+ height: 1.15rem;
394
+ border: 1px solid rgba(15, 23, 42, 0.25);
395
+ border-radius: 0.25rem;
396
+ background: #ffffff;
397
+ }
398
+
399
+ .transparent-color {
400
+ background-color: #ffffff !important;
401
+ background-image:
402
+ linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
403
+ linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
404
+ linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
405
+ linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
406
+ background-position: 0 0, 0 5px, 5px -5px, -5px 0;
407
+ background-size: 10px 10px;
408
+ }
409
+
410
+ .mixed-color {
411
+ background-color: #ffffff !important;
412
+ background-image: linear-gradient(135deg, #243b63 50%, #9a3412 50%);
413
+ }
414
+
415
+ .color-menu {
416
+ position: absolute;
417
+ bottom: calc(100% + 0.55rem);
418
+ left: 50%;
419
+ width: 11.5rem;
420
+ border: 1px solid #cbd3df;
421
+ border-radius: 0.6rem;
422
+ background: #ffffff;
423
+ padding: 0.55rem;
424
+ transform: translateX(-50%);
425
+ box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
426
+ }
427
+
428
+ .color-swatches {
429
+ display: grid;
430
+ grid-template-columns: repeat(4, 1fr);
431
+ gap: 0.4rem;
432
+ }
433
+
434
+ .color-swatch {
435
+ width: 2.2rem;
436
+ min-height: 2.2rem;
437
+ border-color: rgba(15, 23, 42, 0.25);
438
+ padding: 0;
439
+ }
440
+
441
+ .color-swatch[aria-pressed="true"] {
442
+ outline: 2px solid #2563eb;
443
+ outline-offset: 1px;
444
+ }
445
+
446
+ .swatch-separator {
447
+ grid-column: 1 / -1;
448
+ height: 1px;
449
+ margin: 0.15rem 0;
450
+ background: #e2e8f0;
451
+ }
452
+
453
+ .color-menu-actions {
454
+ display: grid;
455
+ grid-template-columns: auto 1fr;
456
+ gap: 0.4rem;
457
+ margin-top: 0.55rem;
458
+ border-top: 1px solid #e2e8f0;
459
+ padding-top: 0.55rem;
460
+ }
461
+
462
+ .transparent-option {
463
+ display: flex;
464
+ width: 2.25rem;
465
+ min-width: 2.25rem;
466
+ align-items: center;
467
+ justify-content: center;
468
+ padding: 0;
469
+ }
470
+
471
+ .transparent-option[aria-pressed="true"] {
472
+ border-color: #2563eb;
473
+ color: #1d4ed8;
474
+ background: #eff6ff;
475
+ }
476
+
477
+ .color-menu-actions .custom-color {
478
+ min-width: 0;
479
+ width: 100%;
480
+ margin: 0;
481
+ border: 1px solid #cbd3df;
482
+ border-radius: 0.45rem;
483
+ padding: 0.25rem 0.35rem;
484
+ font-size: 0.68rem;
485
+ }
486
+
487
+ .custom-color {
488
+ display: flex;
489
+ align-items: center;
490
+ justify-content: space-between;
491
+ gap: 0.5rem;
492
+ margin-top: 0.55rem;
493
+ border-top: 1px solid #e2e8f0;
494
+ color: #526277;
495
+ cursor: pointer;
496
+ padding-top: 0.55rem;
497
+ font-size: 0.75rem;
498
+ }
499
+
500
+ .custom-color input {
501
+ width: 2rem;
502
+ height: 1.65rem;
503
+ border: 0;
504
+ background: transparent;
505
+ cursor: pointer;
506
+ padding: 0;
507
+ }
508
+
509
+ .note-format-field select {
510
+ min-height: 1.9rem;
511
+ border: 1px solid #cbd3df;
512
+ border-radius: 0.35rem;
513
+ color: #263447;
514
+ background: #ffffff;
515
+ padding: 0.2rem 0.35rem;
516
+ }
517
+
518
+ #arrow-stroke-width {
519
+ width: 4rem;
520
+ min-height: 1.9rem;
521
+ border: 1px solid #cbd3df;
522
+ border-radius: 0.35rem;
523
+ color: #263447;
524
+ background: #ffffff;
525
+ padding: 0.2rem 0.35rem;
526
+ }
527
+
528
+ #note-paragraph-style {
529
+ max-width: 7.5rem;
530
+ }
531
+
324
532
  .canvas-panel .canvas-container {
325
533
  position: absolute !important;
326
534
  inset: 0;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_erd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Heiligers