Skip to content

Commit 5ea42a6

Browse files
authored
Simplify header menus (hestiacp#3079)
1 parent 4708648 commit 5ea42a6

File tree

9 files changed

+73
-99
lines changed

9 files changed

+73
-99
lines changed

web/css/src/themes/dark.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ strong {
5555

5656
.top-bar-usage-inner {
5757
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%);
6258
}
6359

6460
.notification-container {

web/css/src/themes/default.css

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
@media (--viewport-medium) {
7575
display: flex;
76+
height: 40px;
7677
padding-top: 0;
7778
padding-left: 20px;
7879
padding-right: 20px;
@@ -99,7 +100,7 @@
99100
margin-right: auto;
100101

101102
@media (--viewport-medium) {
102-
margin-right: 16px;
103+
margin-right: 30px;
103104
}
104105
}
105106

@@ -187,28 +188,24 @@
187188
}
188189

189190
.top-bar-usage {
190-
display: flex;
191-
justify-content: center;
192-
margin-top: 10px;
191+
display: none;
192+
193+
@media (--viewport-medium) {
194+
display: flex;
195+
justify-content: center;
196+
margin-top: 10px;
197+
}
193198

194199
@media (--viewport-medium) {
195200
margin-top: 0;
196-
margin-right: 10px;
197201
}
198202
}
199203

200204
.top-bar-usage-inner {
201205
display: flex;
202-
border-radius: 12px;
203-
font-size: 0.75rem;
206+
color: #fff;
207+
text-shadow: 1px 1px rgb(0 0 0 / 25%);
204208
font-weight: 500;
205-
line-height: 0.75rem;
206-
padding: 4px 8px;
207-
color: #30659d;
208-
box-shadow: 0 1px 1px rgb(0 0 0 / 20%), inset 0 1px 0 rgb(0 0 0 / 8%);
209-
background-color: rgb(255 255 255 / 75%);
210-
border: 1px solid rgb(255 255 255 / 75%);
211-
text-shadow: 0 1px 1px rgb(255 255 255 / 60%);
212209
}
213210

214211
.top-bar-usage-item {

web/css/src/themes/flat.css

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ strong {
3636
}
3737
}
3838

39+
.top-bar-usage-inner {
40+
text-shadow: none;
41+
}
42+
3943
.table-header {
4044
box-shadow: none;
4145
background: #fafafa;
@@ -70,18 +74,18 @@ strong {
7074
.button {
7175
box-shadow: none;
7276
background: linear-gradient(to bottom, rgb(235 243 249 / 100%) 0%, rgb(223 235 245 / 100%) 100%);
73-
}
7477

75-
.button:hover {
76-
color: #6986b7;
77-
box-shadow: none;
78-
background: linear-gradient(to bottom, rgb(241 248 253 / 100%) 0%, rgb(227 240 251 / 100%) 100%);
79-
}
78+
&:hover {
79+
color: #6986b7;
80+
box-shadow: none;
81+
background: linear-gradient(to bottom, rgb(241 248 253 / 100%) 0%, rgb(227 240 251 / 100%) 100%);
82+
}
8083

81-
.button:active,
82-
.button:focus {
83-
box-shadow: none;
84-
background: linear-gradient(to bottom, rgb(210 232 250 / 100%) 0%, rgb(194 224 248 / 100%) 100%);
84+
&:active,
85+
&:focus {
86+
box-shadow: none;
87+
background: linear-gradient(to bottom, rgb(210 232 250 / 100%) 0%, rgb(194 224 248 / 100%) 100%);
88+
}
8589
}
8690

8791
.button-secondary {
@@ -102,12 +106,12 @@ strong {
102106
border-color: #f4301a;
103107
}
104108

105-
.ui-dialog .ui-dialog-buttonpane button:nth-of-type(2) {
106-
box-shadow: none;
107-
}
108-
109109
.ui-dialog {
110110
box-shadow: 0 2px 11px 0 rgb(0 0 0 / 50%);
111+
112+
& .ui-dialog-buttonpane button:nth-of-type(2) {
113+
box-shadow: none;
114+
}
111115
}
112116

113117
.badge {

web/css/src/themes/vestia.css

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ strong {
4242
}
4343
}
4444

45-
.top-bar-usage-inner {
46-
color: #fff;
47-
border: none;
48-
background: none;
49-
box-shadow: none;
50-
text-shadow: none;
51-
}
52-
5345
.table-header {
5446
box-shadow: none;
5547
background: #fafafa;
@@ -151,12 +143,12 @@ strong {
151143
}
152144
}
153145

154-
.ui-dialog .ui-dialog-buttonpane button {
155-
box-shadow: none;
156-
}
157-
158146
.ui-dialog {
159147
box-shadow: 0 2px 11px 0 rgb(0 0 0 / 50%);
148+
149+
& .ui-dialog-buttonpane button {
150+
box-shadow: none;
151+
}
160152
}
161153

162154
.notification-container {
@@ -432,12 +424,12 @@ li[aria-expanded="true"] a {
432424
background: #fafafa;
433425
box-shadow: none;
434426
color: #444;
435-
}
436427

437-
.collapse-header:hover {
438-
color: #ff791f;
439-
}
428+
&:hover {
429+
color: #ff791f;
430+
}
440431

441-
.collapse-header .fas {
442-
display: none;
432+
& .fas {
433+
display: none;
434+
}
443435
}

web/css/themes/dark.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/default.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/flat.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/vestia.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)