]> cat aescling's git repositories - mastodon.git/commitdiff
Fix a aspect ratio for the embedded video (#2872)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Sun, 7 May 2017 13:21:46 +0000 (22:21 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 7 May 2017 13:21:46 +0000 (15:21 +0200)
app/javascript/styles/components.scss

index f2d6f988c3fff332d83d1f2556cb85eda05871b3..17a4e09d457f2b8d362706f4131452e508f245f4 100644 (file)
@@ -1798,6 +1798,26 @@ button.icon-button.active i.fa-retweet {
   }
 }
 
+.status-card-video {
+  position: relative;
+  width: 100%;
+  height: auto;
+  padding-top: 56.25%;
+
+  iframe {
+    position: absolute;
+    top: 0;
+    left: 0;
+    bottom: 0;
+    right: 0;
+    width: 1px;
+    min-width: 100%;
+    height: 1px;
+    min-height: 100%;
+    margin: auto;
+  }
+}
+
 .status-card__title {
   display: block;
   font-weight: 500;