diff options
| author | Leon Klingele <git@leonklingele.de> | 2019-08-09 02:00:22 +0200 |
|---|---|---|
| committer | Leon Klingele <git@leonklingele.de> | 2019-08-09 02:04:36 +0200 |
| commit | 46577fb1285e99ca60438d575c9eb0542cde52b0 (patch) | |
| tree | ef7907177d7b8727c25b10c528d014d67d418cdc /assets | |
| parent | 66b949bed1b2d685ec2f76c99897a13b94a9373b (diff) | |
| download | invidious-46577fb1285e99ca60438d575c9eb0542cde52b0.tar.gz invidious-46577fb1285e99ca60438d575c9eb0542cde52b0.tar.bz2 invidious-46577fb1285e99ca60438d575c9eb0542cde52b0.zip | |
Add support for player styles
This currently includes the following styles:
- Invidious, the default
- YouTube, using a centered play button and always visible video control bar
Implements https://github.com/omarroth/invidious/issues/670.
Supersedes https://github.com/omarroth/invidious/pull/661.
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/default.css | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index c527cbca..4b81d9f5 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -433,3 +433,22 @@ video.video-js { .pure-control-group label { word-wrap: normal; } + +.video-js.player-style-invidious { + /* This is already the default */ +} + +.video-js.player-style-youtube .vjs-control-bar { + display: flex; + flex-direction: row; +} +.video-js.player-style-youtube .vjs-big-play-button { + /* + Styles copied from video-js.min.css, definition of + .vjs-big-play-centered .vjs-big-play-button + */ + top: 50%; + left: 50%; + margin-top: -.81666em; + margin-left: -1.5em; +} |
