SlideBox.les
1.4 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
@import "../../less/variables";
.slideBox{
transition: background 300ms;
position: fixed;
left:0;
top:0;
right:0;
bottom:0;
background: rgba(255,255,255,0);
z-index:1000;
&.show{
background: rgba(255,255,255,.66);
.slide{
right:0;
}
}
.slide{
transition: right 300ms;
height:100%;
position: absolute;
right:-100%;
top:0;
background: @white;
box-shadow:0 0 20px 0 rgba(0,0,0,.5);
.title{
font-size:@font-size-lg;
color: @black;
text-align: center;
border-bottom: 1px solid @border-color;
height:60px;
line-height:60px;
.btn_close{
position: absolute;
left:0;
width:60px;
padding-left: 24px;
cursor: pointer;
}
}
.context{
//padding:24px;
height:~'calc(100% - 48px)';
overflow-y: auto;
.loading{
height:100%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
.icon{
align-self: center;
p{
font-size: @font-size-md;
}
}
}
}
}
}