Skip to content

Commit 00e4250

Browse files
authored
Horizontally scroll tables (hestiacp#3071)
- Refactor font sizing
1 parent d5027c4 commit 00e4250

38 files changed

+302
-469
lines changed

web/css/src/base.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ button {
2626

2727
body {
2828
font-family: var(--font-family);
29-
font-size: 0.9rem;
29+
font-size: 0.85rem;
3030
line-height: 1.5;
3131
height: 100%;
3232
color: var(--color-text);
@@ -59,6 +59,7 @@ button {
5959
}
6060

6161
table {
62+
width: 100%;
6263
border-collapse: collapse;
6364
border-spacing: 0;
6465
}

web/css/src/themes/dark.css

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ strong {
5858
}
5959

6060
.l-profile__notifications {
61-
color: #fff;
62-
font-weight: 600;
63-
font-size: 1.2rem !important;
64-
line-height: 0.95rem;
6561
border-left: 1px solid transparent !important;
6662
border-right: 1px solid transparent !important;
6763

@@ -136,7 +132,7 @@ strong {
136132
.alert-danger {
137133
background-color: #d13535;
138134

139-
& i.fas {
135+
& .fas {
140136
color: #d13535;
141137
}
142138
}
@@ -152,10 +148,10 @@ strong {
152148
box-shadow:
153149
0 1px 4px rgb(0 0 0 / 20%),
154150
inset 0 0 60px rgb(0 0 0 / 25%);
151+
}
155152

156-
& p.card-title {
157-
color: #fafafa;
158-
}
153+
.card-title {
154+
color: #fafafa;
159155
}
160156

161157
/* Main menu
@@ -209,7 +205,7 @@ strong {
209205
background-color: #282828;
210206
}
211207

212-
.l-sort.is-active {
208+
.l-sort.active {
213209
box-shadow: 0 4px 6px rgb(0 0 0 / 25%);
214210
}
215211

@@ -269,7 +265,6 @@ strong {
269265
text-shadow: 1px 1px rgb(0 0 0 / 90%);
270266
box-shadow: 0 1px 1px rgb(0 0 0 / 40%);
271267
color: #cacaca;
272-
font-size: 1em;
273268

274269
&:hover {
275270
color: #09f;
@@ -332,13 +327,6 @@ strong {
332327
border-bottom-right-radius: 0;
333328
color: #dadada;
334329
box-shadow: inset 0 1px 1px rgb(0 0 0 / 30%);
335-
336-
&:hover {
337-
background-color: #404040;
338-
border-left: 1px solid #212121;
339-
border-right: 1px solid #212121;
340-
box-shadow: inset 0 1px 1px rgb(0 0 0 / 30%);
341-
}
342330
}
343331

344332
.units .l-unit {
@@ -432,10 +420,6 @@ strong {
432420
.l-unit--suspended .l-percent__fill {
433421
}
434422

435-
.l-unit--suspended .l-unit__name,
436-
.l-unit--suspended .l-unit__name span {
437-
}
438-
439423
.l-unit--suspended.selected .l-unit__name,
440424
.l-unit--suspended.selected .l-unit__name span {
441425
color: #707070;
@@ -571,16 +555,8 @@ textarea:focus::placeholder {
571555

572556
.show-passwords-enabled-action {}
573557

574-
.ftp-path-value,
575558
.hint {
576559
color: #a2a2a2;
577-
font-size: 0.8rem;
578-
}
579-
580-
.ftp-path-prefix {
581-
padding-top: 12px;
582-
font-size: 0.8rem;
583-
color: #555;
584560
}
585561

586562
/* Buttons
@@ -654,7 +630,6 @@ textarea:focus::placeholder {
654630

655631
.to-shortcuts,
656632
.to-top {
657-
font-size: 0.85rem;
658633
font-weight: 400;
659634
color: #eee;
660635
border-color: 1px solid #707070;

0 commit comments

Comments
 (0)