summaryrefslogtreecommitdiff
path: root/public/assets/css/audioplayer.css
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/css/audioplayer.css')
-rw-r--r--public/assets/css/audioplayer.css130
1 files changed, 130 insertions, 0 deletions
diff --git a/public/assets/css/audioplayer.css b/public/assets/css/audioplayer.css
new file mode 100644
index 0000000..49a2809
--- /dev/null
+++ b/public/assets/css/audioplayer.css
@@ -0,0 +1,130 @@
+.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.active {
+ opacity: 1;
+}
+.player:hover {
+ opacity: 1;
+}
+.player .controls {
+ width: 100%;
+ max-width: 45rem;
+ display: flex;
+ flex-direction: column;
+ padding: 1rem;
+}
+
+.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;
+}
+.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);
+}