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,31 +4,31 @@
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 8px solid #fff;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #fff transparent transparent transparent;
}
div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 8px solid #fff;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #fff transparent transparent transparent;
.lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
&:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
&:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
animation-delay: -0.15s;
&:nth-child(3) {
animation-delay: -0.15s;
}
}
}
@keyframes lds-ring {

View File

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

View File

@ -7,46 +7,46 @@
border-radius: 2px;
margin: 0.5rem 0 1rem 0;
overflow: hidden;
}
.progress .determinate {
position: absolute;
top: 0;
left: 0;
bottom: 0;
background-color: var(--accent-color);
-webkit-transition: width 0.3s linear;
transition: width 0.3s linear;
}
.determinate {
position: absolute;
top: 0;
left: 0;
bottom: 0;
background-color: var(--accent-color);
-webkit-transition: width 0.3s linear;
transition: width 0.3s linear;
}
.progress .indeterminate {
background-color: var(--accent-color);
}
.indeterminate {
background-color: var(--accent-color);
.progress .indeterminate:before {
content: '';
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-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;
}
&::before {
content: '';
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-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;
}
.progress .indeterminate:after {
content: '';
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-webkit-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;
animation-delay: 1.15s;
&::after {
content: '';
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-webkit-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;
animation-delay: 1.15s;
}
}
}
@-webkit-keyframes indeterminate {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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