deemix-webui/public/css/style.css

215 lines
3.6 KiB
CSS
Raw Normal View History

:root {
--main-background: #ffffff;
--secondary-background: #eeeeee;
--main-text: #333333;
--main-scroll: #555;
--panels-background: #222324;
--panels-text: #ffffff;
--accent-color: #0A84FF;
--tag-background: #0062c4;
--tag-text: #ffffff;
}
2020-04-08 00:19:27 +02:00
html{height: 100%;}
body{margin: 0px;width: 100%;height: 100%;font-family: sans-serif; overflow: hidden; background-color: var(--main-background); color: var(--main-text);}
2020-04-08 00:19:27 +02:00
/* Sidebar section selector */
aside#sidebar{
background-color: var(--panels-background);
2020-04-08 00:19:27 +02:00
width: 48px;
height: 100%;
position: absolute;
color: var(--panels-text);
2020-04-08 00:19:27 +02:00
}
aside#sidebar > .side_icon{
font-size: 24px;
margin: 12px;
}
2020-04-09 12:50:05 +02:00
.side_icon.active{
color: var(--accent-color);
2020-04-09 12:50:05 +02:00
}
2020-04-08 00:19:27 +02:00
/* Rest of the app */
main#main_content{
margin-left: 48px;
width: calc(100% - 48px);
height: 100%;
display: flex;
}
/* Middle section */
div#middle_section {
background-color: var(--main-background);
2020-04-08 00:19:27 +02:00
width: 100%;
height: 100%;
min-width: 10px;
}
/* Center section */
#search > input#searchbar{
2020-04-08 18:43:35 +02:00
width: calc(100% - 32px);
2020-04-08 00:19:27 +02:00
height: 32px;
padding: 0px 8px;
margin: 8px;
border: 0px;
border-radius: 6px;
background-color: var(--secondary-background);
2020-04-08 00:19:27 +02:00
}
#content{
background-color: var(--main-background);
2020-04-08 23:52:08 +02:00
width: calc(100% - 10px);
2020-04-08 00:19:27 +02:00
height: calc(100% - 48px);
overflow-y: scroll;
2020-04-08 23:52:08 +02:00
overflow-x: hidden;
2020-04-08 18:43:35 +02:00
padding-left: 10px
2020-04-08 00:19:27 +02:00
}
#content::-webkit-scrollbar {
width: 10px;
}
#content::-webkit-scrollbar-track {
background: var(--main-background);
2020-04-08 00:19:27 +02:00
}
#content::-webkit-scrollbar-thumb {
background: var(--main-scroll);
2020-04-08 00:19:27 +02:00
border-radius: 4px;
width: 6px;
padding: 0px 2px;
}
2020-04-09 14:27:06 +02:00
#container {
margin: 0 auto;
max-width: 1280px;
width: 90%;
2020-04-08 18:43:35 +02:00
}
2020-04-09 14:27:06 +02:00
@media only screen and (min-width: 601px) {
2020-04-08 18:43:35 +02:00
#container {
2020-04-09 14:27:06 +02:00
width: 85%;
2020-04-08 18:43:35 +02:00
}
}
2020-04-09 14:27:06 +02:00
@media only screen and (min-width: 993px) {
2020-04-08 18:43:35 +02:00
#container {
2020-04-09 14:27:06 +02:00
width: 70%;
2020-04-08 18:43:35 +02:00
}
}
2020-04-09 14:27:06 +02:00
@media only screen and (max-width: 600px){
#container {
width: 100%;
}
}
2020-04-08 18:43:35 +02:00
2020-04-09 12:50:05 +02:00
/* Tabs */
.search_tabcontent, .main_tabcontent {
2020-04-09 12:24:49 +02:00
display: none;
}
2020-04-08 18:43:35 +02:00
/* Main Search Tab */
#main_search > .search_section{
float: none;
}
#search_tab .tab{
margin-bottom: 24px;
}
2020-04-08 18:43:35 +02:00
.top_result {
display: flex;
align-items:center;
}
.top_result > img {
display: inline-block;
width: 156px;
height: 156px;
}
.top_result > .info_box {
display: inline-block;
padding-left: 24px;
}
2020-04-08 23:52:08 +02:00
.top_result > .info_box > p, .release > p {
2020-04-08 18:43:35 +02:00
margin: 0px;
margin-bottom: 4px;
}
2020-04-09 00:05:57 +02:00
.top_result > .info_box > p.subtitle, .release > p.subtitle {
2020-04-08 18:43:35 +02:00
opacity: 0.75;
2020-04-09 00:05:57 +02:00
font-size: 14px;
2020-04-08 00:19:27 +02:00
}
2020-04-08 23:52:08 +02:00
.release_grid{
display: grid;
grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
grid-gap: 1rem;
}
.release_grid.firstrow_only{
grid-template-rows: 1fr;
grid-auto-rows: 0;
grid-row-gap: 0px;
overflow-y: hidden;
2020-04-08 23:52:08 +02:00
}
.release{
display: inline-block;
width: 156px;
}
2020-04-08 00:19:27 +02:00
/* Download tab section */
div#download_tab_container{
background-color: var(--panels-background);
color: var(--panels-text);
2020-04-08 00:19:27 +02:00
height: 100%;
width: auto;
display: flex;
}
div#download_tab_bar{
height: 100%;
width: 32px;
}
div#download_tab_bar > label{
writing-mode: vertical-rl;
line-height: 32px;
padding-top: 8px;
}
div#download_tab{
height: 100%;
width: 300px;
display: none;
}
.download_bar_icon{
font-size: 24px;
margin: 4px;
}
2020-04-09 12:30:02 +02:00
.release > img{
width: 156px;
height: 156px;
}
.track_row > td > img{
width: 32px;
height: 32px;
}
2020-04-08 18:43:35 +02:00
/* Global stuff */
img.rounded {
2020-04-08 23:52:08 +02:00
border-radius: 5px;
}
img.circle {
2020-04-08 18:43:35 +02:00
border-radius: 50%;
}
2020-04-09 12:24:49 +02:00
.coverart{
background-color: var(--secondary-background);
2020-04-09 12:24:49 +02:00
}
2020-04-08 18:43:35 +02:00
span.tag {
background-color: var(--tag-background);
2020-04-08 18:43:35 +02:00
border-radius: 2px;
color: var(--tag-text);
2020-04-08 18:43:35 +02:00
display: inline-block;
font-size: 10px;
padding: 3px 6px;
}
2020-04-08 23:52:08 +02:00
.tracks_table{
width: 100%;
}