Skip to content

Commit

Permalink
update skip button style
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Dec 5, 2024
1 parent 7cf8952 commit 758bdbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions public/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,25 @@

.autoHiding:not(.sbhidden) {
transform: translateX(0%);
transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.2s cubic-bezier(0.215, 0.61, 0.355, 1),
opacity 0.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.autoHiding.sbhidden {
transform: translateX(100%);
transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
/* width: 0px !important; */
transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.2s cubic-bezier(0.215, 0.61, 0.355, 1),
opacity 0.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
opacity: 0;
}

@media (max-width: 1260px){
.autoHiding.sbhidden{
@media (max-width: 1260px) {
.autoHiding.sbhidden {
width: 0px !important;
}
}

.autoHiding.sbhidden.autoHideLeft {
transform: translateX(-100%) scale(0);
transform: translateX(-100%);
}

.sponsorSkipObject {
Expand Down
2 changes: 2 additions & 0 deletions src/js-components/skipButtonControlBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ export class SkipButtonControlBar {
this.skipButton = document.createElement("button");
this.skipButton.classList.add("bpx-player-ctrl-btn", "playerButton");
this.skipButton.id = "sbSkipIconControlBarButton";
this.skipButton.draggable = false;

this.skipIcon = document.createElement("img");
this.skipIcon.src = chrome.runtime.getURL("icons/skipIcon.svg");
this.skipIcon.classList.add("bpx-player-ctrl-btn-icon", "playerButtonImage");
this.skipIcon.id = "sbSkipIconControlBarImage";
this.skipIcon.draggable = false;

this.skipButton.appendChild(this.skipIcon);

Expand Down

0 comments on commit 758bdbe

Please sign in to comment.