Ajax Loader
HTML
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
3
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
4
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
5
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
6
<head>
7
  <meta charset="utf-8">
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9
  <title>Checkout Form</title>
10
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
11
</head>
12
<body>
13
  <form class="checkout" onsubmit="return false">
14
    <div class="checkout-header">
15
      <h1 class="checkout-title">
16
        Checkout
17
        <span class="checkout-price">$10</span>
18
      </h1>
19
    </div>
20
    <p>
21
      <input type="text" class="checkout-input checkout-name" placeholder="Your name" autofocus>
22
      <input type="text" class="checkout-input checkout-exp" placeholder="MM">
23
      <input type="text" class="checkout-input checkout-exp" placeholder="YY">
24
    </p>
25
    <p>
26
      <input type="text" class="checkout-input checkout-card" placeholder="4111 1111 1111 1111">
27
      <input type="text" class="checkout-input checkout-cvc" placeholder="CVC">
28
    </p>
29
    <p>
30
      <input type="submit" value="Purchase" class="checkout-btn">
31
    </p>
32
  </form>
33
</body>
34
</html>
35
 
 
CSS
/*
1
/*
2
 * Copyright (c) 2013 Thibaut Courouble
3
 * http://www.cssflow.com
4
 *
5
 * Licensed under the MIT License:
6
 * http://www.opensource.org/licenses/mit-license.php
7
 *
8
 * View the Sass/SCSS source at:
9
 * http://www.cssflow.com/snippets/checkout-form/demo/scss
10
 *
11
 * Original PSD by Umar Irshad: http://goo.gl/N4xoF
12
 */
13
 
14
@import url(http://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css);
15
 
16
body {
17
  font: 13px/20px 'Lucida Grande', Verdana, sans-serif;
18
  color: #404040;
19
  background: #dbe0eb;
20
}
21
 
22
.checkout {
23
  width: 270px;
24
  margin: 40px auto;
25
  padding: 15px;
26
  background: #f3f6fa;
27
  border: 1px solid;
28
  border-color: #c2cadb #bbc5d6 #b7c0cd;
29
  border-radius: 7px;
30
  -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
31
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
32
}
33
 
34
.checkout > p { zoom: 1; }
35
.checkout > p:before, .checkout > p:after {
36
  content: '';
37
  display: table;
38
}
39
.checkout > p:after { clear: both; }
40
 
41
.checkout > p + p { margin-top: 15px; }
42
 
43
.checkout-header {
44
  position: relative;
45
  margin: -15px -15px 15px;
46
}
47
 
48
.checkout-title {
49
  padding: 0 15px;
50
  line-height: 38px;
51
  font-size: 13px;
52
  font-weight: bold;
53
  color: #7f889e;
54
  text-shadow: 0 1px rgba(255, 255, 255, 0.7);
55
  background: #eceff5;
56
  border-bottom: 1px solid #c5ccdb;
57
  border-radius: 7px 7px 0 0;
58
  background-image: -webkit-linear-gradient(top, #f5f8fb, #e9edf3);
59
  background-image: -moz-linear-gradient(top, #f5f8fb, #e9edf3);
60
  background-image: -o-linear-gradient(top, #f5f8fb, #e9edf3);
61
  background-image: linear-gradient(to bottom, #f5f8fb, #e9edf3);
62
  -webkit-box-shadow: inset 0 1px white;
63
  box-shadow: inset 0 1px white;
64
}
65
 
66
.checkout-title:before {
67
  content: '';
68
  position: absolute;
69
  bottom: 0;
70
  left: 0;
71
  right: 0;
72
  height: 2px;
73
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
74
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
75
}
76
 
77
.checkout-price {
78
  position: absolute;
79
  top: -14px;
80
  right: -14px;
81
  width: 40px;
82
  font: 14px/40px Helvetica, Arial, sans-serif;
83
  color: white;
84
  text-align: center;
85
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.3);
86
  text-indent: -1px;
87
  letter-spacing: -1px;
88
  background: #e54930;
89
  border: 1px solid;
90
  border-color: #b33323 #ab3123 #982b1f;
91
  border-radius: 21px;
92
  -webkit-user-select: none;
93
  -moz-user-select: none;
94
  -ms-user-select: none;
95
  user-select: none;
96
  background-image: -webkit-linear-gradient(top, #f75a3b, #d63b29);
97
  background-image: -moz-linear-gradient(top, #f75a3b, #d63b29);
98
  background-image: -o-linear-gradient(top, #f75a3b, #d63b29);
99
  background-image: linear-gradient(to bottom, #f75a3b, #d63b29);
100
  -webkit-box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
101
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
102
}
103
 
104
.checkout-price:before {
105
  content: '';
106
  position: absolute;
107
  top: 3px;
108
  bottom: 3px;
109
  left: 3px;
110
  right: 3px;
111
  border: 2px solid #f5f8fb;
112
  border-radius: 18px;
113
  -webkit-box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.25), 0 -1px 1px rgba(0, 0, 0, 0.25);
114
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.25), 0 -1px 1px rgba(0, 0, 0, 0.25);
115
}
116
 
117
input {
118
  margin: 0;
119
  line-height: normal;
120
  font-family: inherit;
121
  font-size: 100%;
122
  -webkit-box-sizing: border-box;
123
  -moz-box-sizing: border-box;
124
  box-sizing: border-box;
125
}
126
 
127
.checkout-input {
128
  float: left;
129
  padding: 0 7px;
130
  height: 32px;
131
  color: #525864;
132
  background: white;
133
  border: 1px solid;
134
  border-color: #b3c0e2 #bcc5e2 #c0ccea;
135
  border-radius: 4px;
136
  background-image: -webkit-linear-gradient(top, #f6f8fa, white);
137
  background-image: -moz-linear-gradient(top, #f6f8fa, white);
138
  background-image: -o-linear-gradient(top, #f6f8fa, white);
139
  background-image: linear-gradient(to bottom, #f6f8fa, white);
140
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.5);
141
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.5);
142
}
143
 
144
.checkout-input:focus {
145
  border-color: #46aefe;
146
  outline: none;
147
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 5px #46aefe;
148
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 5px #46aefe;
149
}
150
 
151
.lt-ie9 .checkout-input { line-height: 30px; }
152
 
153
.checkout-name { width: 150px; }
154
.checkout-card { width: 210px; }
155
 
156
.checkout-exp,
157
.checkout-cvc {
158
  margin-left: 15px;
159
  width: 45px;
160
}
161
 
162
.checkout-btn {
163
  width: 100%;
164
  height: 34px;
165
  padding: 0;
166
  font-weight: bold;
167
  color: white;
168
  text-align: center;
169
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.2);
170
  border: 1px solid;
171
  border-color: #1486f9 #0f7de9 #0d6acf;
172
  background: #1993fb;
173
  border-radius: 4px;
174
  background-image: -webkit-linear-gradient(top, #4cb1fe, #229afc 40%, #138df6);
175
  background-image: -moz-linear-gradient(top, #4cb1fe, #229afc 40%, #138df6);
176
  background-image: -o-linear-gradient(top, #4cb1fe, #229afc 40%, #138df6);
177
  background-image: linear-gradient(to bottom, #4cb1fe, #229afc 40%, #138df6);
178
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
179
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
180
}
181
 
182
.checkout-btn:active {
183
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
184
  border-color: #075bba #0c69d2 #0f7de9;
185
  background-image: -webkit-linear-gradient(top, #1281dc, #1593fc);
186
  background-image: -moz-linear-gradient(top, #1281dc, #1593fc);
187
  background-image: -o-linear-gradient(top, #1281dc, #1593fc);
188
  background-image: linear-gradient(to bottom, #1281dc, #1593fc);
189
  -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.5);
190
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.5);
191
}
192
 
193
:-moz-placeholder {
194
  color: #acb6c8 !important;
195
}
196
 
197
::-moz-placeholder {
198
  color: #acb6c8 !important;
199
  opacity: 1;
200
}
201
 
202
::-webkit-input-placeholder {
203
  color: #acb6c8;
204
}
205
 
206
:-ms-input-placeholder {
207
  color: #acb6c8;
208
}
209
 
210
::-moz-focus-inner {
211
  padding: 0 !important;
212
  border: 0 !important;
213
}
214
 
 

Checkout Form

CSSDeck G+