deemix-webui/public/css/style.css

415 lines
7.7 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;
2020-04-10 23:21:09 +02:00
--panels-scroll: #2a2c2c;
--accent-color: #0A84FF;
2020-04-12 22:05:07 +02:00
--accent-text: #ffffff;
--tag-background: #0062c4;
--tag-text: #ffffff;
2020-04-13 12:06:17 +02:00
--toast-background: #000000dd;
--toast-secondary: #ffffff22;
--toast-text: #ffffffde;
}
2020-04-08 00:19:27 +02:00
html{height: 100%;}
2020-04-12 22:05:07 +02:00
body{margin: 0px;width: 100%;height: 100%;font-family: 'Open Sans'; 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;
2020-04-12 22:05:07 +02:00
padding: 12px;
2020-04-08 00:19:27 +02:00
}
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-10 18:00:42 +02:00
color: var(--primary-text)
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-13 00:14:34 +02:00
/* Settings */
#open_login_prompt{
margin: 8px 0px;
}
#settings_btn_copyArl{
min-width: 24px;
width: 48px;
margin: 0px 0px 0px 8px;
padding: 0px 4px;
}
#logged_in_info{
display: none;
margin-bottom: 12px;
}
2020-04-08 18:43:35 +02:00
/* Main Search Tab */
2020-04-12 22:05:07 +02:00
.search_tablinks{
background-color: var(--main-background);
color: var(--main-text);
}
.search_tablinks.active{
background-color: var(--accent-color);
color: var(--accent-text);
}
2020-04-08 18:43:35 +02:00
#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 > .cover_container {
2020-04-08 18:43:35 +02:00
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-10 18:00:42 +02:00
.secondary-text {
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;
}
.release > .cover_container{
2020-04-10 18:00:42 +02:00
width: 156px;
height: 156px;
}
.track_row > td > img{
width: 32px;
height: 32px;
}
2020-04-08 23:52:08 +02:00
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-10 18:00:42 +02:00
#download_list{
2020-04-10 23:21:09 +02:00
padding: 0px 8px;
height: calc(100% - 32px);
overflow-y: scroll;
}
#download_list::-webkit-scrollbar {
width: 10px;
2020-04-09 12:30:02 +02:00
}
2020-04-10 23:21:09 +02:00
#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;
}
2020-04-10 18:00:42 +02:00
#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;
2020-04-13 12:06:17 +02:00
flex-shrink: 0;
2020-04-10 18:00:42 +02:00
}
#download_list > .download_object .download_info .download_line{
display: block;
2020-04-09 12:30:02 +02:00
}
2020-04-10 18:00:42 +02:00
#download_list > .download_object .download_info .download_slim_separator{
display: none;
}
#download_list > .download_object .download_info_data{
2020-04-13 12:06:17 +02:00
width: 100%;
2020-04-10 18:00:42 +02:00
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;
}
2020-04-11 15:43:59 +02:00
.download_object > .download_bar{
display: flex;
align-items: center;
height: 24px;
}
.download_object > .download_bar > .progress{
margin: 0px;
}
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
}
.cover_container{
position: relative;
}
.cover_container .coverart {
opacity: 1;
display: block;
width: 100%;
height: auto;
transition: .5s ease;
backface-visibility: hidden;
}
.cover_container .download_overlay {
transition: .5s ease;
opacity: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
text-align: center;
}
.cover_container .download_overlay i{
background-color: #000000;
color: white;
border-radius: 50%;
padding: 10px;
cursor: pointer;
}
.cover_container:hover .coverart {
opacity: 0.75
}
.cover_container:hover .download_overlay {
opacity: 1;
}
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%;
2020-04-13 12:06:17 +02:00
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
}
.tracks_table td{
padding: 4px 12px 4px 5px;
vertical-align: middle;
border: 0px black solid;
}
td img {
vertical-align: middle;
}
.tracks_table tr:nth-child(even){
background-color: var(--secondary-background);
border: 0px black solid;
}
p, .tracks_table td.breakline{
word-break: break-word;
2020-04-08 23:52:08 +02:00
}
2020-04-10 18:00:42 +02:00
.clickable{
cursor: pointer;
}
2020-04-11 12:51:22 +02:00
.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);
2020-04-13 12:06:17 +02:00
background: var(--toast-background);
color: var(--toast-text);
2020-04-11 12:51:22 +02:00
}
2020-04-13 00:14:34 +02:00
.inline-flex{
display: flex;
align-items:center;
}
2020-04-12 22:05:07 +02:00
button{
font-family : inherit;
font-weight: 600;
font-size: 14px;
padding: 0px 8px;
margin-right: 8px;
height: 36px;
background-color: var(--accent-color);
border: 0px solid black;
border-radius: 4px;
min-width: 64px;
text-transform: uppercase;
color: var(--accent-text);
}
2020-04-13 00:14:34 +02:00
button[disabled]{
background-color: var(--secondary-background);
color: var(--main-text);
opacity: 0.75;
}
2020-04-13 21:17:50 +02:00
input[type="text"], input[type="password"], input[type="number"]{
2020-04-13 20:20:58 +02:00
width: 100%;
border: 0px solid black;
line-height: 36px;
padding: 0px 8px;
border-radius: 4px;
background-color: var(--secondary-background);
color: var(--primary-text);
margin-bottom: 8px;
}