Skip to content

Commit 7ef8159

Browse files
authored
Some UI tidying (hestiacp#3145)
* Refactor nested if statement * Fix typo * Tidy * Tidy up "badge" CSS * Tidy some cron page stuff
1 parent 17b4f1c commit 7ef8159

File tree

18 files changed

+99
-250
lines changed

18 files changed

+99
-250
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Hestia screenshot](https://hestiacp.com/img/screen_HestiaServer-dark.png)
44

5-
<h2 align="center">Lightweight and powerful control panel for the modern web.</h2>
5+
<h2 align="center">Lightweight and powerful control panel for the modern web</h2>
66

77
<p align="center"><strong>Latest stable release:</strong> Version 1.6.14 | <a href="https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md">View Changelog</a></p>
88

docs/docs/server-administration/backup-restore.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ If using public and private keys (recommended):
9090
v-add-backup-host 'sftp' 'remote.ftp-host.ltd' 'backup-user' '/root/id_rsa' '/path-backups/' 'port'
9191
```
9292

93-
## How to setup rclone
93+
## How to setup Rclone
9494

9595
::: tip
9696
Initial configuration can only be done via CLI. After that, you can update the settings via the web panel.
9797
:::
9898

99-
First, download [rclone](https://rclone.org/downloads/). The easiest method is to run this command:
99+
First, [download Rclone](https://rclone.org/downloads/). The easiest method is to run this command:
100100

101101
```bash
102102
sudo -v

web/css/src/themes/dark.css

Lines changed: 13 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -739,56 +739,22 @@ form#vstobjects.suspended {
739739
background-color: #282828;
740740
}
741741

742+
/* Badge component
743+
========================================================================== */
744+
742745
.badge {
746+
color: #dadada;
747+
border-color: #212121;
743748
box-shadow: 0 1px 2px rgb(70 70 70 / 50%), inset 0 2px 2px rgb(0 0 0 / 65%);
744-
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
745-
border: 1px solid #212121 !important;
746-
}
747-
748-
.badge.large {
749-
}
750-
751-
.badge.raised {
752-
background: radial-gradient(ellipse at center, rgb(40 40 40 / 20%) 0%, rgb(80 80 80 / 5%) 100%);
753-
}
754-
755-
.l-unit--suspended .badge {
756-
background: #303030 !important;
757-
color: #808080 !important;
758-
text-shadow: 0 -1px rgb(0 0 0 / 40%) !important;
759-
box-shadow: 0 1px 2px rgb(25 25 25 / 30%) !important;
760-
}
761-
762-
.badge.gray {
763-
border: 1px solid #181818;
749+
text-shadow: 0 1px rgb(0 0 0 / 70%);
764750
background-color: #252525;
765-
color: #dadada;
766-
text-shadow: 0 1px rgb(0 0 0 / 70%) !important;
767-
}
768-
769-
.badge.blue {
770751
}
771752

772-
.badge.purple {
773-
}
774-
775-
.badge.teal {
776-
}
777-
778-
.badge.maroon {
779-
background-color: #ff3478;
780-
}
781-
782-
.badge.red {
783-
}
784-
785-
.badge.orange {
786-
}
787-
788-
.badge.green {
789-
}
790-
791-
.badge.lightblue {
753+
.l-unit--suspended .badge {
754+
background-color: #303030;
755+
color: #808080;
756+
text-shadow: 0 -1px rgb(0 0 0 / 40%);
757+
box-shadow: 0 1px 2px rgb(25 25 25 / 30%);
792758
}
793759

794760
.status-icon.large {
@@ -894,16 +860,12 @@ form#vstobjects.suspended {
894860
border-bottom: 1px solid #353535;
895861
}
896862

897-
.helper-container {
863+
.cron-helper-container {
898864
box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
899865
border: 1px solid #606060;
900866
background-color: #454545;
901867
}
902868

903-
.context-helper:active {
904-
color: #ff3478;
905-
}
906-
907869
.cron-helper-tabs a {
908870
color: #cacaca;
909871
}
@@ -917,7 +879,7 @@ form#vstobjects.suspended {
917879
}
918880

919881
.cron-helper-tabs .ui-tabs-selected a,
920-
li[aria-expanded="true"] a {
882+
.ui-tabs-tab[aria-expanded="true"] a {
921883
color: #ff3478 !important;
922884
}
923885

web/css/src/themes/default.css

Lines changed: 39 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,31 +2420,23 @@ form#vstobjects.suspended {
24202420
z-index: -1;
24212421
}
24222422

2423+
/* Badge component
2424+
========================================================================== */
2425+
24232426
.badge {
24242427
display: inline-block;
2425-
min-width: 24px;
2428+
min-width: 26px;
24262429
min-height: 24px;
24272430
line-height: 24px;
24282431
border-radius: 50%;
24292432
font-weight: 700;
24302433
font-size: 0.75rem;
24312434
box-shadow: 0 1px 2px rgb(70 70 70 / 50%), inset 0 2px 2px #fff;
2432-
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
2433-
border: 1px solid #b8b8b8 !important;
2434-
}
2435-
2436-
.badge.large {
2437-
min-width: 48px;
2438-
min-height: 48px;
2439-
line-height: 48px;
2440-
}
2441-
2442-
.badge.raised {
2443-
background: radial-gradient(
2444-
ellipse at center,
2445-
rgb(255 255 255 / 20%) 0%,
2446-
rgb(255 255 255 / 5%) 100%
2447-
);
2435+
color: #6c6c6c;
2436+
text-shadow: 0 1px #fafafa;
2437+
border: 1px solid #b8b8b8;
2438+
background-color: #eaeaea;
2439+
margin-top: -2px;
24482440
}
24492441

24502442
.l-unit--suspended .badge {
@@ -2454,61 +2446,6 @@ form#vstobjects.suspended {
24542446
box-shadow: 0 1px 2px rgb(120 120 120 / 30%) !important;
24552447
}
24562448

2457-
.badge.gray {
2458-
border: 1px solid #fff;
2459-
background-color: #eaeaea;
2460-
color: #6c6c6c;
2461-
text-shadow: 0 1px #fafafa !important;
2462-
}
2463-
2464-
.badge.blue {
2465-
border: 1px solid #fff;
2466-
background-color: #316198;
2467-
color: #fff;
2468-
}
2469-
2470-
.badge.purple {
2471-
border: 1px solid #fff;
2472-
background-color: #8e2fca;
2473-
color: #fff;
2474-
}
2475-
2476-
.badge.teal {
2477-
border: 1px solid #fff;
2478-
background-color: #3cc;
2479-
color: #fff;
2480-
}
2481-
2482-
.badge.maroon {
2483-
border: 1px solid #fff;
2484-
background-color: #c36;
2485-
color: #fff;
2486-
}
2487-
2488-
.badge.red {
2489-
border: 1px solid #fff;
2490-
background-color: #f33;
2491-
color: #fff;
2492-
}
2493-
2494-
.badge.orange {
2495-
border: 1px solid #fff;
2496-
background-color: #f6a800;
2497-
color: #fff;
2498-
}
2499-
2500-
.badge.green {
2501-
border: 1px solid #fff;
2502-
background-color: #53ba55;
2503-
color: #fff;
2504-
}
2505-
2506-
.badge.lightblue {
2507-
border: 1px solid #fff;
2508-
background-color: #6eb6f0;
2509-
color: #fff;
2510-
}
2511-
25122449
.status-icon.large {
25132450
font-size: 1rem;
25142451
}
@@ -2573,7 +2510,7 @@ form#vstobjects.suspended {
25732510
text-shadow: 0 !important;
25742511
}
25752512

2576-
.helper-container {
2513+
.cron-helper-container {
25772514
float: right;
25782515
margin-bottom: -450px;
25792516
margin-top: 202px;
@@ -2589,83 +2526,48 @@ form#vstobjects.suspended {
25892526
}
25902527
}
25912528

2592-
.context-helper {
2593-
text-transform: uppercase;
2594-
color: #777;
2595-
font-size: 0.8rem;
2596-
cursor: pointer;
2597-
font-weight: 600;
2598-
float: right;
2599-
2600-
&:hover {
2601-
color: #3b9de8;
2602-
}
2603-
2604-
&:active {
2605-
color: #c36;
2606-
}
2607-
}
2608-
26092529
.cron-helper-tabs {
26102530
border: none !important;
26112531
font-family: Exo, system-ui !important;
2612-
}
26132532

2614-
.cron-helper-tabs a {
2615-
color: #777;
2616-
font-weight: 600;
2617-
line-height: 30px;
2618-
padding: 0 12px;
2619-
text-transform: uppercase;
2620-
}
2621-
2622-
.cron-helper-tabs a:hover {
2623-
color: #c36;
2624-
}
2625-
2626-
.cron-helper-tabs a:active {
2627-
color: #3b9de8;
2628-
}
2629-
2630-
.cron-helper-tabs .ui-tabs-selected a,
2631-
li[aria-expanded="true"] a {
2632-
color: #c36;
2633-
}
2634-
2635-
.cron-helper-tabs .form-label {
2636-
padding-right: 15px;
2637-
padding-left: 25px;
2638-
}
2533+
& a {
2534+
color: #777;
2535+
font-weight: 600;
2536+
line-height: 30px;
2537+
padding: 0 12px;
2538+
text-transform: uppercase;
26392539

2640-
.cron-helper-tabs .form-label.first {
2641-
display: inline-block;
2642-
width: 120px;
2643-
padding-left: 0;
2644-
}
2540+
&:hover {
2541+
color: #c36;
2542+
}
26452543

2646-
.cron-helper-tabs .form-select {
2647-
display: inline-block;
2648-
width: 384px;
2649-
}
2544+
&:active {
2545+
color: #3b9de8;
2546+
}
2547+
}
26502548

2651-
.context-helper-close {
2652-
cursor: pointer;
2653-
float: right;
2654-
size: 46px 32px;
2655-
padding-top: 11px;
2656-
filter: contrast(50%);
2549+
& .form-label {
2550+
padding-right: 15px;
2551+
padding-left: 25px;
26572552

2658-
&:hover {
2659-
background-color: #aaa;
2660-
filter: none;
2553+
&.first {
2554+
display: inline-block;
2555+
width: 120px;
2556+
padding-left: 0;
2557+
}
26612558
}
26622559

2663-
&:active {
2664-
background-color: #999;
2665-
filter: none;
2560+
& .form-select {
2561+
display: inline-block;
2562+
width: 384px;
26662563
}
26672564
}
26682565

2566+
.cron-helper-tabs .ui-tabs-selected a,
2567+
.ui-tabs-tab[aria-expanded="true"] a {
2568+
color: #c36;
2569+
}
2570+
26692571
.server-console-output {
26702572
color: #c36;
26712573
padding: 10px 0 20px 20px;

web/css/src/themes/flat.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ strong {
7171
box-shadow: none;
7272
}
7373

74+
/* Badge component
75+
========================================================================== */
76+
7477
.badge {
7578
box-shadow: none;
7679
}

web/css/src/themes/vestia.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,13 @@ strong {
373373
letter-spacing: 0 !important;
374374
}
375375

376+
/* Badge component
377+
========================================================================== */
378+
376379
.badge {
377-
border: none !important;
378-
background-color: none !important;
379-
box-shadow: none !important;
380-
border-radius: 4px !important;
380+
border: none;
381+
box-shadow: none;
382+
border-radius: 4px;
381383
}
382384

383385
/* Shortcuts panel
@@ -406,14 +408,14 @@ strong {
406408
border-radius: 0;
407409
}
408410

409-
.helper-container {
410-
margin-top: 197px;
411+
.cron-helper-container {
412+
margin-top: 201px;
411413
border-radius: 0;
412414
box-shadow: none;
413415
}
414416

415417
.cron-helper-tabs .ui-tabs-selected a,
416-
li[aria-expanded="true"] a {
418+
.ui-tabs-tab[aria-expanded="true"] a {
417419
color: #ff6701;
418420
}
419421

0 commit comments

Comments
 (0)