fix(lastfm): fix love animation & various cleanups (#437)

* fix(lastfm): love animation fix & cleanups

* chore(lastfm): bump ver.

* fix(lastfm): change selectors
This commit is contained in:
Anubis authored and GitHub committed 2024-01-14 23:44:01 +05:30
1 parent abb2610f12
commit 874b45f671
1 file changed
+88 -174
+88 -174
View File
@@ -2,7 +2,7 @@
@name Last.fm Catppuccin @name Last.fm Catppuccin
@namespace github.com/catppuccin/userstyles/styles/lastfm @namespace github.com/catppuccin/userstyles/styles/lastfm
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/lastfm @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/lastfm
@version 1.1.1 @version 1.1.2
@description Soothing pastel theme for Last.fm @description Soothing pastel theme for Last.fm
@author Catppuccin @author Catppuccin
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/lastfm/catppuccin.user.css @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/lastfm/catppuccin.user.css
@@ -731,11 +731,6 @@
color: @accent; color: @accent;
} }
.discovery-stat-top-item-name a,
.discovery-stat-top-item-name a:focus,
.discovery-stat-top-item-name a:hover {
color: @text;
}
.discovery-stat-top-item-artist:focus, .discovery-stat-top-item-artist:focus,
.discovery-stat-top-item-artist:hover, .discovery-stat-top-item-artist:hover,
.discovery-stat-top-item-artist a, .discovery-stat-top-item-artist a,
@@ -858,37 +853,25 @@
.section-with-separator::after { .section-with-separator::after {
background-color: @base; background-color: @base;
} }
.header-new-bookmark-button, body .header-new-bookmark-button,
.header-new-download-button, body .header-new-download-button,
.header-new-love-button, body .header-new-love-button,
.header-new-more-button, body .header-new-more-button {
body:not(.js-focus-visible)
body:not([data-whatinput="touch"])
.header-new-bookmark-button:focus,
body:not(.js-focus-visible)
body:not([data-whatinput="touch"])
.header-new-download-button:focus,
body:not(.js-focus-visible)
body:not([data-whatinput="touch"])
.header-new-love-button:focus,
body:not(.js-focus-visible)
body:not([data-whatinput="touch"])
.header-new-more-button:focus,
body:not([data-whatinput="touch"])
.header-new-bookmark-button
.focus-visible,
body:not([data-whatinput="touch"]) .header-new-bookmark-button:hover,
body:not([data-whatinput="touch"])
.header-new-download-button
.focus-visible,
body:not([data-whatinput="touch"]) .header-new-download-button:hover,
body:not([data-whatinput="touch"]) .header-new-love-button .focus-visible,
body:not([data-whatinput="touch"]) .header-new-love-button:hover,
body:not([data-whatinput="touch"]) .header-new-more-button .focus-visible,
body:not([data-whatinput="touch"]) .header-new-more-button:hover {
color: @base; color: @base;
background-color: @accent; background-color: @accent;
} }
body:not([data-whatinput="touch"]) {
.header-new-bookmark-button,
.header-new-download-button,
.header-new-love-button,
.header-new-more-button {
.focus-visible,
&:hover {
color: @base;
background-color: @accent;
}
}
}
.wiki-block-inner, .wiki-block-inner,
.catalogue-metadata-heading, .catalogue-metadata-heading,
.catalogue-metadata-description, .catalogue-metadata-description,
@@ -896,20 +879,26 @@
color: @subtext0; color: @subtext0;
} }
.similar-albums-item-name a,
.similar-albums-item-name a:focus,
.similar-albums-item-name a:hover {
color: @text;
}
.text-18 { .text-18 {
color: @accent; color: @accent;
} }
.artist-similar-artists-sidebar-item-name a, .artist-similar-artists-sidebar-item-name,
.artist-similar-artists-sidebar-item-name a:focus, .artist-top-albums-item-name,
.artist-similar-artists-sidebar-item-name a:hover { .listeners-section-item-name,
color: @text; .catalogue-overview-similar-artists-full-width-item-name,
.similar-albums-item-name,
.discovery-stat-top-item-name,
.source-album-artist,
.source-album-name,
.track-similar-tracks-item-name,
.about-artist-name,
.catalogue-overview-similar-artists-item-name {
a {
&, &:focus, &:hover {
color: @text;
}
}
} }
.events-list-item-event-name.link-block-target > span { .events-list-item-event-name.link-block-target > span {
@@ -920,24 +909,6 @@
color: @subtext0; color: @subtext0;
} }
.artist-top-albums-item-name a,
.artist-top-albums-item-name a:focus,
.artist-top-albums-item-name a:hover {
color: @text;
}
.listeners-section-item-name a,
.listeners-section-item-name a:focus,
.listeners-section-item-name a:hover {
color: @text;
}
.catalogue-overview-similar-artists-full-width-item-name a,
.catalogue-overview-similar-artists-full-width-item-name a:focus,
.catalogue-overview-similar-artists-full-width-item-name a:hover {
color: @text;
}
.resource-external-link, .resource-external-link,
.resource-external-link:hover { .resource-external-link:hover {
color: @text; color: @text;
@@ -996,34 +967,6 @@
color: @text; color: @text;
} }
/* TRACK */
.source-album-artist a,
.source-album-artist a:focus,
.source-album-artist a:hover,
.source-album-name a,
.source-album-name a:focus,
.source-album-name a:hover {
color: @text;
}
.track-similar-tracks-item-name a,
.track-similar-tracks-item-name a:focus,
.track-similar-tracks-item-name a:hover {
color: @text;
}
.about-artist-name a,
.about-artist-name a:focus,
.about-artist-name a:hover {
color: @text;
}
.catalogue-overview-similar-artists-item-name a,
.catalogue-overview-similar-artists-item-name a:focus,
.catalogue-overview-similar-artists-item-name a:hover {
color: @text;
}
.stationlink::before { .stationlink::before {
background-color: @accent; background-color: @accent;
-webkit-filter: invert(0%); -webkit-filter: invert(0%);
@@ -1094,45 +1037,28 @@
background-color: @crust; background-color: @crust;
} }
.content-form .form-control, .content-form {
.content-form input[type="date"], .form-control,
.content-form input[type="email"], input[type="date"],
.content-form input[type="number"], input[type="email"],
.content-form input[type="password"], input[type="number"],
.content-form input[type="text"], input[type="password"],
.content-form input[type="url"], input[type="text"],
.content-form select, input[type="url"],
.content-form textarea { select,
background-color: @crust; textarea {
border-color: @crust; background-color: @crust;
color: @subtext0; border-color: @crust;
} color: @subtext0;
&:focus {
.content-form .form-control:focus, box-shadow: none;
.content-form input[type="date"]:focus, border-color: @crust;
.content-form input[type="email"]:focus, }
.content-form input[type="number"]:focus, &:hover:not([disabled]) {
.content-form input[type="password"]:focus, border-color: @crust;
.content-form input[type="text"]:focus, color: @text;
.content-form input[type="url"]:focus, }
.content-form select:focus, }
.content-form textarea:focus {
box-shadow: none;
border-color: @crust;
}
.content-form .form-control:hover:not([disabled]),
.content-form input[type="date"]:hover:not([disabled]),
.content-form input[type="email"]:hover:not([disabled]),
.content-form input[type="number"]:hover:not([disabled]),
.content-form input[type="password"]:hover:not([disabled]),
.content-form input[type="text"]:hover:not([disabled]),
.content-form input[type="url"]:hover:not([disabled]),
.content-form select:hover:not([disabled]),
.content-form textarea:hover:not([disabled]),
.content-form .inplace-field,
.inplace-field {
border-color: @crust;
color: @text;
} }
.control-label { .control-label {
color: @accent; color: @accent;
@@ -1286,9 +1212,7 @@
.api-session-disconnect:hover, .api-session-disconnect:hover,
.api-session-disconnect:active, .api-session-disconnect:active,
.clipboard-button, .clipboard-button,
body:not(.js-focus-visible) body:not(.js-focus-visible) body:not([data-whatinput="touch"]) .clipboard-button:focus,
body:not([data-whatinput="touch"])
.clipboard-button:focus,
body:not([data-whatinput="touch"]) .clipboard-button .focus-visible, body:not([data-whatinput="touch"]) .clipboard-button .focus-visible,
body:not([data-whatinput="touch"]) .clipboard-button:hover { body:not([data-whatinput="touch"]) .clipboard-button:hover {
background-color: @accent !important; background-color: @accent !important;
@@ -1365,14 +1289,13 @@
background-color: @overlay0 !important; background-color: @overlay0 !important;
color: @text !important; color: @text !important;
} }
.masthead-nav .masthead-nav-control:focus, .masthead-nav .masthead-nav-control,
.masthead-nav .masthead-nav-control:hover, .masthead-nav .navlist-more,
.masthead-nav .navlist-more:focus, .site-auth-control {
.masthead-nav .navlist-more:hover, &:focus, &:hover {
.site-auth-control:focus, background-color: transparent;
.site-auth-control:hover { color: @accent !important;
background-color: transparent; }
color: @accent !important;
} }
.site-auth-control.btn-secondary { .site-auth-control.btn-secondary {
color: @base !important; color: @base !important;
@@ -1470,42 +1393,33 @@
background-color: @subtext0; background-color: @subtext0;
} }
.chartlist-love-button::before, .chartlist-love-button,
.header-new-love-button::before { .header-new-love-button {
background-image: none !important; &::before {
mask-image: url("/static/images/icons/love_animation_tracklist_24.3c884b0287d4.png"); background-image: none !important;
-webkit-mask-image: url("/static/images/icons/love_animation_tracklist_24.3c884b0287d4.png"); mask-image: url("/static/images/icons/love_animation_tracklist_24.3c884b0287d4.png");
background-color: @text; -webkit-mask-image: url("/static/images/icons/love_animation_tracklist_24.3c884b0287d4.png");
mask-position: 0 0; background-color: @text;
-webkit-mask-position: 0 0; mask-position: 0 0;
-webkit-mask-position: 0 0;
}
&:focus::before,
&:hover::before {
mask-position: -24px 0;
-webkit-mask-position: -24px 0;
background-color: @red;
}
} }
.chartlist-love-button:focus::before, [data-toggle-button-current-state="loved"] .chartlist-love-button,
.chartlist-love-button:hover::before, [data-toggle-button-current-state="loved"] .header-new-love-button {
.header-new-love-button:focus::before, &::before, &:focus::before, &:hover::before {
.header-new-love-button:hover::before { mask-position: -552px 0;
mask-position: -24px 0; -webkit-mask-position: -552px 0;
background-color: @red; transition: mask-position 0.7s steps(22) !important;
} -webkit-transition: -webkit-mask-position 0.7s steps(22) !important;
background-color: @red;
[data-toggle-button-current-state="loved"] .chartlist-love-button::before, }
[data-toggle-button-current-state="loved"] .header-new-love-button::before {
mask-position: -552px 0;
transition: mask-position 0.7s steps(23) !important;
-webkit-transition: -webkit-mask-position 0.7s steps(23) !important;
background-color: @red;
}
[data-toggle-button-current-state="loved"]
.chartlist-love-button:focus::before,
[data-toggle-button-current-state="loved"]
.chartlist-love-button:hover::before,
[data-toggle-button-current-state="loved"]
.header-new-love-button:focus::before,
[data-toggle-button-current-state="loved"]
.header-new-love-button:hover::before {
transition: mask-position 0.7s steps(22) !important;
-webkit-transition: -webkit-mask-position 0.7s steps(22) !important;
} }
.section-settings-toggle::before { .section-settings-toggle::before {