-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent-modal-video.css
More file actions
102 lines (91 loc) · 1.77 KB
/
Copy pathcomponent-modal-video.css
File metadata and controls
102 lines (91 loc) · 1.77 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.modal-video {
background: rgba(var(--color-foreground), 0.2);
box-sizing: border-box;
height: 100%;
left: 0;
margin: 0 auto;
opacity: 0;
overflow: auto;
position: fixed;
top: 0;
visibility: hidden;
width: 100%;
z-index: -1;
}
.modal-video[open] {
opacity: 1;
visibility: visible;
z-index: 101;
}
.modal-video__content {
background-color: rgb(var(--color-background));
height: 100%;
margin: 0;
overflow: auto;
padding: 0;
position: absolute;
width: 100%;
}
.modal-video__toggle {
align-items: center;
background-color: rgb(var(--color-background));
border-radius: 50%;
border: 0.1rem solid rgba(var(--color-foreground), 0.1);
color: rgba(var(--color-foreground), 0.55);
cursor: pointer;
display: flex;
justify-content: center;
margin: 0 0 0 auto;
padding: 1.2rem;
position: fixed;
right: 0.5rem;
top: 2rem;
width: 4rem;
z-index: 2;
}
@media screen and (min-width: 750px) {
.modal-video__toggle {
right: 4.8rem;
top: 3.5rem;
}
}
@media screen and (min-width: 990px) {
.modal-video__toggle {
right: 4.3rem;
top: 3rem;
}
}
.modal-video__toggle .icon {
height: auto;
margin: 0;
width: 2.2rem;
}
.modal-video__content-info {
height: calc(100% - 6rem);
margin: 0 auto;
padding-top: 8rem;
width: calc(100% - 1rem);
}
@media screen and (min-width: 750px) {
.modal-video__content-info {
height: calc(100% - 7.5rem);
padding-top: 9.5rem;
width: calc(100% - 9.6rem);
}
}
@media screen and (min-width: 990px) {
.modal-video__content-info {
height: calc(100% - 7rem);
padding-top: 9rem;
width: calc(100% - 8.6rem);
}
}
.modal-video__video,
.modal-video__video iframe {
height: 100%;
width: 100%;
}
.modal-video__video iframe {
position: static;
border: 0;
}