@7365admin1/layer-common 4.28.1-staging.361 → 4.28.1-staging.362

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.
@@ -320,7 +320,10 @@
320
320
  display: grid;
321
321
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
322
322
  border-top: 2px solid var(--hero-divider);
323
+ border-left: 1px solid var(--hero-divider);
323
324
  }
325
+ /* The site fleet's strip: always six columns (README §2). */
326
+ .hero-summary--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
324
327
  .hero-cell {
325
328
  --hero-cell-color: var(--hero-text);
326
329
  position: relative;
@@ -576,6 +579,265 @@
576
579
  .hero-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
577
580
  .hero-note { font-size: 12px; opacity: 0.6; }
578
581
 
582
+ /* ---------------------------------------- site fleet + detail (phase c) */
583
+
584
+ /* The whole screen inside an app layout: header edge to edge, then main. */
585
+ .hero-screen {
586
+ display: flex;
587
+ flex-direction: column;
588
+ margin: -24px;
589
+ min-height: calc(100vh - 64px);
590
+ }
591
+ .hero-main { display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 40px; min-width: 0; }
592
+
593
+ /* Shared shell header (README "Shared shell"): 62px, 2px rule, sweep line. */
594
+ .hero-header {
595
+ position: relative;
596
+ display: flex;
597
+ flex-wrap: wrap;
598
+ align-items: center;
599
+ gap: 12px 20px;
600
+ min-height: 62px;
601
+ padding: 10px 20px;
602
+ border-bottom: 2px solid var(--hero-divider);
603
+ box-sizing: border-box;
604
+ overflow: hidden;
605
+ }
606
+ .hero-brand { display: flex; align-items: center; gap: 10px; }
607
+ .hero-brand__name { font-family: var(--hero-font); font-weight: 800; font-size: 16px; letter-spacing: 0.06em; line-height: 1; }
608
+ .hero-brand__org { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 3px; white-space: nowrap; }
609
+ .hero-header__site { display: flex; align-items: center; gap: 8px; }
610
+ .hero-header__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
611
+
612
+ /* Cleaning | Security: selected = accent fill, white text. */
613
+ .hero-switch { display: flex; border: 1px solid var(--hero-divider); }
614
+ .hero-switch__opt {
615
+ font: inherit;
616
+ font-size: 12px;
617
+ font-weight: 600;
618
+ padding: 6px 14px;
619
+ border: 0;
620
+ background: transparent;
621
+ color: var(--hero-text);
622
+ cursor: pointer;
623
+ }
624
+ .hero-switch__opt + .hero-switch__opt { border-left: 1px solid var(--hero-divider); }
625
+ .hero-switch__opt[aria-pressed="true"] { background: var(--hero-accent); color: #fff; }
626
+
627
+ /* A native select in the handoff's look, anywhere in the scope. */
628
+ .hero select.hero-select {
629
+ width: auto;
630
+ min-height: 32px;
631
+ padding: 4px 26px 4px 8px;
632
+ font-size: 13px;
633
+ appearance: none;
634
+ background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
635
+ background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%;
636
+ background-size: 4px 4px;
637
+ background-repeat: no-repeat;
638
+ cursor: pointer;
639
+ }
640
+ .hero select.hero-select--sm { min-height: 28px; padding: 2px 24px 2px 8px; font-size: 12px; }
641
+
642
+ .hero-back--sm { font-size: 12px; white-space: nowrap; margin-bottom: 4px; }
643
+ .hero-title { margin: 0 0 4px; text-wrap: balance; }
644
+
645
+ /* Site fleet: main + mini-map aside (stacks below ~900px). */
646
+ .hero-split__main--fleet { flex: 999 1 520px; }
647
+ .hero-split__aside--map { flex: 1 1 320px; max-width: 420px; gap: 10px; }
648
+ .hero-tag--xs { font-size: 10px; }
649
+
650
+ /* Icon button (full screen). */
651
+ .hero .v-btn.hero-iconbtn { padding: 4px 8px; }
652
+
653
+ /* The floor plan: mini-map and detail plan share it (4:3, grid, walls, dock, brackets). */
654
+ .hero-plan {
655
+ position: relative;
656
+ aspect-ratio: 4 / 3;
657
+ background-color: var(--hero-surface);
658
+ background-image: linear-gradient(var(--hero-divider) 1px, transparent 1px), linear-gradient(90deg, var(--hero-divider) 1px, transparent 1px);
659
+ background-size: 10% 10%;
660
+ border: 1px solid var(--hero-divider);
661
+ overflow: hidden;
662
+ }
663
+ .hero-plan--detail { max-height: 440px; }
664
+ .hero-plan--pick { cursor: crosshair; }
665
+ .hero-plan:fullscreen { background-color: var(--hero-bg); }
666
+ .hero-plan__corner { position: absolute; width: 14px; height: 14px; }
667
+ .hero-plan__corner--tl { left: -1px; top: -1px; border-top: 2px solid var(--hero-accent); border-left: 2px solid var(--hero-accent); }
668
+ .hero-plan__corner--tr { right: -1px; top: -1px; border-top: 2px solid var(--hero-accent); border-right: 2px solid var(--hero-accent); }
669
+ .hero-plan__corner--bl { left: -1px; bottom: -1px; border-bottom: 2px solid var(--hero-accent); border-left: 2px solid var(--hero-accent); }
670
+ .hero-plan__corner--br { right: -1px; bottom: -1px; border-bottom: 2px solid var(--hero-accent); border-right: 2px solid var(--hero-accent); }
671
+ .hero-plan__wall { position: absolute; border: 2px solid var(--hero-text); opacity: 0.6; }
672
+ .hero-plan__dock {
673
+ position: absolute;
674
+ right: 6%;
675
+ bottom: 8%;
676
+ width: 10%;
677
+ height: 14%;
678
+ background: color-mix(in srgb, var(--hero-accent) 30%, transparent);
679
+ border: 1px solid var(--hero-accent);
680
+ }
681
+ .hero-plan__dock-label { position: absolute; left: 0; top: -15px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
682
+ .hero-plan__scan {
683
+ position: absolute;
684
+ inset: 0;
685
+ pointer-events: none;
686
+ background-image: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hero-accent) 22%, transparent) 50%, transparent);
687
+ background-size: 100% 60px;
688
+ background-repeat: no-repeat;
689
+ animation: heroScan 4s linear infinite;
690
+ }
691
+ .hero-plan__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
692
+ .hero-plan__route { fill: none; stroke: var(--hero-accent); stroke-width: 2; stroke-dasharray: 6 5; }
693
+ .hero-plan__route--anim { animation: heroDash 1.6s linear infinite; }
694
+
695
+ /* Mini-map robots: 14px squares in their status colour, heading tick, ping ring, name tag. */
696
+ .hero-bot { position: absolute; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
697
+ .hero-bot__ping { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border: 1.5px solid var(--hero-bot); animation: heroPing 2.4s ease-out infinite; box-sizing: border-box; }
698
+ .hero-bot__body { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: var(--hero-bot); outline: 2px solid var(--hero-bg); }
699
+ .hero-bot__tick { position: absolute; right: -5px; top: 5px; width: 5px; height: 4px; background: var(--hero-accent); }
700
+ .hero-bot__name { position: absolute; left: 10px; top: -18px; font-size: 10px; font-weight: 600; white-space: nowrap; background: var(--hero-bg); padding: 0 4px; line-height: 1.45; }
701
+
702
+ /* Patrol checkpoints and route tags. */
703
+ .hero-cp {
704
+ position: absolute;
705
+ width: 12px;
706
+ height: 12px;
707
+ margin: -6px;
708
+ border: 2px solid var(--hero-accent);
709
+ background: var(--hero-bg);
710
+ display: grid;
711
+ place-items: center;
712
+ font-size: 7px;
713
+ font-weight: 800;
714
+ color: var(--hero-accent);
715
+ box-sizing: border-box;
716
+ }
717
+ .hero-cp--lg { width: 14px; height: 14px; margin: -7px; font-size: 8px; }
718
+ .hero-cp--current { background: var(--hero-accent); color: #fff; }
719
+ .hero-cp__label { position: absolute; margin: -19px 0 0 -8px; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; opacity: 0.7; }
720
+ .hero-cp__label--lg { margin: -22px 0 0 -10px; font-size: 9px; opacity: 0.75; }
721
+ .hero-routetag {
722
+ position: absolute;
723
+ margin: -34px 0 0 -6px;
724
+ font-size: 8px;
725
+ letter-spacing: 0.08em;
726
+ text-transform: uppercase;
727
+ white-space: nowrap;
728
+ font-weight: 800;
729
+ padding: 1px 5px;
730
+ background: var(--hero-accent);
731
+ color: #fff;
732
+ }
733
+ .hero-routetag--lg { margin: -38px 0 0 -8px; font-size: 9px; padding: 2px 6px; }
734
+
735
+ .hero-mini { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
736
+ .hero-seen { opacity: 0.65; }
737
+ .hero-mini__head { display: flex; align-items: center; gap: 8px; border-top: 2px solid var(--hero-divider); padding-top: 8px; }
738
+ .hero-mini__foot { font-size: 11px; opacity: 0.6; display: flex; gap: 12px; white-space: nowrap; }
739
+ .hero-mini__foot > span:first-child { overflow: hidden; text-overflow: ellipsis; }
740
+ .hero-mini__legend { display: inline-block; width: 12px; height: 0; border-top: 2px dashed var(--hero-accent); vertical-align: middle; margin-right: 5px; }
741
+ .hero-mini__count { margin-left: auto; font-variant-numeric: tabular-nums; }
742
+
743
+ /* Robot detail. */
744
+ .hero-detail__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
745
+ .hero-detail__title h2 { white-space: nowrap; }
746
+ .hero-detail__where { opacity: 0.6; font-size: 12px; }
747
+ .hero .v-btn.hero-ghost { color: var(--hero-accent); padding-inline: 4px; }
748
+ .hero .v-btn.hero-ghost:hover { background: color-mix(in srgb, var(--hero-accent) 10%, transparent); }
749
+
750
+ .hero-faultbar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 2px solid var(--hero-accent); }
751
+ .hero-faultbar__code { font-family: var(--hero-font); font-weight: 800; color: var(--hero-accent); font-size: 18px; }
752
+ .hero-faultbar__msg { font-weight: 600; }
753
+ .hero-faultbar__since { opacity: 0.65; font-size: 12px; }
754
+ .hero-faultbar__badge { font-size: 11px; padding: 2px 8px; background: var(--hero-accent); color: #fff; font-weight: 600; }
755
+
756
+ .hero-facts {
757
+ display: grid;
758
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
759
+ border-top: 2px solid var(--hero-divider);
760
+ border-left: 1px solid var(--hero-divider);
761
+ }
762
+ .hero-fact { padding: 10px 12px; border-right: 1px solid var(--hero-divider); border-bottom: 1px solid var(--hero-divider); }
763
+ .hero-fact__label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
764
+ .hero-fact__value { font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }
765
+ .hero-fact__value--dim { opacity: 0.5; }
766
+ .hero-notreported { font-size: 12px; opacity: 0.7; }
767
+
768
+ .hero-section__title {
769
+ font-size: 10px;
770
+ letter-spacing: 0.12em;
771
+ text-transform: uppercase;
772
+ white-space: nowrap;
773
+ font-weight: 600;
774
+ border-top: 2px solid var(--hero-divider);
775
+ padding-top: 8px;
776
+ margin-bottom: 8px;
777
+ }
778
+ .hero-detail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
779
+ .hero-detail__grid .hero-aside__hint { opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
780
+
781
+ .hero-sched__empty { padding: 20px 0; opacity: 0.65; }
782
+ .hero-sched__row { display: grid; grid-template-columns: 90px 100px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hero-divider); font-size: 12.5px; }
783
+ .hero-sched__row > span:nth-child(2) { font-variant-numeric: tabular-nums; }
784
+ .hero-sched__row > span:nth-child(3) { opacity: 0.8; }
785
+
786
+ /* Detail plan: trail, crosshair, readout, radar, robot, spot points. */
787
+ .hero-trail { position: absolute; width: 6px; height: 6px; margin: -3px; background: var(--hero-accent); }
788
+ .hero-cross { position: absolute; pointer-events: none; }
789
+ .hero-cross--h { left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--hero-accent) 55%, transparent); }
790
+ .hero-cross--v { top: 0; bottom: 0; border-left: 1px dashed color-mix(in srgb, var(--hero-accent) 55%, transparent); }
791
+ .hero-readout {
792
+ position: absolute;
793
+ left: 8px;
794
+ bottom: 6px;
795
+ font-size: 10px;
796
+ letter-spacing: 0.08em;
797
+ text-transform: uppercase;
798
+ font-variant-numeric: tabular-nums;
799
+ background: var(--hero-bg);
800
+ padding: 3px 8px;
801
+ border-left: 2px solid var(--hero-accent);
802
+ white-space: nowrap;
803
+ }
804
+ .hero-me { position: absolute; width: 0; height: 0; }
805
+ .hero-me__tag { position: absolute; left: 14px; top: -26px; white-space: nowrap; font-size: 11px; font-weight: 800; padding: 2px 6px; background: var(--hero-text); color: var(--hero-bg); line-height: 1.45; }
806
+ .hero-me__tag > span { font-weight: 400; opacity: 0.75; }
807
+ .hero-me__radar {
808
+ position: absolute;
809
+ left: -36px;
810
+ top: -36px;
811
+ width: 72px;
812
+ height: 72px;
813
+ background: conic-gradient(from 0deg, color-mix(in srgb, var(--hero-accent) 45%, transparent), transparent 70deg);
814
+ animation: heroSpin 3s linear infinite;
815
+ }
816
+ .hero-me__ping { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border: 1px solid var(--hero-accent); animation: heroPing 2.4s ease-out infinite; box-sizing: border-box; }
817
+ .hero-me__body { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; background: var(--hero-text); outline: 2px solid var(--hero-bg); }
818
+ .hero-me__tick { position: absolute; right: -6px; top: 6px; width: 6px; height: 4px; background: var(--hero-accent); }
819
+ .hero-spot {
820
+ position: absolute;
821
+ width: 18px;
822
+ height: 18px;
823
+ margin: -9px;
824
+ border: 2px solid var(--hero-accent);
825
+ display: grid;
826
+ place-items: center;
827
+ font-size: 10px;
828
+ font-weight: 700;
829
+ color: var(--hero-accent);
830
+ background: var(--hero-bg);
831
+ box-sizing: border-box;
832
+ }
833
+ .hero-spotbar { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
834
+
835
+ /* HERO dialog (remove). */
836
+ .hero-dialog { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--hero-surface); box-shadow: var(--hero-shadow-lg); }
837
+ .hero-dialog__title { font-family: var(--hero-font); font-weight: 800; font-size: 20px; }
838
+ .hero-dialog__body { font-size: 14px; opacity: 0.85; }
839
+ .hero-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
840
+
579
841
  /* ----------------------------------------------------------- animations */
580
842
 
581
843
  @keyframes heroScan { from { background-position: 0 -60px; } to { background-position: 0 120%; } }