summaryrefslogtreecommitdiff
path: root/public/assets/css/audioplayer.css
blob: 2728c162d272b030224076ab14c5c1058d9b732b (plain)
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
.icon.notes {
  background-image: url(/assets/img/notes-white.svg);
}
.icon.note {
  background-image: url(/assets/img/note-white.svg);
}
.icon.grid {
  background-image: url(/assets/img/grid-white.svg);
}
.icon.graph {
  background-image: url(/assets/img/graph-white.svg);
}
.playing .icon.audio,
.icon.pause {
  background-image: url(/assets/img/pause-white.svg);
}
.icon.audio,
.icon.play {
  background-image: url(/assets/img/play-white.svg);
  background-size: 80% 80%;
}

.player {
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: fixed;
  bottom: 2rem;
  left: 0;
  width: 100%;
  transition: 0.2s cubic-bezier(0, 0, 1, 1);
  opacity: 0;
}
.player.unloaded {
  pointer-events: none;
}
.player.active {
  opacity: 1;
}
.player:hover {
  opacity: 1;
}
.player .controls {
  width: 100%;
  max-width: 45rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 0.25rem;
}
.player .controls {
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
}
.player .trackInfo {
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.player .row {
  display: flex;
  flex-direction: row;
}
.player .icon {
  cursor: pointer;
  height: 3rem;
  width: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.1s;
  opacity: 0.9;
}
.player .icon:hover {
  opacity: 1;
}
.player .pos {
  flex: 1;
  position: relative;
  cursor: pointer;
  height: 3rem;
  opacity: 0.8;
}
.player .pos:hover {
  opacity: 1;
}
.player .title,
.player .time {
  font-size: 1rem;
  color: #eee;
}
.player .icon img {
  display: none;
  width: 2.5em;
}
.player .icon.active .play_icon {
  display: none;
}
.player .icon.active .pause_icon {
  display: block;
}
.player .icon .pause_icon {
  display: none;
}
.player .icon .play_icon {
  display: block;
}
.player .track {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -1px;
  height: 2px;
  background: #fff;
  width: calc(100% - 1.5rem);
}
.player .dot {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}
.player .track,
.player .dot {
  transition: box-shadow 0.1s, background 0.1s, left 0.1s, transform 0.1s;
}
.player .pos:hover .track {
  background: #fff;
}
.player .pos:hover .dot {
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 1);
}