Files
liederwahl/static/site.css
matthias@matsewe.de f6016f5736 restructure
2024-05-22 19:44:24 +02:00

282 lines
4.7 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: sans-serif;
}
.vote-buttons,
.cover-container,
.categories {
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media only screen and (min-resolution: 2dppx) {
body {
font-size: 3.2vmin;
}
}
@media screen and (-webkit-min-device-pixel-ratio: 2) {
body {
font-size: 3.2vmin;
}
}
.text {
padding: 0.3em;
margin-bottom: 0.7em;
display: inline-block;
}
.clear {
clear: both;
}
.song {
background-color: #f0f0f0;
padding: 0.4em;
border-radius: 0.5em;
width: 30em;
font-family: sans-serif;
margin-bottom: 1rem;
margin-left: 0.5em;
}
.cover-container {
position: relative;
width: 10.67em;
height: 6em;
float: left;
margin-right: 1em;
text-align: center;
background-color: white;
}
.cover {
display: block;
max-width: 100%;
max-height: 100%;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
transition: .3s ease;
}
.overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
opacity: 0;
transition: .3s ease;
}
.cover-container:hover {
cursor: pointer;
}
.cover-container:hover .overlay {
opacity: 1;
filter: drop-shadow(0px 0px 1em black);
}
.cover-container:hover .cover {
filter: brightness(0.6);
}
.overlay img {
height: 50%;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
filter: invert();
transition: .1s ease;
}
.cover-container:active .overlay img {
height: 60%;
}
.vote-buttons {
display: inline-block;
}
.button {
height: 1.5em;
width: 3em;
text-align: center;
vertical-align: middle;
font-size: 1.5em;
position: relative;
float: left;
clear: none;
}
.button img {
height: 30%;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
transition: .1s ease;
}
.button:active img {
height: 40%;
}
.button-no {
background-color: #e1412f;
border-top-left-radius: 1em;
border-bottom-left-radius: 1em;
}
.button-neutral {
background-color: #f5bb00;
margin-left: 2px;
margin-right: 2px;
}
.button-yes {
background-color: #48a84f;
border-top-right-radius: 1em;
border-bottom-right-radius: 1em;
}
.button:not(.selected):not(:hover) {
background-color: #b0b0b0;
}
.button:hover {
filter: drop-shadow(2px 2px 2px) brightness(95%);
cursor: pointer;
}
.button span {
position: relative;
}
.button-no span {
top: 10%;
}
.button-yes span {
top: 10%;
}
.button-neutral span {
top: 20%;
}
.categories {
width: 60%;
overflow: hidden;
/*cursor: grab;*/
white-space: nowrap;
font-size: 0.7em;
line-height: 1.2em;
margin-top: 0.3em;
}
.categories span {
border-radius: 1.2em;
padding: 0 0.5em 0 0.5em;
margin-right: 0.4em;
display: inline-block;
color: white;
max-width: 10em;
overflow: clip;
background-color: hsl(calc(var(--hue) * 360), 100%, 40%);
/*color-mix(in srgb, var(--main-color) 60%, transparent);*/
}
.vote-buttons {
margin-top: 0.5em;
}
.song-title,
.song-artist {
width: 100%;
overflow: clip;
white-space: nowrap;
}
.song-artist {
font-size: 0.7em;
}
h1 {
font-family: sans-serif;
padding: 0.1em;
padding-left: 0.2em;
margin-bottom: 1rem;
font-size: 1.5em;
}
#songs h1 {
background-color: color-mix(in srgb, hsl(calc(var(--hue) * 360), 100%, 40%) 50%, transparent);
border-bottom: 0.3rem solid hsl(calc(var(--hue) * 360), 100%, 40%);
}
body>h1 {
background-color: color-mix(in srgb, hsl(0, 0%, 40%) 50%, transparent);
border-bottom: 0.3rem solid hsl(0, 0%, 40%);
}
#yt-player,
#spotify-player {
position: fixed;
bottom: 0.5em;
right: 0.5em;
padding: 0;
display: none;
justify-content: center;
border-radius: 20px;
}
#spotify-player {
bottom: 0.4em;
}
#close-player {
position: fixed;
bottom: calc(360px + 0.2em - 3em);
right: 0.7em;
background-color: rgba(255, 255, 255, 1);
width: 3em;
height: 3em;
border-radius: 1.5em;
display: none;
cursor: pointer;
}
#close-player img {
position: relative;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 1.5em;
}