deemixer/public/css/style.css
2020-04-11 15:43:59 +02:00

302 lines
5.5 KiB
CSS

:root {
--main-background: #ffffff;
--secondary-background: #eeeeee;
--main-text: #333333;
--main-scroll: #555;
--panels-background: #222324;
--panels-text: #ffffff;
--panels-scroll: #2a2c2c;
--accent-color: #0A84FF;
--tag-background: #0062c4;
--tag-text: #ffffff;
}
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);}
/* Sidebar section selector */
aside#sidebar{
background-color: var(--panels-background);
width: 48px;
height: 100%;
position: absolute;
color: var(--panels-text);
}
aside#sidebar > .side_icon{
font-size: 24px;
margin: 12px;
}
.side_icon.active{
color: var(--accent-color);
}
/* 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);
width: 100%;
height: 100%;
min-width: 10px;
}
/* Center section */
#search > input#searchbar{
width: calc(100% - 32px);
height: 32px;
padding: 0px 8px;
margin: 8px;
border: 0px;
border-radius: 6px;
background-color: var(--secondary-background);
color: var(--primary-text)
}
#content{
background-color: var(--main-background);
width: calc(100% - 10px);
height: calc(100% - 48px);
overflow-y: scroll;
overflow-x: hidden;
padding-left: 10px
}
#content::-webkit-scrollbar {
width: 10px;
}
#content::-webkit-scrollbar-track {
background: var(--main-background);
}
#content::-webkit-scrollbar-thumb {
background: var(--main-scroll);
border-radius: 4px;
width: 6px;
padding: 0px 2px;
}
#container {
margin: 0 auto;
max-width: 1280px;
width: 90%;
}
@media only screen and (min-width: 601px) {
#container {
width: 85%;
}
}
@media only screen and (min-width: 993px) {
#container {
width: 70%;
}
}
@media only screen and (max-width: 600px){
#container {
width: 100%;
}
}
/* Tabs */
.search_tabcontent, .main_tabcontent {
display: none;
}
/* Main Search Tab */
#main_search > .search_section{
float: none;
}
#search_tab .tab{
margin-bottom: 24px;
}
.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;
}
.top_result > .info_box > p, .release > p {
margin: 0px;
margin-bottom: 4px;
}
.secondary-text {
opacity: 0.75;
font-size: 14px;
}
.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;
}
.release{
display: inline-block;
width: 156px;
}
.release > img{
width: 156px;
height: 156px;
}
.track_row > td > img{
width: 32px;
height: 32px;
}
/* Download tab section */
div#download_tab_container{
background-color: var(--panels-background);
color: var(--panels-text);
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;
}
#download_list{
padding: 0px 8px;
height: calc(100% - 32px);
overflow-y: scroll;
}
#download_list::-webkit-scrollbar {
width: 10px;
}
#download_list::-webkit-scrollbar-track {
background: var(--panels-background);
}
#download_list::-webkit-scrollbar-thumb {
background: var(--panels-scroll);
border-radius: 4px;
width: 6px;
padding: 0px 2px;
}
#download_list > .download_object{
padding-bottom: 8px;
}
#download_list > .download_object .download_info{
display: flex;
align-items: center;
}
#download_list > .download_object .download_info img{
width: 75px;
height: 75px;
display: inline-block;
}
#download_list > .download_object .download_info .download_line{
display: block;
}
#download_list > .download_object .download_info .download_slim_separator{
display: none;
}
#download_list > .download_object .download_info_data{
width: calc(100% - 83px);
padding-left: 8px;
}
#download_list > .download_object .download_info_status{
width: 80px;
}
#download_list.slim > .download_object .download_info img{
display: none;
}
#download_list.slim > .download_object .download_info .download_line{
display: inline-block;
}
#download_list.slim > .download_object .download_info .download_slim_separator{
display: inline-block;
}
#download_list.slim > .download_object .download_info_data{
width: auto;
display: inline-block;
padding-left: 0px;
}
#download_list.slim > .download_object .download_info_status{
width: auto;
display: inline-block;
float: right;
}
#download_list.slim > .download_object .download_info{
display: block;
}
.download_object > .download_bar{
display: flex;
align-items: center;
height: 24px;
}
.download_object > .download_bar > .progress{
margin: 0px;
}
/* Global stuff */
img.rounded {
border-radius: 5px;
}
img.circle {
border-radius: 50%;
}
.coverart{
background-color: var(--secondary-background);
}
span.tag {
background-color: var(--tag-background);
border-radius: 2px;
color: var(--tag-text);
display: inline-block;
font-size: 10px;
padding: 3px 6px;
}
.tracks_table{
width: 100%;
}
.clickable{
cursor: pointer;
}
.toastify{
display: flex;
align-items:center;
box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(0, 0, 0, 0.3);
background: #333333;
}