-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap-mmenu-offcanvas.css
89 lines (80 loc) · 2.12 KB
/
bootstrap-mmenu-offcanvas.css
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
/*
* Leave room for top navbar
*/
body {
padding-top: 50px;
}
/*
* Make on-canvas menu smaller
* If you want to change the width
* of the oncanvas menu then change
* all the 200px in this section.
*/
@media (min-width: 768px) {
nav.mm-menu:not( .mm-offcanvas ) {
max-width: 200px;
}
.mm-content-right {
padding-left: 200px;
}
.mm-content-left {
padding-right: 200px;
}
}
/*
* Navbar transformations
*/
.navbar-fixed-top {
transition: transform 0.4s ease;
}
html.mm-opening .navbar-fixed-top {
-webkit-transform: translate(80%, 0);
transform: translate(80%, 0);
}
@media all and (max-width: 175px) {
html.mm-opening .navbar-fixed-top {
-webkit-transform: translate(140px, 0);
transform: translate(140px, 0);
}
}
@media all and (min-width: 550px) {
html.mm-opening .navbar-fixed-top {
-webkit-transform: translate(440px, 0);
transform: translate(440px, 0);
}
}
html.mm-right.mm-opening .navbar-fixed-top {
-webkit-transform: translate(-80%, 0);
transform: translate(-80%, 0);
}
@media all and (max-width: 175px) {
html.mm-right.mm-opening .navbar-fixed-top {
-webkit-transform: translate(-140px, 0);
transform: translate(-140px, 0);
}
}
@media all and (min-width: 550px) {
html.mm-right.mm-opening .navbar-fixed-top {
-webkit-transform: translate(-440px, 0);
transform: translate(-440px, 0);
}
}
/*
* On-canvas submenu zoom effect
*/
.mm-menu.mm-horizontal.mm-zoom-panels:not( .mm-offcanvas ) > .mm-panel {
-webkit-transform: scale(1.5, 1.5) translateX(100%);
transform: scale(1.5, 1.5) translateX(100%);
-webkit-transform-origin: left center;
transform-origin: left center;
-webkit-transition-property: -webkit-transform, left;
transition-property: transform, left;
}
.mm-menu.mm-horizontal.mm-zoom-panels:not( .mm-offcanvas ) > .mm-panel.mm-opened {
-webkit-transform: scale(1, 1) translateX(0%);
transform: scale(1, 1) translateX(0%);
}
.mm-menu.mm-horizontal.mm-zoom-panels:not( .mm-offcanvas ) > .mm-panel.mm-opened.mm-subopened {
-webkit-transform: scale(0.7, 0.7) translateX(-30%);
transform: scale(0.7, 0.7) translateX(-30%);
}