提交 | 用户 | 时间
|
58d006
|
1 |
.enable_navbar_dropdown_positions() when(@enable-navbar-dropdowns = true) { |
A |
2 |
|
|
3 |
|
|
4 |
@media only screen and (max-width: @screen-xs-max) { |
|
5 |
.ace-nav > li:nth-last-child(4) > .dropdown-menu.dropdown-menu-right { |
|
6 |
right: -100px; |
|
7 |
&:before, &:after { |
|
8 |
right: 120px; |
|
9 |
} |
|
10 |
} |
|
11 |
|
|
12 |
.ace-nav > li:nth-last-child(3) > .dropdown-menu.dropdown-menu-right { |
|
13 |
right: -80px; |
|
14 |
&:before, &:after { |
|
15 |
right: 100px; |
|
16 |
} |
|
17 |
} |
|
18 |
|
|
19 |
.user-menu.dropdown-close.dropdown-menu-right { |
|
20 |
right: 0 !important; |
|
21 |
} |
|
22 |
} |
|
23 |
|
|
24 |
|
|
25 |
@media only screen and (min-width: @screen-topbar-down-min) and (max-width: @screen-xs-max) { |
|
26 |
//if there's only one item except for user_info |
|
27 |
.navbar.navbar-collapse { |
|
28 |
.ace-nav > li:nth-last-child(2):nth-child(1) > .dropdown-menu.dropdown-menu-right, |
|
29 |
.ace-nav > li:nth-last-child(2):nth-child(2) > .dropdown-menu.dropdown-menu-right { |
|
30 |
left: auto; |
|
31 |
right: -60px; |
|
32 |
|
|
33 |
&:before, &:after { |
|
34 |
right: 80px; |
|
35 |
left: auto; |
|
36 |
} |
|
37 |
} |
|
38 |
} |
|
39 |
} |
|
40 |
|
|
41 |
|
|
42 |
@media only screen and (max-width: @screen-xs) { |
|
43 |
.ace-nav > li:nth-last-child(4) > .dropdown-menu.dropdown-menu-right { |
|
44 |
right: -120px; |
|
45 |
|
|
46 |
&:before, &:after { |
|
47 |
right: 140px; |
|
48 |
} |
|
49 |
} |
|
50 |
.ace-nav > li:nth-last-child(3) > .dropdown-menu.dropdown-menu-right { |
|
51 |
right: -90px; |
|
52 |
|
|
53 |
&:before, &:after { |
|
54 |
right: 110px; |
|
55 |
} |
|
56 |
} |
|
57 |
|
|
58 |
.ace-nav > li:nth-last-child(2) > .dropdown-menu.dropdown-menu-right { |
|
59 |
right: -50px; |
|
60 |
|
|
61 |
&:before, &:after { |
|
62 |
right: 70px; |
|
63 |
} |
|
64 |
} |
|
65 |
} |
|
66 |
|
|
67 |
|
|
68 |
@media only screen and (max-width: @screen-topbar-down) { |
|
69 |
.ace-nav > li:nth-last-child(4) > .dropdown-menu.dropdown-menu-right { |
|
70 |
left: -10px; |
|
71 |
right: auto; |
|
72 |
|
|
73 |
&:before, &:after { |
|
74 |
right: auto; |
|
75 |
left: 30px; |
|
76 |
} |
|
77 |
} |
|
78 |
|
|
79 |
.ace-nav > li:nth-last-child(3) > .dropdown-menu.dropdown-menu-right { |
|
80 |
left: -50px; |
|
81 |
right: auto; |
|
82 |
|
|
83 |
&:before, &:after { |
|
84 |
left: 75px; |
|
85 |
right: auto; |
|
86 |
} |
|
87 |
} |
|
88 |
|
|
89 |
.ace-nav > li:nth-last-child(2) > .dropdown-menu.dropdown-menu-right { |
|
90 |
left: -70px; |
|
91 |
right: auto; |
|
92 |
|
|
93 |
&:before, &:after { |
|
94 |
left: 90px; |
|
95 |
right: auto; |
|
96 |
} |
|
97 |
} |
|
98 |
} |
|
99 |
|
|
100 |
@media only screen and (max-width: @screen-mini-max) { |
|
101 |
//when there are only two items (apart from user menu) |
|
102 |
.ace-nav > li:nth-last-child(2) > .dropdown-menu.dropdown-menu-right { |
|
103 |
left: -110px; |
|
104 |
right: auto; |
|
105 |
|
|
106 |
&:before, &:after { |
|
107 |
left: 130px; |
|
108 |
right: auto; |
|
109 |
} |
|
110 |
} |
|
111 |
|
|
112 |
.ace-nav > li:nth-child(2):nth-last-child(2) > .dropdown-menu.dropdown-menu-right { |
|
113 |
left: -85px; |
|
114 |
right: auto; |
|
115 |
|
|
116 |
&:before, &:after { |
|
117 |
left: 105px; |
|
118 |
right: auto; |
|
119 |
} |
|
120 |
} |
|
121 |
|
|
122 |
.ace-nav > li:nth-child(1):nth-last-child(3) > .dropdown-menu.dropdown-menu-right { |
|
123 |
left: -35px; |
|
124 |
right: auto; |
|
125 |
|
|
126 |
&:before, &:after { |
|
127 |
left: 55px; |
|
128 |
right: auto; |
|
129 |
} |
|
130 |
} |
|
131 |
|
|
132 |
//when there is only one item (apart from user menu) |
|
133 |
.ace-nav > li:nth-child(1):nth-last-child(2) > .dropdown-menu.dropdown-menu-right { |
|
134 |
left: -60px; |
|
135 |
right: auto; |
|
136 |
|
|
137 |
&:before, &:after { |
|
138 |
left: 75px; |
|
139 |
right: auto; |
|
140 |
} |
|
141 |
} |
|
142 |
} |
|
143 |
|
|
144 |
} |
|
145 |
.enable_navbar_dropdown_positions(); |