Skip to content

Commit d8ad453

Browse files
authored
<textarea> migration (hestiacp#2940)
* Improve padding consistency * Set new box-sizing on new form controls * Add .u-inputWidth for necessary temporary width * Update textareas in Edit Server form * Update textareas in Edit Web form * Update textareas in Edit Dovecot Server form * Update textareas in Add SSH Key form * Update all fields in New Self-Signed SSL Certificate form * Update textareas in Edit Backup Exclusions form * Update textareas in Edit Mail form * Update textareas in Add Mail Account form * Update textareas in Edit Mail Account form - Remove usage of dead `.input-type` class * Update textareas in List SSL form * Update textareas in Edit BIND9 form * Update textareas in Edit Postgres form * Update textareas in edit server forms * Remove .vst-textinput CSS
1 parent d8ad608 commit d8ad453

36 files changed

+282
-533
lines changed

web/css/src/themes/dark.css

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -630,33 +630,6 @@ label:hover {
630630
color: #d4d4d4 !important;
631631
}
632632

633-
.vst-textinput {
634-
background-color: #454545;
635-
border: 1px solid #606060;
636-
color: #d4d4d4;
637-
box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
638-
}
639-
640-
.vst-textinput:hover {
641-
border: 1px solid #0090ff;
642-
background-color: #494949;
643-
}
644-
645-
.vst-textinput:focus {
646-
background-color: #222;
647-
border-color: #0080df;
648-
color: #fff !important;
649-
box-shadow: 0 1px 6px rgb(0 52 91 / 75%);
650-
}
651-
652-
.vst-textinput.console{
653-
654-
}
655-
656-
.vst-textinput.short {
657-
658-
}
659-
660633
.vst-input,
661634
.form-control {
662635
background-color: #454545;
@@ -681,8 +654,7 @@ label:hover {
681654

682655
.vst-input:disabled,
683656
.form-control:disabled,
684-
.form-select:disabled,
685-
.vst-textinput:disabled {
657+
.form-select:disabled {
686658
background-color: #303030;
687659
text-shadow: 1px 1px rgb(0 0 0 / 30%);
688660
color: #acacac;
@@ -694,8 +666,7 @@ label:hover {
694666

695667
.vst-input:disabled:hover,
696668
.form-control:disabled:hover,
697-
.form-select:disabled:hover,
698-
.vst-textinput:disabled:hover {
669+
.form-select:disabled:hover {
699670
border-color: #606060 !important;
700671
}
701672

@@ -788,10 +759,6 @@ a.vst-text:active b {
788759

789760
}
790761

791-
#advanced-options .console{
792-
793-
}
794-
795762
.generate {
796763
color: #29a9ff;
797764
border-radius: 4px;

web/css/src/themes/default.css

Lines changed: 27 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,10 +2296,11 @@ label:hover {
22962296

22972297
.form-control {
22982298
background-color: #fff;
2299+
box-sizing: border-box;
22992300
border: 1px solid #cfcfcf;
23002301
display: block;
23012302
width: 100%;
2302-
padding: 8px 3px 8px 14px;
2303+
padding: 8px 12px;
23032304
font-size: 0.8rem;
23042305
font-weight: normal;
23052306
color: #4e4e4e;
@@ -2338,24 +2339,21 @@ label:hover {
23382339

23392340
.vst-input:disabled,
23402341
.form-control:disabled,
2341-
.form-select:disabled,
2342-
.vst-textinput:disabled {
2342+
.form-select:disabled {
23432343
background-color: #e7e7e7;
23442344
text-shadow: 1px 1px rgb(255 255 255 / 100%);
23452345
color: #686868;
23462346
}
23472347

23482348
.vst-input:focus:disabled,
2349-
.form-control:focus:disabled,
2350-
.vst-textinput:disabled {
2349+
.form-control:focus:disabled {
23512350
border-color: #dedede;
23522351
background-color: #f1f1f1;
23532352
}
23542353

23552354
.vst-input:disabled:hover,
23562355
.form-control:disabled:hover,
2357-
.form-select:disabled:hover,
2358-
.vst-textinput:disabled:hover {
2356+
.form-select:disabled:hover {
23592357
border-color: #cfcfcf;
23602358
}
23612359

@@ -2421,54 +2419,9 @@ a.vst-text:active b {
24212419
width: 14px;
24222420
}
24232421

2424-
.vst-textinput {
2425-
background-color: #fff;
2426-
border: 1px solid #cfcfcf;
2427-
border-radius: 4px;
2428-
color: #4e4e4e;
2429-
font-size: 0.8rem;
2430-
width: 560px;
2431-
height: 60px;
2432-
font-family: Exo, Arial, Helvetica, sans-serif;
2433-
padding: 7px 1px 3px 14px;
2434-
font-weight: normal;
2435-
box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
2436-
}
2437-
2438-
.vst-textinput:hover {
2439-
border: 1px solid #94c8f0;
2440-
}
2441-
2442-
.vst-textinput:focus {
2443-
border: 1px solid #008fee;
2444-
background-color: #d7f9ff;
2445-
color: #333;
2446-
}
2447-
2448-
.vst-textinput:disabled {
2449-
background-color: #f1f1f1;
2450-
}
2451-
2452-
.vst-textinput.console {
2453-
font-size: 0.8rem;
2454-
width: 630px;
2455-
height: 300px;
2456-
font-family: Inconsolata, "Lucida Console", Monaco, monospace;
2457-
white-space: pre;
2458-
}
2459-
2460-
.vst-textinput.short {
2461-
width: 360px;
2462-
}
2463-
2464-
.vst-textinput.short.console {
2465-
height: 80px;
2466-
overflow: scroll;
2467-
}
2468-
2469-
#advanced-options .console {
2422+
#advanced-options .u-console {
24702423
width: 833px;
2471-
height: 600px;
2424+
height: 600px !important;
24722425
}
24732426

24742427
.generate {
@@ -2550,11 +2503,12 @@ a.vst-text:active b {
25502503

25512504
.form-select {
25522505
display: block;
2506+
box-sizing: border-box;
25532507
cursor: pointer;
25542508
width: 100%;
25552509
font-weight: normal;
25562510
font-size: .8rem;
2557-
padding: 8px 35px 7px 10px;
2511+
padding: 8px 30px 7px 12px;
25582512
line-height: 1.5;
25592513
border-radius: 4px;
25602514
background-color: #fff;
@@ -3992,3 +3946,21 @@ meter[value="4"]::-moz-meter-bar { background: green; }
39923946
.u-mb20 {
39933947
margin-bottom: 20px !important;
39943948
}
3949+
3950+
.u-inputWidth {
3951+
width: 380px !important;
3952+
}
3953+
3954+
.u-minHeight100 {
3955+
min-height: 100px !important;
3956+
}
3957+
3958+
.u-minHeight300 {
3959+
min-height: 300px !important;
3960+
}
3961+
3962+
.u-console {
3963+
font-family: Inconsolata, "Lucida Console", Monaco, monospace !important;
3964+
white-space: pre !important;
3965+
line-height: 1.2 !important;
3966+
}

web/css/src/themes/flat.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ strong {
102102
box-shadow: none !important;
103103
}
104104

105-
.vst-textinput {
106-
box-shadow: none;
107-
}
108-
109105
.ui-button,
110106
.button,
111107
.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.submit,

web/css/src/themes/vestia.css

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ strong {
125125
box-shadow: none !important;
126126
}
127127

128-
.vst-textinput {
129-
box-shadow: none;
130-
}
131-
132128
.card a.ui-button {
133129
line-height: 2rem !important;
134130
}
@@ -289,10 +285,6 @@ strong {
289285
border-radius: 0 !important;
290286
}
291287

292-
.vst-textinput {
293-
border-radius: 0 !important;
294-
}
295-
296288
.pill {
297289
border-radius: 4px;
298290
}
@@ -357,9 +349,7 @@ a.vst-text:hover b,
357349

358350
.vst-input:focus,
359351
.form-control:focus,
360-
.vst-textinput:focus,
361-
.login .vst-input:focus,
362-
.login .vst-textinput:focus {
352+
.login .vst-input:focus {
363353
border: 1px solid #ff6701;
364354
background-color: #fff4ed;
365355
color: #333;
@@ -372,8 +362,7 @@ a.vst-text:hover b,
372362

373363
.vst-input:hover,
374364
.form-control:hover,
375-
.form-select:hover,
376-
.vst-textinput:hover {
365+
.form-select:hover {
377366
border: 1px solid #e95e00;
378367
}
379368

@@ -515,8 +504,7 @@ meter {
515504

516505
.vst-input,
517506
.form-control,
518-
.form-select,
519-
.vst-textinput {
507+
.form-select {
520508
font-family: Arial, Helvetica, sans-serif !important;
521509
}
522510

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.

0 commit comments

Comments
 (0)