@matdata/yasgui 5.2.0 → 5.4.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.
@@ -49,7 +49,7 @@
49
49
  left: 0;
50
50
  right: 0;
51
51
  bottom: 0;
52
- background: rgba(0, 0, 0, 0.5);
52
+ background: var(--yasgui-overlay-bg, rgba(0, 0, 0, 0.5));
53
53
  z-index: 10000;
54
54
  align-items: center;
55
55
  justify-content: center;
@@ -185,7 +185,8 @@
185
185
  padding: 10px;
186
186
  border: 1px solid var(--yasgui-input-border, #ccc);
187
187
  border-radius: 4px;
188
- font-family: monospace;
188
+ font-family:
189
+ "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
189
190
  font-size: 13px;
190
191
  resize: vertical;
191
192
  box-sizing: border-box;
@@ -358,3 +359,262 @@
358
359
  }
359
360
  }
360
361
  }
362
+
363
+ // Import/Export styles
364
+ .exportButtons,
365
+ .importButtons {
366
+ display: flex;
367
+ gap: 10px;
368
+ margin-top: 15px;
369
+ }
370
+
371
+ .dropZone {
372
+ border: 2px dashed var(--yasgui-border-color, #ccc);
373
+ border-radius: 8px;
374
+ padding: 40px 20px;
375
+ text-align: center;
376
+ background: var(--yasgui-bg-secondary, #f9f9f9);
377
+ margin-top: 15px;
378
+ transition: all 0.3s;
379
+
380
+ &.dragover {
381
+ border-color: var(--yasgui-accent-color, #337ab7);
382
+ background: var(--yasgui-accent-light, #e8f4fc);
383
+ }
384
+
385
+ .dropZoneContent {
386
+ margin-bottom: 20px;
387
+ }
388
+
389
+ .dropZoneIcon {
390
+ font-size: 48px;
391
+ margin-bottom: 10px;
392
+ }
393
+
394
+ .dropZoneText {
395
+ font-size: 16px;
396
+ font-weight: 500;
397
+ color: var(--yasgui-text-primary, #333);
398
+ margin-bottom: 8px;
399
+ }
400
+
401
+ .dropZoneOr {
402
+ font-size: 14px;
403
+ color: var(--yasgui-text-secondary, #666);
404
+ margin: 15px 0;
405
+ }
406
+ }
407
+
408
+ .importExportNotification {
409
+ position: fixed;
410
+ top: 20px;
411
+ right: 20px;
412
+ padding: 15px 20px;
413
+ border-radius: 4px;
414
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
415
+ z-index: 10001;
416
+ font-size: 14px;
417
+ animation: slideIn 0.3s ease-out;
418
+
419
+ &.success {
420
+ background: #4caf50;
421
+ color: white;
422
+ }
423
+
424
+ &.error {
425
+ background: #f44336;
426
+ color: white;
427
+ }
428
+ }
429
+
430
+ @keyframes slideIn {
431
+ from {
432
+ transform: translateX(400px);
433
+ opacity: 0;
434
+ }
435
+ to {
436
+ transform: translateX(0);
437
+ opacity: 1;
438
+ }
439
+ }
440
+
441
+ // Keyboard Shortcuts styles
442
+ .shortcutsSection {
443
+ margin-bottom: 30px;
444
+ }
445
+
446
+ .shortcutsCategory {
447
+ font-size: 16px;
448
+ font-weight: 600;
449
+ color: var(--yasgui-text-primary, #000);
450
+ margin-bottom: 15px;
451
+ padding-bottom: 8px;
452
+ border-bottom: 2px solid var(--yasgui-border-color, #e0e0e0);
453
+ }
454
+
455
+ .shortcutsTable {
456
+ width: 100%;
457
+ border-collapse: collapse;
458
+
459
+ thead {
460
+ th {
461
+ padding: 10px 8px;
462
+ text-align: left;
463
+ font-weight: 600;
464
+ font-size: 13px;
465
+ color: var(--yasgui-text-primary, #333);
466
+ background-color: var(--yasgui-bg-secondary, #f5f5f5);
467
+ border-bottom: 2px solid var(--yasgui-border-color, #e0e0e0);
468
+ }
469
+ }
470
+
471
+ tbody {
472
+ tr {
473
+ border-bottom: 1px solid var(--yasgui-border-color, #e8e8e8);
474
+
475
+ &:last-child {
476
+ border-bottom: none;
477
+ }
478
+
479
+ &:hover {
480
+ background-color: var(--yasgui-bg-secondary, #f9f9f9);
481
+ }
482
+ }
483
+ }
484
+
485
+ td {
486
+ padding: 12px 8px;
487
+ vertical-align: middle;
488
+ }
489
+ }
490
+
491
+ .shortcutsKeys {
492
+ width: 40%;
493
+ font-weight: 500;
494
+
495
+ kbd {
496
+ display: inline-block;
497
+ padding: 4px 8px;
498
+ font-size: 12px;
499
+ font-family:
500
+ SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
501
+ line-height: 1.4;
502
+ color: var(--yasgui-text-primary, #333);
503
+ background-color: var(--yasgui-bg-secondary, #f7f7f7);
504
+ border: 1px solid var(--yasgui-border-color, #ccc);
505
+ border-radius: 4px;
506
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
507
+ white-space: nowrap;
508
+ }
509
+ }
510
+
511
+ .shortcutsSeparator {
512
+ color: var(--yasgui-text-secondary, #999);
513
+ margin: 0 4px;
514
+ font-weight: normal;
515
+ }
516
+
517
+ .shortcutsDescription {
518
+ width: 60%;
519
+ color: var(--yasgui-text-primary, #333);
520
+ font-size: 14px;
521
+ }
522
+
523
+ // About tab styles
524
+ .aboutSection {
525
+ text-align: center;
526
+ padding: 20px;
527
+ }
528
+
529
+ .aboutTitle {
530
+ display: flex;
531
+ align-items: center;
532
+ justify-content: center;
533
+ gap: 15px;
534
+ margin-bottom: 10px;
535
+ }
536
+
537
+ .aboutMainTitle {
538
+ font-size: 28px;
539
+ font-weight: 700;
540
+ color: var(--yasgui-accent-color, #337ab7);
541
+ margin: 0;
542
+ }
543
+
544
+ .versionBadge {
545
+ background: var(--yasgui-accent-color, #337ab7);
546
+ color: white;
547
+ padding: 4px 12px;
548
+ border-radius: 12px;
549
+ font-size: 14px;
550
+ font-weight: 600;
551
+ }
552
+
553
+ .aboutSubtitle {
554
+ font-size: 16px;
555
+ color: var(--yasgui-text-secondary, #666);
556
+ margin: 0 0 30px 0;
557
+ font-style: italic;
558
+ }
559
+
560
+ .aboutLinks {
561
+ margin: 30px 0;
562
+ display: flex;
563
+ flex-direction: column;
564
+ gap: 20px;
565
+ text-align: left;
566
+ }
567
+
568
+ .aboutLinkItem {
569
+ padding: 15px;
570
+ border: 1px solid var(--yasgui-border-color, #ddd);
571
+ border-radius: 6px;
572
+ background: var(--yasgui-bg-secondary, #f9f9f9);
573
+ transition: all 0.2s;
574
+
575
+ &:hover {
576
+ border-color: var(--yasgui-accent-color, #337ab7);
577
+ background: var(--yasgui-bg-primary, #fff);
578
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
579
+ }
580
+ }
581
+
582
+ .aboutLink {
583
+ font-size: 16px;
584
+ font-weight: 600;
585
+ color: var(--yasgui-accent-color, #337ab7);
586
+ text-decoration: none;
587
+ display: block;
588
+ margin-bottom: 5px;
589
+
590
+ &:hover {
591
+ text-decoration: underline;
592
+ }
593
+ }
594
+
595
+ .aboutLinkDescription {
596
+ font-size: 14px;
597
+ color: var(--yasgui-text-secondary, #666);
598
+ margin: 0;
599
+ }
600
+
601
+ .aboutFooter {
602
+ margin-top: 40px;
603
+ padding-top: 20px;
604
+ border-top: 1px solid var(--yasgui-border-color, #e0e0e0);
605
+ font-size: 14px;
606
+ color: var(--yasgui-text-secondary, #666);
607
+
608
+ p {
609
+ margin: 5px 0;
610
+ }
611
+
612
+ a {
613
+ color: var(--yasgui-accent-color, #337ab7);
614
+ text-decoration: none;
615
+
616
+ &:hover {
617
+ text-decoration: underline;
618
+ }
619
+ }
620
+ }