index.less
767 Bytes
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
@import "~@/mixins.less";
.filePreview {
.size();
.title {
.flex();
font-size: 22px;
height: 40px;
opacity: 0;
}
.title1 {
opacity: 1;
}
.fileContent {
.size(100%, calc(100% - 40px));
:global {
.ant-image {
.size();
.flex(center, center);
.ant-image-img {
max-width: 100%;
max-height: 100%;
display: block;
margin: auto;
width: auto;
height: auto;
}
.ant-image-mask {
display: none;
}
}
}
.txtContent {
.size();
}
}
}
.close {
position: absolute;
top: 10px;
right: 10px;
.size(auto, auto);
:global {
span[role="img"] {
font-size: 40px;
}
}
}