aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-05-19 14:38:37 +0300
committerGravatar Vitaly Takmazov2017-05-19 14:38:37 +0300
commitfc5b23749b5c593ca4dc90ae4d0a1686c4ec92ea (patch)
treea054a7658db21637344034ce751ef8ae6bcaf1af /juick-www/src
parente341d56f229b2f82fef75fab48c311677485f39c (diff)
juick-www: fix video embed
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/static/style.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css
index 012282cf..05369c22 100644
--- a/juick-www/src/main/static/style.css
+++ b/juick-www/src/main/static/style.css
@@ -750,8 +750,22 @@ fieldset {
margin-top: 25px;
}
.embedContainer {
+ position: relative;
+ padding-bottom: 56.25%;
+ padding-top: 30px;
+ height: 0;
+ overflow: hidden;
text-align: center;
}
+.embedContainer iframe,
+.embedContainer object,
+.embedContainer embed {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
.embedContainer img {
max-width: 100%;
}