hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
.enable_navbar_dropdown_positions() when(@enable-navbar-dropdowns = true) {
 
 
@media only screen and (max-width: @screen-xs-max) {
 .ace-nav > li:nth-last-child(4) > .dropdown-menu.dropdown-menu-right {
    right: -100px;
    &:before, &:after {
        right: 120px;
    }
 }
 
 .ace-nav > li:nth-last-child(3) > .dropdown-menu.dropdown-menu-right {
    right: -80px;
    &:before, &:after {
        right: 100px;
    }
 }
 
 .user-menu.dropdown-close.dropdown-menu-right {
    right: 0 !important;
 }
}
 
 
@media only screen and (min-width: @screen-topbar-down-min) and (max-width: @screen-xs-max) {
  //if there's only one item except for user_info
 .navbar.navbar-collapse {
  .ace-nav > li:nth-last-child(2):nth-child(1) > .dropdown-menu.dropdown-menu-right,
  .ace-nav > li:nth-last-child(2):nth-child(2) > .dropdown-menu.dropdown-menu-right {
    left: auto;
    right: -60px;
 
    &:before, &:after {
        right: 80px;
        left: auto;
    }
  }
 }
}
 
 
@media only screen and (max-width: @screen-xs) {
 .ace-nav > li:nth-last-child(4) > .dropdown-menu.dropdown-menu-right {
    right: -120px;
    
    &:before, &:after {
        right: 140px;
    }
 } 
 .ace-nav > li:nth-last-child(3) > .dropdown-menu.dropdown-menu-right {
    right: -90px;
    
    &:before, &:after {
        right: 110px;
    }
 }
 
 .ace-nav > li:nth-last-child(2) > .dropdown-menu.dropdown-menu-right {
    right: -50px;
    
    &:before, &:after {
        right: 70px;
    }
 }
}
 
 
@media only screen and (max-width: @screen-topbar-down) {
 .ace-nav > li:nth-last-child(4) > .dropdown-menu.dropdown-menu-right {
    left: -10px;
    right: auto;
 
    &:before, &:after {
        right: auto;
        left: 30px;
    }
 }
 
 .ace-nav > li:nth-last-child(3) > .dropdown-menu.dropdown-menu-right {
    left: -50px;
    right: auto;
    
    &:before, &:after {
        left: 75px;
        right: auto;
    }
 }
 
 .ace-nav > li:nth-last-child(2) > .dropdown-menu.dropdown-menu-right {
    left: -70px;
    right: auto;
    
    &:before, &:after {
        left: 90px;
        right: auto;
    }
 }
}
 
@media only screen and (max-width: @screen-mini-max) {
  //when there are only two items (apart from user menu)
 .ace-nav > li:nth-last-child(2) > .dropdown-menu.dropdown-menu-right {
    left: -110px;
    right: auto;
 
    &:before, &:after {
        left: 130px;
        right: auto;    
    }
 }
 
 .ace-nav > li:nth-child(2):nth-last-child(2) > .dropdown-menu.dropdown-menu-right {
    left: -85px;
    right: auto;
 
    &:before, &:after {
        left: 105px;
        right: auto;
    }
 }
 
 .ace-nav > li:nth-child(1):nth-last-child(3) > .dropdown-menu.dropdown-menu-right {
    left: -35px;
    right: auto;
 
    &:before, &:after {
        left: 55px;
        right: auto;
    }
 }
 
 //when there is only one item (apart from user menu)
 .ace-nav > li:nth-child(1):nth-last-child(2) > .dropdown-menu.dropdown-menu-right {
    left: -60px;
    right: auto;
 
    &:before, &:after {
        left: 75px;
        right: auto;
    }
 }
}
 
}
.enable_navbar_dropdown_positions();