Administrator
2022-09-14 58d006e05dcf2a20d0ec5367dd03d66a61db6849
提交 | 用户 | 时间
58d006 1 .enable_old_menu_toggle_button() when(@enable-old-menu-toggle-button = true) {
A 2 .enable_responsive_menu_otb() when(@enable-responsive-menu = true) {
3
4
5 @toggler-text: "MENU";
6
7 @media only screen and (max-width: @grid-float-breakpoint-max) {
8  .menu-toggler + .sidebar.responsive {
9     margin-top: @breadcrumb-height - 1;
10  }
11  .main-container .menu-toggler {
12     display: block;
13     position: absolute;
14     //left: auto;
15     z-index: @zindex-sidebar-fixed - 1;
16
17     width: 52px;
18     height: 32px;
19     margin-right: 2px;
20     
21     line-height: normal;
22     padding-left: 33px;
23     padding-top: 7px;
24     padding-bottom: 1px;
25     
26     font-size: @font-size-old-toggle-button;
27     font-weight: bold;
28     text-transform: uppercase;
29
30     
31
32     .box-sizing(content-box);
33     
34     &:hover {
35         text-decoration: none;
36     }
37     &:focus {
38         outline: none;
39     }
40     
41     
42     &:before {
43         border-top: 1px solid @sidebar-toggler-line-1;
44         border-bottom: 1px solid @sidebar-toggler-line-2;
45         height: 2px;
46         width: 24px;
47         content: "";
48         position: absolute;
49         z-index: 1;
50         top: 13px;
51         left: 4px;
52
53         .transition(~"all 0.1s ease");
54         -o-transition: none;
55         
56         .box-sizing(content-box);
57     }
58     
59     
60     &:after {
61         border-top: 1px solid @sidebar-toggler-line-3;
62         border-bottom: 1px solid @sidebar-toggler-line-4;
63         content: "";
64         height: 2px;
65         width: 24px;
66         
67         position: absolute;
68         top: 19px;
69         left: 4px;
70
71         .transition(~"all 0.1s ease");
72         -o-transition: none;
73         
74         .box-sizing(content-box);
75     }
76
77     &.display {
78         &:before {
79             height: 4px;
80             top: 8px;
81             border-width: 2px;
82         }
83         &:after {
84             height: 4px;
85             top: 20px;
86             border-width: 2px;
87         }
88     }
89
90
91     > .toggler-text {
92         display: block;
93         position: absolute;
94         bottom: -9px; 
95         left: 0;
96         border: 1px solid transparent;
97         border-width: 9px 42px 0;
98
99         border-top-color: @sidebar-toggler-background;
100         -moz-border-top-colors: @sidebar-toggler-background;
101
102         &:after {
103             display: block;
104             content: @toggler-text;
105
106             color: @sidebar-toggler-color;
107             
108             position: absolute;
109             left: -8px;//change these to adjust text placement
110             top: -41px;
111         }
112     }
113  }
114  
115  
116
117 //hide the .nav-list when moving up, otherwise it will move over .menu-toggler!
118  .menu-toggler + .responsive.sidebar-scroll .nav-wrap {
119     overflow: hidden;
120  }
121 }
122
123 @media only screen and (max-width: @screen-tiny) {
124  .main-container .menu-toggler {
125   width: 0;
126   > .toggler-text {
127     border-width: 7px 16px;
128     bottom: -14px;
129
130     &:after {
131         font-size: floor(@font-size-old-toggle-button * 0.75);
132         font-weight: normal;
133         color: #FFF;
134
135         position: absolute;
136         left: -13px;
137         top: -42px;
138     }
139   }
140
141   &:before , &:after {
142     margin-top: 8px;
143   }
144   &.display {
145     &:before , &:after {
146         height: 2px;
147         border-width: 1px;
148     }
149     &:before {
150         top: 13px;
151     }
152     &:after {
153         top: 19px;
154     }
155   }
156  }
157 }
158
159 }
160 .enable_responsive_menu_otb();
161 }
162 .enable_old_menu_toggle_button();