Skip to content

Commit

Permalink
Make Big Play Button smaller (FreeTubeApp#6002)
Browse files Browse the repository at this point in the history
* Make player button smaller

* move transparency seting to media query
  • Loading branch information
ChunkyProgrammer authored and Soham456 committed Dec 5, 2024
1 parent e2c5ba4 commit e9e3e29
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@
opacity: 1;
}

:deep(.shaka-controls-container > .shaka-play-button-container > .shaka-play-button) {
padding: min(calc(15% / 2), 55px);
}

.ftVideoPlayer:fullscreen :deep(.theatre-button),
.ftVideoPlayer:fullscreen :deep(.full-window-button),
.fullWindow :deep(.theatre-button) {
Expand Down Expand Up @@ -248,4 +252,11 @@
}
}

@media (prefers-reduced-transparency:no-preference) {
/* add transparency to big play button */
:deep(.shaka-controls-container[shown='true'] > .shaka-play-button-container > .shaka-play-button) {
opacity: 0.75 !important;
}
}

/* stylelint-enable liberty/use-logical-spec */

0 comments on commit e9e3e29

Please sign in to comment.