Skip to content

Commit 3347cf9

Browse files
AlecRustjaapmarcus
andauthored
Rewrite statistics UI mobile-first (hestiacp#3490)
* Enable "click outside to close" top bar dropdowns * Rewrite statistics UI mobile-first * Include quota --------- Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent ac16ee5 commit 3347cf9

File tree

11 files changed

+354
-337
lines changed

11 files changed

+354
-337
lines changed

web/css/src/themes/dark.css

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -418,40 +418,20 @@ strong {
418418
color: #fff !important;
419419
}
420420

421-
.l-unit--suspended .l-unit__name,
422421
.l-unit--suspended b,
423-
.l-unit--outdated .l-unit__name,
424422
.l-unit--outdated b {
425423
color: #606060;
426424
}
427425

428-
.l-unit--outdated .l-unit__name {
429-
}
430-
431426
.l-unit--outdated b {
432427
color: #d4d4d4;
433428
}
434429

435-
.l-unit--suspended .l-percent {
436-
}
437-
438-
.l-unit--suspended .l-percent__fill {
439-
}
440-
441-
.l-unit--suspended.selected .l-unit__name,
442-
.l-unit--suspended.selected .l-unit__name span {
443-
color: #707070;
444-
}
445-
446430
.l-unit--suspended.selected {
447431
background-color: #454545 !important;
448432
color: #707070 !important;
449433
}
450434

451-
.l-unit__name {
452-
color: #dadada;
453-
}
454-
455435
.l-unit__stat-col--left {
456436
& a,
457437
& a:visited {
@@ -463,6 +443,30 @@ strong {
463443
}
464444
}
465445

446+
/* Statistics
447+
========================================================================== */
448+
449+
.stats-item {
450+
border-bottom-color: #404040;
451+
452+
@media (--viewport-large) {
453+
&:hover {
454+
background-color: #353535;
455+
border-left-color: #353535;
456+
border-right-color: #353535;
457+
box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
458+
}
459+
}
460+
}
461+
462+
.stats-item-header-title {
463+
color: #eee;
464+
}
465+
466+
.stats-item-summary-title {
467+
border-bottom-color: #585858;
468+
}
469+
466470
/* Forms
467471
========================================================================== */
468472

@@ -833,19 +837,6 @@ strong {
833837
background: #282828;
834838
}
835839

836-
.l-percent {
837-
border-bottom: 2px solid #585858 !important;
838-
}
839-
840-
.body-stats .l-unit__name {
841-
color: #eee !important;
842-
}
843-
844-
.statistics-count {
845-
border-bottom: 1px dotted #707070;
846-
border-right: 1px dotted #707070;
847-
}
848-
849840
.body-stats .units .l-unit {
850841
background-color: #282828;
851842
border-bottom: 1px solid #404040;

0 commit comments

Comments
 (0)