Skip to content

Commit

Permalink
Merge pull request #76 from xiaoxuan010/optimize-play-control-bar-icons
Browse files Browse the repository at this point in the history
Optimize play control bar icons
  • Loading branch information
hanydd authored Nov 17, 2024
2 parents bb41192 + f97bd43 commit 3e58316
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 518 deletions.
23 changes: 16 additions & 7 deletions public/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
.playerButtonImage {
height: 22px;
vertical-align: top;
opacity: 0.9;
}

.playerButtonImage:hover {
opacity: 1;
}

.playerButton {
Expand Down Expand Up @@ -101,17 +106,21 @@
}

.autoHiding:not(.sbhidden) {
transform: translateX(0%) scale(1);
/* opacity is from YouTube page */
transition: transform 0.2s, width 0.2s, opacity 0.1s cubic-bezier(0.4, 0, 1, 1) !important;
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;
}

.autoHiding.sbhidden {
transform: translateX(100%) scale(0);
/* opacity is from YouTube page */
transition: transform 0.2s, width 0.2s, opacity 0.1s cubic-bezier(0.4, 0, 1, 1) !important;
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; */
opacity: 0;
}

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

.autoHiding.sbhidden.autoHideLeft {
Expand Down
69 changes: 1 addition & 68 deletions public/icons/PlayerCancelSegmentIconSponsorBlocker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 1 addition & 88 deletions public/icons/PlayerDeleteIconSponsorBlocker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions public/icons/PlayerInfoIconSponsorBlocker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 1 addition & 71 deletions public/icons/PlayerStartIconSponsorBlocker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 1 addition & 67 deletions public/icons/PlayerStopIconSponsorBlocker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3e58316

Please sign in to comment.