started editing styles files using sass synthax

This commit is contained in:
Roberto Tonino 2020-06-07 21:42:20 +02:00
parent 6b05933352
commit 03a9cb5c86
12 changed files with 255 additions and 247 deletions

File diff suppressed because one or more lines are too long

View File

@ -4,9 +4,8 @@
position: relative; position: relative;
width: 80px; width: 80px;
height: 80px; height: 80px;
}
.lds-ring div { div {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
position: absolute; position: absolute;
@ -17,18 +16,19 @@
border-radius: 50%; border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #fff transparent transparent transparent; border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) { &:nth-child(1) {
animation-delay: -0.45s; animation-delay: -0.45s;
} }
.lds-ring div:nth-child(2) { &:nth-child(2) {
animation-delay: -0.3s; animation-delay: -0.3s;
} }
.lds-ring div:nth-child(3) { &:nth-child(3) {
animation-delay: -0.15s; animation-delay: -0.15s;
}
}
} }
@keyframes lds-ring { @keyframes lds-ring {

View File

@ -25,21 +25,21 @@
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
padding-left: 10px; padding-left: 10px;
}
#content::-webkit-scrollbar { &::-webkit-scrollbar {
width: 10px; width: 10px;
} }
#content::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
background: var(--main-background); background: var(--main-background);
} }
#content::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: var(--main-scroll); background: var(--main-scroll);
border-radius: 4px; border-radius: 4px;
width: 6px; width: 6px;
padding: 0px 2px; padding: 0px 2px;
}
} }
#container { #container {
@ -72,10 +72,11 @@
position: relative; position: relative;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
}
.smallmodal-content button { & button {
width: 100%; width: 100%;
margin-bottom: 8px; margin-bottom: 8px;
}
} }
@media only screen and (min-width: 601px) { @media only screen and (min-width: 601px) {

View File

@ -7,9 +7,8 @@
border-radius: 2px; border-radius: 2px;
margin: 0.5rem 0 1rem 0; margin: 0.5rem 0 1rem 0;
overflow: hidden; overflow: hidden;
}
.progress .determinate { .determinate {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
@ -17,13 +16,12 @@
background-color: var(--accent-color); background-color: var(--accent-color);
-webkit-transition: width 0.3s linear; -webkit-transition: width 0.3s linear;
transition: width 0.3s linear; transition: width 0.3s linear;
} }
.progress .indeterminate { .indeterminate {
background-color: var(--accent-color); background-color: var(--accent-color);
}
.progress .indeterminate:before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
background-color: inherit; background-color: inherit;
@ -33,9 +31,9 @@
will-change: left, right; will-change: left, right;
-webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
} }
.progress .indeterminate:after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
background-color: inherit; background-color: inherit;
@ -47,6 +45,8 @@
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
-webkit-animation-delay: 1.15s; -webkit-animation-delay: 1.15s;
animation-delay: 1.15s; animation-delay: 1.15s;
}
}
} }
@-webkit-keyframes indeterminate { @-webkit-keyframes indeterminate {

View File

@ -10,53 +10,62 @@
color: var(--panels-text); color: var(--panels-text);
transition: width 125ms ease-in-out 75ms; transition: width 125ms ease-in-out 75ms;
z-index: 999; z-index: 999;
}
#sidebar:hover { &:hover {
width: 200px; width: 200px;
} }
#sidebar .main_tablinks:not(#theme_selector) { .main_tablinks {
&.active .side_icon {
color: var(--accent-color);
}
&:not(#theme_selector) {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 5px; margin-top: 5px;
cursor: pointer; cursor: pointer;
}
#sidebar .main_tablinks:not(#theme_selector):hover { &:hover {
background-color: #3e3e3e; background-color: #3e3e3e;
} }
}
}
#sidebar .main_tablinks_text { .main_tablinks_text {
display: none; display: none;
display: inline-block; display: inline-block;
margin-left: 20px; margin-left: 20px;
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
transition: all 50ms ease-in-out 200ms; transition: all 50ms ease-in-out 200ms;
} }
#sidebar:hover .main_tablinks_text { .side_icon {
font-size: 30px;
padding: 9px;
&.side_icon--theme {
cursor: default;
}
&::selection {
background: none;
}
}
&:hover {
#theme_togglers {
position: relative;
opacity: 1;
visibility: visible;
}
.main_tablinks_text {
display: inline-block; display: inline-block;
opacity: 1; opacity: 1;
visibility: visible; visibility: visible;
} }
}
#sidebar .side_icon {
font-size: 30px;
padding: 9px;
}
#sidebar .side_icon::selection {
background: none;
}
.side_icon--theme {
cursor: default;
}
#sidebar .main_tablinks.active .side_icon {
color: var(--accent-color);
} }
/* Theme selector */ /* Theme selector */
@ -77,12 +86,6 @@
transition: all 50ms ease-in-out 200ms; transition: all 50ms ease-in-out 200ms;
} }
#sidebar:hover #theme_togglers {
position: relative;
opacity: 1;
visibility: visible;
}
.theme_toggler { .theme_toggler {
width: 25px; width: 25px;
height: 25px; height: 25px;
@ -90,20 +93,20 @@
border: 1px solid var(--separator); border: 1px solid var(--separator);
cursor: pointer; cursor: pointer;
transition: border 200ms ease-in-out; transition: border 200ms ease-in-out;
}
.theme_toggler--active { &--active {
border-width: 3px; border-width: 3px;
} }
.theme_toggler[data-theme-variant='light'] { &[data-theme-variant='light'] {
background: white; background: white;
} }
.theme_toggler[data-theme-variant='dark'] { &[data-theme-variant='dark'] {
background: #141414; background: #141414;
} }
.theme_toggler[data-theme-variant='purple'] { &[data-theme-variant='purple'] {
background: #460ead; background: #460ead;
}
} }

View File

@ -1,17 +1,18 @@
.image_header header { .image_header {
header {
background-position: 0% 35%; background-position: 0% 35%;
background-size: cover; background-size: cover;
padding: 220px 24px 8px; padding: 220px 24px 8px;
border-radius: 8px 8px 0px 0px; border-radius: 8px 8px 0px 0px;
}
.image_header header h1, h1,
.image_header header h2 { h2 {
margin: 0px; margin: 0px;
} }
.image_header header h2 { h2 {
margin: 0px;
font-size: 18px; font-size: 18px;
margin-bottom: 12px; margin-bottom: 12px;
}
}
} }

View File

@ -10,6 +10,7 @@
border-radius: 5px; border-radius: 5px;
top: 0; top: 0;
right: 0; right: 0;
transition: opacity 200ms ease-in-out;
} }
.preview_playlist_controls { .preview_playlist_controls {

View File

@ -1,10 +1,3 @@
// @import './normalize.css';
// @import './typography.css';
/* * {
transition: background-color 500ms ease-in-out;
} */
html { html {
height: 100vh; height: 100vh;

View File

@ -64,7 +64,6 @@ button {
position: relative; position: relative;
background-color: var(--accent-color); background-color: var(--accent-color);
border: 1px solid transparent; border: 1px solid transparent;
/* border: none; */
border-radius: 4px; border-radius: 4px;
font-family: inherit; font-family: inherit;
font-weight: 600; font-weight: 600;
@ -187,7 +186,8 @@ span.tag {
padding: 3px 6px; padding: 3px 6px;
} }
a, a:visited { a,
a:visited {
color: dodgerblue; color: dodgerblue;
} }

View File

@ -4,125 +4,134 @@
-webkit-border-vertical-spacing: 0px; -webkit-border-vertical-spacing: 0px;
--vertical-separator: 7px; --vertical-separator: 7px;
}
.table tr { tbody {
tr:not(.table__row-no-highlight):hover {
background: var(--table-highlight);
}
}
tr {
background: var(--table-bg); background: var(--table-bg);
transition: background-color 175ms ease-in-out; transition: background-color 175ms ease-in-out;
}
.table tr:nth-child(even) { &:nth-child(even) {
background: var(--table-zebra); background: var(--table-zebra);
transition: background-color 175ms ease-in-out; transition: background-color 175ms ease-in-out;
} }
.table tr:not(:last-child) { &:not(:last-child) {
border-bottom: 1px solid var(--table-highlight); border-bottom: 1px solid var(--table-highlight);
} }
}
.table tbody tr:not(.table__row-no-highlight):hover { td,
background: var(--table-highlight); th {
}
.table td,
.table th {
vertical-align: middle; vertical-align: middle;
} }
th.sortable { th {
.sortable {
-webkit-user-select: none; -webkit-user-select: none;
user-select: none; user-select: none;
} }
th.sort-asc:after { .sort-asc,
.sort-desc {
&::after {
font-size: 0.7em;
padding-left: 3px;
line-height: 0.7em;
}
}
.sort-asc::after {
content: '\25b2'; content: '\25b2';
font-size: 0.7em; }
padding-left: 3px;
line-height: 0.7em;
}
th.sort-desc:after { .sort-desc::after {
content: '\25bc'; content: '\25bc';
font-size: 0.7em; }
padding-left: 3px; }
line-height: 0.7em;
}
.table td { td {
padding: var(--vertical-separator) 10px; padding: var(--vertical-separator) 10px;
}
.table td:first-child { &:first-child {
padding: var(--vertical-separator) 10px var(--vertical-separator) 20px; padding: var(--vertical-separator) 10px var(--vertical-separator) 20px;
} }
.table td:last-child { &:last-child {
padding: var(--vertical-separator) 20px var(--vertical-separator) 10px; padding: var(--vertical-separator) 20px var(--vertical-separator) 10px;
} }
.table td img { img {
vertical-align: middle; vertical-align: middle;
} }
}
.table .table__icon { .table__icon {
box-sizing: content-box; box-sizing: content-box;
width: 32px; width: 32px;
}
.table__icon.table__icon--big { &--big {
width: 48px; width: 48px;
text-align: center; text-align: center;
} }
}
/* .table .table__cell {} */ .table__cell {
&--x-small {
.table__cell--x-small {
width: 0.32%; width: 0.32%;
} }
.table__cell--small { &--small {
width: 3.2%; width: 3.2%;
} }
.table__cell--medium { &--medium {
width: 28.7%; width: 28.7%;
} }
.table__cell--large { &--large {
width: 50%; width: 50%;
} }
.table__cell--left { &--left {
text-align: left; text-align: left;
} }
.table__cell--center { &--center {
text-align: center; text-align: center;
} }
.table__cell--right { &--right {
text-align: right; text-align: right;
} }
/* .table__cell-content {} */ &--download {
cursor: pointer;
.table__cell-content.table__cell-content--vertical-center { i.material-icons {
/* Wrap cell content in this to center vertically cells transition: color 175ms ease-in-out;
with material icons or both material icons and text */ }
&:hover {
i.material-icons {
color: var(--table-bg);
}
}
}
}
.table__cell-content {
&.table__cell-content--vertical-center {
// Wrap cell content in this to center vertically cells
// with material icons or both material icons and text
display: flex; display: flex;
align-items: center; align-items: center;
} }
}
.table__cell--download {
cursor: pointer;
}
.table__cell--download i.material-icons {
transition: color 175ms ease-in-out;
}
.table__cell--download:hover i.material-icons {
color: var(--table-bg);
} }
.track_row > td > img { .track_row > td > img {

View File

@ -1,9 +1,9 @@
@import './base/base'; @import './base/base';
@import './base/normalize'; @import './base/normalize';
@import './base/typography';
@import './globals/globals'; @import './globals/globals';
@import './globals/tables'; @import './globals/tables';
@import './globals/typography';
@import './tabs/about-tab'; @import './tabs/about-tab';
@import './tabs/charts-tab'; @import './tabs/charts-tab';