diff options
-rw-r--r-- | sass/parts/_article.scss | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sass/parts/_article.scss b/sass/parts/_article.scss index b0f49ab..29355ba 100644 --- a/sass/parts/_article.scss +++ b/sass/parts/_article.scss @@ -55,7 +55,7 @@ article{ h3{ margin-top: 10px; } - img{ + img, video{ max-width: 100%; height: auto; } @@ -90,6 +90,20 @@ article{ color: #999; padding-left: 25px; } + .video-container{ + position: relative; + padding-bottom: 56.25%; + padding-top: 30px; + height: 0; + overflow: hidden; + iframe, object, embed{ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } + } } } .share{ |