jquery.mmenu.offcanvas.scss
1.41 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
102
103
104
105
/*
jQuery.mmenu offcanvas addon CSS
*/
@import "../inc/variables";
// Animations
.mm-page,
.mm-fixed-top,
.mm-fixed-bottom
{
@include mm_vendor-prefix( "transition", none $mm_transitionDuration $mm_transitionFunction );
// border is needed to force transitionend event even if no other value changed
@include mm_vendor-prefix( "transition-property", ( top, right, bottom, left, border ) );
}
html.mm-opened
{
.mm-page,
#mm-blocker
{
margin: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
border: 0px solid rgba( 0, 0, 0, 0 );
}
}
html.mm-opening
{
.mm-page
{
border: 0px solid rgba( 1, 1, 1, 1 );
}
}
// Fixed elements
.mm-fixed-top,
.mm-fixed-bottom
{
position: fixed;
left: 0;
}
.mm-fixed-top
{
top: 0;
}
.mm-fixed-bottom
{
bottom: 0;
}
// Container
html.mm-opened
{
overflow-x: hidden;
position: relative;
}
// Page + blocker
html.mm-opened .mm-page
{
@include mm_vendor-prefix( "box-sizing", border-box );
position: relative;
}
html.mm-background .mm-page
{
background: inherit;
}
#mm-blocker
{
background: url( data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== ) transparent;
display: none;
width: 100%;
height: 100%;
position: fixed;
z-index: 999999;
}
html.mm-opened,
html.mm-blocking
{
#mm-blocker
{
display: block;
}
}
// Menu
.mm-menu
{
&.mm-offcanvas
{
display: none;
position: fixed;
}
&.mm-current
{
display: block;
}
}
@include mm_sizing;