scuf-radio-frontend/public/css/index.css

304 lines
4.5 KiB
CSS
Raw Normal View History

@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Zen+Maru+Gothic:wght@400;500;700&display=swap");
2024-11-21 21:04:05 +03:00
:root {
--pink: #d2738a;
--pale: #c1b492;
--bgcolor: #1e1b1e;
--white: #ddd;
2024-11-21 21:04:05 +03:00
}
::selection {
background-color: var(--pink);
color: #000;
2024-11-21 21:04:05 +03:00
}
::-webkit-scrollbar {
--size: 8px;
width: var(--size);
height: var(--size);
background-color: var(--bgcolor);
2024-11-21 21:04:05 +03:00
}
::-webkit-scrollbar-corner {
background-color: var(--bgcolor);
2024-11-21 21:04:05 +03:00
}
::-webkit-scrollbar-thumb {
background-color: var(--pink);
box-shadow: inset 0 0 0 1px var(--bgcolor);
2024-11-21 21:04:05 +03:00
}
* {
box-sizing: border-box;
2024-11-21 21:04:05 +03:00
}
.hidden {
display: none !important;
2024-11-21 21:04:05 +03:00
}
.no-select {
pointer-events: none !important;
user-select: none !important;
-moz-user-select: none !important;
-webkit-user-select: none !important;
}
header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
}
.header-stats {
font-size: 16px;
2024-11-21 21:04:05 +03:00
}
body {
min-height: 100vh;
background: #000 url("../asset/bg205.gif");
color: var(--pale);
font: 500 1em "Share Tech Mono", "Zen Maru Gothic", monospace;
line-height: 1.4em;
text-shadow: 0 0 10px #c1b49264;
margin: 0;
2024-11-21 21:04:05 +03:00
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2024-11-21 21:04:05 +03:00
}
a,
.listeners {
color: var(--pink);
text-decoration: none;
text-shadow: 0 0 10px #d2738a64;
2024-11-21 21:04:05 +03:00
}
a:hover {
text-decoration: underline;
2024-11-21 21:04:05 +03:00
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
2024-11-21 21:04:05 +03:00
}
#darken {
background-color: #0006;
z-index: -1;
2024-11-21 21:04:05 +03:00
}
#scanlines {
background: url("../asset/scanlines.png");
opacity: 0.6;
z-index: 2;
2024-11-21 21:04:05 +03:00
}
#vignette {
box-shadow: inset 0 0 64px #000;
z-index: 2;
2024-11-21 21:04:05 +03:00
}
#warning-message {
background-color: #040004f4;
backdrop-filter: blur(4px);
padding: 2em;
cursor: pointer;
2024-11-21 21:04:05 +03:00
display: grid;
place-items: center;
z-index: 2;
2024-11-21 21:04:05 +03:00
}
#warning-message h1 {
color: var(--pink);
text-align: center;
2024-11-21 21:04:05 +03:00
}
#warning-content {
max-width: 800px;
2024-11-21 21:04:05 +03:00
}
header,
section {
width: clamp(256px, 896px, 90%);
background-color: var(--bgcolor);
box-shadow: 0 0 16px #d2738a32;
padding: 1rem;
margin: 0.8rem;
2024-11-21 21:04:05 +03:00
}
header {
text-align: center;
font-size: 2.4rem;
font-weight: 800;
2024-11-21 21:04:05 +03:00
}
#player {
position: relative;
background-color: var(--pale);
color: #000;
text-shadow: 0 0 10px #0004;
font-size: 1.4rem;
cursor: e-resize;
2024-11-21 21:04:05 +03:00
transition: color 0.2s ease-in;
/* display: flex;
2024-11-21 21:04:05 +03:00
align-items: center; */
}
#player.paused {
color: rgba(0, 0, 0, 0.3);
}
2024-11-21 21:04:05 +03:00
#progress-bar {
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: var(--pink);
2024-11-21 21:04:05 +03:00
}
/* #progress-bar::after {
content: "";
position: absolute;
top: 0;
right: 3px;
width: 1px;
height: 100%;
background-color: var(--pale);
} */
#volume-bar {
position: absolute;
height: 4px;
top: 6px;
left: 0;
background-color: var(--pale);
background-color: #000;
box-shadow: 0 0 10px var(--pink);
transition: opacity 0.2s ease-in;
}
#volume-bar.muted {
opacity: 0.3;
2024-11-21 21:04:05 +03:00
}
#current-details {
display: flex;
flex-direction: column;
2024-11-21 21:04:05 +03:00
}
#current-details span {
z-index: 1;
2024-11-21 21:04:05 +03:00
}
#current-song {
margin: 8px 0;
2024-11-21 21:04:05 +03:00
display: flex;
justify-content: space-between;
align-items: flex-start;
2024-11-21 21:04:05 +03:00
}
#current-title,
#current-date {
font-size: 2rem;
font-weight: 800;
line-height: 1em;
2024-11-21 21:04:05 +03:00
}
#current-date {
text-align: right;
2024-11-21 21:04:05 +03:00
}
/* #current-date::before {
content: "(";
}
#current-date::after {
content: ")";
} */
#current-album::before {
content: "from ";
2024-11-21 21:04:05 +03:00
}
#current-artist::before {
content: "by ";
2024-11-21 21:04:05 +03:00
}
#song-list {
display: flex;
flex-direction: column;
background-repeat: no-repeat;
background-size: contain;
background-position: right 72px top;
background-blend-mode: exclusion;
2024-11-21 21:04:05 +03:00
}
#list-previous {
text-shadow: none;
opacity: 0.6;
2024-11-21 21:04:05 +03:00
display: flex;
flex-direction: column-reverse;
2024-11-21 21:04:05 +03:00
}
#list-current {
color: #ddd;
font-weight: 600;
2024-11-21 21:04:05 +03:00
}
.song-entry {
display: flex;
justify-content: space-between;
2024-11-21 21:04:05 +03:00
}
#channels {
font-size: 2rem;
display: flex;
justify-content: center;
gap: 1em;
}
#social {
font-size: 2rem;
display: flex;
justify-content: center;
gap: 1em;
}
#social a:hover {
text-decoration: none;
}
2024-11-21 21:04:05 +03:00
#social .social:hover {
color: var(--white);
2024-11-21 21:04:05 +03:00
}
.channel.active,
.control.active {
color: #ddd;
text-shadow: 0 0 32px var(--pink);
pointer-events: none;
2024-11-21 21:04:05 +03:00
}
.control.active {
pointer-events: auto;
cursor: pointer;
}
.channel:not(.active):hover,
.control:not(.active):hover {
color: var(--pink);
cursor: pointer;
}