-
Notifications
You must be signed in to change notification settings - Fork 0
/
form_layouts.css
135 lines (113 loc) · 2.5 KB
/
form_layouts.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Eliminate margins and padding on everything */
.styled-form * {
margin: 0;
padding: 0;
}
/* Grey box and default font for fieldsets */
.styled-form fieldset {
background-color: #ececec;
border: 2px solid #999;
box-sizing: border-box;
color: #4d4d4d;
font-family:
myriad-pro, "Helvetica Neue", Helvetica, Roboto,
Arial, sans-serif;
padding: 1rem;
}
/* Custom appearance for labels */
.styled-form label {
font-weight: bold;
line-height: 1.5rem;
}
/* Custom appearance for input and select fields */
.styled-form input[type="text"],
.styled-form select {
border: 1px solid #06c;
border-radius: 4px;
box-sizing: border-box;
font: normal 1rem Helvetica, Arial, sans-serif;
height: 40px;
padding: 5px 8px;
}
/* More customization for select lists */
.styled-form select {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
background-image:
url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+");
background-position: 100% center;
background-repeat: no-repeat;
padding-right: 1.5rem;
}
.top-to-bottom label,
.top-to-bottom input[type="text"] {
display: block;
width: 100%;
}
.side-by-side label,
.side-by-side input[type="text"] {
display: inline-block;
}
.side-by-side label {
margin-right: 1rem;
vertical-align: middle;
}
.side-by-side input[type="text"] {
width: 100%;
}
.side-by-side dl {
font-size: 0;
}
.side-by-side dt,
.side-by-side dd {
box-sizing: border-box;
display: inline-block;
font-size: 1rem;
vertical-align: middle;
}
.side-by-side dt {
padding-right: 1rem;
width: 25%;
}
.side-by-side dd {
width: 75%;
}
.styled-form label {
padding-top: 0.3333rem;
}
.top-to-bottom dl.partial {
box-sizing: border-box;
display: inline-block;
padding-right: 1rem;
vertical-align: top;
}
.top-to-bottom dl.address {
width: 100%;
}
.top-to-bottom dl.city {
width: 50%;
}
.top-to-bottom dl.state {
width: 25%
}
.top-to-bottom dl.zipcode {
padding-right: 0;
width: 25%;
}
.top-to-bottom dl dd {
width: auto;
}
.top-to-bottom fieldset,
.top-to-bottom dl,
.top-to-bottom dl dd,
.top-to-bottom dl dt {
font-size: 0;
}
.top-to-bottom dl label,
.top-to-bottom dl input[type="text"] {
font-size: 1rem;
}
.top-to-bottom dl select {
width: 100%;
}