mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 21:11:58 +00:00
move injected css to .css file (we're not presevering original dribbblish files anymore)
This commit is contained in:
parent
e29cc1eacc
commit
299503c426
2 changed files with 71 additions and 81 deletions
|
|
@ -1,63 +1,5 @@
|
|||
let current = "2.6.0";
|
||||
|
||||
/* css is injected so this works with untouched user.css from Dribbblish */
|
||||
/* progressbar tooltip text color */
|
||||
document.styleSheets[0].insertRule(`
|
||||
.playback-bar .prog-tooltip {
|
||||
color: var(--spice-sidebar-text) !important;
|
||||
}`);
|
||||
|
||||
/* edit button of CustomApps */
|
||||
document.styleSheets[0].insertRule(`
|
||||
.reddit-sort-container button.switch,
|
||||
.new-releases-header button.switch,
|
||||
.lyrics-tabBar-header button.switch {
|
||||
background-color: rgba(var(--spice-rgb-subtext), 0.15) !important;
|
||||
color: var(--spice-text);
|
||||
}`);
|
||||
|
||||
document.styleSheets[0].insertRule(`
|
||||
.reddit-sort-container button.switch:hover,
|
||||
.new-releases-header button.switch:hover,
|
||||
.lyrics-tabBar-header button.switch:hover {
|
||||
background-color: rgba(var(--spice-rgb-subtext), 0.3) !important;
|
||||
}`);
|
||||
|
||||
document.styleSheets[0].insertRule(`
|
||||
.lyrics-lyricsContainer-LyricsBackground {
|
||||
background: linear-gradient(180deg, transparent 0px, transparent 60px, var(--lyrics-color-background) 61px) !important;
|
||||
}`);
|
||||
|
||||
/* big cover opacity on hover */
|
||||
document.styleSheets[0].insertRule(`
|
||||
.main-coverSlotExpanded-container:hover .cover-art,
|
||||
.main-coverSlotExpanded-container:hover img {
|
||||
opacity: 0.5;
|
||||
}`);
|
||||
|
||||
document.styleSheets[0].insertRule(`
|
||||
.main-navBar-navBar a:hover,
|
||||
.main-navBar-navBar a:hover span,
|
||||
.main-buddyFeed-activityMetadata a:hover {
|
||||
color: var(--spice-shadow) !important;
|
||||
}`);
|
||||
|
||||
document.styleSheets[0].insertRule(`
|
||||
.collection-collectionEntityHeroCard-likedSongs,
|
||||
.collection-collectionEntityHeroCard-likedSongs .main-cardHeader-link,
|
||||
.collection-collectionEntityHeroCard-likedSongs .collection-collectionEntityHeroCard-descriptionContainer,
|
||||
.x-heroCategoryCard-heroTitle,
|
||||
.main-rootlist-expandArrow:focus,
|
||||
.main-rootlist-expandArrow:hover,
|
||||
.main-rootlist-textWrapper:focus,
|
||||
.main-rootlist-textWrapper:hover,
|
||||
.main-contextMenu-menuHeading,
|
||||
.main-contextMenu-menuItemButton,
|
||||
.main-contextMenu-menuItemButton:not(.main-contextMenu-disabled):focus,
|
||||
.main-contextMenu-menuItemButton:not(.main-contextMenu-disabled):hover {
|
||||
color: var(--spice-sidebar-text) !important;
|
||||
}`);
|
||||
|
||||
/* Config settings */
|
||||
|
||||
DribbblishShared.config.register({
|
||||
|
|
@ -509,27 +451,4 @@ hookCoverChange(false);
|
|||
});
|
||||
})();
|
||||
|
||||
/* translucid background cover */
|
||||
document.styleSheets[0].insertRule(`
|
||||
.Root__top-container::before {
|
||||
content: '';
|
||||
background-image: var(--image_url);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
position: fixed;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
filter: blur(15px);
|
||||
pointer-events: none;
|
||||
backface-visibility: hidden;
|
||||
will-change: transform;
|
||||
opacity: calc(0.07 + 0.03 * var(--is_light, 0));
|
||||
z-index: +3;
|
||||
transition: background-image var(--song-transition-speed) linear;
|
||||
}`);
|
||||
|
||||
document.documentElement.style.setProperty("--warning_message", " ");
|
||||
|
|
|
|||
71
user.css
71
user.css
|
|
@ -1397,3 +1397,74 @@ html.right-expanded-cover.buddyfeed-visible .main-coverSlotExpanded-container {
|
|||
.main-tag-container {
|
||||
background-color: var(--spice-text);
|
||||
}
|
||||
/* progressbar tooltip text color */
|
||||
.playback-bar .prog-tooltip {
|
||||
color: var(--spice-sidebar-text) !important;
|
||||
}
|
||||
|
||||
/* edit button of CustomApps */
|
||||
.reddit-sort-container button.switch,
|
||||
.new-releases-header button.switch,
|
||||
.lyrics-tabBar-header button.switch {
|
||||
background-color: rgba(var(--spice-rgb-subtext), 0.15) !important;
|
||||
color: var(--spice-text);
|
||||
}
|
||||
|
||||
.reddit-sort-container button.switch:hover,
|
||||
.new-releases-header button.switch:hover,
|
||||
.lyrics-tabBar-header button.switch:hover {
|
||||
background-color: rgba(var(--spice-rgb-subtext), 0.3) !important;
|
||||
}
|
||||
|
||||
.lyrics-lyricsContainer-LyricsBackground {
|
||||
background: linear-gradient(180deg, transparent 0px, transparent 60px, var(--lyrics-color-background) 61px) !important;
|
||||
}
|
||||
|
||||
/* big cover opacity on hover */
|
||||
.main-coverSlotExpanded-container:hover .cover-art,
|
||||
.main-coverSlotExpanded-container:hover img {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.main-navBar-navBar a:hover,
|
||||
.main-navBar-navBar a:hover span,
|
||||
.main-buddyFeed-activityMetadata a:hover {
|
||||
color: var(--spice-shadow) !important;
|
||||
}
|
||||
|
||||
.collection-collectionEntityHeroCard-likedSongs,
|
||||
.collection-collectionEntityHeroCard-likedSongs .main-cardHeader-link,
|
||||
.collection-collectionEntityHeroCard-likedSongs .collection-collectionEntityHeroCard-descriptionContainer,
|
||||
.x-heroCategoryCard-heroTitle,
|
||||
.main-rootlist-expandArrow:focus,
|
||||
.main-rootlist-expandArrow:hover,
|
||||
.main-rootlist-textWrapper:focus,
|
||||
.main-rootlist-textWrapper:hover,
|
||||
.main-contextMenu-menuHeading,
|
||||
.main-contextMenu-menuItemButton,
|
||||
.main-contextMenu-menuItemButton:not(.main-contextMenu-disabled):focus,
|
||||
.main-contextMenu-menuItemButton:not(.main-contextMenu-disabled):hover {
|
||||
color: var(--spice-sidebar-text) !important;
|
||||
}
|
||||
|
||||
/* translucent background cover */
|
||||
.Root__top-container::before {
|
||||
content: "";
|
||||
background-image: var(--image_url);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
position: fixed;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
filter: blur(15px);
|
||||
pointer-events: none;
|
||||
backface-visibility: hidden;
|
||||
will-change: transform;
|
||||
opacity: calc(0.07 + 0.03 * var(--is_light, 0));
|
||||
z-index: +3;
|
||||
transition: background-image var(--song-transition-speed) linear;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue