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>Multi-colored Push Buttons</title>
10
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
11
</head>
12
<body>
13
  <div class="container">
14
    <div class="column red">
15
      <a href="#" class="button red">Push</a>
16
      <a href="#" class="button red alt">Push</a>
17
    </div>
18
 
19
    <div class="column blue">
20
      <a href="#" class="button blue">Push</a>
21
      <a href="#" class="button blue alt">Push</a>
22
    </div>
23
 
24
    <div class="column green">
25
      <a href="#" class="button green">Push</a>
26
      <a href="#" class="button green alt">Push</a>
27
    </div>
28
 
29
    <div class="column cyan">
30
      <a href="#" class="button cyan">Push</a>
31
      <a href="#" class="button cyan alt">Push</a>
32
    </div>
33
 
34
    <div class="column brown">
35
      <a href="#" class="button brown">Push</a>
36
      <a href="#" class="button brown alt">Push</a>
37
    </div>
38
 
39
    <div class="column pink">
40
      <a href="#" class="button pink">Push</a>
41
      <a href="#" class="button pink alt">Push</a>
42
    </div>
43
 
44
    <div class="column purple">
45
      <a href="#" class="button purple">Push</a>
46
      <a href="#" class="button purple alt">Push</a>
47
    </div>
48
 
49
    <div class="column gray">
50
      <a href="#" class="button gray">Push</a>
51
      <a href="#" class="button gray alt">Push</a>
52
    </div>
53
  </div>
54
</body>
55
</html>
56
 
 
CSS
/*
1
/*
2
 * Copyright (c) 2012 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/multi-colored-push-buttons/demo/scss
10
 *
11
 * Original PSD by Marian Mraz: http://goo.gl/9Il5d
12
 */
13
 
14
@import "http://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css";
15
 
16
body {
17
  font: 13px/20px "Lucida Grande", Tahoma, Verdana, sans-serif;
18
  color: #404040;
19
  background: #f8f6f6;
20
}
21
 
22
.container {
23
  zoom: 1;
24
}
25
 
26
.container:before, .container:after {
27
  content: '';
28
  display: table;
29
}
30
 
31
.container:after {
32
  clear: both;
33
}
34
 
35
.column {
36
  position: relative;
37
  z-index: 1;
38
  float: left;
39
  width: 25%;
40
  padding: 30px 0;
41
  text-align: center;
42
  white-space: nowrap;
43
}
44
 
45
.column .button + .button {
46
  margin-left: 20px;
47
}
48
 
49
@media screen and (max-width: 800px) {
50
  .column {
51
    width: 50%;
52
  }
53
}
54
 
55
@media screen and (max-width: 400px) {
56
  .column {
57
    width: 100%;
58
  }
59
}
60
 
61
.button {
62
  display: inline-block;
63
  position: relative;
64
  height: 33px;
65
  line-height: 33px;
66
  padding: 0 15px;
67
  font-size: 15px;
68
  color: white;
69
  text-decoration: none;
70
  text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
71
  border: 2px solid;
72
  border-radius: 7px;
73
  outline: 0;
74
  -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, 0.25);
75
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.25);
76
}
77
 
78
.button:before, .button:after {
79
  content: '';
80
  position: absolute;
81
}
82
 
83
.button:before {
84
  top: -5px;
85
  bottom: -5px;
86
  left: -5px;
87
  right: -5px;
88
  z-index: -1;
89
  border-radius: 9px;
90
}
91
 
92
.button:after {
93
  top: 0;
94
  bottom: 0;
95
  right: 0;
96
  left: 0;
97
  border: 2px solid rgba(255, 255, 255, 0.1);
98
  border-bottom: 0;
99
  border-radius: 7px;
100
}
101
 
102
.button.alt {
103
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
104
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
105
}
106
 
107
.button.alt:before {
108
  display: none;
109
}
110
 
111
.column.red {
112
  background: #d04022;
113
}
114
 
115
.button.red {
116
  background: #d02e17;
117
  border-color: #942110 #902010 #741a0d;
118
  background-image: -webkit-linear-gradient(top, #e74a29 0%, #e6451b 50%, #d02e17 50%, #b3150b 100%);
119
  background-image: -moz-linear-gradient(top, #e74a29 0%, #e6451b 50%, #d02e17 50%, #b3150b 100%);
120
  background-image: -o-linear-gradient(top, #e74a29 0%, #e6451b 50%, #d02e17 50%, #b3150b 100%);
121
  background-image: linear-gradient(to bottom, #e74a29 0%, #e6451b 50%, #d02e17 50%, #b3150b 100%);
122
}
123
 
124
.button.red:before {
125
  background: #ee442c;
126
  background-image: -webkit-linear-gradient(top, #b32511, #f3533c);
127
  background-image: -moz-linear-gradient(top, #b32511, #f3533c);
128
  background-image: -o-linear-gradient(top, #b32511, #f3533c);
129
  background-image: linear-gradient(to bottom, #b32511, #f3533c);
130
}
131
 
132
.button.red:active {
133
  background: #e63b1b;
134
  background-image: -webkit-linear-gradient(top, #a9110b 0%, #de3819 60%, #e63b1b 100%);
135
  background-image: -moz-linear-gradient(top, #a9110b 0%, #de3819 60%, #e63b1b 100%);
136
  background-image: -o-linear-gradient(top, #a9110b 0%, #de3819 60%, #e63b1b 100%);
137
  background-image: linear-gradient(to bottom, #a9110b 0%, #de3819 60%, #e63b1b 100%);
138
}
139
 
140
.button.red:active:after {
141
  border-color: #e63b1b;
142
}
143
 
144
.column.blue {
145
  background: #4071b6;
146
}
147
 
148
.button.blue {
149
  background: #3471b8;
150
  border-color: #255184 #244f80 #1e4068;
151
  background-image: -webkit-linear-gradient(top, #497fcc 0%, #3d72c8 50%, #3471b8 50%, #2365a0 100%);
152
  background-image: -moz-linear-gradient(top, #497fcc 0%, #3d72c8 50%, #3471b8 50%, #2365a0 100%);
153
  background-image: -o-linear-gradient(top, #497fcc 0%, #3d72c8 50%, #3471b8 50%, #2365a0 100%);
154
  background-image: linear-gradient(to bottom, #497fcc 0%, #3d72c8 50%, #3471b8 50%, #2365a0 100%);
155
}
156
 
157
.button.blue:before {
158
  background: #4c8ad3;
159
  background-image: -webkit-linear-gradient(top, #29609f, #5995da);
160
  background-image: -moz-linear-gradient(top, #29609f, #5995da);
161
  background-image: -o-linear-gradient(top, #29609f, #5995da);
162
  background-image: linear-gradient(to bottom, #29609f, #5995da);
163
}
164
 
165
.button.blue:active {
166
  background: #3d79c8;
167
  background-image: -webkit-linear-gradient(top, #216298 0%, #3774c4 60%, #3d79c8 100%);
168
  background-image: -moz-linear-gradient(top, #216298 0%, #3774c4 60%, #3d79c8 100%);
169
  background-image: -o-linear-gradient(top, #216298 0%, #3774c4 60%, #3d79c8 100%);
170
  background-image: linear-gradient(to bottom, #216298 0%, #3774c4 60%, #3d79c8 100%);
171
}
172
 
173
.button.blue:active:after {
174
  border-color: #3d79c8;
175
}
176
 
177
.column.green {
178
  background: #429538;
179
}
180
 
181
.button.green {
182
  background: #3e952d;
183
  border-color: #29621e #275e1c #1d4715;
184
  background-image: -webkit-linear-gradient(top, #45b436 0%, #3ca933 50%, #3e952d 50%, #337c1d 100%);
185
  background-image: -moz-linear-gradient(top, #45b436 0%, #3ca933 50%, #3e952d 50%, #337c1d 100%);
186
  background-image: -o-linear-gradient(top, #45b436 0%, #3ca933 50%, #3e952d 50%, #337c1d 100%);
187
  background-image: linear-gradient(to bottom, #45b436 0%, #3ca933 50%, #3e952d 50%, #337c1d 100%);
188
}
189
 
190
.button.green:before {
191
  background: #4ac233;
192
  background-image: -webkit-linear-gradient(top, #317c22, #52d039);
193
  background-image: -moz-linear-gradient(top, #317c22, #52d039);
194
  background-image: -o-linear-gradient(top, #317c22, #52d039);
195
  background-image: linear-gradient(to bottom, #317c22, #52d039);
196
}
197
 
198
.button.green:active {
199
  background: #42a933;
200
  background-image: -webkit-linear-gradient(top, #31741b 0%, #3fa131 60%, #42a933 100%);
201
  background-image: -moz-linear-gradient(top, #31741b 0%, #3fa131 60%, #42a933 100%);
202
  background-image: -o-linear-gradient(top, #31741b 0%, #3fa131 60%, #42a933 100%);
203
  background-image: linear-gradient(to bottom, #31741b 0%, #3fa131 60%, #42a933 100%);
204
}
205
 
206
.button.green:active:after {
207
  border-color: #42a933;
208
}
209
 
210
.column.cyan {
211
  background: #39a4b2;
212
}
213
 
214
.button.cyan {
215
  background: #2eabb3;
216
  border-color: #20797e #1f757a #195d62;
217
  background-image: -webkit-linear-gradient(top, #3dbdcd 0%, #33b2c7 50%, #2eabb3 50%, #1e9a99 100%);
218
  background-image: -moz-linear-gradient(top, #3dbdcd 0%, #33b2c7 50%, #2eabb3 50%, #1e9a99 100%);
219
  background-image: -o-linear-gradient(top, #3dbdcd 0%, #33b2c7 50%, #2eabb3 50%, #1e9a99 100%);
220
  background-image: linear-gradient(to bottom, #3dbdcd 0%, #33b2c7 50%, #2eabb3 50%, #1e9a99 100%);
221
}
222
 
223
.button.cyan:before {
224
  background: #3fccd5;
225
  background-image: -webkit-linear-gradient(top, #249299, #4dd3dc);
226
  background-image: -moz-linear-gradient(top, #249299, #4dd3dc);
227
  background-image: -o-linear-gradient(top, #249299, #4dd3dc);
228
  background-image: linear-gradient(to bottom, #249299, #4dd3dc);
229
}
230
 
231
.button.cyan:active {
232
  background: #33b9c7;
233
  background-image: -webkit-linear-gradient(top, #1d918f 0%, #31b2bf 60%, #33b9c7 100%);
234
  background-image: -moz-linear-gradient(top, #1d918f 0%, #31b2bf 60%, #33b9c7 100%);
235
  background-image: -o-linear-gradient(top, #1d918f 0%, #31b2bf 60%, #33b9c7 100%);
236
  background-image: linear-gradient(to bottom, #1d918f 0%, #31b2bf 60%, #33b9c7 100%);
237
}
238
 
239
.button.cyan:active:after {
240
  border-color: #33b9c7;
241
}
242
 
243
.column.brown {
244
  background: #c5aa3b;
245
}
246
 
247
.button.brown {
248
  background: #c8a22e;
249
  border-color: #927622 #8e7321 #755f1b;
250
  background-image: -webkit-linear-gradient(top, #d5ba4a 0%, #d2ba3d 50%, #c8a22e 50%, #af821e 100%);
251
  background-image: -moz-linear-gradient(top, #d5ba4a 0%, #d2ba3d 50%, #c8a22e 50%, #af821e 100%);
252
  background-image: -o-linear-gradient(top, #d5ba4a 0%, #d2ba3d 50%, #c8a22e 50%, #af821e 100%);
253
  background-image: linear-gradient(to bottom, #d5ba4a 0%, #d2ba3d 50%, #c8a22e 50%, #af821e 100%);
254
}
255
 
256
.button.brown:before {
257
  background: #dcb94d;
258
  background-image: -webkit-linear-gradient(top, #ae8c24, #e3c15b);
259
  background-image: -moz-linear-gradient(top, #ae8c24, #e3c15b);
260
  background-image: -o-linear-gradient(top, #ae8c24, #e3c15b);
261
  background-image: linear-gradient(to bottom, #ae8c24, #e3c15b);
262
}
263
 
264
.button.brown:active {
265
  background: #d2b33d;
266
  background-image: -webkit-linear-gradient(top, #a6791d 0%, #d0af35 60%, #d2b33d 100%);
267
  background-image: -moz-linear-gradient(top, #a6791d 0%, #d0af35 60%, #d2b33d 100%);
268
  background-image: -o-linear-gradient(top, #a6791d 0%, #d0af35 60%, #d2b33d 100%);
269
  background-image: linear-gradient(to bottom, #a6791d 0%, #d0af35 60%, #d2b33d 100%);
270
}
271
 
272
.button.brown:active:after {
273
  border-color: #d2b33d;
274
}
275
 
276
.column.pink {
277
  background: #b53686;
278
}
279
 
280
.button.pink {
281
  background: #b62b89;
282
  border-color: #801e61 #7c1d5e #63184b;
283
  background-image: -webkit-linear-gradient(top, #d03998 0%, #cb308c 50%, #b62b89 50%, #9c1c7b 100%);
284
  background-image: -moz-linear-gradient(top, #d03998 0%, #cb308c 50%, #b62b89 50%, #9c1c7b 100%);
285
  background-image: -o-linear-gradient(top, #d03998 0%, #cb308c 50%, #b62b89 50%, #9c1c7b 100%);
286
  background-image: linear-gradient(to bottom, #d03998 0%, #cb308c 50%, #b62b89 50%, #9c1c7b 100%);
287
}
288
 
289
.button.pink:before {
290
  background: #d83ca6;
291
  background-image: -webkit-linear-gradient(top, #9c2174, #df4aae);
292
  background-image: -moz-linear-gradient(top, #9c2174, #df4aae);
293
  background-image: -o-linear-gradient(top, #9c2174, #df4aae);
294
  background-image: linear-gradient(to bottom, #9c2174, #df4aae);
295
}
296
 
297
.button.pink:active {
298
  background: #cb3093;
299
  background-image: -webkit-linear-gradient(top, #941a77 0%, #c22e8d 60%, #cb3093 100%);
300
  background-image: -moz-linear-gradient(top, #941a77 0%, #c22e8d 60%, #cb3093 100%);
301
  background-image: -o-linear-gradient(top, #941a77 0%, #c22e8d 60%, #cb3093 100%);
302
  background-image: linear-gradient(to bottom, #941a77 0%, #c22e8d 60%, #cb3093 100%);
303
}
304
 
305
.button.pink:active:after {
306
  border-color: #cb3093;
307
}
308
 
309
.column.purple {
310
  background: #7351b7;
311
}
312
 
313
.button.purple {
314
  background: #6440be;
315
  border-color: #4a2f8c #482e89 #3c2672;
316
  background-image: -webkit-linear-gradient(top, #825ec9 0%, #7d53c5 50%, #6440be 50%, #482da8 100%);
317
  background-image: -moz-linear-gradient(top, #825ec9 0%, #7d53c5 50%, #6440be 50%, #482da8 100%);
318
  background-image: -o-linear-gradient(top, #825ec9 0%, #7d53c5 50%, #6440be 50%, #482da8 100%);
319
  background-image: linear-gradient(to bottom, #825ec9 0%, #7d53c5 50%, #6440be 50%, #482da8 100%);
320
}
321
 
322
.button.purple:before {
323
  background: #8161d0;
324
  background-image: -webkit-linear-gradient(top, #5534a7, #8c6ed8);
325
  background-image: -moz-linear-gradient(top, #5534a7, #8c6ed8);
326
  background-image: -o-linear-gradient(top, #5534a7, #8c6ed8);
327
  background-image: linear-gradient(to bottom, #5534a7, #8c6ed8);
328
}
329
 
330
.button.purple:active {
331
  background: #7753c5;
332
  background-image: -webkit-linear-gradient(top, #432ba0 0%, #714bc2 60%, #7753c5 100%);
333
  background-image: -moz-linear-gradient(top, #432ba0 0%, #714bc2 60%, #7753c5 100%);
334
  background-image: -o-linear-gradient(top, #432ba0 0%, #714bc2 60%, #7753c5 100%);
335
  background-image: linear-gradient(to bottom, #432ba0 0%, #714bc2 60%, #7753c5 100%);
336
}
337
 
338
.button.purple:active:after {
339
  border-color: #7753c5;
340
}
341
 
342
.column.gray {
343
  background: #9e9e9e;
344
}
345
 
346
.button.gray {
347
  background: #999999;
348
  border-color: #787878 #757575 #666666;
349
  background-image: -webkit-linear-gradient(top, #adadad 0%, #a6a6a6 50%, #999999 50%, #8e7b7c 100%);
350
  background-image: -moz-linear-gradient(top, #adadad 0%, #a6a6a6 50%, #999999 50%, #8e7b7c 100%);
351
  background-image: -o-linear-gradient(top, #adadad 0%, #a6a6a6 50%, #999999 50%, #8e7b7c 100%);
352
  background-image: linear-gradient(to bottom, #adadad 0%, #a6a6a6 50%, #999999 50%, #8e7b7c 100%);
353
}
354
 
355
.button.gray:before {
356
  background: #b6afaf;
357
  background-image: -webkit-linear-gradient(top, #8b8484, #c2b7b7);
358
  background-image: -moz-linear-gradient(top, #8b8484, #c2b7b7);
359
  background-image: -o-linear-gradient(top, #8b8484, #c2b7b7);
360
  background-image: linear-gradient(to bottom, #8b8484, #c2b7b7);
361
}
362
 
363
.button.gray:active {
364
  background: #a6a6a6;
365
  background-image: -webkit-linear-gradient(top, #8a7577 0%, #a1a1a1 60%, #a6a6a6 100%);
366
  background-image: -moz-linear-gradient(top, #8a7577 0%, #a1a1a1 60%, #a6a6a6 100%);
367
  background-image: -o-linear-gradient(top, #8a7577 0%, #a1a1a1 60%, #a6a6a6 100%);
368
  background-image: linear-gradient(to bottom, #8a7577 0%, #a1a1a1 60%, #a6a6a6 100%);
369
}
370
 
371
.button.gray:active:after {
372
  border-color: #a6a6a6;
373
}
374
 
375
.lt-ie9 .button:before {
376
  display: none;
377
}
378
 
 

Untitled

CSSDeck G+