forked from FriedChickenButt/youtube-webos
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix offset shorts <video> on older webOS
- Loading branch information
Showing
3 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* Fixes transparency effect for the video player */ | ||
.ytlr-watch-default__shadow { | ||
background-image: linear-gradient( | ||
to bottom, | ||
rgba(0, 0, 0, 0) 0, | ||
rgba(0, 0, 0, 0.8) 90% | ||
) !important; | ||
background-color: rgba(0, 0, 0, 0.3) !important; | ||
display: block !important; | ||
height: 100% !important; | ||
pointer-events: none !important; | ||
position: absolute !important; | ||
width: 100% !important; | ||
} | ||
|
||
/* Fixes shorts thumbnails */ | ||
.ytlr-tile-header-renderer--shorts { | ||
z-index: -1; | ||
} | ||
|
||
/** | ||
* Dirty hack to fix offset <video> on shorts on older webOS versions. | ||
* This shouldn't work but it does 😵💫. | ||
* See webosbrew/youtube-webos/pull/235 for insanity. | ||
*/ | ||
.WEB_PAGE_TYPE_SHORTS video { | ||
border-bottom: black 1px solid; | ||
/* Smallest transparent image */ | ||
border-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7') | ||
30%; | ||
} |