summaryrefslogtreecommitdiff
path: root/themes/theme/source/css/post/media.styl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/theme/source/css/post/media.styl')
-rw-r--r--themes/theme/source/css/post/media.styl17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/theme/source/css/post/media.styl b/themes/theme/source/css/post/media.styl
new file mode 100644
index 00000000..3d49010f
--- /dev/null
+++ b/themes/theme/source/css/post/media.styl
@@ -0,0 +1,17 @@
+img
+ width 100%
+ height auto
+
+// fix 16:9 ratio
+.video-container
+ width 100%
+ padding-top 56.25%
+ position relative
+
+.video-container>iframe
+ position absolute
+ top 0
+ left 0
+ width 100%
+ height 100%
+