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

167 lines
3.2 KiB
CSS

@font-face {
font-family: 'Roboto Condensed';
font-style: normal;
font-weight: 400;
src: local('RobotoCondensed'), local('RobotoCondensed-Regular'),
url(/assets/fonts/RobotoCondensed-Regular.ttf); }
:root {
--background-color: #0a0a0a;
--primary-color: #cd2682;
--secondary-color: #9f2b68;
--text-color: #f5f5f5;
--text-indent: 1.6rem;
color-scheme: light dark;
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); }
.small { font-size: .8rem; }
.small.player-links a { margin: 0 .2rem; }
a,
button {
color: var(--primary-color);
text-decoration: none; }
a:hover {
color: var(--secondary-color);
cursor: pointer;
text-decoration: underline dotted;
transition: .5s; }
button {
background: none;
border: none; }
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; }
header svg text { fill: var(--text-color); }
header svg text:first-child {
font-size: 3.55rem;
font-variant-caps: small-caps;
font-weight: bold; }
header svg text:last-child { font-size: 1.5rem; }
@supports (-moz-appearance:none) {
header svg text:last-child { transform: scale(.993, 1); } }
header nav {
display: flex;
flex-direction: column;
font-variant: small-caps;
justify-content: space-evenly; }
header nav h1 {
color: var(--secondary-color);
margin: 0; }
section { margin-top: 1rem; }
#banner { text-align: center; }
#player {
flex-direction: row;
align-items: center; }
#player p { text-indent: 1rem; }
#player img,
button#radio-play {
filter: drop-shadow(0px 0px 4px var(--text-color));
height: 1rem;
padding: 0 .7rem; }
button#radio-play {
background-image: url(/assets/img/play.svg);
height: 3rem;
min-width: 3rem;
width: 3rem; }
input#radio-volume {
accent-color: var(--primary-color);
direction: rtl;
height: 4rem;
margin-left: .5rem;
writing-mode: vertical-lr; }
#player div:first-child {
display: none;
flex-direction: row;
align-items: center; }
#last-songs {
margin: 0 auto;
min-width: 80%;
width: 80%; }
#last-songs :is(thead tr, tbody tr) {
display: grid;
gap: .5rem;
grid-template-columns: 3rem 3rem 1fr; }
#last-songs thead tr { font-weight: bold; }
footer {
font-size: .8rem;
text-align: center;
padding: 1rem 0; }
@media screen and (max-width: 640px) {
header {
align-items: center;
flex-direction: column; }
header svg { width: 100%; }
#player { flex-direction: column; } }