-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdemo.css
185 lines (152 loc) · 3.05 KB
/
demo.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
body {
background-color: #BFE6E8;
color: #333;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
padding: 0;
margin: 0;
}
a {
color: #1a00f2;
-moz-transition: color .2s;
-webkit-transition: color .2s;
transition: color .2s;
}
a:hover {
color: #1500bf;
}
.wrapper {
width: 800px;
margin: 20px auto;
padding: 30px;
margin-top: 20px;
background-color: #E7FBFF;
overflow: hidden;
border-radius: 10px;
}
h1, h2, legend {
font-family: 'Vollkorn', serif;
font-weight: normal;
}
h1 {
font-size: 40px;
margin: 0;
color: #3D26FF;
}
.credit {
color: #666;
text-decoration: none;
display: block;
text-align: center;
margin-top: 50px;
}
form {
overflow: hidden; /* Clear floats and hide checkboxes/radio buttons (see below) */
margin-left: -5%; /* Offset the margin of the leftmost fieldset */
}
fieldset {
width: 45%;
float: left;
border: none;
padding: 0;
margin: 0 0 2.5% 5%;
}
.lead {
font-size: 20px;
margin-top: 0px;
margin-bottom: 30px;
}
legend {
font-size: 26px;
color: #E8169B;
}
/* Custom checkboxes & labels */
input[type="radio"], input[type="checkbox"] {
/* Hide checkbox/radio button.
** Using display: none or visibility: hidden will make old IE ignore the checkboxes. */
position: absolute;
left: -9999px;
margin: 0;
}
label {
cursor: pointer;
font-size: 20px;
display: block;
height: 33px;
margin: 10px 0;
line-height: 1.6;
text-indent: 5px;
}
input[type="radio"] + label {
background: transparent url("img/radios.png") no-repeat 0 0;
padding-left: 40px;
}
input[type="radio"] + label:hover {
background-position: 0 -128px;
}
input[type="radio"]:checked + label {
background-position: 0 -257px;
}
input[type="radio"].checked + label {
background-position: 0 -257px;
}
input[type="radio"]:checked + label:hover {
background-position: 0 -385px;
}
input[type="radio"].checked + label:hover {
background-position: 0 -385px;
}
input[type="checkbox"] + label {
background: transparent url("img/checkboxes.png") no-repeat 0 0;
padding-left: 40px;
}
input[type="checkbox"] + label:hover {
background-position: 0 -130px;
}
input[type="checkbox"]:checked + label {
background-position: 0 -260px;
}
input[type="checkbox"].checked + label {
background-position: 0 -260px;
}
input[type="checkbox"]:checked + label:hover {
background-position: 0 -390px;
}
input[type="checkbox"].checked + label:hover {
background-position: 0 -390px;
}
/* Buttons */
.btn-container {
clear: both;
overflow: hidden;
text-align: center;
margin: 25px auto;
}
.btn {
display: inline-block;
width: 30%;
line-height: 1.76;
padding: 12px 20px 8px 20px;
border-radius: 5px;
color: #fff;
background-color: #3D26FF;
font-family: 'Vollkorn', serif;
text-decoration: none;
font-size: 26px;
-moz-transition: background-color .2s;
-webkit-transition: background-color .2s;
transition: background-color .2s;
}
.btn-container .btn:first-child {
margin-right: 50px;
}
.btn:hover {
background-color: #1a00f2;
color: #fff;
}
.btn-secondary {
background-color: #E8169B;
}
.btn-secondary:hover {
background-color: #b9127c;
}