dumb/static/style.css

423 lines
6.2 KiB
CSS
Raw Normal View History

/* inter-regular - cyrillic_greek_latin_vietnamese */
2022-06-30 21:32:56 +01:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Inter';
font-style: normal;
font-weight: 400;
src: url('/static/fonts/inter-v12-cyrillic_greek_latin_vietnamese-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
url('/static/fonts/inter-v12-cyrillic_greek_latin_vietnamese-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* inter-500 - cyrillic_greek_latin_vietnamese */
2022-06-30 21:32:56 +01:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Inter';
font-style: normal;
font-weight: 500;
src: url('/static/fonts/inter-v12-cyrillic_greek_latin_vietnamese-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
url('/static/fonts/inter-v12-cyrillic_greek_latin_vietnamese-500.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
2022-06-30 21:32:56 +01:00
}
/* inter-700 - cyrillic_greek_latin_vietnamese */
2022-06-30 21:32:56 +01:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Inter';
font-style: normal;
font-weight: 700;
src: url('/static/fonts/inter-v12-cyrillic_greek_latin_vietnamese-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
url('/static/fonts/inter-v12-cyrillic_greek_latin_vietnamese-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
2022-06-30 21:32:56 +01:00
}
* {
margin: 0;
padding: 0;
}
html {
font-size: 62.5%;
}
body {
font-size: 1.5rem;
font-family: inter;
background-color: #f9f9f9;
}
#lyrics {
color: #171717;
line-height: 2.5rem;
2023-02-21 23:14:04 +03:00
flex-basis: 0;
flex-shrink: 0;
flex-grow: 1;
2022-06-30 21:32:56 +01:00
}
#lyrics a {
color: inherit;
}
2023-09-13 18:32:35 +02:00
#lyrics a, .annotation {
2022-06-30 21:32:56 +01:00
background-color: #ddd;
color: inherit;
}
#lyrics a:hover {
background-color: #ccc;
}
nav {
background-color: #ffcd38;
display: flex;
align-items: center;
justify-content: center;
2022-06-30 21:32:56 +01:00
padding: 0.5rem;
}
nav img {
width: 50px;
2022-06-30 21:32:56 +01:00
}
a {
text-decoration: none;
}
#metadata {
display: flex;
flex-direction: column;
2024-03-04 17:41:01 +01:00
gap: 2rem;
flex-basis: 0;
2022-06-30 21:32:56 +01:00
}
#metadata h1 {
font-size: 2rem;
2022-06-30 21:32:56 +01:00
color: #171717;
}
#metadata h2 {
font-size: 1.4rem;
color: #1e1e1e;
2022-06-30 21:32:56 +01:00
font-weight: 500;
}
2024-03-04 17:41:01 +01:00
#metadata-info {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
#album-artwork {
2024-03-04 17:41:01 +01:00
width: 24rem;
2022-06-30 21:32:56 +01:00
border-radius: 3px;
box-shadow: 0 1px 1px #ddd;
}
#container {
2024-03-04 17:41:01 +01:00
display: grid;
padding: 5rem 0;
2024-03-05 14:44:16 +01:00
grid-template-columns: 24rem calc(1024px - 56rem) 24rem;
2024-03-04 19:18:32 +01:00
width: 1024px;
margin: 0 auto;
2024-03-04 17:41:01 +01:00
gap: 4rem;
2024-03-04 19:18:32 +01:00
flex: 1;
}
#credits {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
#title {
font-size: 2rem;
color: #1b1a17;
}
#credits summary {
font-size: 1.4rem;
cursor: pointer;
color: #1e1e1e;
}
2024-03-04 17:41:01 +01:00
#lyrics-album-container {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
#album-tracklist{
display: flex;
flex-direction: column;
gap: 1rem;
flex-basis: 0;
flex-shrink: 0;
flex-grow: 1;
}
#credits p {
font-size: 1.3rem;
padding: 0.5rem;
color: #171717;
}
#info {
display: flex;
flex-direction: column;
gap: 2rem;
flex-basis: 0;
}
#about {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
#about p {
font-size: 1.4rem;
color: #171717;
line-height: 1.8rem;
cursor: pointer;
}
2023-09-13 18:32:35 +02:00
.annotation {
padding: 1rem;
}
.annotation img {
max-width: 100%;
2023-12-09 16:26:33 +01:00
height: auto;
2023-09-13 18:32:35 +02:00
}
.annotation ul {
padding-left: 1em;
2023-09-09 18:11:00 +02:00
}
.hidden {
display: none;
2022-06-30 21:32:56 +01:00
}
#home {
display: flex;
flex-direction: column;
gap: 1.5rem;
align-items: center;
padding: 2rem;
flex-grow: 1;
}
#home div {
text-align: center;
}
#home h1 {
font-weight: 600;
font-size: 2.2rem;
color: #222;
}
#home p {
color: #333;
}
#home code {
background-color: #eee;
padding: 0.3rem 1rem;
border-radius: 0.5rem;
color: #333;
}
@media screen and (max-width: 900px) {
#container {
padding: 3rem 2rem;
2024-03-04 17:41:01 +01:00
display: flex;
flex-direction: column;
gap: 3rem;
2024-03-04 19:18:32 +01:00
width: calc(100vw - 4rem);;
}
#metadata {
align-items: center;
}
}
footer {
text-align: center;
background-color: #ffcd38;
padding: 1rem;
}
footer a {
font-weight: 500;
color: #1b1a17;
transition: 0.3s ease text-decoration;
font-size: 1.4rem;
text-transform: uppercase;
}
footer a:hover {
text-decoration: underline;
}
#app {
display: flex;
flex-direction: column;
min-height: 100vh;
}
#error {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
justify-content: center;
padding: 2rem;
flex-grow: 1;
}
#error h1 {
font-size: 5rem;
color: #111;
}
#error p {
text-transform: uppercase;
font-size: 1.6rem;
color: #222;
text-align: center;
}
2023-03-09 17:11:37 +01:00
.main {
flex-grow: 1;
}
#search-page {
display: flex;
flex-direction: column;
gap: 3rem;
padding: 2rem 1rem;
}
@media screen and (min-width: 800px) {
#search-page {
width: 80rem;
margin: 0 auto;
}
}
#search-input {
width: 100%;
padding: 1rem 2rem;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid #ddd;
color: #222;
}
#search-results {
display: flex;
flex-direction: column;
gap: 1rem;
}
#search-results h1 {
text-align:center;
color: #111;
font-size: 2.5rem;
}
#search-item {
display: flex;
height: 8rem;
border: 1px solid #eee;
border-radius: 5px;
gap: 1rem;
padding: 1rem;
box-shadow: 0 1px 1px #ddd;
}
#search-item h2 {
font-size: 1.8rem;
color: #222;
}
#search-item span {
font-size: 1.3rem;
color: #333;
}
#search-item img {
width: 8rem;
border-radius: 5px;
}
/* dark mode */
@media (prefers-color-scheme: dark) {
body {
background-color: #181d31;
}
nav,
footer {
background-color: #fec260;
}
#lyrics {
color: #ccc;
}
2023-09-13 18:32:35 +02:00
#lyrics a, .annotation {
2023-09-09 15:42:53 +02:00
background-color: #272d44;
color: inherit;
}
2023-09-13 18:32:35 +02:00
2023-09-09 15:42:53 +02:00
#lyrics a:hover {
background-color: #32384f;
}
#metadata h1 {
color: #ddd;
}
#metadata h2,
#credits p {
color: #eee;
}
#title {
color: #ddd;
}
#about p,
#credits summary {
color: #ccc;
}
#home h1, #error h1 {
color: #eee;
}
#home p, #error p{
color: #ddd;
}
2023-03-09 17:11:37 +01:00
#search-input {
background-color: #ddd;
}
#search-page h1 {
color: #eee;
}
#search-item {
border: 1px solid #888;
}
#search-item h2 {
color: #ddd;
}
#search-item span {
color: #bbb;
}
}