Create _main.scss
This commit is contained in:
@@ -0,0 +1,283 @@
|
||||
:root .Root__main-view {
|
||||
#preloadImage {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
#mainImage {
|
||||
position: absolute; // instead of background-attachment
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
will-change: transform; // creates a new paint layer
|
||||
z-index: -1;
|
||||
transition: 300ms background-image ease-in-out;
|
||||
filter: blur(4px);
|
||||
-webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
|
||||
mask-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
|
||||
@media (max-width: 1500px) {
|
||||
#mainImage {
|
||||
background-position: top;
|
||||
}
|
||||
}
|
||||
|
||||
.main-view-container__scroll-node-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
// Now playing bar queue button
|
||||
#main
|
||||
> div
|
||||
> div.Root__top-container
|
||||
> div.Root__top-bar
|
||||
> header
|
||||
> div.main-topBar-topbarContentWrapper
|
||||
> div
|
||||
> div
|
||||
> button
|
||||
> span
|
||||
> span {
|
||||
fill: var(--spice-selected-row) !important;
|
||||
}
|
||||
|
||||
// Settings radio buttons
|
||||
input:checked ~ .x-toggle-indicatorWrapper {
|
||||
background-color: var(--spice-radio-btn-active);
|
||||
}
|
||||
|
||||
// Home playlist cards
|
||||
.view-homeShortcutsGrid-shortcut {
|
||||
border-radius: var(--border-radius);
|
||||
.view-homeShortcutsGrid-imageWrapper {
|
||||
border-radius: calc(var(--border-radius) + 15px);
|
||||
}
|
||||
}
|
||||
|
||||
// Music card
|
||||
.main-card-card {
|
||||
border-radius: var(--border-radius);
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
|
||||
.main-card-imageContainer {
|
||||
margin-bottom: -4px;
|
||||
|
||||
.main-cardImage-circular,
|
||||
img {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
.main-card-cardMetadata {
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
// Header
|
||||
.main-home-homeHeader {
|
||||
display: none !important;
|
||||
}
|
||||
.main-entityHeader-container .main-entityHeader-backgroundColor {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.main-entityHeader-container {
|
||||
padding: 32px;
|
||||
justify-content: center;
|
||||
|
||||
& > div:nth-last-of-type(2) {
|
||||
align-self: center;
|
||||
flex-shrink: 0;
|
||||
|
||||
& + .main-entityHeader-headerText {
|
||||
flex: unset;
|
||||
justify-content: center;
|
||||
|
||||
.main-entityHeader-title h1 {
|
||||
font-size: 50px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main-yourEpisodes-yourEpisodesContentWrapper {
|
||||
max-width: unset;
|
||||
}
|
||||
.main-actionBarBackground-background {
|
||||
background: linear-gradient(
|
||||
rgba(var(--spice-rgb-main-transition), 0.6) 0,
|
||||
var(--spice-main) 232px
|
||||
),
|
||||
var(--background-noise) !important;
|
||||
top: 338px;
|
||||
height: calc(100% - 243px);
|
||||
}
|
||||
|
||||
// Playlist, Album & Liked songs
|
||||
section {
|
||||
&[data-testid="playlist-page"],
|
||||
&[data-testid="album-page"],
|
||||
&[data-testid="your-episodes-page"],
|
||||
&[data-testid="artist-page"] {
|
||||
.os-host-overflow {
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.os-padding {
|
||||
overflow: visible !important;
|
||||
|
||||
.os-viewport {
|
||||
overflow: visible !important;
|
||||
|
||||
.main-actionBar-ActionBar {
|
||||
padding: 8px 16px 16px 16px;
|
||||
|
||||
.main-actionBar-ActionBarRow {
|
||||
margin-bottom: -8px;
|
||||
margin-left: 8px;
|
||||
margin-right: 22px;
|
||||
|
||||
.main-playButton-PlayButton {
|
||||
margin-left: 24px;
|
||||
margin-top: -24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&[data-testid="your-episodes-page"] > .contentSpacing > section {
|
||||
height: calc(100vh - 494px);
|
||||
}
|
||||
&[data-testid="your-episodes-page"]
|
||||
> .main-yourEpisodes-yourEpisodesContentWrapper {
|
||||
height: calc(100vh - 438px);
|
||||
|
||||
[data-testid^="episode-"] {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-testid="playlist-page"] > div:last-child,
|
||||
&[data-testid="album-page"] > div:nth-last-child(2),
|
||||
&[data-testid="episode"] > div:last-child,
|
||||
&[data-testid="your-episodes-page"] > div:last-child,
|
||||
&[data-testid="artist-page"] > div > div:last-child {
|
||||
background: none;
|
||||
|
||||
.main-trackList-trackListRowGrid {
|
||||
border-radius: var(--border-radius);
|
||||
border: none;
|
||||
padding-left: 18px;
|
||||
transition: 200ms background-color;
|
||||
|
||||
.main-type-mesto,
|
||||
.main-type-ballad {
|
||||
transition: 300ms color;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
&.main-trackList-selected {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
.main-trackList-trackListHeader {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Album & Liked songs
|
||||
&[data-testid] {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
// Tracklists
|
||||
section[class="contentSpacing"],
|
||||
.rHpv7osDRvs3SUPMpQ_g {
|
||||
.main-trackList-rowSectionIndex {
|
||||
top: 7px !important;
|
||||
left: 16px !important;
|
||||
}
|
||||
}
|
||||
|
||||
section:not([data-testid="album-page"]):not([data-testid="artist-page"]),
|
||||
.NLaDALU71zxOtBUbsrfH {
|
||||
.main-trackList-trackListRow {
|
||||
grid-template-columns: [first] 6fr [var1] 4fr [var2] 3fr [last] minmax(
|
||||
120px,
|
||||
1fr
|
||||
) !important;
|
||||
|
||||
& > .main-trackList-rowSectionIndex {
|
||||
position: absolute;
|
||||
z-index: 1000;
|
||||
top: 8px;
|
||||
left: 18px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
justify-content: center;
|
||||
text-indent: -1000px;
|
||||
}
|
||||
}
|
||||
|
||||
.main-trackList-trackList[aria-colcount="6"] .main-trackList-trackListRow {
|
||||
grid-template-columns:
|
||||
[first] 6fr [var1] 4fr [var2] 3fr [var3] minmax(120px, 2fr)
|
||||
[last] minmax(120px, 1fr) !important;
|
||||
}
|
||||
|
||||
button.main-trackList-rowImagePlayButton {
|
||||
color: black;
|
||||
}
|
||||
|
||||
// Image overlay + visible play buttons on interact
|
||||
.main-trackList-trackListRow {
|
||||
&:hover,
|
||||
&:focus-within {
|
||||
.main-trackList-rowSectionIndex {
|
||||
background: rgba(var(--spice-rgb-play-button), 0.5);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
button.main-trackList-rowImagePlayButton {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Title highlight of active song
|
||||
&.main-trackList-active {
|
||||
.main-trackList-rowTitle {
|
||||
color: var(--spice-text);
|
||||
text-shadow: 0px 0px 6px var(--spice-text);
|
||||
-webkit-text-stroke: thin;
|
||||
}
|
||||
.main-trackList-rowSectionIndex {
|
||||
background: rgba(var(--spice-rgb-play-button), 0.5);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
button.main-trackList-rowImagePlayButton {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Artist page art fix
|
||||
.main-entityHeader-background {
|
||||
height: 83vh;
|
||||
&.main-entityHeader-overlay:after {
|
||||
height: 83vh;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user