SideBar.scss
1.5 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
@import "../../scss/bootstrap/variables";
.side_bar_wrap{
width: 100%;
height: 100%;
}
.main_wrap{
width: 100%;
height: 100%;
-webkit-transition: .2s ease all;
-o-transition: .2s ease all;
transition: .2s ease all;
}
.side_wrap{
position: absolute;
top: 150px;
bottom: 0;
right: 0;
width: 420px;
-webkit-transform: translate3d(420px, 0, 0);
-ms-transform: translate3d(420px, 0, 0);
transform: translate3d(420px, 0, 0);
-webkit-transition: -webkit-transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9);
transition: -webkit-transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9);
-o-transition: transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9), -o-transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9);
transition: transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9);
transition: transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9), -webkit-transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9), -o-transform 0.15s cubic-bezier(0.2, 0.3, 0.25, 0.9);
}
.open.main_wrap{
-webkit-transform: translate3d(-420px, 0, 0);
-ms-transform: translate3d(-420px, 0, 0);
transform: translate3d(-420px, 0, 0);
}
.open.side_wrap{
-webkit-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.mask{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
display: none;
cursor: pointer;
}
.open.mask{
display: block;
opacity: 1;
background-color: rgba(0,0,0,0.2);
}