Implements persistent audio player with ajax handled navigation

This commit is contained in:
BinaryAlley committed 2024-10-29 13:10:07 +02:00
1 parent 153c23a523
commit 0b84b2b83b
8 files changed
+200 -6

No files matched your search

@@ -45,12 +45,45 @@ body {
background-color: #222;
min-width: 100%;
min-height: 100%;
height: 100%;
position: relative;
display: flex;
flex-direction: column;
}
main {
padding-top: 20px;
position: fixed;
top: 20px;
bottom: 50px;
width: 100%;
overflow-y: auto;
transition: bottom 1s ease, height 1s ease;
}
main.audio-player-not-shown {
bottom: 0;
}
main.audio-player-full-height {
bottom: calc(100% - 20px); /* full height minus menu height */
}
.audio-player-container {
position: fixed;
bottom: 0;
width: 100%;
height: 50px;
transition: height 1s ease;
}
.audio-player-container.not-shown {
height: 0px;
}
.audio-player-container.full-height {
height: calc(100% - 20px); /* full height minus menu height */
}
#modal-background {
display: none;
z-index: 998;
@@ -101,6 +134,10 @@ main {
padding: 10px;
}
#audio-player-full-height-toggle, #audio-player-close {
cursor: pointer;
}
.text-light-one {
color: #6DCBFE;
}