forked from are0h/tapes
183 lines
2.8 KiB
CSS
183 lines
2.8 KiB
CSS
|
main {
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
padding: 15px;
|
||
|
transform-origin: 0 0;
|
||
|
perspective: 500px;
|
||
|
top: 50px;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
padding-top: 5px;
|
||
|
background: rgba(6, 9, 41, 0.5);
|
||
|
position: fixed;
|
||
|
z-index: 1000;
|
||
|
}
|
||
|
|
||
|
div.audio-progress {
|
||
|
width: 0;
|
||
|
height: 1px;
|
||
|
background: var(--primary);
|
||
|
position: relative;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
article.tape-select {
|
||
|
transition: all 1s cubic-bezier(0.83, 0.05, 0.28, 1);
|
||
|
max-width: 800px;
|
||
|
margin: 0 auto;
|
||
|
padding: 10px;
|
||
|
backface-visibility: hidden;
|
||
|
position: absolute;
|
||
|
top: 1px;
|
||
|
}
|
||
|
|
||
|
article.tape-tracklist {
|
||
|
transition: all 1s cubic-bezier(0.83, 0.05, 0.28, 1);
|
||
|
max-width: 800px;
|
||
|
width: 100%;
|
||
|
margin: 0 auto;
|
||
|
padding: 10px;
|
||
|
position: absolute;
|
||
|
backface-visibility: hidden;
|
||
|
top: 5px;
|
||
|
padding-bottom: 60px;
|
||
|
}
|
||
|
|
||
|
img.the-logo {
|
||
|
width: 50px;
|
||
|
margin: 0 auto;
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
img.covers {
|
||
|
padding-bottom: 2px;
|
||
|
border-radius: 3px;
|
||
|
width: 92px;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
img#tape-cover {
|
||
|
width: 350px;
|
||
|
margin: 0 auto;
|
||
|
display: block;
|
||
|
border-radius: 3px;
|
||
|
}
|
||
|
|
||
|
h1#tape-title {
|
||
|
width: 300px;
|
||
|
margin: 15px auto;
|
||
|
}
|
||
|
|
||
|
section#playlist {
|
||
|
width: 300px;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
section#playlist div {
|
||
|
width: 100%;
|
||
|
display: inline-block;
|
||
|
font-size: 1em;
|
||
|
position: relative;
|
||
|
margin-bottom: 10px;
|
||
|
transition: all 0.5s cubic-bezier(0.83, 0.05, 0.28, 1);
|
||
|
}
|
||
|
|
||
|
section#playlist div label:nth-child(2) {
|
||
|
font-weight: bold;
|
||
|
color: var(--highlight);
|
||
|
}
|
||
|
|
||
|
section#playlist div label {
|
||
|
width: 100%;
|
||
|
display: inline-block;
|
||
|
font-size: 0.9em;
|
||
|
}
|
||
|
|
||
|
button.selectBtn {
|
||
|
height: 100%;
|
||
|
position: absolute;
|
||
|
width: 100%;
|
||
|
opacity: 0;
|
||
|
}
|
||
|
|
||
|
div#tape-controls {
|
||
|
background: var(--white);
|
||
|
width: 300px;
|
||
|
position: fixed;
|
||
|
z-index: 500;
|
||
|
height: 35px;
|
||
|
left: 50%;
|
||
|
transform: translate(-50%, -50%);
|
||
|
transition: all 1s cubic-bezier(0.83, 0.05, 0.28, 1);
|
||
|
border-radius: 20px;
|
||
|
display: flex;
|
||
|
border: 3px solid var(--white);
|
||
|
}
|
||
|
|
||
|
img.tape-control-button {
|
||
|
width: 35px;
|
||
|
display: flex;
|
||
|
}
|
||
|
|
||
|
label.control-text {
|
||
|
width: 73.6%;
|
||
|
color: var(--secondary);
|
||
|
position: relative;
|
||
|
text-transform: uppercase;
|
||
|
font-size: 0.65em;
|
||
|
font-weight: bold;
|
||
|
height: 100%;
|
||
|
line-height: 100%;
|
||
|
align-items: center;
|
||
|
display: flex;
|
||
|
background: var(--highlight);
|
||
|
border-radius: 3px;
|
||
|
padding: 0 5px;
|
||
|
margin: 0 5px;
|
||
|
}
|
||
|
|
||
|
.front {
|
||
|
transform: rotateY(0deg);
|
||
|
}
|
||
|
|
||
|
.back-right {
|
||
|
transform: rotateY(-180deg);
|
||
|
}
|
||
|
|
||
|
.back-left {
|
||
|
transform: rotateY(180deg);
|
||
|
}
|
||
|
|
||
|
.playing {
|
||
|
background: var(--white);
|
||
|
padding: 5px;
|
||
|
border-radius: 3px;
|
||
|
}
|
||
|
|
||
|
.not-playing {
|
||
|
background: none;
|
||
|
padding: 0;
|
||
|
border-radius: 0;
|
||
|
}
|
||
|
|
||
|
.label-playing {
|
||
|
color: var(--secondary);
|
||
|
}
|
||
|
|
||
|
.label-notplaying {
|
||
|
color: var(--white);
|
||
|
}
|
||
|
|
||
|
.control-open {
|
||
|
bottom: -17.5px;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
.control-closed {
|
||
|
bottom: -55px;
|
||
|
opacity: 0;
|
||
|
}
|