eorzea-songbook/static/style.css
2023-06-18 16:50:33 +10:00

409 lines
6.4 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;
margin: 0;
padding: 1rem;
column-gap: 1rem;
max-height: fit-content;
}
.top-buttons a{
flex: auto;
display: flex;
list-style: none;
justify-content: center;
align-items: center;
position: relative;
}
.top-buttons a:nth-child(2){
flex: none;
}
.top-buttons a::before{
content: "";
position: absolute;
bottom: 0;
right: 0;
border-style: outset;
border-color: var(--light-border);
border-radius: 1rem;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
}
.top-buttons li{
vertical-align: center;
}
.top-buttons img{
display: block;
}
.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;
}
h3{
margin: 0;
}
a{
text-decoration: none;
}
.album-list{
display: flex;
flex-direction: column;
}
.category-list{
display: flex;
flex-wrap: wrap;
align-content: flex-start;
flex-basis: 51%;
}
.album-info{
display: flex;
align-items: baseline;
/* border-style: solid;
border-top: 0; border-left: 0; border-right: 0; */
margin: 1rem;
margin-bottom: 0.5rem;
background: var(--light-box);
position: sticky;
top: 0px;
gap: 1rem;
}
.sort-box h2{
color: black;
}
.sort-box.album{
margin-bottom: 1rem;
}
.sort-box.category{
gap: 1rem;
margin-left: auto; margin-right: auto;
width: 24rem;
margin-bottom: 1rem;
}
.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;
border-radius: 1rem 0% 0% 1rem;
background: linear-gradient(90deg, var(--light-box) 90%, rgba(255, 255, 255, 0) 100%);
}
.entry-box.song{
margin-top: 0.5rem; margin-bottom: 0.5rem; margin-left: 1rem; margin-right: 1rem;
}
.entry-box.motif{
margin: 1rem;
margin-bottom: 0;
justify-content: center;
align-items: baseline;
}
.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.empty{
margin-top: 0; margin-bottom: 0;
background: none;
}
.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: 4rem;
visibility: hidden;
margin-right: auto;
}
.motif-name{
text-align: center;
}
.clip-count{
color: black;
flex-wrap: nowrap;
display: inline;
align-self: center;
text-align: right;
min-width: 1.5rem;
margin-right: 1rem;
}
.count-icon{
width: 1rem; height: 1rem;
margin-left: auto; margin-right: 0.2rem;
display: block;
align-self: center;
}
.sort-box.album label{
cursor: pointer;
}
.collapse{
display: none;
}
.sort-list{
visibility: collapse;
}
.collapse:checked ~ .sort-list{
visibility: visible;
}
.title-box{
margin: 1rem;
border-style: solid;
border-color: var(--light-box);
background: var(--light-box);
display: flex;
align-items: center;
}
.title-box img{
vertical-align: bottom;
}
.title-box h1{
margin-left: .5rem;
max-width: 65%;
}
.title-jp{
margin-left: 2rem;
max-width: 65%;
}
.title-album{
margin-left: auto;
min-width: 2rem;
}
.track-info{
display: flex;
flex-wrap: wrap;
justify-content: center;
row-gap: 1rem;
}
.track-info li{
list-style: none;
}
.songpage-artist{
display: flex;
flex-direction: column;
width: 23rem;
}
.songpage-artist ul{
gap: 0.5rem;
}
.songpage-artist h2{
text-align: center;
margin-bottom: 1rem;
}
.songpage-album{
display: flex;
flex-direction: column;
width: 23rem;
}
.songpage-album ul{
gap: 0.5rem;
}
.songpage-album h2{
text-align: center;
margin-bottom: 1rem;
}
.entrypage-connections{
display: flex;
flex-direction: column;
width: 100%;
justify-content: center;
}
.entrypage-connections h2{
text-align: center;
margin-bottom: 1rem;
}
.entrypage-clip{
margin-bottom: 1rem;
display: flex;
flex-wrap: wrap-reverse;
column-gap: 2rem;
justify-content: center;
align-items: center;
}
.clip-pointer{
width: 12rem;
white-space: nowrap;
text-align: center;
}