Skip to content

Commit c281438

Browse files
author
hsehszroc
committed
ADDED: styling for file field.
REVIEW: input and select fields styling.
1 parent 6d6b1f2 commit c281438

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

assets/style.css

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,15 @@ h1 + small {
6666
}
6767

6868
/* general styling */
69-
input[type] {
70-
height: 50px;
69+
input:not([type="checkbox"], [type="radio"]), select {
70+
min-height: 50px;
7171
}
72-
input[type="text"], input[type="password"], textarea {
72+
73+
input:not([type="checkbox"], [type="radio"], [type="button"]), select, textarea {
7374
border: 2px solid var(--light-gray-bold);
75+
border-radius: 3px;
7476
transition: border .2s ease-in-out;
77+
width: 100%;
7578
}
7679
input[type="password"] {
7780
padding-right: 60px;
@@ -84,7 +87,8 @@ input[type="text"]:focus, input[type="password"]:focus, input[type="color"]:focu
8487
.hz_switcher_control input:focus:before {
8588
background: var(--primary) ;
8689
}
87-
.hz_password_control > td {
90+
.hz_password_control > td,
91+
tr.file td {
8892
position: relative;
8993
}
9094
.hz_reveal_password {
@@ -96,6 +100,15 @@ input[type="text"]:focus, input[type="password"]:focus, input[type="color"]:focu
96100
height: 46px;
97101
line-height: 50px;
98102
}
103+
.file input.button {
104+
position: absolute;
105+
right: 12px;
106+
top: 18px;
107+
border: none;
108+
min-height: 45px;
109+
border-radius: 0;
110+
box-shadow: none;
111+
}
99112
.form-table td p.description {
100113
font-size: 0.95em;
101114
line-height: 1.6em;
@@ -548,7 +561,7 @@ tr:not(.hz_card_control) .hz_control_field label input {
548561
.select2-container .select2-selection {
549562
display: flex;
550563
align-items: center;
551-
height: 50px;
564+
min-height: 50px;
552565
border: 2px solid var(--light-gray-bold);
553566
}
554567
.select2-container .select2-selection[aria-expanded="true"] {
@@ -621,6 +634,15 @@ select2-selection[aria-expanded="true"] .select2-container--default .select2-sel
621634
border-bottom-color: var(--light) !important;
622635
border-width: 0 8px 8px 8px !important;
623636
}
637+
.select2-container--default .select2-selection--multiple .select2-selection__choice {
638+
min-height: 50px;
639+
line-height: 50px;
640+
padding-left: 16px;
641+
padding-right: 16px;
642+
}
643+
.select2-container--default .select2-selection--multiple .select2-selection__choice > span {
644+
margin-right: 8px;
645+
}
624646

625647
@media( min-width: 60rem ) {
626648
.hz_isometric {

0 commit comments

Comments
 (0)