Skip to content

Commit 288d850

Browse files
authored
Rebuild top bar for mobile (hestiacp#3074)
1 parent 4fcc625 commit 288d850

File tree

17 files changed

+592
-765
lines changed

17 files changed

+592
-765
lines changed

web/css/src/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ button {
5858
line-height: inherit;
5959
}
6060

61+
img {
62+
vertical-align: middle;
63+
}
64+
6165
table {
6266
width: 100%;
6367
border-collapse: collapse;

web/css/src/themes/dark.css

Lines changed: 28 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -17,69 +17,48 @@ strong {
1717
color: #cacaca;
1818
}
1919

20-
.l-header {
20+
/* Top bar
21+
========================================================================== */
22+
23+
.top-bar {
2124
background: #454545;
2225
border-bottom: 1px solid #505050;
23-
text-shadow: 1px 1px rgb(0 0 0 / 50%);
2426
box-shadow: 0 8px 15px rgb(0 0 0 / 25%);
2527
}
2628

27-
.l-menu__item.l-menu__item--active a {
28-
color: #dadada;
29-
background: linear-gradient(to bottom, rgb(15 15 15 / 60%) 0%, rgb(45 45 45 / 75%) 30%, rgb(60 60 60 / 100%) 95%);
30-
text-shadow: 0 1px rgb(0 0 0 / 50%);
31-
border-left-color: #353535;
32-
border-right-color: #353535;
33-
}
34-
35-
.l-menu__item.l-menu__item--active:hover {
36-
background: linear-gradient(to bottom, rgb(255 255 255 / 15%) 0%, rgb(255 255 255 / 15%) 30%, rgb(255 255 255 / 15%) 95%) !important;
37-
}
38-
39-
.l-menu__item > a {
40-
color: #e7e7e7;
41-
29+
.top-bar-nav-link {
4230
&:hover {
43-
color: #dadada !important;
44-
text-shadow: 1px 1px rgb(0 0 0 / 50%) !important;
45-
background: linear-gradient(to bottom, rgb(15 15 15 / 60%) 0%, rgb(45 45 45 / 75%) 30%, rgb(60 60 60 / 100%) 95%) !important;
46-
box-shadow: none !important;
31+
color: #dadada;
32+
text-shadow: 1px 1px rgb(0 0 0 / 50%);
33+
background: linear-gradient(to bottom, rgb(15 15 15 / 60%) 0%, rgb(45 45 45 / 75%) 30%, rgb(60 60 60 / 100%) 95%);
34+
box-shadow: none;
4735
}
4836

4937
&:active {
50-
background: linear-gradient(to bottom, rgb(15 15 15 / 70%) 0%, rgb(45 45 45 / 85%) 30%, rgb(50 50 50 / 100%) 95%) !important;
51-
color: #fff !important;
52-
text-shadow: 0 -1px 1px rgb(0 0 0 / 50%) !important;
38+
background: linear-gradient(to bottom, rgb(15 15 15 / 70%) 0%, rgb(45 45 45 / 85%) 30%, rgb(50 50 50 / 100%) 95%);
39+
color: #fff;
40+
text-shadow: 0 -1px 1px rgb(0 0 0 / 50%);
5341
}
54-
}
5542

56-
.l-profile__logout {
57-
color: #e7e7e7 !important;
43+
&.active {
44+
color: #dadada;
45+
background: linear-gradient(to bottom, rgb(15 15 15 / 60%) 0%, rgb(45 45 45 / 75%) 30%, rgb(60 60 60 / 100%) 95%);
46+
text-shadow: 0 1px rgb(0 0 0 / 50%);
47+
border-left-color: #353535;
48+
border-right-color: #353535;
49+
}
5850
}
5951

60-
.l-profile__notifications {
61-
border-left: 1px solid transparent !important;
62-
border-right: 1px solid transparent !important;
63-
64-
&.active.l-profile__notifications.updates:active {
65-
background: linear-gradient(to bottom, rgb(15 15 15 / 60%) 0%, rgb(45 45 45 / 75%) 30%, rgb(60 60 60 / 100%) 95%) !important;
66-
color: #046c98 !important;
67-
text-shadow: 0 -1px 1px rgb(0 0 0 / 50%) !important;
68-
box-shadow: none !important;
69-
transition: 0.2s;
70-
border-left: 1px solid transparent !important;
71-
border-right: 1px solid transparent !important;
72-
}
52+
.top-bar-nav-link-logout {
53+
color: #e7e7e7;
54+
}
7355

74-
&:hover,
75-
&.updates:hover {
76-
text-shadow: 1px 1px rgb(0 0 0 / 50%) !important;
77-
background: linear-gradient(to bottom, rgb(15 15 15 / 60%) 0%, rgb(45 45 45 / 75%) 30%, rgb(60 60 60 / 100%) 95%) !important;
78-
border: none !important;
79-
border-left: 1px solid transparent !important;
80-
border-right: 1px solid transparent !important;
81-
box-shadow: none !important;
82-
}
56+
.top-bar-usage-inner {
57+
color: #909090;
58+
box-shadow: inset 0 1px 1px rgb(0 0 0 / 85%), 0 1px 1px rgb(0 0 0 / 20%);
59+
background-color: rgb(15 15 15 / 50%);
60+
border-color: rgb(120 120 120 / 95%);
61+
text-shadow: 0 1px 1px rgb(0 0 0 / 50%);
8362
}
8463

8564
.notification-container {
@@ -628,48 +607,6 @@ textarea:focus::placeholder {
628607
border-color: rgb(251 71 51);
629608
}
630609

631-
.to-shortcuts,
632-
.to-top {
633-
font-weight: 400;
634-
color: #eee;
635-
border-color: 1px solid #707070;
636-
background: rgb(48 48 48);
637-
background: linear-gradient(0deg, rgb(48 48 48 / 100%) 0%, rgb(53 53 53 / 100%) 35%, rgb(69 69 69 / 100%) 100%);
638-
box-shadow:
639-
0 1px 4px rgb(0 0 0 / 20%),
640-
inset 0 0 1px rgb(20 20 20 / 100%),
641-
inset 0 0 3px rgb(0 0 0 / 50%);
642-
text-shadow: 0 1px 1px rgb(0 0 0 / 35%);
643-
}
644-
645-
.to-shortcuts:hover,
646-
.to-top:hover {
647-
color: #fff;
648-
text-shadow: 1px 1px rgb(0 0 0 / 25%);
649-
border-color: #0098ff;
650-
background: linear-gradient(0deg, rgb(58 58 58 / 100%) 0%, rgb(68 68 68 / 100%) 35%, rgb(79 79 79 / 100%) 100%);
651-
background-color: #454545;
652-
box-shadow:
653-
0 1px 3px rgb(0 0 0 / 35%),
654-
inset 0 0 1px rgb(0 0 0 / 100%),
655-
inset 0 0 3px rgb(0 0 0 / 65%);
656-
transition: 0.2s;
657-
}
658-
659-
.to-shortcuts:active,
660-
.to-top:active,
661-
.to-shortcuts:focus,
662-
.to-top:focus {
663-
border-color: #0066b4;
664-
background: linear-gradient(0deg, rgb(69 69 69 / 100%) 0%, rgb(53 53 53 / 100%) 35%, rgb(48 48 48 / 100%) 100%);
665-
color: #d4d4d4;
666-
text-shadow: 0 -1px 1px rgb(0 0 0 / 55%);
667-
box-shadow:
668-
0 1px 3px rgb(0 0 0 / 30%),
669-
inset 0 0 1px rgb(0 0 0 / 100%),
670-
inset -1px -1px 4px rgb(30 30 30 / 40%);
671-
}
672-
673610
.ui-dialog button.cancel span {
674611
color: #fff !important;
675612
}
@@ -814,18 +751,6 @@ form#vstobjects.suspended {
814751
background-color: #282828;
815752
}
816753

817-
.usage-pill {
818-
box-shadow: inset 0 1px 1px rgb(0 0 0 / 85%), 0 1px 1px rgb(0 0 0 / 20%);
819-
background-color: rgb(15 15 15 / 50%);
820-
border: 1px solid rgb(120 120 120 / 95%);
821-
text-shadow: 0 1px 1px rgb(0 0 0 / 50%);
822-
color: #909090;
823-
}
824-
825-
.usage-pill b {
826-
color: #d8d8d8;
827-
}
828-
829754
.badge {
830755
box-shadow:
831756
0 1px 2px rgb(70 70 70 / 50%),

0 commit comments

Comments
 (0)