From 5a71426ea5bc387f362d700fbceb277516d41375 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Apr 2021 18:47:49 +0300 Subject: youtube_embed: use embed-responsive --- themes/light/cdm.less | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'themes/light/cdm.less') diff --git a/themes/light/cdm.less b/themes/light/cdm.less index 41d789a09..a89ceed27 100644 --- a/themes/light/cdm.less +++ b/themes/light/cdm.less @@ -115,11 +115,13 @@ font-size : 16px; } - .intermediate iframe, - .content-inner iframe { - max-width : 98%; - width : auto; - height : auto; + .intermediate, + .content-inner { + iframe { + max-width : 98%; + width : auto; + height : auto; + } } .intermediate img, @@ -208,19 +210,22 @@ } } - .content-inner .embed-responsive { - overflow : hidden; - padding-bottom : @embed-responsive-padding; - position : relative; - - iframe { - border : 0; - bottom : 0; - height : 100%; - left : 0; - position : absolute; - top : 0; - width : 100%; + .intermediate, + .content-inner { + .embed-responsive { + overflow : hidden; + padding-bottom : @embed-responsive-padding; + position : relative; + + iframe { + border : 0; + bottom : 0; + height : 100%; + left : 0; + position : absolute; + top : 0; + width : 100%; + } } } -- cgit v1.2.3