From 24e097f126aee59206c7f44e2b37b915d85dfd23 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 7 Nov 2013 03:19:39 +0100 Subject: Setting responsive dimensions. --- views/default/videolist/css.php | 17 +++++++++++++++-- views/default/videolist/watch/bliptv.php | 4 +--- views/default/videolist/watch/gisstv.php | 4 +--- views/default/videolist/watch/metacafe.php | 4 +--- views/default/videolist/watch/vimeo.php | 4 +--- views/default/videolist/watch/youtube.php | 4 +--- 6 files changed, 20 insertions(+), 17 deletions(-) (limited to 'views/default/videolist') diff --git a/views/default/videolist/css.php b/views/default/videolist/css.php index 931d80567..625935451 100644 --- a/views/default/videolist/css.php +++ b/views/default/videolist/css.php @@ -5,6 +5,19 @@ ?> .videolist-watch { - margin-top: 40px; - margin-left: 20px; + margin-top: 40px; + position: relative; + padding-bottom: 56.25%; + padding-top: 30px; + height: 0; } + +.videolist-watch iframe, +.videolist-watch object, +.videolist-watch embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/views/default/videolist/watch/bliptv.php b/views/default/videolist/watch/bliptv.php index b7f72dea6..241cf791b 100644 --- a/views/default/videolist/watch/bliptv.php +++ b/views/default/videolist/watch/bliptv.php @@ -1,7 +1,5 @@ embedurl; -$width = $vars['width']; -$height = $vars['height']; -echo ""; +echo ""; diff --git a/views/default/videolist/watch/gisstv.php b/views/default/videolist/watch/gisstv.php index 15a903ab1..a96894ada 100644 --- a/views/default/videolist/watch/gisstv.php +++ b/views/default/videolist/watch/gisstv.php @@ -1,9 +1,7 @@ video_id; -$width = $vars['width']; -$height = $vars['height']; -echo "