-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
60 lines (57 loc) · 1007 Bytes
/
styles.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
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
background-color: #333;
display: flex;
justify-content: center;
align-items: center;
}
section {
display: flex;
justify-content: center;
align-items: center;
}
.video-container {
--borderLeft: 0;
--borderRight: 0;
--borderTop: 0;
--borderBottom: 0;
position: relative;
width: 30.2em;
height: 17em;
cursor: pointer;
}
.video-container::before,
.video-container::after {
content: "";
border: 0 solid red;
pointer-events: none;
position: absolute;
width: 0;
height: 0;
}
.video-container::before {
top: 0;
left: 0;
border-top-width: 0.25rem;
border-left-width: 0.25rem;
width: var(--borderTop);
height: var(--borderLeft);
}
.video-container::after {
bottom: 0;
right: 0;
border-bottom-width: 0.25rem;
border-right-width: 0.25rem;
width: var(--borderBottom);
height: var(--borderRight);
}
video {
width: 100%;
height: 100%;
}