提交 | 用户 | age
|
2f6253
|
1 |
@import (reference) '../../design/index.less'; |
陈 |
2 |
|
|
3 |
.default-layout { |
|
4 |
&__content { |
|
5 |
position: relative; |
|
6 |
|
|
7 |
&.fixed { |
|
8 |
overflow: hidden; |
|
9 |
} |
|
10 |
} |
|
11 |
|
|
12 |
&__loading { |
|
13 |
position: absolute; |
|
14 |
z-index: @page-loading-z-index; |
|
15 |
} |
|
16 |
|
|
17 |
&__main { |
|
18 |
position: relative; |
|
19 |
height: 100%; |
|
20 |
// overflow: hidden; |
|
21 |
// overflow: auto; |
|
22 |
|
|
23 |
&.fixed { |
|
24 |
overflow: auto; |
|
25 |
} |
|
26 |
|
|
27 |
&.fixed.lock { |
|
28 |
overflow: hidden; |
|
29 |
} |
|
30 |
} |
|
31 |
|
|
32 |
.layout-content { |
|
33 |
position: relative; |
|
34 |
// height: 100%; |
|
35 |
|
|
36 |
&.fixed { |
|
37 |
width: 1200px; |
|
38 |
margin: 0 auto; |
|
39 |
} |
|
40 |
} |
|
41 |
|
|
42 |
.layout-menu { |
|
43 |
&__logo { |
|
44 |
height: @header-height; |
|
45 |
padding: 10px; |
|
46 |
|
|
47 |
img { |
|
48 |
width: @logo-width; |
|
49 |
height: @logo-width; |
|
50 |
} |
|
51 |
|
|
52 |
&.light { |
|
53 |
.logo-title { |
|
54 |
color: @text-color-base; |
|
55 |
} |
|
56 |
} |
|
57 |
|
|
58 |
&.dark { |
|
59 |
.logo-title { |
|
60 |
color: @white; |
|
61 |
} |
|
62 |
} |
|
63 |
} |
|
64 |
} |
|
65 |
|
|
66 |
.layout-sidebar { |
|
67 |
background-size: 100% 100%; |
|
68 |
|
|
69 |
.ant-layout-sider-zero-width-trigger { |
|
70 |
top: 40%; |
|
71 |
z-index: 10; |
|
72 |
} |
|
73 |
|
|
74 |
&__dargbar { |
|
75 |
position: absolute; |
|
76 |
top: 0; |
|
77 |
right: -2px; |
|
78 |
z-index: @sider-drag-z-index; |
|
79 |
width: 2px; |
|
80 |
height: 100%; |
|
81 |
cursor: col-resize; |
|
82 |
border-top: none; |
|
83 |
border-bottom: none; |
|
84 |
|
|
85 |
&.hide { |
|
86 |
display: none; |
|
87 |
} |
|
88 |
|
|
89 |
&:hover { |
|
90 |
background: @primary-color; |
|
91 |
box-shadow: 0 0 4px 0 rgba(28, 36, 56, 0.15); |
|
92 |
} |
|
93 |
} |
|
94 |
} |
|
95 |
|
|
96 |
.setting-button { |
|
97 |
top: 45%; |
|
98 |
right: 0; |
|
99 |
border-radius: 10px 0 0 10px; |
|
100 |
|
|
101 |
.svg { |
|
102 |
width: 2em; |
|
103 |
} |
|
104 |
} |
|
105 |
|
|
106 |
&__tabs { |
|
107 |
z-index: 10; |
|
108 |
height: @multiple-height; |
|
109 |
padding: 0; |
|
110 |
line-height: @multiple-height; |
|
111 |
background: @border-color-shallow-light; |
|
112 |
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08); |
|
113 |
} |
|
114 |
} |
|
115 |
|
|
116 |
.setting-drawer { |
|
117 |
.ant-drawer-body { |
|
118 |
padding-top: 0; |
|
119 |
background: @white; |
|
120 |
} |
|
121 |
|
|
122 |
&__footer { |
|
123 |
display: flex; |
|
124 |
flex-direction: column; |
|
125 |
align-items: center; |
|
126 |
} |
|
127 |
|
|
128 |
&__cell-item { |
|
129 |
display: flex; |
|
130 |
justify-content: space-between; |
|
131 |
margin: 16px 0; |
|
132 |
} |
|
133 |
|
|
134 |
&__theme-item { |
|
135 |
display: flex; |
|
136 |
flex-wrap: wrap; |
|
137 |
margin: 16px 0; |
|
138 |
|
|
139 |
span { |
|
140 |
display: inline-block; |
|
141 |
width: 20px; |
|
142 |
height: 20px; |
|
143 |
margin-top: 10px; |
|
144 |
margin-right: 10px; |
|
145 |
cursor: pointer; |
|
146 |
border-radius: 4px; |
|
147 |
|
|
148 |
svg { |
|
149 |
display: none; |
|
150 |
} |
|
151 |
|
|
152 |
&.active { |
|
153 |
svg { |
|
154 |
display: inline-block; |
|
155 |
margin-left: 4px; |
|
156 |
font-size: 0.8em; |
|
157 |
fill: @white; |
|
158 |
} |
|
159 |
} |
|
160 |
} |
|
161 |
} |
|
162 |
|
|
163 |
&__siderbar { |
|
164 |
display: flex; |
|
165 |
|
|
166 |
> div { |
|
167 |
position: relative; |
|
168 |
|
|
169 |
.check-icon { |
|
170 |
position: absolute; |
|
171 |
top: 40%; |
|
172 |
left: 40%; |
|
173 |
display: none; |
|
174 |
color: @primary-color; |
|
175 |
|
|
176 |
&.active { |
|
177 |
display: inline-block; |
|
178 |
} |
|
179 |
} |
|
180 |
} |
|
181 |
|
|
182 |
img { |
|
183 |
margin-right: 10px; |
|
184 |
cursor: pointer; |
|
185 |
} |
|
186 |
} |
|
187 |
} |
|
188 |
|
|
189 |
.layout-header { |
|
190 |
display: flex; |
|
191 |
height: @header-height; |
|
192 |
padding: 0 20px 0 0; |
|
193 |
color: @white; |
03b602
|
194 |
background: @white; |
2f6253
|
195 |
align-items: center; |
陈 |
196 |
justify-content: space-between; |
03b602
|
197 |
|
N |
198 |
&__content { |
|
199 |
flex-grow: 1; |
|
200 |
display: flex; |
|
201 |
justify-content: center; |
|
202 |
align-items: center; |
|
203 |
} |
2f6253
|
204 |
|
陈 |
205 |
&__header--light { |
|
206 |
background: @white; |
|
207 |
border-bottom: 1px solid @header-light-bottom-border-color; |
|
208 |
|
|
209 |
.layout-header__menu { |
|
210 |
height: calc(@header-height - 1px); |
|
211 |
|
|
212 |
.ant-menu-submenu { |
|
213 |
height: @header-height; |
|
214 |
line-height: @header-height; |
|
215 |
} |
|
216 |
} |
|
217 |
|
|
218 |
.layout-header__logo { |
|
219 |
height: @header-height; |
|
220 |
color: @text-color-base; |
|
221 |
|
|
222 |
img { |
|
223 |
width: @logo-width; |
|
224 |
height: @logo-width; |
|
225 |
margin-right: 6px; |
|
226 |
} |
|
227 |
|
|
228 |
&:hover { |
|
229 |
background: @header-light-bg-hover-color; |
|
230 |
} |
|
231 |
} |
|
232 |
|
|
233 |
.layout-header__action { |
|
234 |
&-item { |
|
235 |
&:hover { |
|
236 |
background: @header-light-bg-hover-color; |
|
237 |
} |
|
238 |
} |
|
239 |
|
|
240 |
&-icon { |
|
241 |
color: @text-color-base; |
|
242 |
} |
|
243 |
} |
|
244 |
|
|
245 |
.layout-header__user-dropdown { |
|
246 |
&:hover { |
|
247 |
background: @header-light-bg-hover-color; |
|
248 |
} |
|
249 |
} |
|
250 |
|
|
251 |
.user-dropdown { |
|
252 |
&__name { |
|
253 |
color: @text-color-base; |
|
254 |
} |
|
255 |
|
|
256 |
&__desc { |
|
257 |
color: @header-light-desc-color; |
|
258 |
} |
|
259 |
} |
|
260 |
} |
|
261 |
|
|
262 |
&__header--dark { |
|
263 |
background: @header-dark-bg-color; |
|
264 |
|
|
265 |
.layout-header__action { |
|
266 |
&-item { |
|
267 |
&:hover { |
|
268 |
background: @header-dark-bg-hover-color; |
|
269 |
} |
|
270 |
} |
|
271 |
} |
|
272 |
|
|
273 |
.layout-header__logo { |
|
274 |
height: @header-height; |
|
275 |
|
|
276 |
img { |
|
277 |
width: @logo-width; |
|
278 |
height: @logo-width; |
|
279 |
margin-right: 10px; |
|
280 |
} |
|
281 |
|
|
282 |
&:hover { |
|
283 |
background: @header-dark-bg-hover-color; |
|
284 |
} |
|
285 |
} |
|
286 |
|
|
287 |
.layout-header__user-dropdown { |
|
288 |
&:hover { |
|
289 |
background: @header-dark-bg-hover-color; |
|
290 |
} |
|
291 |
} |
|
292 |
|
|
293 |
.breadcrumb { |
|
294 |
&__item:last-child .breadcrumb__inner, |
|
295 |
&__item:last-child &__inner a, |
|
296 |
&__item:last-child &__inner a:hover, |
|
297 |
&__item:last-child &__inner:hover { |
|
298 |
font-weight: 400; |
|
299 |
color: rgba(255, 255, 255, 0.6); |
|
300 |
cursor: text; |
|
301 |
} |
|
302 |
|
|
303 |
&__inner, |
|
304 |
&__separator { |
|
305 |
color: @white; |
|
306 |
} |
|
307 |
} |
|
308 |
} |
|
309 |
|
|
310 |
&-lm { |
|
311 |
display: flex; |
|
312 |
} |
|
313 |
|
|
314 |
&__logo { |
|
315 |
padding: 0 10px; |
|
316 |
} |
|
317 |
|
|
318 |
&__bread { |
|
319 |
flex: 1; |
|
320 |
display: none; |
|
321 |
} |
|
322 |
|
|
323 |
&__action { |
|
324 |
display: flex; |
|
325 |
align-items: center; |
|
326 |
|
|
327 |
&-item { |
|
328 |
display: flex; |
|
329 |
align-items: center; |
|
330 |
height: @header-height; |
|
331 |
font-size: 1.3em; |
|
332 |
cursor: pointer; |
|
333 |
} |
|
334 |
|
|
335 |
&-icon { |
|
336 |
padding: 0 12px; |
|
337 |
} |
|
338 |
} |
|
339 |
|
|
340 |
&__menu { |
|
341 |
display: flex; |
|
342 |
margin-left: 20px; |
|
343 |
overflow: hidden; |
|
344 |
align-items: center; |
03b602
|
345 |
flex-grow: 1; |
2f6253
|
346 |
} |
陈 |
347 |
|
|
348 |
&__user-dropdown { |
|
349 |
height: 52px; |
|
350 |
padding: 0 0 0 10px; |
|
351 |
} |
|
352 |
} |
|
353 |
|
|
354 |
.user-dropdown { |
|
355 |
display: flex; |
|
356 |
height: 100%; |
|
357 |
cursor: pointer; |
|
358 |
align-items: center; |
|
359 |
|
|
360 |
img { |
|
361 |
width: @logo-width; |
|
362 |
height: @logo-width; |
|
363 |
margin-right: 24px; |
|
364 |
} |
|
365 |
|
|
366 |
&__header { |
|
367 |
border-radius: 50%; |
|
368 |
} |
|
369 |
|
|
370 |
&__divider { |
|
371 |
width: 1px; |
|
372 |
height: 30px; |
|
373 |
margin-right: 20px; |
|
374 |
background: #c6d9ee; |
|
375 |
} |
|
376 |
|
|
377 |
&__exit { |
|
378 |
margin-top: -40px; |
|
379 |
font-size: 12px; |
|
380 |
color: #c6d9ee; |
|
381 |
text-align: center; |
|
382 |
|
|
383 |
> section { |
|
384 |
height: 20px; |
|
385 |
} |
|
386 |
} |
|
387 |
|
|
388 |
&__info { |
|
389 |
display: flex; |
|
390 |
margin-right: 12px; |
|
391 |
flex-direction: column; |
|
392 |
|
|
393 |
> section { |
|
394 |
line-height: 1.8; |
|
395 |
} |
|
396 |
} |
|
397 |
|
|
398 |
&__name { |
|
399 |
font-size: 14px; |
|
400 |
} |
|
401 |
|
|
402 |
&__desc { |
|
403 |
font-size: 12px; |
|
404 |
.text-truncate(); |
|
405 |
} |
|
406 |
} |
|
407 |
|
|
408 |
.layout-breadcrumb { |
|
409 |
padding: 0 16px; |
03b602
|
410 |
flex-grow: 1; |
2f6253
|
411 |
} |