-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
64 lines (64 loc) · 1.29 KB
/
Copy pathstyle.css
File metadata and controls
64 lines (64 loc) · 1.29 KB
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
body {
margin: 0;
padding: 0;
background: #f2f2f2;
font-family: Arial, sans-serif;
}
header {
padding: 10px;
text-align: center;
}
main {
position: relative;
overflow-x: auto;
white-space: nowrap;
padding: 20px;
height: 300px;
}
#staircase {
display: inline-flex;
align-items: flex-end;
}
.step {
display: inline-block;
background: #fff;
margin-right: 10px;
padding: 5px;
width: 150px;
box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
.step .date {
font-weight: bold;
margin-bottom: 5px;
}
#walker {
position: absolute;
bottom: 160px;
left: 0;
width: 20px;
height: 40px;
background: transparent;
}
.walk {
animation: walk 0.5s steps(2) infinite;
}
@keyframes walk {
from { background-position: 0 0; }
to { background-position: -40px 0; }
}
/* Walker sprite using linear gradients to form pixels */
#walker::before {
content: "";
position: absolute;
width: 20px;
height: 40px;
background:
linear-gradient(#777 0 0) 4px 0/12px 4px,
linear-gradient(#777 0 0) 2px 4px/16px 4px,
linear-gradient(#777 0 0) 0 8px/20px 4px,
linear-gradient(#777 0 0) 4px 12px/12px 12px,
linear-gradient(#777 0 0) 0 24px/20px 4px,
linear-gradient(#777 0 0) 2px 28px/16px 4px,
linear-gradient(#777 0 0) 6px 32px/8px 8px;
background-repeat: no-repeat;
}