-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathhome.component.scss
More file actions
2309 lines (1976 loc) · 55.6 KB
/
Copy pathhome.component.scss
File metadata and controls
2309 lines (1976 loc) · 55.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.bg-orange-100{
background-color: #fde0c2;
}
.orange-500{
color: #f57c00;
}
.bg-blue-100{
background-color: #cae6fc;
}
/* Pool metricbar labels inside the filled (grey) box should match the same unit/suffix tone
used elsewhere (Best Difficulty, Efficiency, etc.). */
.pool-tile-metricbar__user-label,
.pool-tile-metricbar__shares-label{
color: var(--unit-in-fill-color, var(--unit-color)) !important;
}
/* Uppercase label casing (labels are translated via i18n; CSS controls presentation only). */
.pool-tile-metricbar__since .pool-tile-metricbar__label-inline,
.pool-tile-metricbar__user-label,
.pool-tile-metricbar__shares-label,
.pool-tile-metricbar__rejected,
.pool-tile-metricbar__diff .pool-tile-info__label,
.pool-tile-info__label,
.pool-summary-square__uptime-label{
text-transform: var(--POOL_LABEL_TEXT_TRANSFORM, uppercase);
}
:host{
/* Keep UI labels uppercase (text still comes from i18n). */
--POOL_LABEL_TEXT_TRANSFORM: uppercase;
}
nb-card{
padding: 0;
margin: 0;
}
nb-card-body{
padding-top: 0px;
padding-bottom: 0px;
padding-left: 5px;
padding-right: 5px;
margin: 5px;
}
/* Pool tiles must align pixel-perfect with the summary squares (Best Difficulty / ASIC °C).
The global nb-card-body rules above add extra inset; override it for pool tiles only. */
nb-card-body.pool-tile-card__body{
padding: 12px !important;
margin: 0 !important;
background: var(--tile-surface);
height: 100%;
display: flex;
flex-direction: column;
position: relative;
}
/* Pool tile wrapper: remove card chrome so the body surface matches summary squares exactly */
nb-card.pool-tile-card{
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
nb-card-header{
padding: 5px;
margin: 5px;
}
.font-weight-bold{
font-weight: bold;
}
.text-lg{
font-size: 17.5px;
}
.mb-3{
margin-bottom: 0px !important;
}
.no-scroll{
max-height: 100%;
overflow-x: hidden;
overflow-y: hidden;
}
.col-fixed-width{
width: 100px;
min-width: 100px;
flex-shrink: 0;
}
.break-all{
word-break: break-all;
}
.ellipsis-magic{
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
white-space: nowrap;
user-select: none;
padding-right: 50px;
.start{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-shrink: 1;
}
.end{
white-space: nowrap;
flex-basis: content;
flex-grow: 0;
flex-shrink: 0;
}
}
.badge-no-select{
cursor: default;
}
.pool-header{
display: flex;
align-items: center;
gap: 10px;
}
.pool-header__icon{
width: 21px;
height: 21px;
object-fit: contain;
flex-shrink: 0;
}
.pool-header__icon{
opacity: 0.85;
}
/* --- Pool tile layout (mirrored: details left, metric square right) --- */
.pool-tile-layout{
display: flex;
align-items: stretch;
gap: var(--metric-gap);
flex: 1 1 auto;
/* nb-card-body already provides consistent padding across tiles; avoid double-padding */
padding: 0;
/* keep the metric square exactly the same size as in the Hashrate tile */
--pbar-h: 44px;
--metric-gap: 12px;
--metric-square: calc((var(--pbar-h) * 3) + (var(--metric-gap) * 2));
/* Shared dotted divider / underline color (matches bar-end dots) */
--pool-divider-dot: rgba(120, 120, 120, 0.45);
/* Match the visual height of the summary square next to it */
min-height: var(--metric-square);
height: 100%;
width: 100%;
}
/* Nerd*OS logo placement */
.nerdos-logo-row{
display: flex;
width: 100%;
justify-content: flex-end;
}
.nerdos-logo-row--dual{
padding-right: 0;
margin-top: -10px;
}
@media (max-width: 1200px){
.nerdos-logo-row--dual{
margin-top: 0;
}
}
.nerdos-logo-wrap{
display: flex;
justify-content: flex-end;
align-items: center;
width: 100%;
pointer-events: none;
}
.nerdos-logo-wrap__inner{
position: relative;
display: inline-flex;
align-items: center;
justify-content: flex-end;
pointer-events: auto;
cursor: help;
}
.nerdos-logo-wrap--single{
position: absolute;
right: 12px;
bottom: 5px;
}
.nerdos-logo-wrap--dual{
padding-top: 0;
}
.nerdos-logo{
width: clamp(90px, 14vw, 150px);
height: clamp(32px, 5vw, 70px);
background-color: var(--nerdos-logo-color, rgba(120, 120, 120, 0.5));
-webkit-mask: url('./NerdOS.svg') no-repeat center / contain;
mask: url('./NerdOS.svg') no-repeat center / contain;
}
.nerdos-logo-tooltip{
position: absolute;
right: 0;
top: -26px;
padding: 4px 8px;
background: rgba(0, 0, 0, 0.75);
color: #fff;
border-radius: 4px;
font-size: 11px;
letter-spacing: 0.5px;
white-space: nowrap;
opacity: 0;
transform: translateY(2px);
transition: opacity 0.06s ease-out, transform 0.06s ease-out;
pointer-events: none;
}
.nerdos-logo-wrap__inner:hover .nerdos-logo-tooltip{
opacity: 1;
transform: translateY(0);
}
/* In the mirrored pool tile we want a TRUE 50/50 split (no inter-half gap)
so the grey square can end exactly on the 50% edge. */
.pool-tile-layout--mirror{
gap: 0;
flex-direction: column;
}
/* Dual pool: stack pool 2 under pool 1 inside the same white container.
Gap matches the A1/A2 chip-square spacing. */
.pool-tile-layout--dual{
/* same as --chip-gap in the A1/A2 chip grid */
gap: 6px;
/* Dual mode must NOT change the overall tile height. The white pool container
stays exactly as high as the hashrate container next to it.
We split that fixed height into two equal rows (pool 1 top, pool 2 bottom). */
height: 100%;
min-height: var(--metric-square);
}
.pool-tile-section{
flex: 1 1 0;
min-height: 0;
display: flex;
align-items: stretch;
width: 100%;
}
/* Dual mode: two equal-height rows inside the fixed-height tile */
.pool-tile-layout--dual .pool-tile-section{
flex: 1 1 0;
min-height: 0;
}
/* When stacking (dual pool), the template root (.pool-tile-half) must stretch
to the full available width of the white container (otherwise it shrinks to
content width and leaves empty space on the right). */
.pool-tile-section > .pool-tile-half{
flex: 1 1 auto;
width: 100%;
}
/* In dual mode the pool block becomes a single row:
- left: grey metric bar (up to ~2/3)
- right: pool header + host/ping/loss
This keeps the content compact so two pools fit without increasing tile height. */
.pool-tile-half--dual{
height: 100%;
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
column-gap: var(--metric-gap);
align-items: stretch;
}
.pool-tile-half--dual .pool-tile-metricbar{
height: 100%;
}
.pool-tile-half--dual .pool-tile-details{
margin-top: 0;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
.pool-tile-half{
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 16px;
min-width: 0;
height: 100%;
}
/* Full-width grey metric "square" (same height as before, spans the whole half) */
.pool-tile-metricbar{
flex: 0 0 66.6667%;
max-width: 66.6667%;
/* Grey box should take exactly 50% of the white container height */
height: 50%;
background: var(--fill-color, var(--bar-track, rgba(128, 128, 128, 0.25)));
color: var(--bar-value-color);
box-sizing: border-box;
overflow: hidden;
}
/* Disconnected Stratum warning should reuse the existing pool metric bar UI.
Yellow warn surface + centered message; text color should follow the normal bar text rules. */
.pool-tile-metricbar--warn{
background: var(--fill-warn-color, var(--color-warning-500));
}
.pool-tile-metricbar--disconnected{
flex: 1 1 auto;
max-width: 100%;
height: 100%;
}
.pool-tile-metricbar__inner--disconnected{
/* Center the disconnected label both vertically and horizontally */
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: 100%;
width: 100%;
padding: 0;
}
/* Safety: if the template uses the base inner class, keep the disconnected message centered */
.pool-tile-metricbar--disconnected .pool-tile-metricbar__inner{
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: 100%;
width: 100%;
padding: 0;
}
.pool-tile-metricbar__dc-msg{
/* Make the warning clearly readable and truly centered inside the bar */
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: inherit;
font-size: clamp(0.9rem, 1.0vw + 0.65rem, 1.15rem);
font-weight: 900;
line-height: 1.15;
padding: 8px 12px;
width: 100%;
height: 100%;
max-width: 100%;
box-sizing: border-box;
}
.pool-tile-metricbar__inner{
height: 100%;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: flex-start;
position: relative;
z-index: 2;
}
.pool-tile-metricbar__left{
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
text-align: left;
height: 100%;
min-width: 0;
}
/* Since-connect block: right-align the label to the value's unit */
.pool-tile-metricbar__since{
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
}
.pool-tile-metricbar__value{
/* Match the "Best Difficulty" value sizing */
font-size: 1.9rem;
font-weight: 900;
line-height: 1;
display: flex;
align-items: baseline;
/* Units inside the filled (grey) pool bar should match other filled-box units */
.unit{
color: var(--unit-in-fill-color, var(--unit-color));
/* Slightly upscaled to match the visual 15px target in pool header context. */
font-size: 0.5263em;
}
}
/* Inline label that sits directly after the unit (dual pool: only shown for pool 1) */
.pool-tile-metricbar__label-inline{
font-size: 10px;
/* Inside filled (grey) box: use the same unit tone as other filled-box units */
font-weight: 500;
line-height: 1;
margin-left: 8px;
white-space: nowrap;
}
.pool-tile-metricbar__right{
display: flex;
flex-direction: column;
height: 100%;
align-items: flex-end;
text-align: right;
line-height: 1;
justify-content: flex-end;
}
.pool-tile-metricbar__shares{
display: flex;
/* DOM order: label then value; visual order: value on top, label under it */
flex-direction: column-reverse;
align-items: flex-end;
gap: 0;
line-height: 1;
}
.pool-tile-metricbar__shares-value{
/* Restore the original pool-square typography */
font-size: 1.1rem;
font-weight: 900;
line-height: 1;
}
/* User line inside the grey bar (bottom-left) */
.pool-tile-metricbar__user{
margin-top: auto;
font-size: 10px;
line-height: 1.2;
white-space: nowrap;
}
.pool-tile-metricbar__user-label{
font-size: 10px;
opacity: 0.9;
font-weight: 400;
margin-right: 2px;
}
.pool-tile-metricbar__user-value{
font-size: 10px;
color: var(--bar-value-color);
font-weight: 800;
}
.pool-tile-metricbar__shares-label{
font-size: 10px;
/* Shares label should match unit/suffix color */
opacity: 0.9;
font-weight: 500;
line-height: 1;
margin-top: 2px;
}
.pool-tile-metricbar__rejected{
font-size: 10px;
/* Rejected uses the ASIC temp pill color */
color: var(--asic-temp-pill, var(--danger-color));
opacity: 0.9;
font-weight: 700;
/* slight breathing room below the SHARES line */
margin-top: 2px;
line-height: 1;
}
.pool-tile-metricbar{
position: relative;
}
/* Dual-pool allocation: show hashrate distribution as a moving fill inside the existing pool metric bars.
Track remains transparent so only the fill is visible. */
.pool-tile-metricbar--alloc{
background: transparent !important;
}
.pool-tile-metricbar__fill{
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 0%;
background: var(--fill-color, var(--bar-track, rgba(128, 128, 128, 0.25)));
opacity: var(--bar-fill-opacity);
transition: width 180ms ease;
z-index: 0;
pointer-events: none;
}
/* Dotted marker at the end of the filled portion (same visual language as other bars) */
.pool-tile-metricbar__fill::after{
content: "";
position: absolute;
top: 0;
bottom: 0;
right: -1px;
width: 0;
border-left: 2px dotted var(--fill-marker-color);
pointer-events: none;
}
/* --- Mobile: In dual pool mode, stack the details under the grey bar so
the pool logo + host/ping/loss never overlap or get hidden. --- */
@media (max-width: 768px){
.pool-tile-card--dual{
height: auto;
}
.pool-tile-layout--dual{
height: auto;
min-height: 0;
}
.pool-tile-layout--dual .pool-tile-section{
flex: 0 0 auto;
min-height: 0;
}
.pool-tile-half--dual{
display: flex;
flex-direction: column;
height: auto;
row-gap: 12px;
}
.pool-tile-half--dual .pool-tile-metricbar{
height: auto;
max-width: 100%;
width: 100%;
}
.pool-tile-half--dual .pool-tile-details{
height: auto;
justify-content: flex-start;
}
}
/* DIFF moved out of the grey box (now shown above Ping/Loss in the details column) */
.pool-tile-info__diff-value{
font-weight: 900;
}
/* Small spacing under DIFF so it doesn't visually stick to the pool % in dual mode */
.pool-tile-info__line--diff{
margin-bottom: 3px;
}
/* Details column (Pool + Host/Port/Ping/Loss) sits right next to the metric bar */
.pool-tile-details{
flex: 1 1 33.3333%;
min-width: 0;
/* Details should align vertically with the grey box */
height: 50%;
display: flex;
flex-direction: column;
}
/* Keep host/port/ping/loss aligned to the bottom edge of the grey box */
.pool-tile-info__bottom{
margin-top: auto;
}
@media (max-width: 768px) {
.pool-tile-half{
flex-direction: column;
gap: 12px;
}
.pool-tile-metricbar{
flex: 0 0 auto;
max-width: 100%;
width: 100%;
height: auto;
}
.pool-tile-details{
height: auto;
}
}
/* Details below the bar */
.pool-tile-details{
min-width: 0;
}
.pool-tile-details__header{
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
gap: 10px;
margin-bottom: 12px;
}
.pool-tile-details__header-left{
display: inline-flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.pool-tile-details__header-right{
display: inline-flex;
align-items: baseline;
justify-content: flex-end;
flex: 0 0 auto;
}
.pool-tile-details__allocpct{
font-weight: 700;
/* Match J/Th unit color */
color: var(--unit-in-fill-color, var(--unit-color));
font-size: inherit;
line-height: 1;
}
/* Reset-session-stats button: pinned into the tile's top-right corner.
Strip the nbButton padding so the icon sits right in the corner and
clears the dual-pool allocation % that is rendered on the same row. */
.pool-reset-btn.pool-reset-btn{
position: absolute;
top: 1px;
right: 1px;
z-index: 2;
opacity: 0.5;
padding: 0 !important;
min-width: 0 !important;
width: 16px;
height: 16px;
line-height: 1;
nb-icon{
font-size: 14px;
}
&:hover{
opacity: 0.9;
}
}
/* Host/Port/Ping/Loss block should be visually smaller (same size as labels) */
.pool-tile-info__bottom{
/* Keep Host/Port/Ping/Loss within the same vertical band as the grey box */
margin-top: auto;
font-size: 10px;
line-height: 1.2;
color: var(--text-basic-color);
text-align: right;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.pool-tile-info__bottom a,
.pool-tile-info__bottom span{
font-size: inherit;
}
/* Add a small bottom gap under the last info line (Ping/Loss in current layout)
so it doesn't visually stick to the bottom edge. */
.pool-tile-info__bottom .pool-tile-info__line:last-child{
margin-bottom: 5px;
}
/* Labels (User/Host/Port/Ping/Loss): match “Since connect” label look */
.pool-tile-info__label{
font-size: 10px;
/* Match the unit/suffix tone (since connect, units, etc.) */
color: var(--unit-in-fill-color, var(--unit-color)) !important;
opacity: 1;
font-weight: 400;
line-height: 1.2;
}
/* Values: bold + black */
.pool-tile-info__value{
font-weight: 700;
color: var(--text-basic-color);
}
/* DIFF line (placed above Ping/Loss in the details column) */
.pool-tile-info__diff-value{
font-weight: 900;
}
/* Host link: black text with dotted underline in the divider color */
.pool-tile-hostlink{
color: var(--text-basic-color);
text-decoration: none;
border-bottom: 2px dotted var(--pool-divider-dot, rgba(120, 120, 120, 0.45));
padding-bottom: 1px;
}
.pool-tile-hostlink:hover{
opacity: 0.85;
}
.pool-tile-info__line{
display: flex;
justify-content: flex-end;
align-items: baseline;
gap: 0;
white-space: nowrap;
}
.pool-tile-details{
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
/* Title (icon + label) placed to the right of the square */
.pool-tile-details__header{
display: inline-flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
@media (max-width: 575.98px) {
.pool-tile-layout{
flex-direction: column;
}
}
/* --- Pool summary square (Hashrate / Expected / ASIC Frequency) --- */
.pool-summary-square{
width: 100%;
height: 100%;
background: var(--tile-surface);
border: none;
border-radius: 0;
padding: 12px;
display: grid;
grid-template-columns: 1fr auto;
gap: 12px;
/* Keep both columns (left content + best square) aligned to the same visual block height */
align-items: center;
min-height: 100%;
/* ensure the reused .power-bar typography matches the rest of the UI */
--pbar-h: 44px;
--metric-gap: 12px;
/* keep square size consistent with the Efficiency square (3 bars + gaps) */
--metric-square: calc((var(--pbar-h) * 3) + (var(--metric-gap) * 2));
/* Minimal / industrial: tighter typography (labels ~16px, values ~24-26px) */
--bar-label-fs: 1rem;
--bar-value-fs: 1.45rem;
}
.pool-summary-square__left{
min-width: 0;
display: flex;
flex-direction: column;
/* Make the left stack match the best square height so the frequency bar can sit flush at the bottom */
height: var(--metric-square);
align-self: center;
justify-content: flex-start;
}
.pool-summary-square__best{
width: var(--metric-square);
height: var(--metric-square);
max-width: none;
/* Must inherit the SAME fill color token as bars */
background: var(--fill-color, var(--bar-track, rgba(128, 128, 128, 0.25)));
position: relative;
display: flex;
align-items: center;
justify-content: center;
align-self: center;
overflow: hidden;
}
/* Best difficulty square background tinted like the bar fill */
.pool-summary-square__best::before{
content: "";
position: absolute;
inset: 0;
background: var(--fill-color, var(--bar-track, rgba(128, 128, 128, 0.25)));
/* Squares should use the same flat surface as bars (no fill-tint overlay) */
opacity: 0;
z-index: 0;
}
.pool-summary-square__best-inner{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
background: transparent;
}
.pool-summary-square__best-label{
font-size: var(--bar-label-fs);
font-weight: 400;
opacity: 0.85;
margin-bottom: 10px;
color: var(--bar-label-color);
}
.pool-summary-square__best-sub{
margin-top: 10px;
font-size: 0.95rem;
font-weight: 500;
letter-spacing: 0.01em;
opacity: 0.9;
/* In the filled Best-Difficulty square, match the unit tone used in other filled boxes (e.g. J/TH). */
color: var(--unit-in-fill-color, var(--unit-color));
}
.pool-summary-square__best-value{
font-size: 1.9rem;
font-weight: 900;
line-height: 1;
color: var(--bar-value-color);
}
.pool-summary-square__best-value .unit{
/* Slightly upscaled to match the visual 15px target in Best Difficulty square. */
font-size: 0.5263em;
font-weight: 700;
color: var(--unit-in-fill-color, var(--unit-color));
opacity: 0.9;
}
.pool-summary-square__top{
display: flex;
flex-direction: column;
gap: 6px;
}
/* Hashrate: show total big number, and (in dual pool mode) smaller per-pool numbers to the right */
.pool-summary-square__hashrate{
display: flex;
align-items: flex-end;
gap: 12px;
flex-wrap: wrap;
}
/* Main (total) hashrate + optional dotted separator in dual-pool mode */
.pool-summary-square__hashrate-main{
display: inline-flex;
align-items: baseline;
gap: 12px;
}
.pool-summary-square__hashrate-main-divider{
display: inline-block;
width: 0;
height: 2.2rem;
border-left: 2px dotted var(--fill-marker-color);
margin-left: 4px;
}
/* Dual pool: per-pool hashrates stacked, no units, with assignment % */
.pool-summary-square__hashrate-split{
display: flex;
flex-direction: column;
gap: 6px;
font-size: 1.05rem;
font-weight: 700;
line-height: 1;
color: var(--unit-color);
}
.pool-summary-square__hashrate-split-row{
display: inline-flex;
align-items: baseline;
justify-content: flex-start;
gap: 8px;
line-height: 1;
}
.pool-summary-square__hashrate-split-value{
/* Same color as the main hashrate, but faint */
color: var(--bar-fill, var(--text-basic-color));
opacity: 0.85;
}
.pool-summary-square__hashrate-split-divider{
display: inline-block;
width: 0;
height: 0.95em;
border-left: 2px dotted var(--fill-marker-color);
opacity: 0.9;
}
.pool-summary-square__hashrate-split-pct{
/* 1.05rem parent -> 15px unit target */
font-size: 0.8929em;
/* Match J/Th unit color */
color: var(--unit-in-fill-color, var(--unit-color));
opacity: 1;
}
.pool-summary-square__hashrate-value{
font-weight: 900;
line-height: 1;
font-size: 2.4rem;
/* use hashrate pill color if provided, otherwise follow theme */
color: var(--bar-fill, var(--text-basic-color));
/* Keep the unit on the same line without introducing extra vertical whitespace */
display: flex;
align-items: baseline;
flex-wrap: nowrap;
}
.pool-summary-square__hashrate-unit{
font-size: 16px;
font-weight: 500;
opacity: 1;
margin-left: 6px;
color: var(--hashrate-main-unit-color);
}
.pool-summary-square__expected{
font-size: 1.1rem;
line-height: 1.1;
color: var(--unit-color);
}
.pool-summary-square__expected-value{
font-weight: 800;
color: var(--text-basic-color);
}
.pool-summary-square__expected-unit,
.pool-summary-square__expected-label{
font-size: 16px;
font-weight: 400;
opacity: 1;
color: var(--unit-in-fill-color, var(--unit-color));
}
.pool-summary-square__expected-unit{
margin-left: 6px;
}
.pool-summary-square__expected-label{
margin-left: 8px;
}
.pool-summary-square__bottom{
/* Push the frequency bar to the bottom of the left column so it lines up with the square */
margin-top: auto;
}
.pool-summary-square__bar{
/* keep same sizing as other bars */
height: var(--pbar-h, 44px);
}