summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel g. siegel2016-09-14 16:14:42 +0200
committerdaniel g. siegel2016-09-14 16:14:42 +0200
commit6a9124502af56aec7412fb24c5407380c4741daf (patch)
tree9c43dd9b12251c0732ea751bed38853583181c1f
parentb769df585e51408d3796994a11226c83c8553904 (diff)
downloadwp-remulus-6a9124502af56aec7412fb24c5407380c4741daf.tar.gz
wp-remulus-6a9124502af56aec7412fb24c5407380c4741daf.tar.bz2
wp-remulus-6a9124502af56aec7412fb24c5407380c4741daf.zip
add support for responsive iframe videos
-rw-r--r--style.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/style.css b/style.css
index 70506b5..ef6886d 100644
--- a/style.css
+++ b/style.css
@@ -389,3 +389,17 @@ article .navigation .nav-next {
h6 { font-size: 1em; }
article { font-size: 0.9em; }
}
+
+.embed-container {
+ position: relative;
+ padding-bottom: 56.25%; /* 16:9 */
+ height: 0;
+}
+
+.embed-container iframe {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}