1
0
dwelling-radio/web/assets/css/main.css

186 lines
3.6 KiB
CSS
Raw Normal View History

2022-03-08 01:17:24 +04:00
@font-face {
font-family: 'Roboto Condensed';
font-style: normal;
font-weight: 400;
src: local('RobotoCondensed'), local('RobotoCondensed-Regular'),
2022-08-02 02:50:05 +04:00
url(/assets/fonts/RobotoCondensed-Regular.ttf); }
2022-03-08 01:17:24 +04:00
:root {
--background-color: #0a0a0a;
--primary-color: #cd2682;
--secondary-color: #9f2b68;
--text-color: #f5f5f5;
--text-indent: 1.6rem;
color-scheme: light dark;
2022-03-08 01:17:24 +04:00
scrollbar-color: var(--primary-color) var(--background-color); }
@media (prefers-color-scheme: light) {
:root {
--background-color: #f5f5f5;
--primary-color: #9f2b68;
--secondary-color: #cd2682;
--text-color: #0a0a0a; } }
* { margin: 0; }
::selection {
background-color: var(--secondary-color);
color: var(--background-color); }
.right { text-align: right; }
.small { font-size: .8rem; }
.small.player-links a { margin: 0 .2rem; }
2022-03-08 01:17:24 +04:00
a,
button {
color: var(--primary-color);
text-decoration: none; }
a:hover,
button:hover {
color: var(--secondary-color);
cursor: pointer;
text-decoration: underline dotted;
transition: .5s; }
button {
background: none;
border: none;
font: inherit;
padding: 0; }
p {
text-align: justify;
line-height: var(--text-indent);
text-indent: var(--text-indent); }
p:not(:last-child) { margin-bottom: .1rem; }
h1,
h2 {
font-size: 1.8rem;
font-variant: small-caps;
text-align: center;
margin-bottom: 1rem; }
h2 {
font-size: 1.4rem;
margin: 1rem 0; }
audio {
background-color: var(--primary-color);
width: 100%; }
html { margin-left: calc(100vw - 100%); }
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: 'Roboto Condensed', Roboto, sans-serif;
font-size: 1.1rem;
margin: 0 auto;
max-width: 960px;
width: 98%; }
header {
display: flex;
flex-wrap: wrap;
justify-content: space-between; }
2023-08-22 03:38:51 +04:00
header svg { width: 360px; }
2022-03-08 01:17:24 +04:00
2023-08-22 03:38:51 +04:00
header svg text { fill: var(--text-color); }
2022-03-08 01:17:24 +04:00
2023-08-22 03:38:51 +04:00
header svg text:first-child {
2022-03-08 01:17:24 +04:00
font-size: 2rem;
font-variant-caps: small-caps;
font-weight: bold; }
2023-08-22 03:38:51 +04:00
header svg text:last-child { font-size: .88rem; }
2022-03-08 01:17:24 +04:00
@media screen and (-webkit-min-device-pixel-ratio:0) {
2023-08-22 03:38:51 +04:00
header svg text:first-child { font-size: 2.082rem; } }
2022-03-08 01:17:24 +04:00
@-moz-document url-prefix() {
2023-08-22 03:38:51 +04:00
header svg text:first-child { font-size: 2rem; } }
2022-03-08 01:17:24 +04:00
header nav { margin-top: .5rem; }
2022-03-08 01:17:24 +04:00
header nav a { font-variant: small-caps; }
2022-03-08 01:17:24 +04:00
header nav h1 {
2022-03-08 01:17:24 +04:00
color: var(--secondary-color);
margin: 0; }
section { margin-top: 1rem; }
2023-08-22 03:38:51 +04:00
#banner { text-align: center; }
2023-08-22 03:38:51 +04:00
#banner video { max-width: 90%; }
2023-08-22 03:38:51 +04:00
#player {
2023-08-20 01:20:41 +04:00
flex-direction: row;
align-items: center; }
2023-08-22 03:38:51 +04:00
#player p { text-indent: 1rem; }
2023-08-21 18:33:00 +04:00
#player img {
filter: drop-shadow(0px 0px 4px var(--text-color));
height: 1rem;
padding: 0 .7rem; }
button#radio-play {
-webkit-mask-image: url(/assets/img/play.svg);
background-color: var(--primary-color);
2023-08-20 01:20:41 +04:00
height: 3rem;
mask-image: url(/assets/img/play.svg);
min-width: 3rem;
2023-08-20 01:20:41 +04:00
width: 3rem; }
button#radio-play:hover { text-decoration: none; }
2023-08-22 03:38:51 +04:00
input#radio-volume {
appearance: slider-vertical;
-webkit-appearance: slider-vertical;
2023-08-20 01:20:41 +04:00
accent-color: var(--primary-color);
2024-05-12 03:58:35 +04:00
height: 4rem;
2023-08-21 18:33:00 +04:00
margin-left: .5rem; }
2023-08-20 01:20:41 +04:00
2023-08-22 03:38:51 +04:00
#player div:first-child {
2023-08-20 01:20:41 +04:00
display: none;
2023-08-21 18:33:00 +04:00
flex-direction: row;
2023-08-20 01:20:41 +04:00
align-items: center; }
#last-songs {
2023-08-22 03:38:51 +04:00
margin: 0 auto;
min-width: 80%;
width: 80%; }
#last-songs :is(thead tr, tbody tr) {
2023-08-22 03:38:51 +04:00
display: grid;
gap: .5rem;
grid-template-columns: 3rem 3rem 1fr; }
#last-songs thead tr {
font-weight: bold;
}
2023-08-22 03:38:51 +04:00
2022-03-08 01:17:24 +04:00
footer {
font-size: .8rem;
text-align: center;
padding: 1rem 0; }
@media screen and (max-width: 640px) {
header { display: block; }
header svg {
2022-03-08 01:17:24 +04:00
margin: 0 auto;
width: 100%; }
nav {
width: 100%;
text-align: center; }
2023-08-22 03:38:51 +04:00
#player { flex-direction: column; } }