-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex.html
200 lines (197 loc) · 9.31 KB
/
index.html
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Shaded Progress Bars: A CSS/Sass Exercise | Codrops Demo</title>
<meta name="description" content="Demo for a tutorial on how to create shaded CSS-only progress bars with Sass" />
<meta name="keywords" content="css progress, sass, progress bar, tutorial, css-only, mixin" />
<meta name="author" content="Rafael González for Codrops" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.3.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" type="text/css" href="css/custom-bars.css" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<header class="codrops-header">
<div class="codrops-links">
<a class="codrops-icon codrops-icon--prev" href="http://tympanus.net/Development/ElasticProgress/" title="Previous Demo"><span>Previous Demo</span></a>
<a class="codrops-icon codrops-icon--drop" href="http://tympanus.net/codrops/?p=25049" title="Back to the article"><span>Back to the Codrops article</span></a>
</div>
<h1>Shaded Progress Bars <span>A CSS/Sass Exercise</span></h1>
</header>
<section class="content">
<!-- <h2>h2</h2> -->
<article class="flexy-grid">
<h3>Striped bars</h3>
<input type="checkbox" id="bar-1">
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors navy ruler" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100" id="bar-0_0">
<div class="tooltip white"></div>
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors orange ruler-2" role="progressbar" aria-valuenow="64" aria-valuemin="0" aria-valuemax="100">
<div class="tooltip white"></div>
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors cyan ruler-3" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100">
<div class="tooltip white"></div>
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<label class="value-label" for="bar-1">[ aria-valuenow = '90%' ]</label>
</article>
<article class="flexy-grid">
<h3>Heat bars</h3>
<input type="checkbox" id="bar-2">
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors red heat-gradient" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100">
<div class="tooltip heat-gradient-tooltip"></div>
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors red heat-gradient" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100">
<div class="tooltip heat-gradient-tooltip"></div>
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors red heat-gradient" role="progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100">
<div class="tooltip heat-gradient-tooltip"></div>
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<label class="value-label" for="bar-2">[ aria-valuenow = '90%' ]</label>
</article>
<article class="flexy-grid">
<h3>Dotted bar</h3>
<input type="checkbox" id="bar-0">
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors dark dots-pattern" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="tooltip"></div>
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<label class="value-label" for="bar-0">[ aria-valuenow = '90%' ]</label>
</article>
<article class="flexy-grid">
<h3>Hover bar</h3>
<input type="checkbox" id="bar-3">
<div class="flexy-column">
<div class="progress-factor flexy-item">
<div class="progress-bar">
<div class="bar has-rotation has-colors yellow move" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100">
<div class="bar-face face-position roof percentage"></div>
<div class="bar-face face-position back percentage"></div>
<div class="bar-face face-position floor percentage volume-lights"></div>
<div class="bar-face face-position left"></div>
<div class="bar-face face-position right"></div>
<div class="bar-face face-position front percentage volume-lights shine"></div>
</div>
</div>
</div>
</div>
<label class="value-label" for="bar-3">[ aria-valuenow = '90%' ]</label>
</article>
</section>
<!-- Related demos -->
<section class="content content--related">
<p>If you enjoyed this demo you might also like:</p>
<a class="media-item" href="http://tympanus.net/Development/ArrowNavigationStyles/">
<img class="media-item__img" src="img/related/ArrowNavigationEffects.png">
<h3 class="media-item__title">Arrow Navigation Styles</h3>
</a>
<a class="media-item" href="http://tympanus.net/Development/TooltipStylesInspiration/">
<img class="media-item__img" src="img/related/TooltipStylesInspiration.png">
<h3 class="media-item__title">Tooltip Styles Inspiration</h3>
</a>
</section>
</div>
<!-- /container -->
<script src="js/jquery-2.1.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$("#change-color .bar").hover(function(){
// $(this).toggleClass('active');
$(this).find('.front').toggleClass('shine');
});
// $("#change-color .bar").click(function(){
// $(this).toggleClass('sleep');
// });
</script>
</body>
</html>