diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-01-18 10:43:29 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-01-18 10:43:29 +0100 |
commit | 941b86b6c390bf91eeb6b47f12ff8bf830e28b0a (patch) | |
tree | 2916787d820d26a2c6082c26e80921aea89533bf /css | |
parent | 84090b882f99c1da5b73bbe04a9c74731e71dfc8 (diff) | |
download | fosdem-2018-presentation-941b86b6c390bf91eeb6b47f12ff8bf830e28b0a.tar fosdem-2018-presentation-941b86b6c390bf91eeb6b47f12ff8bf830e28b0a.tar.gz |
works with video, defaults to (same as for images)
Diffstat (limited to 'css')
-rw-r--r-- | css/reveal.css | 8 | ||||
-rw-r--r-- | css/reveal.scss | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/css/reveal.css b/css/reveal.css index 430dcde..18bb25c 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -865,7 +865,13 @@ body { max-width: none; max-height: none; top: 0; - left: 0; } + left: 0; + -o-object-fit: cover; + object-fit: cover; } + +.reveal .slide-background[data-background-size="contain"] video { + -o-object-fit: contain; + object-fit: contain; } /* Immediate transition style */ .reveal[data-background-transition=none] > .backgrounds .slide-background, diff --git a/css/reveal.scss b/css/reveal.scss index 22fb3fe..68ff56f 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -898,7 +898,11 @@ body { max-height: none; top: 0; left: 0; + object-fit: cover; } + .reveal .slide-background[data-background-size="contain"] video { + object-fit: contain; + } /* Immediate transition style */ .reveal[data-background-transition=none]>.backgrounds .slide-background, |