finished writing scss declarations with SASS synthax. Now the repo is a bit lighter

This commit is contained in:
Roberto Tonino
2020-06-22 21:07:51 +02:00
parent 85e0525a1b
commit 657f02c7d5
21 changed files with 678 additions and 699 deletions

View File

@@ -1,4 +1,8 @@
.charts_grid .release .coverart {
width: 156px;
height: 156px;
.charts_grid {
.release {
.coverart {
width: 156px;
height: 156px;
}
}
}

View File

@@ -1,23 +1,64 @@
#download_tab_container {
/* width: 300px; */
height: 100%;
background-color: var(--panels-background);
color: var(--panels-text);
display: block;
flex-direction: column;
&.tab_hidden {
width: 32px;
#toggle_download_tab {
margin-left: 4px;
&::before {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
content: 'chevron_left';
}
}
#download_tab_drag_handler {
display: none;
}
#queue_buttons {
opacity: 0;
visibility: hidden;
}
#download_list {
display: none;
}
#download_tab_label {
opacity: 1;
visibility: visible;
}
&::after {
content: 'downloads';
display: flex;
align-items: center;
text-transform: capitalize;
writing-mode: vertical-rl;
line-height: 32px;
}
}
}
#toggle_download_tab {
width: 25px;
height: 25px;
margin-left: 20px;
}
#toggle_download_tab::before {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
content: 'chevron_right';
&::before {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
content: 'chevron_right';
}
}
.download_bar_icon {
@@ -31,167 +72,127 @@
height: calc(100% - 32px);
padding: 0px 8px 0px 28px;
overflow-y: scroll;
> .download_object {
padding-bottom: 8px;
.download_info {
display: flex;
align-items: center;
img {
width: 75px;
height: 75px;
display: inline-block;
flex-shrink: 0;
}
.download_line {
display: block;
}
.download_slim_separator {
display: none;
}
}
.download_info_data {
width: 100%;
margin-left: 8px;
}
.download_info_status {
margin-left: 8px;
width: 80px;
}
}
&.slim {
> .download_object {
.download_info {
display: block;
img {
display: none;
}
.download_line {
display: inline-block;
}
.download_slim_separator {
display: inline-block;
}
}
.download_info_data {
width: calc(80% - 16px);
display: inline-block;
padding-left: 0px;
}
.download_info_status {
width: 20%;
display: inline-block; // ignored due tu float
float: right;
}
}
}
&::-webkit-scrollbar {
width: 10px;
}
&::-webkit-scrollbar-track {
background: var(--panels-background);
}
&::-webkit-scrollbar-thumb {
background: var(--panels-scroll);
border-radius: 4px;
width: 6px;
padding: 0px 2px;
}
}
#download_list::-webkit-scrollbar {
width: 10px;
.download_object {
> .download_bar {
display: flex;
align-items: center;
height: 24px;
> .queue_icon {
cursor: default;
margin-left: 8px;
}
> .progress {
margin: 0px;
}
}
}
#download_list::-webkit-scrollbar-track {
background: var(--panels-background);
}
#download_tab_container {
#queue_buttons {
position: absolute;
top: 0;
right: 0;
opacity: 1;
visibility: visible;
transition: all 250ms ease-in-out;
}
#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;
flex-shrink: 0;
}
#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: 100%;
margin-left: 8px;
}
#download_list > .download_object .download_info_status {
margin-left: 8px;
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: calc(80% - 16px);
display: inline-block;
padding-left: 0px;
}
#download_list.slim > .download_object .download_info_status {
width: 20%;
display: inline-block;
float: right;
}
#download_list.slim > .download_object .download_info {
display: block;
}
.download_object > .download_bar > .queue_icon {
cursor: default;
margin-left: 8px;
}
.download_object > .download_bar {
display: flex;
align-items: center;
height: 24px;
}
.download_object > .download_bar > .progress {
margin: 0px;
}
#download_tab_container #queue_buttons {
position: absolute;
top: 0;
right: 0;
opacity: 1;
visibility: visible;
transition: all 250ms ease-in-out;
}
#download_tab_container #download_list {
/* width: 300px; */
}
#download_tab_container #download_tab_label {
opacity: 0;
visibility: hidden;
transition: all 250ms ease-in-out;
#download_tab_label {
opacity: 0;
visibility: hidden;
transition: all 250ms ease-in-out;
}
}
#download_tab_drag_handler {
width: 15px;
height: 100%;
position: absolute;
background-color: #333;
background-color: hsl(0, 0%, 20%);
cursor: ew-resize;
}
/* ===== Hidden tab styles ===== */
#download_tab_container.tab_hidden {
width: 32px;
}
#download_tab_container.tab_hidden #toggle_download_tab {
margin-left: 4px;
}
#download_tab_container.tab_hidden #download_tab_drag_handler {
display: none;
}
#download_tab_container.tab_hidden #toggle_download_tab::before {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
content: 'chevron_left';
}
#download_tab_container.tab_hidden::after {
content: 'downloads';
display: flex;
align-items: center;
text-transform: capitalize;
writing-mode: vertical-rl;
line-height: 32px;
}
#download_tab_container.tab_hidden #queue_buttons {
opacity: 0;
visibility: hidden;
}
#download_tab_container.tab_hidden #download_list {
display: none;
}
#download_tab_container.tab_hidden #download_tab_label {
/* display: inline; */
opacity: 1;
visibility: visible;
}

View File

@@ -1,7 +1,3 @@
.favorites_tablinks.active {
color: var(--accent-text);
}
.reload-button {
&.reload-button--inline {
display: inline-block;

View File

@@ -1,11 +1,20 @@
#main_search .search_section {
float: none;
padding-top: 20px;
padding-bottom: 20px;
}
#main_search {
.search_section {
float: none;
padding-top: 20px;
padding-bottom: 20px;
#main_search .search_section:not(:first-child) {
border-top: 1px solid var(--separator);
&:not(:first-child) {
border-top: 1px solid var(--separator);
}
}
.top_result_header {
display: block;
cursor: default;
font-size: 2rem;
text-align: center;
}
}
.search_header {
@@ -13,94 +22,83 @@
cursor: pointer;
font-size: 1.75rem;
margin-bottom: 25px;
}
.search_header:not(.top_result_header) {
transition: color 200ms ease-in-out;
}
&:not(.top_result_header) {
transition: color 200ms ease-in-out;
.search_header:not(.top_result_header):hover {
color: var(--accent-color);
}
/* Tab links */
.search_tablinks.active {
color: var(--foreground-inverted);
&:hover {
color: var(--accent-color);
}
}
}
/* Top Result */
#main_search .top_result_header {
display: block;
cursor: default;
font-size: 2rem;
text-align: center;
}
.top_result {
display: flex;
align-items: center;
flex-direction: column;
}
.top_result > .cover_container {
width: 156px;
height: 156px;
}
> .cover_container {
width: 156px;
height: 156px;
}
.top_result .info_box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 15px;
}
.info_box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 15px;
.top_result .info_box .primary-text,
.top_result .info_box .secondary-text {
font-size: 18px;
text-align: center;
}
.primary-text,
.secondary-text {
font-size: 18px;
text-align: center;
}
.top_result .info_box .primary-text {
margin-bottom: 5px;
}
.primary-text {
margin-bottom: 5px;
}
.top_result .info_box .secondary-text {
margin-bottom: 10px;
}
.secondary-text {
margin-bottom: 10px;
}
.top_result .info_box .tag {
width: 40px;
text-align: center;
.tag {
width: 40px;
text-align: center;
}
}
}
/* Releases */
.release .primary-text,
.release .secondary-text {
margin: 0px;
margin-bottom: 4px;
}
.release {
.primary-text,
.secondary-text {
margin: 0px;
margin-bottom: 4px;
}
.release .secondary-text {
opacity: 0.75;
font-size: 14px;
}
.secondary-text {
opacity: 0.75;
font-size: 14px;
.release .secondary-text .material-icons {
font-size: 17px !important;
margin-left: 4px;
.material-icons {
font-size: 17px !important;
margin-left: 4px;
}
}
}
.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;
&.firstrow_only {
grid-template-rows: 1fr;
grid-auto-rows: 0;
grid-row-gap: 0px;
overflow-y: hidden;
}
}

View File

@@ -30,13 +30,13 @@
width: 48px;
margin: 0px 0px 0px 8px;
padding: 0px 4px;
i {
padding: 6px 0px;
}
}
#settings_btn_copyArl i {
padding: 6px 0px;
}
#spotify-icon {
#spotify_icon {
width: 24px;
height: 24px;
fill: #1db954;
@@ -51,61 +51,61 @@
border-top: 1px solid var(--separator); /* Need less opacity */
padding-top: 20px;
padding-bottom: 20px;
}
.settings-group > * {
margin-bottom: 15px;
> * {
margin-bottom: 15px;
}
}
/* Settings group header */
.settings-group__header {
font-size: 1.5rem;
margin-bottom: 25px;
}
.settings-group__header--with-icon {
display: inline-flex;
align-items: center;
}
&.settings-group__header--with-icon {
display: inline-flex;
align-items: center;
.settings-group__header--with-icon i.material-icons {
margin-right: 15px;
i.material-icons {
margin-right: 15px;
}
}
}
/* Settings container */
.settings-container {
display: flex;
}
.settings-container__half > *,
.settings-container__third > * {
margin-bottom: 15px;
}
&__half {
width: 50%;
}
.settings-container__half {
width: 50%;
}
&__third {
width: 33%;
.settings-container__third {
width: 33%;
}
&--only-checkbox {
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
}
}
.settings-container__third--only-checkbox {
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
&__half > *,
&__third > * {
margin-bottom: 15px;
}
}
/* Input group */
.input_group {
margin-bottom: 25px;
}
.input_group .input_group_text {
margin-bottom: 7px;
}
.input_group_text {
margin-bottom: 7px;
}
.with_checkbox + .input_group {
margin-top: 10px;
.with_checkbox + & {
margin-top: 10px;
}
}

View File

@@ -4,28 +4,34 @@
display: none;
}
.main_tabcontent h1 {
margin-bottom: 12px;
.main_tabcontent {
h1 {
margin-bottom: 12px;
}
}
.tab button {
background-color: var(--main-background);
color: var(--foreground);
}
.tab {
margin: 16px 0px;
.tab button.active {
background-color: var(--accent-color);
button {
background-color: var(--main-background);
color: var(--foreground);
&.active {
background-color: var(--accent-color);
}
}
}
.release {
display: inline-block;
width: 156px;
}
.release .cover_container {
width: 156px;
height: 156px;
margin-bottom: 10px;
.cover_container {
width: 156px;
height: 156px;
margin-bottom: 10px;
}
}
.section-tabs {