-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.css
70 lines (64 loc) · 1.6 KB
/
video.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#main_frame.main-frame-active { /* .main-frame-active class set in js */
padding: 0 30px;
display: block;
position: relative;
}
.main-frame-active .fullscreen {
display: block;
position: relative;
width: 100%;
max-height: 500px;
padding-bottom: 75%; /* Sets height for video to fill */
overflow: hidden;
}
.main-frame-active .video { /* Sets overflow container for responsive video to fill area */
display: block;
left: 0px;
overflow: hidden;
padding-bottom: 100%;
position: absolute;
top: 50%;
width: 100%;
-webkit-transform-origin: 50% 0;
transform-origin: 50% 0;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.main-frame-active .video .wrapper { /* Sets video to fill area and centers contents */
display: block;
height: 300%;
left: 0px;
overflow: hidden;
position: absolute;
top: 50%;
width: 100%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.main-frame-active .video iframe {
display: block;
height: 100%;
width: 100%;
}
.x-product-layout-images__thumbnail-image,
.x-product-layout-images__thumbnail-video { /* Will need to be updated to work on live site from here down */
display: flex;
padding: 5px;
margin-left: 16px;
margin-bottom: 0;
border: solid 2px #f0f0f0;
justify-content: center;
}
.x-product-layout-images__thumbnail-video {
background-color: rgba(241, 241, 241, 0.3);
}
.x-product-layout-images__thumbnail-image img,
.x-product-layout-images__thumbnail-video span {
align-self: center;
}
.x-product-layout-images__thumbnail-video span {
display: block;
padding: 5px 4px 5px 6px;
border: solid 2px #4a4a4a;
border-radius: 50%;
}