From 04a9f82bdc87a056c98c25efb4639a68071376d3 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 8 Oct 2023 16:38:40 -0400 Subject: [PATCH] Rename hidden css class to sbhidden to fix compatibility with Piped Fixes #1865 --- public/content.css | 14 +++++++------- public/options/options.css | 2 +- public/permissions/styles.css | 2 +- public/popup.css | 2 +- public/shared.css | 2 +- src/components/ChapterVoteComponent.tsx | 4 ++-- src/components/NoticeComponent.tsx | 6 +++--- src/js-components/skipButtonControlBar.ts | 20 ++++++++++---------- src/utils/animationUtils.ts | 10 +++++----- 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/public/content.css b/public/content.css index 2681afa9..39051417 100644 --- a/public/content.css +++ b/public/content.css @@ -7,7 +7,7 @@ --sb-dark-red-outline: rgb(130,0,0,0.9); } -.hidden { +.sbhidden { display: none; } @@ -151,7 +151,7 @@ div:hover > .sponsorBlockChapterBar { vertical-align: top; } -.playerButton.hidden:not(.autoHiding) { +.playerButton.sbhidden:not(.autoHiding) { display: none !important; } @@ -169,13 +169,13 @@ div:hover > .sponsorBlockChapterBar { overflow: visible !important; } -.autoHiding:not(.hidden) { +.autoHiding:not(.sbhidden) { transform: translateX(0%) scale(1); /* opacity is from YouTube page */ transition: transform 0.2s, width 0.2s, opacity .1s cubic-bezier(0.4,0.0,1,1) !important; } -.autoHiding.hidden { +.autoHiding.sbhidden { transform: translateX(100%) scale(0); /* opacity is from YouTube page */ transition: transform 0.2s, width 0.2s, opacity .1s cubic-bezier(0.4,0.0,1,1) !important; @@ -183,7 +183,7 @@ div:hover > .sponsorBlockChapterBar { width: 0px !important; } -.autoHiding.hidden.autoHideLeft { +.autoHiding.sbhidden.autoHideLeft { transform: translateX(-100%) scale(0); } @@ -272,7 +272,7 @@ div:hover > .sponsorBlockChapterBar { max-width: calc(100% - 50px); } -.sponsorSkipNotice .hidden { +.sponsorSkipNotice .sbhidden { display: none; } @@ -691,7 +691,7 @@ input::-webkit-inner-spin-button { color: white; } -.skipButtonControlBarContainer.hidden { +.skipButtonControlBarContainer.sbhidden { display: none !important; } diff --git a/public/options/options.css b/public/options/options.css index d9acda83..4ff811de 100644 --- a/public/options/options.css +++ b/public/options/options.css @@ -257,7 +257,7 @@ input[type='number'] { opacity: 0; } -.hidden { +.hidden, .sbhidden { display: none !important; } diff --git a/public/permissions/styles.css b/public/permissions/styles.css index 2cf49791..9c82618b 100644 --- a/public/permissions/styles.css +++ b/public/permissions/styles.css @@ -19,7 +19,7 @@ body { font-weight: bold; } -.hidden { +.hidden, .sbhidden { display: none !important; } diff --git a/public/popup.css b/public/popup.css index 76733fab..a30c3a3d 100644 --- a/public/popup.css +++ b/public/popup.css @@ -27,7 +27,7 @@ position: relative; } -#sponsorBlockPopupBody .hidden { +#sponsorBlockPopupBody .hidden, #sponsorBlockPopupBody .sbhidden { display: none !important; } diff --git a/public/shared.css b/public/shared.css index 7435653f..4dd8a035 100644 --- a/public/shared.css +++ b/public/shared.css @@ -36,7 +36,7 @@ max-width: calc(100% - 50px); } -.sponsorSkipNotice .hidden { +.sponsorSkipNotice .sbhidden { display: none; } diff --git a/src/components/ChapterVoteComponent.tsx b/src/components/ChapterVoteComponent.tsx index 9ee75727..d50878a6 100644 --- a/src/components/ChapterVoteComponent.tsx +++ b/src/components/ChapterVoteComponent.tsx @@ -44,7 +44,7 @@ class ChapterVoteComponent extends React.Component {/* Upvote Button */}