Repository navigation
Expand file tree
/
Copy pathpanels.less
More file actions
101 lines (100 loc) · 1.92 KB
/
Copy pathpanels.less
File metadata and controls
101 lines (100 loc) · 1.92 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
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
/* === Panels === */
@panelWidth: 12rem;
@panelsDuration: 400ms;
.panel-overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0);
opacity: 0;
z-index: 5999;
display: none;
}
.panel {
z-index: 1000;
display: none;
background: #111;
color: white;
box-sizing: border-box;
.scrollable();
position: absolute;
width: @panelWidth;
top: 0;
height: 100%;
transform: translate3d(0, 0, 0);
transition: transform @panelsDuration;
&.panel-left {
&.panel-cover {
z-index: 6000;
left: -@panelWidth;
}
&.panel-reveal {
left: 0;
}
}
&.panel-right {
&.panel-cover {
z-index: 6000;
right: -@panelWidth;
}
&.panel-reveal {
right: 0;
}
}
}
body.with-panel-left-cover, body.with-panel-right-cover {
.page {
transform: translate3d(0, 0, 0);
transition: transform @panelsDuration;
}
.panel-overlay {
display: block;
}
}
body.with-panel-left-reveal, body.with-panel-right-reveal {
.page {
transition: @panelsDuration;
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
transition-property: transform;
}
.panel-overlay {
display: block;
}
}
body.with-panel-left-reveal {
.page {
transform: translate3d(@panelWidth, 0, 0);
}
.panel-overlay {
margin-left: @panelWidth;
}
}
body.with-panel-left-cover {
.panel-left {
transform: translate3d(@panelWidth, 0, 0);
}
}
body.with-panel-right-reveal {
.page {
transform: translate3d(-@panelWidth, 0, 0);
}
.panel-overlay {
margin-left: -@panelWidth;
}
}
body.with-panel-right-cover {
.panel-right {
transform: translate3d(-@panelWidth, 0, 0);
}
}
body.panel-closing {
.page {
transition: @panelsDuration;
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
transition-property: transform;
}
}