eorzea-songbook/static/style.css

352 lines
5.6 KiB
CSS

/* body{
max-width:50rem;margin-left:auto;margin-right:auto;
} */
:root{
--light-block: lch(90% 25 85);
--light-box: lch(100% 0 90);
--light-back: linear-gradient(90deg, lch(95% 20 260), white 25%, white 75%, lch(95% 20 260));
--light-border: lch(80% 45 85);
}
body{
margin: 0;
background: var(--light-back);
display: flex;
flex-direction: column;
flex-shrink: 0;
height: 100vh;
}
header{
background-color: var(--light-block);
margin: 0;
border-style: outset;
border-top: 0; border-left: 0; border-right: 0;
border-color: var(--light-border);
}
footer{
background-color: var(--light-block);
border-style: outset;
border-bottom: 0; border-left: 0; border-right: 0;
border-color: var(--light-border);
width: 100%;
padding: 0;
margin-top: auto;
}
.top-buttons{
display: flex;
padding-left: 0;
margin: 0;
padding: 2rem;
column-gap: 1rem;
}
.top-buttons li{
flex: auto;
border-style: outset;
border-color: var(--light-border);
list-style: none;
text-align: center;
}
.top-buttons li:nth-child(2){
flex: none;
}
.search-bar{
max-width: 50rem;
width: 100%;
height: 2rem;
margin-left: auto;
margin-right: auto;
background-color: var(--light-block);
border-style: outset;
border-top: 0;
border-color: var(--light-border);
display: flex;
flex-shrink: 0;
flex-direction: column;
justify-content: center;
align-items: center;
}
.search-items{
display: inline-block;
position: relative;
width: 80%;
}
.search-items input{
all: unset;
background-color: white;
width: 100%;
height: 1rem;
}
#search-results{
display: flex;
flex-direction: column;
margin: auto;
position: absolute;
width: 100%;
}
#search-results h2{
visibility: collapse;
}
#search-results ul{
background-color: white;
padding-left: 0;
margin-top: 0;
list-style: none;
z-index: 1;
}
main{
background-color: var(--light-block);
max-width: 50rem;
width: 100%;
margin-left: auto;
margin-right: auto;
}
main ul{
margin: 0;
display: flex;
flex-direction: column;
padding-left: 0;
}
h1{
margin: 0;
}
h2{
margin: 0;
}
a{
text-decoration: none;
}
.album-list{
display: flex;
flex-direction: column;
gap: 1rem;
}
.category-list{
display: flex;
flex-wrap: wrap;
align-content: flex-start;
flex-basis: 51%;
row-gap: 1rem;
}
.album-info{
display: flex;
align-items: baseline;
border-style: solid;
border-color: var(--light-box);
margin: 1rem;
margin-bottom: 0.5rem;
background: var(--light-box);
position: sticky;
top: 0px;
gap: 1rem;
}
.sort-box h2{
color: black;
}
.sort-box.album{
gap: 1rem;
}
.sort-box.category{
gap: 1rem;
margin-left: auto; margin-right: auto;
width: 24rem;
}
.sort-box.category h2{
margin: 1rem;
margin-bottom: 0px;
border-style: solid;
border-color: var(--light-box);
background: var(--light-box);
}
.entry-box{
list-style: none;
min-height: 1.5rem;
display: flex;
}
.entry-box.song{
margin-top: 0.5rem; margin-bottom: 0.5rem; margin-left: 4rem; margin-right: 1rem;
}
.entry-box.motif{
margin: 1rem;
margin-bottom: 0;
background: var(--light-box);
justify-content: center;
}
.entry-box.song li{
display: flex;
flex: auto;
flex-wrap: nowrap;
justify-content: left;
column-gap: 1rem;
align-content: bottom;
white-space: nowrap;
overflow: hidden;
height: 1.5rem;
}
.entry-box.song span{
align-self: center;
}
.entry-box.song.full{
background: var(--light-box);
}
.entry-box.song.empty{
margin-top: 0; margin-bottom: 0;
}
.entry-box.song.full li span{
color: black;
}
.entry-box.song.empty li span{
color: gray;
}
.entry-box.motif span{
color: black;
vertical-align: middle;
}
.entry-box.motif::before{
content: "b";
min-width: 2rem;
visibility: hidden;
margin-right: auto;
}
.motif-name{
text-align: center;
}
.clip-count{
color: black;
flex-wrap: nowrap;
display: inline;
border-left-style: solid;
align-self: center;
margin-left: auto;
min-width: 2rem;
text-align: right;
}
.sort-box.album label{
cursor: pointer;
}
.collapse{
display: none;
}
.sort-list{
visibility: collapse;
}
.collapse:checked ~ .sort-list{
visibility: visible;
}
.title-box{
margin: 1rem;
margin-bottom: 0px;
border-style: solid;
border-color: var(--light-box);
background: var(--light-box);
display: flex;
align-items: baseline;
}
.title-box h1{
padding: 0;
}
.track-info{
margin-top: 1rem;
display: flex;
flex-wrap: wrap;
row-gap: 1rem;
}
.track-info li{
list-style: none;
}
.songpage-artist{
display: flex;
flex-direction: column;
width: 23rem;
margin-left: 2rem; margin-right: auto;
}
.songpage-album{
display: flex;
flex-direction: column;
width: 23rem;
margin-left: 2rem; margin-right: auto;
}
.songpage-motifs{
display: flex;
flex-direction: column;
width: 100%;
justify-content: center;
}
.songpage-motifs h2{
text-align: center;
}
.songpage-clip{
margin-top: 1rem;
display: flex;
flex-wrap: wrap-reverse;
column-gap: 2rem;
justify-content: center;
align-items: center;
flex-shrink: 0;
flex-grow: 1;
}
.songpage-clip audio{
}
.songpage-clip::before{
/* content: "";
visibility: hidden;
width: 15%; */
}
.motif-pointer{
width: 12rem;
white-space: nowrap;
text-align: center;
}