From e942da8cf9c1382ce4c5540ee92b9cc5d7df5c5e Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sat, 7 Sep 2024 16:23:52 +0200 Subject: [PATCH] he --- layouts/shortcodes/youtube.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html index 1533880..563d3cb 100644 --- a/layouts/shortcodes/youtube.html +++ b/layouts/shortcodes/youtube.html @@ -20,8 +20,9 @@ display:block; width:100%; height:597px; - &.static::after{ - position:absolute; + &.static{ + &::after{ + position:relative; left:50%; top:50%; transform: translate(-50% -50%); @@ -29,6 +30,11 @@ height:20px; content:"Play"; background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/52/YouTube_social_white_circle_%282017%29.svg/1024px-YouTube_social_white_circle_%282017%29.svg.png); + } + img{ + width:100%!important; + height:100%!important; + } } }