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>Task List</title>
10
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
11
</head>
12
<body>
13
  <section class="tasks">
14
    <header class="tasks-header">
15
      <h2 class="tasks-title">Tasks</h2>
16
      <a href="index.html" class="tasks-lists">Lists</a>
17
    </header>
18
    <fieldset class="tasks-list">
19
      <label class="tasks-list-item">
20
        <input type="checkbox" name="task_1" value="1" class="tasks-list-cb" checked>
21
        <span class="tasks-list-mark"></span>
22
        <span class="tasks-list-desc">On your mark</span>
23
      </label>
24
      <label class="tasks-list-item">
25
        <input type="checkbox" name="task_2" value="1" class="tasks-list-cb" checked>
26
        <span class="tasks-list-mark"></span>
27
        <span class="tasks-list-desc">Get set</span>
28
      </label>
29
      <label class="tasks-list-item">
30
        <input type="checkbox" name="task_3" value="1" class="tasks-list-cb">
31
        <span class="tasks-list-mark"></span>
32
        <span class="tasks-list-desc">Go!</span>
33
      </label>
34
    </fieldset>
35
  </section>
36
</body>
37
</html>
38
 
 
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/task-list/demo/scss
10
 *
11
 * Original PSD by Wassim Bourguiba: http://goo.gl/OUpkfy
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: #f2f8fc;
20
}
21
 
22
.tasks {
23
  margin: 40px auto;
24
  width: 240px;
25
  background: white;
26
  border: 1px solid #cdd3d7;
27
  border-radius: 4px;
28
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
29
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
30
}
31
 
32
.tasks-header {
33
  position: relative;
34
  line-height: 24px;
35
  padding: 7px 15px;
36
  color: #5d6b6c;
37
  text-shadow: 0 1px rgba(255, 255, 255, 0.7);
38
  background: #f0f1f2;
39
  border-bottom: 1px solid #d1d1d1;
40
  border-radius: 3px 3px 0 0;
41
  background-image: -webkit-linear-gradient(top, #f5f7fd, #e6eaec);
42
  background-image: -moz-linear-gradient(top, #f5f7fd, #e6eaec);
43
  background-image: -o-linear-gradient(top, #f5f7fd, #e6eaec);
44
  background-image: linear-gradient(to bottom, #f5f7fd, #e6eaec);
45
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(0, 0, 0, 0.03);
46
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(0, 0, 0, 0.03);
47
}
48
 
49
.tasks-title {
50
  line-height: inherit;
51
  font-size: 14px;
52
  font-weight: bold;
53
  color: inherit;
54
}
55
 
56
.tasks-lists {
57
  position: absolute;
58
  top: 50%;
59
  right: 10px;
60
  margin-top: -11px;
61
  padding: 10px 4px;
62
  width: 19px;
63
  height: 3px;
64
  font: 0/0 serif;
65
  text-shadow: none;
66
  color: transparent;
67
}
68
 
69
.tasks-lists:before {
70
  content: '';
71
  display: block;
72
  height: 3px;
73
  background: #8c959d;
74
  border-radius: 1px;
75
  -webkit-box-shadow: 0 6px #8c959d, 0 -6px #8c959d;
76
  box-shadow: 0 6px #8c959d, 0 -6px #8c959d;
77
}
78
 
79
.tasks-list-item {
80
  display: block;
81
  line-height: 24px;
82
  padding: 12px 15px;
83
  cursor: pointer;
84
  -webkit-user-select: none;
85
  -moz-user-select: none;
86
  -ms-user-select: none;
87
  user-select: none;
88
}
89
 
90
.tasks-list-item + .tasks-list-item {
91
  border-top: 1px solid #f0f2f3;
92
}
93
 
94
.tasks-list-cb {
95
  display: none;
96
}
97
 
98
.tasks-list-mark {
99
  position: relative;
100
  display: inline-block;
101
  vertical-align: top;
102
  margin-right: 12px;
103
  width: 20px;
104
  height: 20px;
105
  border: 2px solid #c4cbd2;
106
  border-radius: 12px;
107
}
108
 
109
.tasks-list-mark:before {
110
  content: '';
111
  display: none;
112
  position: absolute;
113
  top: 50%;
114
  left: 50%;
115
  margin: -5px 0 0 -6px;
116
  height: 4px;
117
  width: 8px;
118
  border: solid #39ca74;
119
  border-width: 0 0 4px 4px;
120
  -webkit-transform: rotate(-45deg);
121
  -moz-transform: rotate(-45deg);
122
  -ms-transform: rotate(-45deg);
123
  -o-transform: rotate(-45deg);
124
  transform: rotate(-45deg);
125
}
126
 
127
.tasks-list-cb:checked ~ .tasks-list-mark {
128
  border-color: #39ca74;
129
}
130
 
131
.tasks-list-cb:checked ~ .tasks-list-mark:before {
132
  display: block;
133
}
134
 
135
.tasks-list-desc {
136
  font-weight: bold;
137
  color: #8a9a9b;
138
}
139
 
140
.tasks-list-cb:checked ~ .tasks-list-desc {
141
  color: #34bf6e;
142
  text-decoration: line-through;
143
}
144
 
 

Task List

CSSDeck G+