forked from michaelvillar/iTunesPreviewPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiTunesPreviewPlayer.css
44 lines (44 loc) · 922 Bytes
/
iTunesPreviewPlayer.css
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
.iTunesPreviewPlayer {
position: relative;
display: block;
background: rgb(204, 204, 204);
border-radius: 12px;
width: 24px;
height: 24px;
}
.iTunesPreviewPlayer.error,
.iTunesPreviewPlayer:not(.loaded) {
opacity: 0.5;
}
.iTunesPreviewPlayer:not(.error).loaded:active {
background: #000;
}
.iTunesPreviewPlayer::before {
content: '';
position: absolute;
top: 7px;
left: 9px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 8px solid #000;
}
.iTunesPreviewPlayer:not(.error).loaded:active::before {
border-left-color: #FFF;
}
.iTunesPreviewPlayer.playing::before {
top: 7px;
left: 8px;
width: 2px;
height: 9px;
border:10px solid #000;
border-width:0 3px;
}
.iTunesPreviewPlayer.playing:not(.error).loaded:active::before {
border-color: #FFF;
}
.iTunesPreviewPlayer canvas {
position: absolute;
top: 0;
width: 100%;
height: 100%;
}