From 788edfc356514eae92018d2b1f26cd697b4de3ab Mon Sep 17 00:00:00 2001 From: wildone Date: Mon, 12 Aug 2024 15:53:48 +1000 Subject: [PATCH] update video css. --- blocks/video/video.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blocks/video/video.css b/blocks/video/video.css index ffd5d995..10ddd68 100644 --- a/blocks/video/video.css +++ b/blocks/video/video.css @@ -85,15 +85,15 @@ overflow: hidden; } -.block.video .video-placeholder-play > button { +.block.video .video-placeholder picture::before { opacity: 1; + -webkit-transition: all .3s ease; + -o-transition: all .3s ease; transition: all .3s ease; content: ''; - position: relative; + position: absolute; width: 152px; height: 152px; - max-width: 152px; - padding: 0; z-index: 100; display: block; top: 50%; @@ -102,9 +102,9 @@ background-repeat: no-repeat; background-position: center center; background-size: contain; + -webkit-transform: translateX(-50%) translateY(-50%); + -ms-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); - border: 0; - background-color: transparent; } .block.video .block.video-placeholder picture img {