Files
retrowave-player/hg.css
Indrajith K L 199501039c Style & Control Changes
* Changes Control labels styles in initial popup
* Changes key bindings
 * x - Toggle Play/Pause
 * a - Play previous (TODO)
 * d - Play Next (TODO)
 * w - Volume Up
 * s - Volume Down
* Adds Swipe Up & Down
 * Volume Up & Down
2022-11-26 21:45:53 +05:30

253 lines
4.5 KiB
CSS

@font-face {
font-family: 'StreamSter';
src: url(./fonts/Streamster.ttf);
}
#app,
body,
html {
height: 100%;
}
html,
body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
background: #FAFAFA;
font-family: 'Helvetica Neue', arial, sans-serif;
font-weight: 400;
color: #444;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
background: #f5b7f0;
background-image: url("./images/rainbowprism.gif");
}
#app {
height: 100%;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.music-player {
width: 350px;
height: 500px;
position: absolute;
top: 50%;
left: 50%;
margin: -250px 0 0 -175px;
overflow: hidden;
border-radius: 10px;
box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.5);
text-align: center;
}
.music-player .color-overlay {
/* Rectangle 11: */
background: rgba(84, 104, 110, 0.4);
width: 350px;
height: 500px;
position: absolute;
z-index: 10;
top: 0;
left: 0;
transition: background 0.3s cubic-bezier(0.33, 0.66, 0.66, 1);
}
.music-player .gradient-overlay {
/* bg-gradient: */
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 21%);
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 21%);
background-image: -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 21%);
background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 21%);
width: 350px;
height: 500px;
position: absolute;
top: 350px;
left: 0;
z-index: 15;
}
.player-controls {
/* width: 100%;
position: absolute;
bottom: 100px;
left: 0;
margin: 0 auto;
padding: 0 50px;
color: #DCE3E7;
font-family: 'Droid Serif', serif;
font-style: 16px;
line-height: 24px;
z-index: 20;
opacity: 0;
transition: bottom 0.3s, opacity 0.3s cubic-bezier(0.33, 0.66, 0.66, 1); */
}
.music-player:hover .player-controls {
opacity: 1;
bottom: 120px;
}
.music-player:hover .color-overlay {
background: rgba(84, 104, 110, 0.8);
}
.title-content {
text-align: center;
margin: 130px 0 0 0;
position: absolute;
z-index: 20;
width: 100%;
top: 0;
left: 0;
}
h3#track-name {
font-size: 26px;
font-weight: 500;
letter-spacing: 2px;
color: #e91e63;
font-family: 'StreamSter', sans-serif;
margin-bottom: 0;
background: rgb(0 0 0 / 71%);
padding: 10px;
}
hr {
width: 50px;
height: 3px;
margin: 20px auto;
border: 0;
background: #D0BB57;
}
.intro {
width: 170px;
margin: 0 auto;
color: #DCE3E7;
font-family: 'Droid Serif', serif;
font-size: 13px;
font-style: italic;
line-height: 18px;
}
#upload-info {
bottom: 0px;
position: absolute;
right: 8px;
z-index: 999;
color: #ffffff;
margin-bottom: 5px;
cursor: pointer;
}
#history {
bottom: 0px;
position: absolute;
left: 8px;
z-index: 999;
color: #ffffff;
margin-bottom: 5px;
cursor: pointer;
}
dialog {
text-align: center;
padding: 50px;
z-index: 999;
border: 1px solid #000000;
margin-left: 15px;
width: 50%;
background: #000000;
color: #ffffff;
}
dialog button {
background: #ffffff;
border: none;
padding: 3px;
}
dialog::backdrop {
background: repeating-linear-gradient(45deg,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0.2) 1px,
rgba(0, 0, 0, 0.3) 1px,
rgba(0, 0, 0, 0.3) 20px);
backdrop-filter: blur(3px);
}
.modal {
position: fixed;
width: 100vw;
height: 100vh;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.modal.open {
visibility: visible;
opacity: 1;
transition-delay: 0s;
}
.modal-bg {
position: absolute;
background: teal;
background-image: url(./images/comp009.jpg);
width: 100%;
height: 100%;
}
.modal-container {
border-radius: 10px;
background: #fff;
position: relative;
padding: 30px;
}
.modal-close {
position: absolute;
right: 15px;
top: 15px;
outline: none;
appearance: none;
color: red;
background: none;
border: 0px;
font-weight: bold;
cursor: pointer;
}
.text-center {
text-align: center;
}
.mt-5 {
margin-top: 10px;
}
#file-upload {
display: none;
}
.controls {
font-style: italic;
font-size: larger;
}