Removed all scss

This commit is contained in:
RemixDev 2022-02-09 14:09:39 +01:00
parent 8d2d45ef38
commit 3a0319dbc5
14 changed files with 524 additions and 690 deletions

View File

@ -12,9 +12,9 @@ import '@/styles/css/base.css'
import '@/styles/css/components.css' import '@/styles/css/components.css'
import '@/styles/css/helpers.css' import '@/styles/css/helpers.css'
import '@/styles/css/icons.css' import '@/styles/css/icons.css'
import '@/styles/css/tables.css'
import '@/styles/css/typography.css' import '@/styles/css/typography.css'
import '@/styles/scss/tables.scss'
import App from '@/App.vue' import App from '@/App.vue'
import i18n from '@/plugins/i18n' import i18n from '@/plugins/i18n'

View File

@ -62,20 +62,21 @@ export default {
} }
</script> </script>
<style lang="scss"> <style>
#container { #container {
--container-width: 95%; --container-width: 95%;
margin: 0 auto; margin: 0 auto;
max-width: 1280px; max-width: 1280px;
width: var(--container-width); width: var(--container-width);
transform: scale(1); transform: scale(1);
}
@media only screen and (min-width: 601px) { @media only screen and (min-width: 601px) {
#container {
--container-width: 85%; --container-width: 85%;
} }
}
@media only screen and (min-width: 993px) { @media only screen and (min-width: 993px) {
#container {
--container-width: 70%; --container-width: 70%;
} }
} }

View File

@ -162,10 +162,7 @@ export default defineComponent({
}) })
</script> </script>
<style lang="scss"> <style>
$icon-dimension: 2rem;
$searchbar-height: 45px;
input[type='search']::-webkit-search-cancel-button { input[type='search']::-webkit-search-cancel-button {
-webkit-appearance: none; -webkit-appearance: none;
width: 28px; width: 28px;
@ -185,23 +182,20 @@ input[type='search']::-webkit-search-cancel-button {
border-radius: 15px; border-radius: 15px;
margin: 10px 10px 20px 10px; margin: 10px 10px 20px 10px;
overflow: hidden; overflow: hidden;
}
.search__icon { #search .search__icon {
width: $icon-dimension; width: 2rem;
height: $icon-dimension; height: 2rem;
}
i { #search .search__icon i {
font-size: $icon-dimension; font-size: 2rem;
color: var(--foreground); color: var(--foreground);
}
&::selection { #search .search__icon i::selection {
background: none; background: none;
} }
} #search #searchbar {
} height: 45px;
#searchbar {
height: $searchbar-height;
padding-left: 0.5em; padding-left: 0.5em;
border: 0px; border: 0px;
border-radius: 0px; border-radius: 0px;
@ -211,29 +205,21 @@ input[type='search']::-webkit-search-cancel-button {
font-family: 'Open Sans'; font-family: 'Open Sans';
font-weight: 300; font-weight: 300;
margin-bottom: 0; margin-bottom: 0;
}
&:focus { #search #searchbar:focus {
outline: none; outline: none;
} }
#search #searchbar::-webkit-search-cancel-button {
&::-webkit-search-cancel-button {
appearance: none; appearance: none;
width: 28px; width: 28px;
height: 28px; height: 28px;
background-color: var(--foreground); background-color: var(--foreground);
mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='28' viewBox='0 0 24 24' width='28'%3E%%3Cpath fill='%23ffffff' d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z'/%3E3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='28' viewBox='0 0 24 24' width='28'%3E%%3Cpath fill='%23ffffff' d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z'/%3E3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
} }
#search #searchbar:-webkit-autofill, #search #searchbar:-webkit-autofill:hover, #search #searchbar:-webkit-autofill:focus, #search #searchbar:-webkit-autofill:active {
// Removing Chrome autofill color box-shadow: 0 0 0 45px var(--secondary-background) inset !important;
&:-webkit-autofill,
&:-webkit-autofill:hover,
&:-webkit-autofill:focus,
&:-webkit-autofill:active {
box-shadow: 0 0 0 $searchbar-height var(--secondary-background) inset !important;
} }
} #search .searchButton {
.searchButton {
background-color: var(--primary-color); background-color: var(--primary-color);
color: var(--primary-text); color: var(--primary-text);
height: 100%; height: 100%;
@ -244,22 +230,17 @@ input[type='search']::-webkit-search-cancel-button {
justify-content: center; justify-content: center;
border-radius: 0px 15px 15px 0px; border-radius: 0px 15px 15px 0px;
margin-left: 1em; margin-left: 1em;
}
i { #search .searchButton i {
font-size: $icon-dimension; font-size: 2rem;
}
&::selection { #search .searchButton i::selection {
background: none; background: none;
} }
} #search:focus-within {
}
&:focus-within {
border: 1px solid var(--foreground); border: 1px solid var(--foreground);
} }
#search.showSearchButton {
&.showSearchButton {
padding: 0 0 0 1em; padding: 0 0 0 1em;
} }
}
</style> </style>

View File

@ -103,23 +103,20 @@ export default defineComponent({
}) })
</script> </script>
<style lang="scss" scoped> <style scoped>
.deemix-icon-container { .deemix-icon-container {
display: grid; display: grid;
place-content: center; place-content: center;
}
.slim-sidebar & { .slim-sidebar .deemix-icon-container {
margin: 0.5rem 0; margin: 0.5rem 0;
}
&::v-deep svg { .slim-sidebar .deemix-icon-container::v-deep svg {
height: 30px; height: 30px;
} }
} .deemix-icon-container::v-deep svg {
&::v-deep svg {
height: 75px; height: 75px;
} }
}
#update-notification { #update-notification {
top: 12px; top: 12px;
@ -128,21 +125,17 @@ export default defineComponent({
.theme_toggler { .theme_toggler {
transition: border 200ms ease-in-out; transition: border 200ms ease-in-out;
}
&--active { .theme_toggler--active {
border-width: 3px; border-width: 3px;
} }
.theme_toggler--light {
&--light {
background-color: #fff; background-color: #fff;
} }
.theme_toggler--dark {
&--dark { background-color: #141414;
background-color: hsl(0, 0%, 8%);
}
&--purple {
background: hsl(261, 85%, 37%);
} }
.theme_toggler--purple {
background: #460eaf;
} }
</style> </style>

View File

@ -189,67 +189,56 @@ export default {
} }
</script> </script>
<style lang="scss"> <style>
.download-object { .download-object {
padding-bottom: 8px; padding-bottom: 8px;
}
.download-info { .download-object .download-info {
display: flex; display: flex;
align-items: center; align-items: center;
}
.coverart { .download-object .download-info .coverart {
height: 75px; height: 75px;
width: 75px; width: 75px;
flex: 0 0 75px; flex: 0 0 75px;
overflow: hidden; overflow: hidden;
} }
.download-object .download-info .coverart .tag {
.coverart .tag {
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
right: 0px; right: 0px;
} }
.download-object .download-info .download-line {
.download-line {
display: block; display: block;
}
.explicit-icon { .download-object .download-info .download-line .explicit-icon {
vertical-align: bottom; vertical-align: bottom;
} }
} .download-object .download-info .download-slim-separator {
.download-slim-separator {
display: none; display: none;
} }
} .download-object .download-info-data {
.download-info-data {
flex: 1 50%; flex: 1 50%;
margin-left: 8px; margin-left: 8px;
overflow: hidden; overflow: hidden;
} }
.download-object .download-info-status {
.download-info-status {
flex: 1 15%; flex: 1 15%;
margin-left: 8px; margin-left: 8px;
width: 80px; width: 80px;
} }
.download-object > .download-bar {
> .download-bar {
display: flex; display: flex;
align-items: center; align-items: center;
height: 24px; height: 24px;
}
> .queue_icon { .download-object > .download-bar > .queue_icon {
cursor: default; cursor: default;
margin-left: 8px; margin-left: 8px;
} }
.download-object > .download-bar > .progress {
> .progress {
margin: 0; margin: 0;
} }
}
}
#download_list:not(.slim) .download-line { #download_list:not(.slim) .download-line {
overflow: hidden; overflow: hidden;
@ -257,37 +246,28 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
#download_list.slim { #download_list.slim > .download-object .download-info {
> .download-object {
.download-info {
display: block; display: block;
}
.coverart { #download_list.slim > .download-object .download-info .coverart {
display: none; display: none;
} }
#download_list.slim > .download-object .download-info .download-line {
.download-line {
display: inline-block; display: inline-block;
} }
#download_list.slim > .download-object .download-info .download-slim-separator {
.download-slim-separator {
display: inline-block; display: inline-block;
} }
} #download_list.slim > .download-object .download-info-data {
.download-info-data {
width: calc(80% - 16px); width: calc(80% - 16px);
display: inline-block; display: inline-block;
padding-left: 0; padding-left: 0;
} }
#download_list.slim > .download-object .download-info-status {
.download-info-status {
width: 20%; width: 20%;
display: inline-block; // ignored due to float display: inline-block;
float: right; float: right;
} }
}
}
.progress { .progress {
position: relative; position: relative;
@ -298,8 +278,8 @@ export default {
border-radius: 2px; border-radius: 2px;
margin: 0.5rem 0 1rem 0; margin: 0.5rem 0 1rem 0;
overflow: hidden; overflow: hidden;
}
.determinate { .progress .determinate {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
@ -307,16 +287,14 @@ export default {
background-color: var(--primary-color); background-color: var(--primary-color);
transition: width 0.3s linear; transition: width 0.3s linear;
} }
.progress .converting {
.converting {
background-color: var(--secondary-color); background-color: var(--secondary-color);
transition: none !important; transition: none !important;
} }
.progress .indeterminate {
.indeterminate {
background-color: var(--primary-color); background-color: var(--primary-color);
}
&::before { .progress .indeterminate::before {
content: ''; content: '';
position: absolute; position: absolute;
background-color: inherit; background-color: inherit;
@ -326,8 +304,7 @@ export default {
will-change: left, right; will-change: left, right;
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;
@ -338,8 +315,6 @@ export default {
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;
animation-delay: 1.15s; animation-delay: 1.15s;
} }
}
}
@keyframes indeterminate { @keyframes indeterminate {
0% { 0% {

View File

@ -391,27 +391,23 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style scoped>
#toggle_download_tab { #toggle_download_tab {
width: 25px; width: 25px;
height: 25px; height: 25px;
}
&::before { #toggle_download_tab::before {
font-family: 'Material Icons'; font-family: 'Material Icons';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
content: 'chevron_right'; content: 'chevron_right';
} }
}
#download_tab_container.tab-hidden { #download_tab_container.tab-hidden
#toggle_download_tab { #toggle_download_tab::before {
&::before {
content: 'chevron_left'; content: 'chevron_left';
} }
} #download_tab_container.tab-hidden::after {
&::after {
content: attr(data-label); content: attr(data-label);
display: flex; display: flex;
align-items: center; align-items: center;
@ -419,26 +415,22 @@ export default {
writing-mode: vertical-rl; writing-mode: vertical-rl;
line-height: 2rem; line-height: 2rem;
} }
}
#download_list { #download_list {
height: calc(100% - 32px); height: calc(100% - 32px);
padding-left: 28px; padding-left: 28px;
overflow-y: scroll; overflow-y: scroll;
}
&::-webkit-scrollbar { #download_list::-webkit-scrollbar {
width: 10px; width: 10px;
} }
#download_list::-webkit-scrollbar-track {
&::-webkit-scrollbar-track {
background: var(--panels-background); background: var(--panels-background);
} }
#download_list::-webkit-scrollbar-thumb {
&::-webkit-scrollbar-thumb {
background: var(--panels-scroll); background: var(--panels-scroll);
border-radius: 4px; border-radius: 4px;
width: 6px; width: 6px;
padding: 0px 2px; padding: 0px 2px;
} }
}
</style> </style>

View File

@ -15,15 +15,15 @@
</div> </div>
</template> </template>
<style lang="scss" scoped> <style scoped>
// Source: https://loading.io/css/ /* Source: https://loading.io/css/ */
.lds-ring { .lds-ring {
display: inline-block; display: inline-block;
position: relative; position: relative;
width: 80px; width: 80px;
height: 80px; height: 80px;
}
div { .lds-ring div {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
position: absolute; position: absolute;
@ -34,20 +34,16 @@
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;
}
&:nth-child(1) { .lds-ring div: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 {
0% { 0% {

View File

@ -44,19 +44,18 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style scoped>
.cover-container { .cover-container {
width: 156px; width: 156px;
height: 156px; height: 156px;
margin-bottom: 10px; margin-bottom: 10px;
}
.coverart { .cover-container .coverart {
backface-visibility: hidden; backface-visibility: hidden;
transition: 0.5s ease; transition: 0.5s ease;
height: auto; height: auto;
} }
.cover-container .download_overlay {
.download_overlay {
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
@ -65,25 +64,18 @@ export default {
min-width: 2rem; min-width: 2rem;
height: 2.75rem; height: 2.75rem;
text-align: center; text-align: center;
}
i { .cover-container .download_overlay i {
padding: 0.625rem; padding: 0.625rem;
} }
.cover-container .download_overlay:focus {
&:focus {
opacity: 1; opacity: 1;
} }
} .cover-container:hover .coverart {
&:hover {
.coverart {
opacity: 0.75; opacity: 0.75;
} }
.cover-container:hover .download_overlay {
.download_overlay {
opacity: 1; opacity: 1;
border: 0; border: 0;
} }
}
}
</style> </style>

View File

@ -243,7 +243,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style scoped>
.context-menu { .context-menu {
position: absolute; position: absolute;
top: 0; top: 0;
@ -265,18 +265,16 @@ export default {
padding-right: 10px; padding-right: 10px;
color: var(--foreground); color: var(--foreground);
cursor: pointer; cursor: pointer;
}
&:hover { .menu-option:hover {
background: var(--table-highlight); background: var(--table-highlight);
filter: brightness(150%); filter: brightness(150%);
} }
.menu-option__text {
&__text {
text-transform: capitalize; text-transform: capitalize;
} }
}
// Resetting buttons only for this component (because the style is scoped) /* Resetting buttons only for this component (because the style is scoped) */
button { button {
color: var(--primary-text); color: var(--primary-text);
color: unset; color: unset;
@ -295,19 +293,16 @@ button {
text-transform: unset; text-transform: unset;
cursor: unset; cursor: unset;
transition: unset; transition: unset;
}
&:focus { button:focus {
outline: none; outline: none;
} }
button:active {
&:active {
background-color: unset; background-color: unset;
transform: unset; transform: unset;
} }
button:hover {
&:hover {
background: unset; background: unset;
border: unset; border: unset;
} }
}
</style> </style>

View File

@ -64,7 +64,7 @@ export default {
} }
</script> </script>
<style lang="scss"> <style>
.smallmodal { .smallmodal {
position: fixed; position: fixed;
z-index: 1250; z-index: 1250;
@ -79,23 +79,25 @@ export default {
.smallmodal-content { .smallmodal-content {
--modal-content-width: 95%; --modal-content-width: 95%;
background-color: transparent; background-color: transparent;
margin: auto; margin: auto;
width: var(--modal-content-width); width: var(--modal-content-width);
position: relative; position: relative;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
}
@media only screen and (min-width: 601px) { @media only screen and (min-width: 601px) {
.smallmodal-content {
--modal-content-width: 85%; --modal-content-width: 85%;
} }
}
@media only screen and (min-width: 993px) { @media only screen and (min-width: 993px) {
.smallmodal-content {
--modal-content-width: 70%; --modal-content-width: 70%;
} }
} }
.smallmodal-content button { .smallmodal-content button {
width: 100%; width: 100%;
margin-bottom: 8px; margin-bottom: 8px;

View File

@ -184,10 +184,8 @@ export default defineComponent({
}) })
</script> </script>
<style lang="scss" scoped> <style scoped>
li, li, p, a {
p,
a {
letter-spacing: 0.4px; letter-spacing: 0.4px;
font-size: 20px; font-size: 20px;
line-height: 1.2; line-height: 1.2;
@ -212,17 +210,16 @@ i::v-deep svg {
h2 { h2 {
text-transform: capitalize; text-transform: capitalize;
}
&:not(.page_heading) { h2:not(.page_heading) {
font-size: 2rem; font-size: 2rem;
border-bottom: 1px solid hsla(0, 0%, 20%, 0.25); border-bottom: 1px solid rgba(51, 51, 51, 0.25);
padding: { padding-top: 2rem;
top: 2rem; padding-bottom: 1rem;
bottom: 1rem;
}
} }
.subheading { h2 .subheading {
display: block; display: block;
font-size: 0.5em; font-size: 0.5em;
margin-top: 0.5em; margin-top: 0.5em;
@ -230,42 +227,33 @@ h2 {
opacity: 0.8; opacity: 0.8;
text-transform: none; text-transform: none;
} }
}
p { p {
margin: 0 !important; margin: 0 !important;
} }
ul { ul li {
li {
margin-bottom: 7px; margin-bottom: 7px;
} }
h2 + ul {
h2 + & {
margin-top: 1rem; margin-top: 1rem;
} }
ul + ul {
ul + & {
margin-top: 1.25rem; margin-top: 1.25rem;
} }
ul.no-dots {
&.no-dots {
list-style-type: none; list-style-type: none;
} }
ul:not(.no-dots) {
&:not(.no-dots) {
list-style-type: none; list-style-type: none;
}
li { ul:not(.no-dots) li {
position: relative; position: relative;
}
&::before { ul:not(.no-dots) li::before {
content: '—'; content: '—';
position: absolute; position: absolute;
left: -30px; left: -30px;
opacity: 0.25; opacity: 0.25;
} }
}
}
}
</style> </style>

View File

@ -1093,7 +1093,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style scoped>
#logged_in_info { #logged_in_info {
display: grid; display: grid;
align-items: center; align-items: center;
@ -1116,23 +1116,18 @@ export default {
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
width: 60px; width: 60px;
}
&:not(:last-child) { .locale-flag:not(:last-child) {
margin-right: 10px; margin-right: 10px;
} }
.locale-flag.locale-flag--current ::v-deep svg {
&.locale-flag--current {
::v-deep svg {
filter: brightness(1) !important; filter: brightness(1) !important;
} }
} .locale-flag::v-deep svg {
&::v-deep svg {
width: 40px !important; width: 40px !important;
height: 40px !important; height: 40px !important;
filter: brightness(0.5); filter: brightness(0.5);
} }
}
.settings-group { .settings-group {
border-top-width: 1px; border-top-width: 1px;
@ -1145,57 +1140,47 @@ export default {
padding-top: 2rem; padding-top: 2rem;
padding-bottom: 2rem; padding-bottom: 2rem;
font-size: 1.5rem; font-size: 1.5rem;
i.material-icons {
margin-right: 1rem;
} }
.settings-group__header i.material-icons {
margin-right: 1rem;
} }
.settings-container { .settings-container {
display: flex; display: flex;
}
&__half { .settings-container__half {
width: 50%; width: 50%;
} }
.settings-container__third {
&__third {
width: 33%; width: 33%;
}
&--only-checkbox { .settings-container__third--only-checkbox {
display: flex; display: flex;
align-items: start; align-items: start;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
} }
} .settings-container__half > *, .settings-container__third > * {
&__half > *,
&__third > * {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
}
.with-checkbox { .with-checkbox {
display: flex; display: flex;
align-items: center; align-items: center;
}
[type='checkbox'] { .with-checkbox [type='checkbox'] {
cursor: pointer; cursor: pointer;
} }
.with-checkbox .checkbox-text {
.checkbox-text {
margin-left: 10px; margin-left: 10px;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
} }
}
/* Input group */ /* Input group */
.input-group { .input-group .input-group-text{
.input-group-text {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
}
.login-button { .login-button {
display: block; display: block;

140
src/styles/css/tables.css Normal file
View File

@ -0,0 +1,140 @@
.table {
width: 100%;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
}
.table tbody tr:not(.table__row-no-highlight):hover {
background: var(--table-highlight);
cursor: default;
}
.table tr {
transition: background-color 175ms ease-in-out;
background: var(--table-bg);
}
.table tr:nth-child(even) {
transition: background-color 175ms ease-in-out;
background: var(--table-zebra);
}
.table tr:not(:last-child) {
border-bottom: 1px solid var(--table-highlight);
}
.table td, .table th {
vertical-align: middle;
}
.table th .sortable {
user-select: none;
}
.table th .sort-asc::after, .table th .sort-desc::after {
padding-left: 3px;
line-height: 0.7em;
font-size: 0.7em;
}
.table th .sort-asc::after {
content: '\25b2';
}
.table th .sort-desc::after {
content: '\25bc';
}
.table td {
padding: 7px 10px;
}
.table td:first-child {
padding: 7px 10px 7px 20px;
}
.table td:last-child {
padding: 7px 20px 7px 10px;
}
.table td img {
vertical-align: middle;
}
/* === Tracks Table === */
.table--tracks {
border-collapse: collapse;
}
.table--tracks thead {
border-bottom: 2px solid var(--table-highlight);
}
.table--tracks tr:first-child td:first-child {
border-top-left-radius: 3px;
}
.table--tracks tr:first-child td:last-child {
border-top-right-radius: 3px;
}
.table--tracks tr:last-child td:first-child {
border-bottom-left-radius: 3px;
}
.table--tracks tr:last-child td:last-child {
border-bottom-right-radius: 3px;
}
/* === Tracklist Table === */
.table--tracklist thead {
border-bottom: 2px solid var(--table-highlight);
text-transform: capitalize;
}
.table--tracklist th {
padding: 7px 10px;
height: 45px;
}
.table--tracklist th:first-child {
padding: 7px 10px 7px 20px;
}
.table--tracklist th:last-child {
padding: 7px 20px 7px 10px;
}
.table--tracklist td {
height: 35px;
}
/* === Charts Table === */
.table--charts td {
height: 35px;
}
.table .table__icon {
box-sizing: content-box;
width: 32px;
}
.table .table__icon--big {
width: 48px;
text-align: center;
}
.table .table__cell--x-small {
width: 0.32%;
}
.table .table__cell--small {
width: 3.2%;
}
.table .table__cell--medium {
width: 28.7%;
}
.table .table__cell--large {
width: 50%;
}
.table .table__cell--left {
text-align: left;
}
.table .table__cell--center {
text-align: center;
}
.table .table__cell--right {
text-align: right;
}
.table .table__cell-content.table__cell-content--vertical-center {
display: flex;
align-items: center;
}
.track_row > td > img {
width: 32px;
height: 32px;
}
.track_row > td > a > img {
width: 56px;
height: 56px;
}
.table--tracklist .clickable:hover,
.table--charts .clickable:hover {
text-decoration: underline;
}

View File

@ -1,206 +0,0 @@
$vertical-separator: 7px;
$table-border-radius: 3px;
.table {
width: 100%;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
tbody {
tr:not(.table__row-no-highlight):hover {
background: var(--table-highlight);
cursor: default;
}
}
tr {
transition: background-color 175ms ease-in-out;
background: var(--table-bg);
&:nth-child(even) {
transition: background-color 175ms ease-in-out;
background: var(--table-zebra);
}
&:not(:last-child) {
border-bottom: 1px solid var(--table-highlight);
}
}
td,
th {
vertical-align: middle;
}
th {
.sortable {
user-select: none;
}
.sort-asc,
.sort-desc {
&::after {
padding-left: 3px;
line-height: 0.7em;
font-size: 0.7em;
}
}
.sort-asc::after {
content: '\25b2';
}
.sort-desc::after {
content: '\25bc';
}
}
td {
padding: $vertical-separator 10px;
&:first-child {
padding: $vertical-separator 10px $vertical-separator 20px;
}
&:last-child {
padding: $vertical-separator 20px $vertical-separator 10px;
}
img {
vertical-align: middle;
}
}
/* === Tracks Table === */
&--tracks {
border-collapse: collapse;
thead {
border-bottom: 2px solid var(--table-highlight);
}
tr {
&:first-child {
td {
&:first-child {
border-top-left-radius: $table-border-radius;
}
&:last-child {
border-top-right-radius: $table-border-radius;
}
}
}
&:last-child {
td {
&:first-child {
border-bottom-left-radius: $table-border-radius;
}
&:last-child {
border-bottom-right-radius: $table-border-radius;
}
}
}
}
}
/* === Tracklist Table === */
&--tracklist {
thead {
border-bottom: 2px solid var(--table-highlight);
text-transform: capitalize;
}
th {
padding: $vertical-separator 10px;
height: 45px;
&:first-child {
padding: $vertical-separator 10px $vertical-separator 20px;
}
&:last-child {
padding: $vertical-separator 20px $vertical-separator 10px;
}
}
td {
height: 35px;
}
}
/* === Charts Table === */
&--charts {
td {
height: 35px;
}
}
.table__icon {
box-sizing: content-box;
width: 32px;
&--big {
width: 48px;
text-align: center;
}
}
.table__cell {
&--x-small {
width: 0.32%;
}
&--small {
width: 3.2%;
}
&--medium {
width: 28.7%;
}
&--large {
width: 50%;
}
&--left {
text-align: left;
}
&--center {
text-align: center;
}
&--right {
text-align: right;
}
}
.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 {
width: 32px;
height: 32px;
}
> td > a > img {
width: 56px;
height: 56px;
}
}
.table--tracklist .clickable:hover,
.table--charts .clickable:hover {
text-decoration: underline;
}