jquery.mmenu.toggles.scss
1.01 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
/*
jQuery.mmenu toggles addon CSS
*/
@import "../inc/variables";
label.mm-toggle
{
border-radius: $mm_toggleHeight;
width: $mm_toggleWidth;
height: $mm_toggleHeight;
margin: -( $mm_toggleHeight / 2 ) 0 0 0;
position: absolute;
top: 50%;
z-index: 1;
div
{
border-radius: $mm_toggleHeight;
width: $mm_toggleHeight - 2;
height: $mm_toggleHeight - 2;
margin: 1px;
}
}
input.mm-toggle
{
position: absolute;
left: -10000px;
&:checked ~ label.mm-toggle div
{
float: right;
}
}
label.mm-toggle
{
right: $mm_padding * 2;
+ a,
+ span
{
margin-right: $mm_toggleWidth + ( $mm_padding * 2 );
}
}
a.mm-subopen + label.mm-toggle
{
right: $mm_subopenWidth + $mm_padding;
+ a,
+ span
{
margin-right: $mm_subopenWidth + $mm_toggleWidth + $mm_padding;
}
}
em.mm-counter + a.mm-subopen + label.mm-toggle
{
right: $mm_counterWidth + $mm_subopenWidth + $mm_padding;
+ a,
+ span
{
margin-right: $mm_counterWidth + $mm_subopenWidth + $mm_toggleWidth + $mm_padding;
}
}
@include mm_colors_toggles;