elektrofoni/style.css

97 lines
1.5 KiB
CSS

:root {
--background-color: #abcdef;
--text-color: #123456;
}
body {
background-color: var(--background-color);
color: var(--text-color);
overflow: hidden;
}
main {
margin: 10px;
overflow: hidden;
}
#authed-view-wrapper {
height: calc(100vh - 2 * 10px);
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
gap: 10px;
}
#authed-view-library {
flex: 1 1;
overflow-y: auto;
}
#library-top-nav {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: stretch;
}
#library-top-nav button {
display: block;
width: 100%;
font-size: 2rem;
}
#search-bar {
position: absolute;
bottom: 100px;
left: 50%;
transform: translateX(-50%);
width: calc(100vw - 20px);
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: stretch;
gap: 10px;
}
#search-bar-input-wrapper {
flex: 1 1;
}
#search-bar-input-wrapper input {
width: 100%;
}
#artists-view .library-list,
#albums-view .library-list,
#single-artist-view .library-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
grid-auto-flow: dense;
gap: 10px;
}
.library-list-shuffle-all {
grid-column: 1 / -1;
}
.library-item-thumbnail {
aspect-ratio: 1 / 1;
}
.library-item-expanded {
}
.library-item-expanded-contents {
grid-column: 1 / -1;
}
.library-item img {
}
.library-item h3 {
overflow-wrap: break-word;
}