Skip to content

Commit 5f3474d

Browse files
authored
Refactor button CSS (hestiacp#3032)
1 parent 93906b6 commit 5f3474d

File tree

94 files changed

+735
-1207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+735
-1207
lines changed

web/css/src/themes/dark.css

Lines changed: 83 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ strong {
1818
color: #cacaca;
1919
}
2020

21-
button,
22-
select {
23-
text-shadow: 0 0 0 #d4d4d4 !important;
24-
}
25-
2621
.l-header {
2722
background: #454545;
2823
border-bottom: 1px solid #505050;
@@ -377,15 +372,6 @@ div.l-content > div.l-separator:nth-of-type(4) {
377372
color: #ff3478;
378373
}
379374

380-
.l-unit-toolbar__buttonstrip {
381-
}
382-
383-
.l-unit-toolbar__buttonstrip a {
384-
}
385-
386-
.l-unit-toolbar__buttonstrip .fas {
387-
}
388-
389375
.l-select {
390376
border: 1px solid #454545;
391377
box-shadow: 0 1px 1px rgb(0 0 0 / 40%) !important;
@@ -677,54 +663,8 @@ textarea:focus::placeholder {
677663
border-color: #be1f54;
678664
}
679665

680-
.vst-advanced {
681-
border-bottom: 0 solid #326b9b;
682-
color: #0094f7;
683-
font-size: 0.8rem;
684-
text-decoration: none;
685-
border-radius: 4px;
686-
text-transform: none !important;
687-
}
688-
689-
.vst-advanced:hover {
690-
color: #fff;
691-
background-color: #ff3478;
692-
border-color: #ff3478;
693-
text-decoration: none;
694-
}
695-
696-
.vst-advanced:active {
697-
color: #fff;
698-
background-color: #be1f54;
699-
border-color: #be1f54;
700-
text-decoration: none;
701-
}
702-
703666
.lets-encrypt-note {}
704667

705-
.additional-control {
706-
color: #09f;
707-
}
708-
709-
.additional-control:hover {
710-
background-color: #ff3478;
711-
border-color: #ff3478;
712-
}
713-
714-
.additional-control:active {}
715-
716-
.additional-control.ftp-remove-user {}
717-
718-
.additional-control.delete:hover,
719-
.additional-control.ftp-remove-user:hover {}
720-
721-
.additional-control.delete:active,
722-
.additional-control.ftp-remove-user:active {}
723-
724-
.additional-control.add:hover {}
725-
726-
.additional-control.add:active {}
727-
728668
.toggle-psw-visibility-icon {}
729669

730670
.show-passwords-enabled-action {}
@@ -742,17 +682,75 @@ td.hint {
742682
color: #555;
743683
}
744684

745-
.ui-dialog .ui-dialog-buttonpane button {
685+
/* Buttons
686+
========================================================================== */
687+
688+
.button {
689+
color: #eee;
690+
text-shadow: 0 1px 1px rgb(0 0 0 / 35%);
691+
font-weight: 400;
692+
border-color: #707070;
693+
background: rgb(48 48 48);
694+
background: linear-gradient(0deg, rgb(48 48 48 / 100%) 0%, rgb(53 53 53 / 100%) 35%, rgb(69 69 69 / 100%) 100%);
746695
box-shadow:
747-
0 1px 4px rgb(0 0 0 / 10%),
748-
inset 0 0 1px #000,
696+
0 1px 4px rgb(0 0 0 / 20%),
697+
inset 0 0 1px rgb(20 20 20 / 100%),
749698
inset 0 0 3px rgb(0 0 0 / 50%);
750699
}
751700

752-
.ui-button,
753-
.button,
754-
.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.submit,
755-
.vst-advanced,
701+
.button:hover {
702+
color: #fff;
703+
text-shadow: 1px 1px rgb(0 0 0 / 25%);
704+
border-color: #0098ff;
705+
background: linear-gradient(0deg, rgb(58 58 58 / 100%) 0%, rgb(68 68 68 / 100%) 35%, rgb(79 79 79 / 100%) 100%);
706+
background-color: #454545;
707+
box-shadow:
708+
0 1px 3px rgb(0 0 0 / 35%),
709+
inset 0 0 1px rgb(0 0 0 / 100%),
710+
inset 0 0 3px rgb(0 0 0 / 65%);
711+
transition: 0.2s;
712+
}
713+
714+
.button:active,
715+
.button:focus {
716+
color: #d4d4d4;
717+
text-shadow: 0 -1px 1px rgb(0 0 0 / 55%);
718+
border-color: #0066b4;
719+
background: linear-gradient(0deg, rgb(69 69 69 / 100%) 0%, rgb(53 53 53 / 100%) 35%, rgb(48 48 48 / 100%) 100%);
720+
box-shadow:
721+
0 1px 3px rgb(0 0 0 / 30%),
722+
inset 0 0 1px rgb(0 0 0 / 100%),
723+
inset -1px -1px 4px rgb(30 30 30 / 40%);
724+
}
725+
726+
.button-secondary {
727+
border-color: #454545;
728+
background-color: #343434;
729+
background: linear-gradient(0deg, rgb(48 48 48 / 100%) 0%, rgb(53 53 53 / 100%) 100%, rgb(69 69 69 / 100%) 100%);
730+
}
731+
732+
.button-secondary:hover {
733+
background-color: #343434;
734+
background: linear-gradient(0deg, rgb(48 48 48 / 100%) 0%, rgb(53 53 53 / 100%) 100%, rgb(69 69 69 / 100%) 100%);
735+
}
736+
737+
.button-danger:hover {
738+
background: rgb(133 0 0);
739+
background: linear-gradient(0deg, rgb(133 0 0 / 100%) 0%, rgb(203 0 0 / 100%) 100%);
740+
color: #fff;
741+
text-shadow: 0 1px rgb(0 0 0 / 45%);
742+
border-color: rgb(170 0 0);
743+
}
744+
745+
.button-danger:active,
746+
.button-danger:focus {
747+
background: rgb(133 0 0);
748+
background: linear-gradient(180deg, rgb(133 0 0 / 100%) 0%, rgb(203 0 0 / 100%) 100%);
749+
color: #4d0000;
750+
text-shadow: 0 -1px 1px rgb(255 255 255 / 30%);
751+
border-color: rgb(251 71 51);
752+
}
753+
756754
.to-shortcuts,
757755
.to-top {
758756
font-size: 0.85rem !important;
@@ -768,12 +766,6 @@ td.hint {
768766
text-shadow: 0 1px 1px rgb(0 0 0 / 35%) !important;
769767
}
770768

771-
.ui-button:hover,
772-
.button:hover,
773-
.ui-button.cancel:hover,
774-
.button.cancel:hover,
775-
.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.submit:hover,
776-
.vst-advanced:hover,
777769
.to-shortcuts:hover,
778770
.to-top:hover {
779771
color: #fff !important;
@@ -788,16 +780,6 @@ td.hint {
788780
transition: 0.2s;
789781
}
790782

791-
.ui-button:focus,
792-
.ui-button:active,
793-
.button:active,
794-
.button:focus,
795-
.ui-button.cancel:focus,
796-
.ui-button.cancel:active,
797-
.button.cancel:active,
798-
.button.cancel:focus,
799-
.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.submit:active,
800-
.vst-advanced:active,
801783
.to-shortcuts:active,
802784
.to-top:active,
803785
.to-shortcuts:focus,
@@ -812,95 +794,28 @@ td.hint {
812794
inset -1px -1px 4px rgb(30 30 30 / 40%) !important;
813795
}
814796

815-
.ui-button-text-only {
816-
text-shadow: 0 1px rgb(0 0 0 / 50%);
817-
}
818-
819-
.ui-dialog .ui-dialog-buttonpane button span.ui-button-text {
820-
821-
}
822-
823-
.ui-dialog .ui-button:hover span {
824-
color: #fafafa !important;
825-
}
826-
827-
.ui-button-text-only .selected {
828-
829-
}
830-
831-
.ui-button.cancel,
832-
.button.cancel {
833-
color: #eee !important;
834-
border: 1px solid #454545 !important;
835-
background: rgb(48 48 48) !important;
836-
background: linear-gradient(0deg, rgb(48 48 48 / 100%) 0%, rgb(53 53 53 / 100%) 35%, rgb(69 69 69 / 100%) 100%) !important;
837-
}
838-
839-
.ui-button-text {
840-
color: #eee !important;
841-
}
842-
843-
.ui-button.cancel:active,
844-
.button.cancel:active {
845-
846-
}
847-
848-
a.button.cancel {
849-
850-
}
851-
852-
.ui-dialog button.cancel {
853-
border: 1px solid #d4d4d4;
854-
background-color: #d4d4d4;
855-
}
856-
857-
.ui-button.danger:hover,
858-
.button.danger:hover {
859-
background: rgb(133 0 0);
860-
background: linear-gradient(0deg, rgb(133 0 0 / 100%) 0%, rgb(203 0 0 / 100%) 100%) !important;
797+
.ui-dialog button.cancel span {
861798
color: #fff !important;
862-
text-shadow: 0 1px rgb(0 0 0 / 45%) !important;
863-
border: 1px solid rgb(170 0 0) !important;
864-
}
865-
866-
.ui-button.danger:active,
867-
.button.danger:active,
868-
.ui-button.danger:focus,
869-
.button.danger:focus {
870-
background: rgb(133 0 0);
871-
background: linear-gradient(180deg, rgb(133 0 0 / 100%) 0%, rgb(203 0 0 / 100%) 100%) !important;
872-
color: #4d0000 !important;
873-
text-shadow: 0 -1px 1px rgb(255 255 255 / 30%) !important;
874-
border: 1px solid rgb(251 71 51) !important;
875-
}
876-
877-
.ui-button span {
878-
879799
}
880800

881-
.ui-button:hover span {
882-
color: #d4d4d4 !important;
883-
}
884-
885-
.ui-button:active span {
886-
color: #d4d4d4;
801+
.additional-control {
802+
color: #09f;
887803
}
888804

889-
.ui-button.cancel span {
890-
805+
.additional-control:hover {
806+
background-color: #ff3478;
807+
border-color: #ff3478;
891808
}
892809

893-
.ui-button:hover span {
810+
.additional-control:active {}
894811

895-
}
812+
.additional-control.delete:hover,
896813

897-
.ui-button:active span {
814+
.additional-control.delete:active,
898815

899-
}
816+
.additional-control.add:hover {}
900817

901-
.ui-dialog button.cancel span {
902-
color: #fff !important;
903-
}
818+
.additional-control.add:active {}
904819

905820
.unlim-trigger {
906821

@@ -1191,6 +1106,13 @@ form#vstobjects.suspended {
11911106
border-top: 1px solid #404040;
11921107
}
11931108

1109+
.ui-dialog .ui-dialog-buttonpane button {
1110+
box-shadow:
1111+
0 1px 4px rgb(0 0 0 / 10%),
1112+
inset 0 0 1px #000,
1113+
inset 0 0 3px rgb(0 0 0 / 50%);
1114+
}
1115+
11941116
.shortcuts {
11951117
background: rgb(30 30 30 / 95%);
11961118
border: 1px solid rgb(255 255 255 / 25%);
@@ -1315,14 +1237,6 @@ li[aria-expanded="true"] a {
13151237
}
13161238
}
13171239

1318-
.ui-button.button-suspended {
1319-
color: #999 !important;
1320-
}
1321-
1322-
.ui-button.button-suspended i {
1323-
color: #999 !important;
1324-
}
1325-
13261240
/* Collapse component
13271241
========================================================================== */
13281242

0 commit comments

Comments
 (0)