jquery.mmenu.header.scss
1.64 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
106
107
108
109
110
111
112
113
114
115
116
/*
jQuery.mmenu header addon CSS
*/
@import "../inc/variables";
.mm-header
{
@include mm_vendor-prefix( "box-sizing", border-box );
background: inherit;
border-bottom: 1px solid transparent;
text-align: center;
line-height: $mm_btnSize / 2;
width: 100%;
height: $mm_headerHeight;
padding: $mm_headerPaddingTop $mm_btnSize 0 $mm_btnSize;
position: absolute;
z-index: 2;
top: 0;
left: 0;
.mm-title
{
@include mm_ellipsis;
display: inline-block;
width: 100%;
position: relative;
z-index: 1;
}
.mm-prev,
.mm-next
{
@include mm_vendor-prefix( 'box-sizing', border-box );
text-decoration: none;
display: block;
width: $mm_btnSize;
height: 100%;
position: absolute;
bottom: 0;
&:before
{
@include mm_arrow;
margin-bottom: -( $mm_padding + 5 );
}
}
.mm-prev
{
left: 0;
&:before
{
@include mm_arrow-prev;
left: 22px;
}
}
.mm-next
{
right: 0;
&:before
{
@include mm_arrow-next;
right: 18px;
}
}
}
.mm-menu.mm-hassearch .mm-header
{
height: $mm_headerHeight - $mm_padding;
padding-top: $mm_headerPaddingTop - $mm_padding;
top: $mm_searchHeight;
.mm-prev:before,
.mm-mext:before
{
margin-bottom: -( ( $mm_padding / 2 ) + 5 );
}
}
.mm-menu.mm-hasheader
{
li.mm-subtitle
{
display: none;
}
> .mm-panel
{
padding-top: $mm_headerHeight + ( $mm_padding * 2 );
}
&.mm-hassearch > .mm-panel
{
padding-top: $mm_headerHeight + $mm_searchHeight + $mm_padding;
}
&.mm-ismenu
{
> .mm-panel
{
padding-top: $mm_headerHeight;
}
&.mm-hassearch > .mm-panel
{
padding-top: $mm_headerHeight + $mm_searchHeight - $mm_padding;
}
}
}
@include mm_colors_header;