fix(lastfm): Optimize masks (#482)
* fix(lastfm): Optimize masks * fix(lastfm): duplicate selectors * fix(lastfm): misc. refactoring * chore(lastfm): bump ver.
This commit is contained in:
1 parent
40835f5182
commit
b86a384f59
1 file changed
+145
-224
+145
-224
@@ -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.4
|
@version 1.1.5
|
||||||
@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
|
||||||
@@ -114,6 +114,47 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mixin to dynamically set colors of album, artist and track categories
|
||||||
|
|
||||||
|
.category-colors() {
|
||||||
|
&artist {
|
||||||
|
--category-background: @yellow;
|
||||||
|
}
|
||||||
|
&album {
|
||||||
|
--category-background: @green;
|
||||||
|
}
|
||||||
|
&track {
|
||||||
|
--category-background: @blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Evil image mask hack
|
||||||
|
// Use as follows:
|
||||||
|
// .maskimage(mask-image, background-color, mask-position, mask-size, mask-repeat);
|
||||||
|
// Setting any value to "skip" skips that attribute
|
||||||
|
.mask-image(@mask-image: url(""), @mask-color: skip, @mask-position: skip, @mask-size: skip, @mask-repeat: skip) {
|
||||||
|
& when not (@mask-color = skip) {
|
||||||
|
background-image: none !important;
|
||||||
|
background-color: @mask-color;
|
||||||
|
}
|
||||||
|
& when not (@mask-image = skip) {
|
||||||
|
mask-image: @mask-image;
|
||||||
|
-webkit-mask-image: @mask-image;
|
||||||
|
}
|
||||||
|
& when not (@mask-position = skip) {
|
||||||
|
mask-position: @mask-position;
|
||||||
|
-webkit-mask-position: @mask-position;
|
||||||
|
}
|
||||||
|
& when not (@mask-size = skip) {
|
||||||
|
mask-size: @mask-size;
|
||||||
|
-webkit-mask-size: @mask-size;
|
||||||
|
}
|
||||||
|
& when not (@mask-repeat = skip) {
|
||||||
|
mask-repeat: @mask-repeat;
|
||||||
|
-webkit-mask-repeat: @mask-repeat;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* -----------CHECKBOXES AND RADIOS---------- */
|
/* -----------CHECKBOXES AND RADIOS---------- */
|
||||||
.lfm-form-radio input[type="radio"]:checked + label::before {
|
.lfm-form-radio input[type="radio"]:checked + label::before {
|
||||||
border-color: @accent;
|
border-color: @accent;
|
||||||
@@ -154,37 +195,30 @@
|
|||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.homefeed
|
.homefeed {
|
||||||
.content-top
|
.content-top .secondary-nav-item {
|
||||||
.secondary-nav-item--artists
|
&--artists, &--albums, &--tracks, &--events {
|
||||||
.secondary-nav-item-link:hover::after,
|
.secondary-nav-item-link:hover::after {
|
||||||
.homefeed
|
background-color: @accent-dim;
|
||||||
.content-top
|
}
|
||||||
.secondary-nav-item--albums
|
}
|
||||||
.secondary-nav-item-link:hover::after,
|
}
|
||||||
.homefeed
|
&--artists, &--albums, &--tracks, &--events {
|
||||||
.content-top
|
.content-top .secondary-nav-item-link--active::after {
|
||||||
.secondary-nav-item--tracks
|
background-color: @accent-dim;
|
||||||
.secondary-nav-item-link:hover::after,
|
}
|
||||||
.homefeed
|
}
|
||||||
.content-top
|
|
||||||
.secondary-nav-item--events
|
|
||||||
.secondary-nav-item-link:hover::after,
|
|
||||||
.homefeed--artists .content-top .secondary-nav-item-link--active::after,
|
|
||||||
.homefeed--albums .content-top .secondary-nav-item-link--active::after,
|
|
||||||
.homefeed--tracks .content-top .secondary-nav-item-link--active::after,
|
|
||||||
.homefeed--events .content-top .secondary-nav-item-link--active::after {
|
|
||||||
background-color: @accent-dim;
|
|
||||||
}
|
}
|
||||||
.recs-feed .recs-feed-cover-image-wrap::after,
|
.recs-feed .recs-feed, .grid-items {
|
||||||
.grid-items-cover-image-image::after {
|
&-cover-image-wrap::after {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
180deg,
|
180deg,
|
||||||
transparent 0,
|
transparent 0,
|
||||||
rgba(@mantle, 0.4) 50%,
|
rgba(@mantle, 0.4) 50%,
|
||||||
rgba(@mantle, 0.7) 50%,
|
rgba(@mantle, 0.7) 50%,
|
||||||
rgba(@mantle, 0.7) 100%
|
rgba(@mantle, 0.7) 100%
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.recs-feed .context {
|
.recs-feed .context {
|
||||||
@@ -202,26 +236,20 @@
|
|||||||
|
|
||||||
.stationlink-list .stationlink {
|
.stationlink-list .stationlink {
|
||||||
color: @subtext0;
|
color: @subtext0;
|
||||||
}
|
&:focus, &:hover {
|
||||||
|
|
||||||
.stationlink-list .stationlink:focus,
|
|
||||||
.stationlink-list .stationlink:hover {
|
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
&::before {
|
||||||
|
background-color: @subtext0;
|
||||||
.stationlink-list .stationlink::after {
|
}
|
||||||
border-bottom-color: @accent-dim;
|
}
|
||||||
}
|
&::after {
|
||||||
|
border-bottom-color: @accent-dim;
|
||||||
.stationlink-list .stationlink::before {
|
}
|
||||||
background-color: @accent;
|
&::before {
|
||||||
-webkit-filter: invert(0%);
|
background-color: @accent;
|
||||||
filter: invert(0%);
|
-webkit-filter: invert(0%);
|
||||||
}
|
filter: invert(0%);
|
||||||
|
}
|
||||||
.stationlink-list .stationlink:focus::before,
|
|
||||||
.stationlink-list .stationlink:hover::before {
|
|
||||||
background-color: @subtext0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.subscribe-cta,
|
.subscribe-cta,
|
||||||
@@ -250,29 +278,19 @@
|
|||||||
color: @accent;
|
color: @accent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimal-navigation-item-link,
|
.minimal-navigation-item-link {
|
||||||
.minimal-navigation-item-link:focus,
|
&, &:focus, &:hover {
|
||||||
.minimal-navigation-item-link:hover {
|
color: @subtext0;
|
||||||
color: @subtext0;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimal-navigation-item-link--active,
|
.minimal-navigation-item-link--active,
|
||||||
.minimal-navigation-item-link--active:focus,
|
.music-section-heading,
|
||||||
.minimal-navigation-item-link--active:hover {
|
|
||||||
color: @text;
|
|
||||||
}
|
|
||||||
|
|
||||||
.music-section-heading {
|
|
||||||
color: @text;
|
|
||||||
}
|
|
||||||
|
|
||||||
.music-more-artists-item-name a,
|
.music-more-artists-item-name a,
|
||||||
.music-more-artists-item-name a:focus,
|
.music-releases-item-name a {
|
||||||
.music-more-artists-item-name a:hover,
|
&, &:focus, &:hover {
|
||||||
.music-releases-item-name a,
|
color: @text;
|
||||||
.music-releases-item-name a:focus,
|
}
|
||||||
.music-releases-item-name a:hover {
|
|
||||||
color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.music-releases-item-artist,
|
.music-releases-item-artist,
|
||||||
@@ -293,10 +311,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* SEARCH */
|
/* SEARCH */
|
||||||
.artist-result-heading {
|
.artist-result-heading,
|
||||||
color: @text;
|
|
||||||
}
|
|
||||||
|
|
||||||
.album-result-heading {
|
.album-result-heading {
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
@@ -312,17 +327,15 @@
|
|||||||
color: @crust !important;
|
color: @crust !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.recs-feed-item--artist .context::after,
|
.recs-feed-item,
|
||||||
.recs-feed .recs-feed-item--artist .recs-feed-avatar::after {
|
.recs-feed .recs-feed-item {
|
||||||
background-color: fadeout(@yellow, 1) !important;
|
&-- {
|
||||||
|
.category-colors()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.recs-feed-item--album .context::after,
|
.recs-feed-item .context::after,
|
||||||
.recs-feed .recs-feed-item--album .recs-feed-avatar::after {
|
.recs-feed .recs-feed-item .recs-feed-avatar::after {
|
||||||
background-color: fadeout(@green, 1) !important;
|
background-color: var(--category-background) !important;
|
||||||
}
|
|
||||||
.recs-feed-item--track .context::after,
|
|
||||||
.recs-feed .recs-feed-item--track .recs-feed-avatar::after {
|
|
||||||
background-color: fadeout(@blue, 1) !important;
|
|
||||||
}
|
}
|
||||||
.secondary-nav {
|
.secondary-nav {
|
||||||
box-shadow: inset 0 -1px @accent;
|
box-shadow: inset 0 -1px @accent;
|
||||||
@@ -334,18 +347,15 @@
|
|||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.music-recommended-albums-item-name,
|
.music-recommended-albums- {
|
||||||
.music-recommended-albums-album-artist,
|
&item-name, &album-artist, &album-context {
|
||||||
.music-recommended-albums-album-context {
|
color: @text;
|
||||||
color: @text;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.recommended-tracks-item-name,
|
.recommended-tracks-item-name,
|
||||||
.recommended-tracks-item-artist {
|
.recommended-tracks-item-artist,
|
||||||
color: @text;
|
.big-tags-item-context {
|
||||||
}
|
|
||||||
|
|
||||||
.big-tags-item-context {
|
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,12 +373,9 @@
|
|||||||
border-color: rgba(@crust, 0.5);
|
border-color: rgba(@crust, 0.5);
|
||||||
}
|
}
|
||||||
&-date::after {
|
&-date::after {
|
||||||
-webkit-mask-image: url("/static/images/listening-report/v3/report-arrow-up.b6c5a2eb4c3b.svg");
|
.mask-image(url("/static/images/listening-report/v3/report-arrow-up.b6c5a2eb4c3b.svg"), @text, skip, contain);
|
||||||
mask-image: url("/static/images/listening-report/v3/report-arrow-up.b6c5a2eb4c3b.svg");
|
|
||||||
background: @text;
|
|
||||||
height: 0;
|
height: 0;
|
||||||
width: 0;
|
width: 0;
|
||||||
-webkit-mask-size: contain;
|
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
filter: none;
|
filter: none;
|
||||||
}
|
}
|
||||||
@@ -468,10 +475,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* PROFILE */
|
/* PROFILE */
|
||||||
.header-avatar-add,
|
.header-avatar-add {
|
||||||
.header-avatar-add:not(.cta--inactive):focus,
|
&, &:not(.cta--inactive):focus, &:not(.cta--inactive):hover {
|
||||||
.header-avatar-add:not(.cta--inactive):hover {
|
background-color: @accent-dim;
|
||||||
background-color: @accent-dim;
|
}
|
||||||
}
|
}
|
||||||
.dropdown-menu-clickable,
|
.dropdown-menu-clickable,
|
||||||
#share-library-artist,
|
#share-library-artist,
|
||||||
@@ -493,7 +500,6 @@
|
|||||||
-webkit-filter: invert(0%);
|
-webkit-filter: invert(0%);
|
||||||
filter: invert(0%);
|
filter: invert(0%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chartlist-play-button:focus:focus::before,
|
.chartlist-play-button:focus:focus::before,
|
||||||
.chartlist-play-button:focus:hover::before,
|
.chartlist-play-button:focus:hover::before,
|
||||||
.chartlist-play-button:hover:focus::before,
|
.chartlist-play-button:hover:focus::before,
|
||||||
@@ -504,15 +510,15 @@
|
|||||||
|
|
||||||
.text-Color-link,
|
.text-Color-link,
|
||||||
h2,
|
h2,
|
||||||
.dropdown-menu-clickable-item--selected,
|
|
||||||
.dropdown-menu-clickable-item--selected:focus,
|
|
||||||
.dropdown-menu-clickable-item--selected:hover,
|
|
||||||
.dropdown-menu-clickable-button,
|
|
||||||
.dropdown-menu-clickable-button:hover,
|
|
||||||
.dropdown-menu-clickable-button:active,
|
|
||||||
.dropdown-menu-clickable-button.disclose-active {
|
.dropdown-menu-clickable-button.disclose-active {
|
||||||
color: @accent;
|
color: @accent;
|
||||||
}
|
}
|
||||||
|
.dropdown-menu-clickable-button,
|
||||||
|
.dropdown-menu-clickable-item--selected {
|
||||||
|
&, &:focus, &:hover {
|
||||||
|
color: @accent;
|
||||||
|
}
|
||||||
|
}
|
||||||
.dropdown-menu-clickable-item,
|
.dropdown-menu-clickable-item,
|
||||||
.dropdown-menu-clickable-item:active,
|
.dropdown-menu-clickable-item:active,
|
||||||
body:not([data-whatinput="touch"]) .dropdown-menu-clickable-item:focus,
|
body:not([data-whatinput="touch"]) .dropdown-menu-clickable-item:focus,
|
||||||
@@ -608,10 +614,10 @@
|
|||||||
background-color: @accent-dim;
|
background-color: @accent-dim;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chartlist-count-bar-link,
|
.chartlist-count-bar-link {
|
||||||
.chartlist-count-bar-link:focus,
|
&, &:focus, &:hover {
|
||||||
.chartlist-count-bar-link:hover {
|
color: @text;
|
||||||
color: @text;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.shout-form textarea {
|
.shout-form textarea {
|
||||||
@@ -628,20 +634,6 @@
|
|||||||
|
|
||||||
/* LISTENING REPORT */
|
/* LISTENING REPORT */
|
||||||
|
|
||||||
// Mixin to dynamically set colors of album, artist and track categories
|
|
||||||
|
|
||||||
.category-colors() {
|
|
||||||
&artist {
|
|
||||||
--category-background: @yellow;
|
|
||||||
}
|
|
||||||
&album {
|
|
||||||
--category-background: @green;
|
|
||||||
}
|
|
||||||
&track {
|
|
||||||
--category-background: @blue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set color for containers
|
// Set color for containers
|
||||||
|
|
||||||
.report-box-container {
|
.report-box-container {
|
||||||
@@ -656,8 +648,7 @@
|
|||||||
color: @base;
|
color: @base;
|
||||||
// Top border design (////)
|
// Top border design (////)
|
||||||
.report-headline-border {
|
.report-headline-border {
|
||||||
-webkit-mask-image: url("/static/images/listening-report/v3/bg-lines.73682e46b8be.svg");
|
.mask-image(url("/static/images/listening-report/v3/bg-lines.73682e46b8be.svg"));
|
||||||
mask-image: url("/static/images/listening-report/v3/bg-lines.73682e46b8be.svg");
|
|
||||||
background: @base;
|
background: @base;
|
||||||
}
|
}
|
||||||
.report-headline-top {
|
.report-headline-top {
|
||||||
@@ -762,15 +753,11 @@
|
|||||||
background: linear-gradient(90deg, darken(@accent, 5%), @accent);
|
background: linear-gradient(90deg, darken(@accent, 5%), @accent);
|
||||||
// Total scrobbles header
|
// Total scrobbles header
|
||||||
&--total-scrobbles::before {
|
&--total-scrobbles::before {
|
||||||
mask-image: url("/static/images/icons/icon-scrobble.66a5e6978c62.svg");
|
.mask-image(url("/static/images/icons/icon-scrobble.66a5e6978c62.svg"), @base);
|
||||||
-webkit-mask-image: url("/static/images/icons/icon-scrobble.66a5e6978c62.svg");
|
|
||||||
background: @base;
|
|
||||||
}
|
}
|
||||||
// Highest discovery header
|
// Highest discovery header
|
||||||
&--discovery::before {
|
&--discovery::before {
|
||||||
mask-image: url("/static/images/icons/icon-compass.ce30ab3b6240.svg");
|
.mask-image(url("/static/images/icons/icon-compass.ce30ab3b6240.svg"), @base);
|
||||||
-webkit-mask-image: url("/static/images/icons/icon-compass.ce30ab3b6240.svg");
|
|
||||||
background: @base;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.header-metadata-title {
|
.header-metadata-title {
|
||||||
@@ -807,6 +794,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// footer
|
||||||
|
.user-dashboard-layout--version-3 .footer {
|
||||||
|
background-color: @mantle;
|
||||||
|
}
|
||||||
|
|
||||||
// Top tags visualizer: Rainbow colors implemented from Catppuccin Palette
|
// Top tags visualizer: Rainbow colors implemented from Catppuccin Palette
|
||||||
|
|
||||||
@gradient-colors: @rosewater, @flamingo, @pink, @mauve, @red, @maroon,
|
@gradient-colors: @rosewater, @flamingo, @pink, @mauve, @red, @maroon,
|
||||||
@@ -825,9 +817,7 @@
|
|||||||
|
|
||||||
// universal report arrows
|
// universal report arrows
|
||||||
.report-arrow {
|
.report-arrow {
|
||||||
mask-image: url("/static/images/listening-report/v3/report-arrow-up.b6c5a2eb4c3b.svg");
|
.mask-image(url("/static/images/listening-report/v3/report-arrow-up.b6c5a2eb4c3b.svg"), @base, skip, contain);
|
||||||
-webkit-mask-image: url("/static/images/listening-report/v3/report-arrow-up.b6c5a2eb4c3b.svg");
|
|
||||||
background: @base;
|
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
@@ -864,11 +854,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
&-reply::before {
|
&-reply::before {
|
||||||
background: @subtext0;
|
.mask-image(url("/static/images/icons/reply_sprite_16@2x.a145ef7db2f5.png"), @subtext0, skip, 16px 32px);
|
||||||
-mask-image: url("/static/images/icons/reply_sprite_16@2x.a145ef7db2f5.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/reply_sprite_16@2x.a145ef7db2f5.png");
|
|
||||||
-webkit-mask-size: 16px 32px;
|
|
||||||
mask-size: 16px 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-form {
|
&-form {
|
||||||
@@ -883,21 +869,12 @@
|
|||||||
.vote-button {
|
.vote-button {
|
||||||
color: @overlay1;
|
color: @overlay1;
|
||||||
&::before {
|
&::before {
|
||||||
background-image: none;
|
.mask-image(url("/static/images/icons/upvote_sprite_16@2x.5e02a31189da.png"), @overlay2, 0 0, 16px 32px);
|
||||||
background-color: @overlay1;
|
|
||||||
mask-image: url("/static/images/icons/upvote_sprite_16@2x.5e02a31189da.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/upvote_sprite_16@2x.5e02a31189da.png");
|
|
||||||
mask-size: 16px 32px;
|
|
||||||
-webkit-mask-size: 16px 32px;
|
|
||||||
mask-position: 0 0;
|
|
||||||
-webkit-mask-position: 0 0;
|
|
||||||
}
|
}
|
||||||
&--voted {
|
&--voted {
|
||||||
color: @green;
|
color: @green;
|
||||||
&::before {
|
&::before {
|
||||||
background-color: @green;
|
.mask-image(skip, green, 0 -16px, skip);
|
||||||
mask-position: 0 -16px;
|
|
||||||
-webkit-mask-position: 0 -16px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1504,17 +1481,11 @@
|
|||||||
|
|
||||||
/* ----ICONS---- */
|
/* ----ICONS---- */
|
||||||
.lazy-buylinks-toggle::before {
|
.lazy-buylinks-toggle::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/download_sprite_16.2d7999c89e09.png"), @text);
|
||||||
mask-image: url("/static/images/icons/download_sprite_16.2d7999c89e09.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/download_sprite_16.2d7999c89e09.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chartlist-more-button::before {
|
.chartlist-more-button::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/more_sprite_16.bceb4a93c77a.png"), @text);
|
||||||
mask-image: url("/static/images/icons/more_sprite_16.bceb4a93c77a.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/more_sprite_16.bceb4a93c77a.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.lazy-buylinks-toggle:hover::before,
|
.lazy-buylinks-toggle:hover::before,
|
||||||
@@ -1527,18 +1498,11 @@
|
|||||||
.chartlist-love-button,
|
.chartlist-love-button,
|
||||||
.header-new-love-button {
|
.header-new-love-button {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/love_animation_tracklist_24.3c884b0287d4.png"), @text, -24px 0);
|
||||||
mask-image: url("/static/images/icons/love_animation_tracklist_24.3c884b0287d4.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/love_animation_tracklist_24.3c884b0287d4.png");
|
|
||||||
background-color: @text;
|
|
||||||
mask-position: -24px 0;
|
|
||||||
-webkit-mask-position: -24px 0;
|
|
||||||
}
|
}
|
||||||
&:focus::before,
|
&:focus::before,
|
||||||
&:hover::before {
|
&:hover::before {
|
||||||
mask-position: -24px 0;
|
.mask-image(skip, @red, -24px 0);
|
||||||
-webkit-mask-position: -24px 0;
|
|
||||||
background-color: @red;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1547,26 +1511,18 @@
|
|||||||
&::before,
|
&::before,
|
||||||
&:focus::before,
|
&:focus::before,
|
||||||
&:hover::before {
|
&:hover::before {
|
||||||
mask-position: -552px 0;
|
.mask-image(skip, @red, -24px 0);
|
||||||
-webkit-mask-position: -552px 0;
|
|
||||||
transition: mask-position 0.7s steps(22) !important;
|
transition: mask-position 0.7s steps(22) !important;
|
||||||
-webkit-transition: -webkit-mask-position 0.7s steps(22) !important;
|
-webkit-transition: -webkit-mask-position 0.7s steps(22) !important;
|
||||||
background-color: @red;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-settings-toggle::before {
|
.section-settings-toggle::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/settings_222_16.f63779d3cbad.png"), @text);
|
||||||
mask-image: url("/static/images/icons/settings_222_16.f63779d3cbad.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/settings_222_16.f63779d3cbad.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.share-button-profile::before {
|
.share-button-profile::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/share_222_16.9aba752fb1e9.png"), @text);
|
||||||
mask-image: url("/static/images/icons/share_222_16.9aba752fb1e9.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/share_222_16.9aba752fb1e9.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-settings-toggle:hover::before,
|
.section-settings-toggle:hover::before,
|
||||||
@@ -1580,38 +1536,23 @@
|
|||||||
.lyrics-snippet-more-link ::before,
|
.lyrics-snippet-more-link ::before,
|
||||||
.trending-tracks-more-link ::before,
|
.trending-tracks-more-link ::before,
|
||||||
.more-link-fullwidth-right ::before {
|
.more-link-fullwidth-right ::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/arrow_small_right_005399_12.8f025ef116be.png"), @accent);
|
||||||
mask-image: url("/static/images/icons/arrow_small_right_005399_12.8f025ef116be.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/arrow_small_right_005399_12.8f025ef116be.png");
|
|
||||||
background-color: @accent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.play-this-track-playlink--itunes::before {
|
.play-this-track-playlink--itunes::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/apple_music_color_24.17c0b1b9e185.png"), @text);
|
||||||
mask-image: url("/static/images/icons/apple_music_color_24.17c0b1b9e185.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/apple_music_color_24.17c0b1b9e185.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.resource-external-link--homepage::before {
|
.resource-external-link--homepage::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/external_links_16.3d45e81fa3fc.png"), @text);
|
||||||
mask-image: url("/static/images/icons/external_links_16.3d45e81fa3fc.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/external_links_16.3d45e81fa3fc.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert-warning::before {
|
.alert-warning::before {
|
||||||
background-image: none;
|
.mask-image(url("/static/images/icons/alert/warning_16.93f2fe437139.png"), @peach);
|
||||||
mask-image: url("/static/images/icons/alert/warning_16.93f2fe437139.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/alert/warning_16.93f2fe437139.png");
|
|
||||||
background-color: @peach;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.masthead-search-toggle::before {
|
.masthead-search-toggle::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/search_16.bde37072495a.png"), @text);
|
||||||
mask-image: url("/static/images/icons/search_16.bde37072495a.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/search_16.bde37072495a.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.masthead-search-toggle:hover::before,
|
.masthead-search-toggle:hover::before,
|
||||||
@@ -1620,10 +1561,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.masthead-search-toggle.disclose-active::before {
|
.masthead-search-toggle.disclose-active::before {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/icons/delete_999_24.78e2a3de3ab8.png"), @text);
|
||||||
mask-image: url("/static/images/icons/delete_999_24.78e2a3de3ab8.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/delete_999_24.78e2a3de3ab8.png");
|
|
||||||
background-color: @text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.masthead-search-toggle.disclose-active:hover::before,
|
.masthead-search-toggle.disclose-active:hover::before,
|
||||||
@@ -1632,32 +1570,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.masthead-logo {
|
.masthead-logo {
|
||||||
background-image: none !important;
|
.mask-image(url("/static/images/logo_static.adb61955725c.png"), @red, 50% 50%, skip, no-repeat);
|
||||||
mask-image: url("/static/images/logo_static.adb61955725c.png");
|
|
||||||
-webkit-mask-image: url("/static/images/logo_static.adb61955725c.png");
|
|
||||||
mask-position: 50% 50%;
|
|
||||||
-webkit-mask-position: 50% 50%;
|
|
||||||
mask-repeat: no-repeat;
|
|
||||||
-webkit-mask-repeat: no-repeat;
|
|
||||||
background-color: @red;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.catalogue-tags .tags-add::before {
|
.catalogue-tags .tags-add::before {
|
||||||
background-image: none;
|
.mask-image(url("/static/images/icons/add_link_16.637996ed0e2f.png"), @accent);
|
||||||
mask-image: url("/static/images/icons/add_link_16.637996ed0e2f.png");
|
|
||||||
-webkit-mask-image: url("/static/images/icons/add_link_16.637996ed0e2f.png");
|
|
||||||
background-color: @accent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.masthead-logo-loading {
|
.masthead-logo-loading {
|
||||||
-webkit-mask-image: url("/static/images/logo_animate@2x.e93e5b7db3de.gif");
|
.mask-image(url("/static/images/logo_animate@2x.e93e5b7db3de.gif"), @red, 50% 50%, contain, no-repeat);
|
||||||
mask-image: url("/static/images/logo_animate@2x.e93e5b7db3de.gif");
|
|
||||||
-webkit-mask-size: contain;
|
|
||||||
mask-position: 50% 50%;
|
|
||||||
-webkit-mask-position: 50% 50%;
|
|
||||||
mask-repeat: no-repeat;
|
|
||||||
-webkit-mask-repeat: no-repeat;
|
|
||||||
background: @accent !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-image {
|
.layout-image {
|
||||||
|
|||||||
Reference in new issue
Block a user