PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.7
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / admin / assets / css / modal-video.css

modal-video.css in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.7, at admin/assets/css/modal-video.css

134 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @keyframes modal-video {
2 from {
3 opacity: 0;
4 }
5 to {
6 opacity: 1;
7 }
8 }
9 @keyframes modal-video-inner {
10 from {
11 transform: translate(0, 100px);
12 }
13 to {
14 transform: translate(0, 0);
15 }
16 }
17 .modal-video {
18 position: fixed;
19 top: 0;
20 left: auto;
21 right: 0;
22 width: calc(100% - 160px);
23 height: 100%;
24 background-color: rgba(0, 0, 0, 0.5);
25 z-index: 1000000;
26 cursor: pointer;
27 opacity: 1;
28 animation-timing-function: ease-out;
29 animation-duration: 0.3s;
30 animation-name: modal-video;
31 -webkit-transition: opacity 0.3s ease-out;
32 -moz-transition: opacity 0.3s ease-out;
33 -ms-transition: opacity 0.3s ease-out;
34 -o-transition: opacity 0.3s ease-out;
35 transition: opacity 0.3s ease-out;
36 }
37 .modal-video-close {
38 opacity: 0;
39 }
40 .modal-video-close .modal-video-movie-wrap {
41 -webkit-transform: translate(0, 100px);
42 -moz-transform: translate(0, 100px);
43 -ms-transform: translate(0, 100px);
44 -o-transform: translate(0, 100px);
45 transform: translate(0, 100px);
46 }
47 .modal-video-body {
48 max-width: 1800px;
49 width: 100%;
50 height: 100%;
51 margin: 0 auto;
52 box-sizing: border-box;
53 display: table;
54 padding: 10%;
55 }
56 .modal-video-inner {
57 display: table-cell;
58 vertical-align: middle;
59 width: 100%;
60 height: 100%;
61 }
62 .modal-video-movie-wrap {
63 width: 100%;
64 height: 0;
65 position: relative;
66 padding-bottom: 56.25%;
67 background-color: #333;
68 animation-timing-function: ease-out;
69 animation-duration: 0.3s;
70 animation-name: modal-video-inner;
71 -webkit-transform: translate(0, 0);
72 -moz-transform: translate(0, 0);
73 -ms-transform: translate(0, 0);
74 -o-transform: translate(0, 0);
75 transform: translate(0, 0);
76 -webkit-transition: -webkit-transform 0.3s ease-out;
77 -moz-transition: -moz-transform 0.3s ease-out;
78 -ms-transition: -ms-transform 0.3s ease-out;
79 -o-transition: -o-transform 0.3s ease-out;
80 transition: transform 0.3s ease-out;
81 }
82 .modal-video-movie-wrap iframe {
83 position: absolute;
84 top: 0;
85 left: 0;
86 width: 100%;
87 height: 100%;
88 }
89 .modal-video-close-btn {
90 position: absolute;
91 z-index: 2;
92 top: -35px;
93 right: -35px;
94 display: inline-block;
95 width: 35px;
96 height: 35px;
97 overflow: hidden;
98 border: none;
99 background: transparent;
100 cursor: pointer;
101 }
102 .modal-video-close-btn:before {
103 transform: rotate(45deg);
104 }
105 .modal-video-close-btn:after {
106 transform: rotate(-45deg);
107 }
108 .modal-video-close-btn:before,
109 .modal-video-close-btn:after {
110 content: "";
111 position: absolute;
112 height: 2px;
113 width: 100%;
114 top: 50%;
115 left: 0;
116 margin-top: -1px;
117 background: #fff;
118 border-radius: 5px;
119 margin-top: -6px;
120 }
121 .modal-video *:focus {
122 outline: 0;
123 }
124 @media screen and (max-width: 996px) {
125 .modal-video {
126 width: calc(100% - 36px);
127 }
128 }
129 @media screen and (max-width: 782px) {
130 .modal-video {
131 width: 100%;
132 }
133 }
134