oembed: added css for iframe videos contributed by Matthias Mees

This commit is contained in:
Grischa Brockhaus 2012-01-20 11:14:34 +01:00
parent 6515938d07
commit 810e8e04a8
2 changed files with 22 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Version 1.04 (brockhaus)
-----------------------
* added css for iframe videos contributed by Matthias Mees
Version 1.03 (brockhaus)
-----------------------
* Added a Posterous post.ly provider (mainly as an example how to write custom providers).

View file

@ -30,7 +30,7 @@ class serendipity_event_oembed extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_OEMBED_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Grischa Brockhaus');
$propbag->add('version', '1.03');
$propbag->add('version', '1.04');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -120,7 +120,23 @@ class serendipity_event_oembed extends serendipity_event
return true;
}
?>
.serendipity_oembed_video iframe { max-width: 100%; }
.serendipity_oembed_video {
position: relative;
padding-top: 25px;
padding-bottom: 67.5%;
height: 0;
margin-bottom: 16px;
overflow: hidden;
}
.serendipity_oembed_video iframe,
.serendipity_oembed_video object {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
<?php
return true;
}