-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.less
120 lines (101 loc) · 1.58 KB
/
index.less
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
margin: 0;
}
.video {
background: #fff;
position: relative;
}
.video,
video,
canvas {
width: 100%;
height: 100%;
}
canvas {
position: relative;
z-index: 2;
}
@frame-size: 50px;
.frame {
position: absolute;
top: @frame-size;
left: @frame-size;
bottom: @frame-size;
right: @frame-size;
margin: auto;
border: 2px solid #fff;
}
.masks {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
>div {
background-color: rgba(0, 0, 0, .3);
position: absolute;
}
.t,
.b {
height: @frame-size;
width: 100%;
}
.r,
.l {
top: @frame-size;
width: @frame-size;
height: calc(100% - @frame-size*2);
}
.t {
top: 0;
}
.b {
bottom: 0;
}
.l {
left: 0;
}
.r {
right: 0;
}
}
@btn-size: 60px;
.btn {
height: @btn-size;
width: @btn-size;
border-radius: 100%;
position: absolute;
bottom: @frame-size+30px;
left: 50%;
margin-left: -@btn-size/2;
border: 5px solid #fff;
background-color: #ddd;
opacity: 0.8;
}
.preview {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, .8);
display: none;
&.show {
display: block;
}
img {
max-width: 100%;
max-height: 100%;
margin: auto;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
}