Skip to content

Commit 788edfc

Browse files
committed
update video css.
1 parent f5c1325 commit 788edfc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

blocks/video/video.css

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@
8585
overflow: hidden;
8686
}
8787

88-
.block.video .video-placeholder-play > button {
88+
.block.video .video-placeholder picture::before {
8989
opacity: 1;
90+
-webkit-transition: all .3s ease;
91+
-o-transition: all .3s ease;
9092
transition: all .3s ease;
9193
content: '';
92-
position: relative;
94+
position: absolute;
9395
width: 152px;
9496
height: 152px;
95-
max-width: 152px;
96-
padding: 0;
9797
z-index: 100;
9898
display: block;
9999
top: 50%;
@@ -102,9 +102,9 @@
102102
background-repeat: no-repeat;
103103
background-position: center center;
104104
background-size: contain;
105+
-webkit-transform: translateX(-50%) translateY(-50%);
106+
-ms-transform: translateX(-50%) translateY(-50%);
105107
transform: translateX(-50%) translateY(-50%);
106-
border: 0;
107-
background-color: transparent;
108108
}
109109

110110
.block.video .block.video-placeholder picture img {

0 commit comments

Comments
 (0)