Skip to content

Commit

Permalink
apply disable gifs to community browse page
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Jan 23, 2025
1 parent d0317c7 commit c332219
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/accesskit/disable_gifs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const labelClass = 'xkit-paused-gif-label';
const containerClass = 'xkit-paused-gif-container';
const backgroundGifClass = 'xkit-paused-background-gif';

const hovered = `:is(:hover > *, .${containerClass}:hover *)`;
const hovered = `:is(:hover > *, .${containerClass}:hover *, a:hover + div *)`;

export const styleElement = buildStyle(`
.${labelClass} {
Expand Down Expand Up @@ -50,7 +50,7 @@ img[style*="${pausedContentVar}"]:not(${hovered}) {
.${backgroundGifClass}:not(:hover) {
background-image: none !important;
background-color: rgb(var(--secondary-accent));
background-color: rgb(var(--secondary-accent)) !important;
}
.${backgroundGifClass}:not(:hover) > div {
Expand Down Expand Up @@ -146,7 +146,7 @@ export const main = async function () {
pageModifications.register(gifImage, processGifs);

const gifBackgroundImage = `
${keyToCss('communityHeaderImage', 'bannerImage', 'videoHubCardWrapper')}[style*=".gif"]
${keyToCss('communityHeaderImage', 'communityCategoryImage', 'bannerImage', 'videoHubCardWrapper')}[style*=".gif"]
`;
pageModifications.register(gifBackgroundImage, processBackgroundGifs);

Expand Down

0 comments on commit c332219

Please sign in to comment.