##// END OF EJS Templates
dataGrid: fixed loading CSS to prevent page flicker.
marcink -
r1647:1c983470 default
parent child Browse files
Show More
@@ -1,642 +1,644 b''
1 // navigation.less
1 // navigation.less
2 // For use in RhodeCode applications;
2 // For use in RhodeCode applications;
3 // see style guide documentation for guidelines.
3 // see style guide documentation for guidelines.
4
4
5 // HEADER NAVIGATION
5 // HEADER NAVIGATION
6
6
7 .horizontal-list {
7 .horizontal-list {
8 float: right;
8 float: right;
9 display: block;
9 display: block;
10 margin: 0;
10 margin: 0;
11 padding: 0;
11 padding: 0;
12 -webkit-padding-start: 0;
12 -webkit-padding-start: 0;
13 text-align: left;
13 text-align: left;
14 font-size: @navigation-fontsize;
14 font-size: @navigation-fontsize;
15 color: @grey6;
15 color: @grey6;
16 z-index:10;
16 z-index:10;
17
17
18 li {
18 li {
19 line-height: 1em;
19 line-height: 1em;
20 list-style-type: none;
20 list-style-type: none;
21
21
22 a {
22 a {
23 padding: 0 .5em;
23 padding: 0 .5em;
24
24
25 &.menu_link_notifications {
25 &.menu_link_notifications {
26 .pill(7px,@rcblue);
26 .pill(7px,@rcblue);
27 display: inline;
27 display: inline;
28 margin: 0 7px 0 .7em;
28 margin: 0 7px 0 .7em;
29 font-size: @basefontsize;
29 font-size: @basefontsize;
30 color: white;
30 color: white;
31
31
32 &.empty {
32 &.empty {
33 background-color: @grey4;
33 background-color: @grey4;
34 }
34 }
35
35
36 &:hover {
36 &:hover {
37 background-color: @rcdarkblue;
37 background-color: @rcdarkblue;
38 }
38 }
39 }
39 }
40 }
40 }
41 .pill_container {
41 .pill_container {
42 margin: 1.25em 0px 0px 0px;
42 margin: 1.25em 0px 0px 0px;
43 float: right;
43 float: right;
44 }
44 }
45
45
46 &#quick_login_li {
46 &#quick_login_li {
47 &:hover {
47 &:hover {
48 color: @grey5;
48 color: @grey5;
49 }
49 }
50
50
51 a.menu_link_notifications {
51 a.menu_link_notifications {
52 color: white;
52 color: white;
53 }
53 }
54
54
55 .user {
55 .user {
56 padding-bottom: 10px;
56 padding-bottom: 10px;
57 }
57 }
58
58
59 &.open {
59 &.open {
60 .user {
60 .user {
61 border-bottom: 5px solid @rcblue;
61 border-bottom: 5px solid @rcblue;
62 }
62 }
63 }
63 }
64 }
64 }
65
65
66 &:before { content: none; }
66 &:before { content: none; }
67
67
68 &:last-child {
68 &:last-child {
69 .menulabel {
69 .menulabel {
70 padding-right: 0;
70 padding-right: 0;
71 border-right: none;
71 border-right: none;
72
72
73 .show_more {
73 .show_more {
74 padding-right: 0;
74 padding-right: 0;
75 }
75 }
76 }
76 }
77
77
78 &> a {
78 &> a {
79 border-bottom: none;
79 border-bottom: none;
80 }
80 }
81 }
81 }
82
82
83 &.active {
83 &.active {
84 border-bottom: 5px solid @rcblue;
84 border-bottom: 5px solid @rcblue;
85 }
85 }
86
86
87 &.open {
87 &.open {
88
88
89 a {
89 a {
90 color: white;
90 color: white;
91 }
91 }
92 }
92 }
93
93
94 &:focus {
94 &:focus {
95 outline: none;
95 outline: none;
96 }
96 }
97
97
98 ul li {
98 ul li {
99 display: block;
99 display: block;
100
100
101 &:last-child> a {
101 &:last-child> a {
102 border-bottom: none;
102 border-bottom: none;
103 }
103 }
104
104
105 ul li:last-child a {
105 ul li:last-child a {
106 /* we don't expect more then 3 levels of submenu and the third
106 /* we don't expect more then 3 levels of submenu and the third
107 level can have different html structure */
107 level can have different html structure */
108 border-bottom: none;
108 border-bottom: none;
109 }
109 }
110 }
110 }
111 }
111 }
112
112
113 > li {
113 > li {
114 float: left;
114 float: left;
115 display: block;
115 display: block;
116 padding: 0;
116 padding: 0;
117
117
118 > a,
118 > a,
119 &.has_select2 a {
119 &.has_select2 a {
120 display: block;
120 display: block;
121 padding: 10px 0 2px;
121 padding: 10px 0 2px;
122
122
123 .show_more {
123 .show_more {
124 margin-top: -4px;
124 margin-top: -4px;
125 padding-right: .5em;
125 padding-right: .5em;
126 }
126 }
127 }
127 }
128
128
129 .menulabel {
129 .menulabel {
130 padding: 0 .5em;
130 padding: 0 .5em;
131 line-height: 1em;
131 line-height: 1em;
132 // for this specifically we do not use a variable
132 // for this specifically we do not use a variable
133 border-right: 1px solid @grey4;
133 border-right: 1px solid @grey4;
134 }
134 }
135
135
136 .pr_notifications {
136 .pr_notifications {
137 padding-left: .5em;
137 padding-left: .5em;
138 }
138 }
139
139
140 .pr_notifications + .menulabel {
140 .pr_notifications + .menulabel {
141 display:inline;
141 display:inline;
142 padding-left: 0;
142 padding-left: 0;
143 }
143 }
144
144
145 &:hover,
145 &:hover,
146 &.open,
146 &.open,
147 &.active {
147 &.active {
148 a {
148 a {
149 color: @grey1;
149 color: @grey1;
150 }
150 }
151 }
151 }
152 }
152 }
153
153
154 pre {
154 pre {
155 margin: 0;
155 margin: 0;
156 padding: 0;
156 padding: 0;
157 }
157 }
158
158
159 .select2-container,
159 .select2-container,
160 .menulink.childs {
160 .menulink.childs {
161 position: relative;
161 position: relative;
162 }
162 }
163
163
164 #quick_login {
164 #quick_login {
165
165
166 li a {
166 li a {
167 padding: .5em 0;
167 padding: .5em 0;
168 border-bottom: none;
168 border-bottom: none;
169 color: @grey2;
169 color: @grey2;
170
170
171 &:hover { color: @grey1; }
171 &:hover { color: @grey1; }
172 }
172 }
173
173
174 .show_more {
174 .show_more {
175 padding-left: .5em;
175 padding-left: .5em;
176 }
176 }
177 }
177 }
178
178
179 #quick_login_link {
179 #quick_login_link {
180 display: inline-block;
180 display: inline-block;
181
181
182 .gravatar {
182 .gravatar {
183 border: 1px solid @grey2;
183 border: 1px solid @grey2;
184 }
184 }
185
185
186 .gravatar-login {
186 .gravatar-login {
187 height: 20px;
187 height: 20px;
188 width: 20px;
188 width: 20px;
189 margin: -8px 0;
189 margin: -8px 0;
190 padding: 0;
190 padding: 0;
191 }
191 }
192
192
193 &:hover .user {
193 &:hover .user {
194 color: @grey6;
194 color: @grey6;
195 }
195 }
196 }
196 }
197 }
197 }
198 .header .horizontal-list {
198 .header .horizontal-list {
199
199
200 li {
200 li {
201
201
202 &#quick_login_li {
202 &#quick_login_li {
203 padding-left: .5em;
203 padding-left: .5em;
204
204
205 &:hover #quick_login_link {
205 &:hover #quick_login_link {
206 color: inherit;
206 color: inherit;
207 }
207 }
208 }
208 }
209
209
210 &:before { content: none; }
210 &:before { content: none; }
211 }
211 }
212
212
213 > li {
213 > li {
214
214
215 a {
215 a {
216 padding: 18px 0 12px 0;
216 padding: 18px 0 12px 0;
217 color: @nav-grey;
217 color: @nav-grey;
218
218
219 &.menu_link_notifications {
219 &.menu_link_notifications {
220 padding: 1px 8px;
220 padding: 1px 8px;
221 }
221 }
222 }
222 }
223
223
224 &:hover,
224 &:hover,
225 &.open,
225 &.open,
226 &.active {
226 &.active {
227 .pill_container a {
227 .pill_container a {
228 // don't select text for the pill container, it has it' own
228 // don't select text for the pill container, it has it' own
229 // hover behaviour
229 // hover behaviour
230 color: @nav-grey;
230 color: @nav-grey;
231 }
231 }
232 }
232 }
233
233
234 &:hover,
234 &:hover,
235 &.open,
235 &.open,
236 &.active {
236 &.active {
237 a {
237 a {
238 color: @grey6;
238 color: @grey6;
239 }
239 }
240 }
240 }
241
241
242 .select2-dropdown-open a {
242 .select2-dropdown-open a {
243 color: @grey6;
243 color: @grey6;
244 }
244 }
245
245
246 .repo-switcher {
246 .repo-switcher {
247 padding-left: 0;
247 padding-left: 0;
248
248
249 .menulabel {
249 .menulabel {
250 padding-left: 0;
250 padding-left: 0;
251 }
251 }
252 }
252 }
253 }
253 }
254
254
255 li ul li {
255 li ul li {
256 background-color:@grey2;
256 background-color:@grey2;
257
257
258 a {
258 a {
259 padding: .5em 0;
259 padding: .5em 0;
260 border-bottom: @border-thickness solid @border-default-color;
260 border-bottom: @border-thickness solid @border-default-color;
261 color: @grey6;
261 color: @grey6;
262 }
262 }
263
263
264 &:last-child a, &.last a{
264 &:last-child a, &.last a{
265 border-bottom: none;
265 border-bottom: none;
266 }
266 }
267
267
268 &:hover {
268 &:hover {
269 background-color: @grey3;
269 background-color: @grey3;
270 }
270 }
271 }
271 }
272
272
273 .submenu {
273 .submenu {
274 margin-top: 5px;
274 margin-top: 5px;
275 }
275 }
276 }
276 }
277
277
278 // SUBMENUS
278 // SUBMENUS
279 .navigation .submenu {
279 .navigation .submenu {
280 display: none;
280 display: none;
281 }
281 }
282
282
283 .navigation li.open {
283 .navigation li.open {
284
284
285 .submenu,
285 .submenu,
286 .repo_switcher {
286 .repo_switcher {
287 display: block;
287 display: block;
288 }
288 }
289 }
289 }
290
290
291 .navigation li:last-child .submenu {
291 .navigation li:last-child .submenu {
292 right: -20px;
292 right: -20px;
293 left: auto;
293 left: auto;
294 }
294 }
295
295
296 .submenu {
296 .submenu {
297 position: absolute;
297 position: absolute;
298 top: 100%;
298 top: 100%;
299 left: 0;
299 left: 0;
300 min-width: 150px;
300 min-width: 150px;
301 margin: 6px 0 0;
301 margin: 6px 0 0;
302 padding: 0;
302 padding: 0;
303 text-align: left;
303 text-align: left;
304 font-family: @text-light;
304 font-family: @text-light;
305 border-radius: @border-radius;
305 border-radius: @border-radius;
306 z-index: 20;
306 z-index: 20;
307
307
308 li {
308 li {
309 display: block;
309 display: block;
310 margin: 0;
310 margin: 0;
311 padding: 0 .5em;
311 padding: 0 .5em;
312 line-height: 1em;
312 line-height: 1em;
313 color: @grey3;
313 color: @grey3;
314 background-color: @grey6;
314 background-color: @grey6;
315
315
316 &:before { content: none; }
316 &:before { content: none; }
317
317
318 a {
318 a {
319 display: block;
319 display: block;
320 width: 100%;
320 width: 100%;
321 padding: .5em 0;
321 padding: .5em 0;
322 border-right: none;
322 border-right: none;
323 border-bottom: @border-thickness solid white;
323 border-bottom: @border-thickness solid white;
324 color: @grey3;
324 color: @grey3;
325 }
325 }
326
326
327 ul {
327 ul {
328 display: none;
328 display: none;
329 position: absolute;
329 position: absolute;
330 top: 0;
330 top: 0;
331 right: 100%;
331 right: 100%;
332 padding: 0;
332 padding: 0;
333 z-index: 30;
333 z-index: 30;
334 }
334 }
335 &:hover {
335 &:hover {
336 background-color: @grey5;
336 background-color: @grey5;
337 -webkit-transition: background .3s;
337 -webkit-transition: background .3s;
338 -moz-transition: background .3s;
338 -moz-transition: background .3s;
339 -o-transition: background .3s;
339 -o-transition: background .3s;
340 transition: background .3s;
340 transition: background .3s;
341
341
342 ul {
342 ul {
343 display: block;
343 display: block;
344 }
344 }
345 }
345 }
346 }
346 }
347 }
347 }
348
348
349
349
350
350
351
351
352 // repo dropdown
352 // repo dropdown
353 .quick_repo_menu {
353 .quick_repo_menu {
354 width: 15px;
354 width: 15px;
355 text-align: center;
355 text-align: center;
356 position: relative;
356 position: relative;
357 cursor: pointer;
357 cursor: pointer;
358
358
359 div {
359 div {
360 overflow: visible !important;
360 overflow: visible !important;
361 }
361 }
362
362
363 &.sorting {
363 &.sorting {
364 cursor: auto;
364 cursor: auto;
365 }
365 }
366
366
367 &:hover {
367 &:hover {
368 .menu_items_container {
368 .menu_items_container {
369 position: absolute;
369 position: absolute;
370 display: block;
370 display: block;
371 }
371 }
372 .menu_items {
372 .menu_items {
373 display: block;
373 display: block;
374 }
374 }
375 }
375 }
376
376
377 i {
377 i {
378 margin: 0;
378 margin: 0;
379 color: @grey4;
379 color: @grey4;
380 }
380 }
381
381
382 .menu_items_container {
382 .menu_items_container {
383 position: absolute;
383 position: absolute;
384 top: 0;
384 top: 0;
385 left: 100%;
385 left: 100%;
386 margin: 0;
386 margin: 0;
387 padding: 0;
387 padding: 0;
388 list-style: none;
388 list-style: none;
389 background-color: @grey6;
389 background-color: @grey6;
390 z-index: 999;
390 z-index: 999;
391 text-align: left;
391 text-align: left;
392
392
393 a {
393 a {
394 color: @grey2;
394 color: @grey2;
395 }
395 }
396
396
397 ul.menu_items {
397 ul.menu_items {
398 margin: 0;
398 margin: 0;
399 padding: 0;
399 padding: 0;
400 }
400 }
401
401
402 li {
402 li {
403 margin: 0;
403 margin: 0;
404 padding: 0;
404 padding: 0;
405 line-height: 1em;
405 line-height: 1em;
406 list-style-type: none;
406 list-style-type: none;
407
407
408 &:before { content: none; }
408 &:before { content: none; }
409
409
410 a {
410 a {
411 display: block;
411 display: block;
412 height: 16px;
412 height: 16px;
413 padding: 8px; //must add up to td height (28px)
413 padding: 8px; //must add up to td height (28px)
414
414
415 &:hover {
415 &:hover {
416 background-color: @grey5;
416 background-color: @grey5;
417 -webkit-transition: background .3s;
417 -webkit-transition: background .3s;
418 -moz-transition: background .3s;
418 -moz-transition: background .3s;
419 -o-transition: background .3s;
419 -o-transition: background .3s;
420 transition: background .3s;
420 transition: background .3s;
421 }
421 }
422 }
422 }
423 }
423 }
424 }
424 }
425 }
425 }
426
426
427 // Header Repository Switcher
427 // Header Repository Switcher
428 // Select2 Dropdown
428 // Select2 Dropdown
429 #select2-drop.select2-drop.repo-switcher-dropdown {
429 #select2-drop.select2-drop.repo-switcher-dropdown {
430 width: auto !important;
430 width: auto !important;
431 margin-top: 5px;
431 margin-top: 5px;
432 padding: 1em 0;
432 padding: 1em 0;
433 text-align: left;
433 text-align: left;
434 .border-radius-bottom(@border-radius);
434 .border-radius-bottom(@border-radius);
435 border-color: transparent;
435 border-color: transparent;
436 color: @grey6;
436 color: @grey6;
437 background-color: @grey2;
437 background-color: @grey2;
438
438
439 input {
439 input {
440 min-width: 90%;
440 min-width: 90%;
441 }
441 }
442
442
443 ul.select2-result-sub {
443 ul.select2-result-sub {
444
444
445 li {
445 li {
446 line-height: 1em;
446 line-height: 1em;
447
447
448 &:hover,
448 &:hover,
449 &.select2-highlighted {
449 &.select2-highlighted {
450 background-color: @grey3;
450 background-color: @grey3;
451 }
451 }
452 }
452 }
453
453
454 &:before { content: none; }
454 &:before { content: none; }
455 }
455 }
456
456
457 ul.select2-results {
457 ul.select2-results {
458 min-width: 200px;
458 min-width: 200px;
459 margin: 0;
459 margin: 0;
460 padding: 0;
460 padding: 0;
461 list-style-type: none;
461 list-style-type: none;
462 overflow-x: visible;
462 overflow-x: visible;
463 overflow-y: scroll;
463 overflow-y: scroll;
464
464
465 li {
465 li {
466 padding: 0 8px;
466 padding: 0 8px;
467 line-height: 1em;
467 line-height: 1em;
468 color: @grey6;
468 color: @grey6;
469
469
470 &:before { content: none; }
470 &:before { content: none; }
471
471
472 &>.select2-result-label {
472 &>.select2-result-label {
473 padding: 8px 0;
473 padding: 8px 0;
474 border-bottom: @border-thickness solid @grey3;
474 border-bottom: @border-thickness solid @grey3;
475 white-space: nowrap;
475 white-space: nowrap;
476 color: @grey5;
476 color: @grey5;
477 cursor: pointer;
477 cursor: pointer;
478 }
478 }
479
479
480 &.select2-result-with-children {
480 &.select2-result-with-children {
481 margin: 0;
481 margin: 0;
482 padding: 0;
482 padding: 0;
483 }
483 }
484
484
485 &.select2-result-unselectable > .select2-result-label {
485 &.select2-result-unselectable > .select2-result-label {
486 margin: 0 8px;
486 margin: 0 8px;
487 }
487 }
488
488
489 }
489 }
490 }
490 }
491
491
492 ul.select2-result-sub {
492 ul.select2-result-sub {
493 margin: 0;
493 margin: 0;
494 padding: 0;
494 padding: 0;
495
495
496 li {
496 li {
497 display: block;
497 display: block;
498 margin: 0;
498 margin: 0;
499 border-right: none;
499 border-right: none;
500 line-height: 1em;
500 line-height: 1em;
501 font-family: @text-light;
501 font-family: @text-light;
502 color: @grey2;
502 color: @grey2;
503
503
504 &:before { content: none; }
504 &:before { content: none; }
505
505
506 &:hover {
506 &:hover {
507 background-color: @grey3;
507 background-color: @grey3;
508 }
508 }
509 }
509 }
510 }
510 }
511 }
511 }
512
512
513
513
514 #context-bar {
514 #context-bar {
515 display: block;
515 display: block;
516 margin: 0 auto;
516 margin: 0 auto;
517 padding: 0 @header-padding;
517 padding: 0 @header-padding;
518 background-color: @grey6;
518 background-color: @grey6;
519 border-bottom: @border-thickness solid @grey5;
519 border-bottom: @border-thickness solid @grey5;
520
520
521 .clear {
521 .clear {
522 clear: both;
522 clear: both;
523 }
523 }
524 }
524 }
525
525
526 ul#context-pages {
526 ul#context-pages {
527 li {
527 li {
528 line-height: 1em;
528 line-height: 1em;
529
529
530 &:before { content: none; }
530 &:before { content: none; }
531
531
532 a {
532 a {
533 color: @grey3;
533 color: @grey3;
534 }
534 }
535
535
536 &.active {
536 &.active {
537 // special case, non-variable color
537 // special case, non-variable color
538 border-bottom: 4px solid @nav-grey;
538 border-bottom: 4px solid @nav-grey;
539
539
540 a {
540 a {
541 color: @grey1;
541 color: @grey1;
542 }
542 }
543 }
543 }
544 }
544 }
545 }
545 }
546
546
547 // PAGINATION
547 // PAGINATION
548
548
549 .pagination {
549 .pagination {
550 border: @border-thickness solid @rcblue;
550 border: @border-thickness solid @rcblue;
551 color: @rcblue;
551 color: @rcblue;
552
552
553 .current {
553 .current {
554 color: @grey4;
554 color: @grey4;
555 }
555 }
556 }
556 }
557
557
558 .dataTables_processing {
558 .dataTables_processing {
559 text-align: center;
559 text-align: center;
560 font-size: 1.1em;
560 font-size: 1.1em;
561 position: relative;
562 top: 95px;
561 }
563 }
562
564
563 .dataTables_paginate, .pagination-wh {
565 .dataTables_paginate, .pagination-wh {
564 text-align: left;
566 text-align: left;
565 display: inline-block;
567 display: inline-block;
566 border-left: 1px solid @rcblue;
568 border-left: 1px solid @rcblue;
567 float: none;
569 float: none;
568 overflow: hidden;
570 overflow: hidden;
569
571
570 .paginate_button, .pager_curpage,
572 .paginate_button, .pager_curpage,
571 .pager_link, .pg-previous, .pg-next, .pager_dotdot {
573 .pager_link, .pg-previous, .pg-next, .pager_dotdot {
572 display: inline-block;
574 display: inline-block;
573 padding: @menupadding/4 @menupadding;
575 padding: @menupadding/4 @menupadding;
574 border: 1px solid @rcblue;
576 border: 1px solid @rcblue;
575 border-left: 0;
577 border-left: 0;
576 color: @rcblue;
578 color: @rcblue;
577 cursor: pointer;
579 cursor: pointer;
578 float: left;
580 float: left;
579 }
581 }
580
582
581 .pager_curpage, .pager_dotdot,
583 .pager_curpage, .pager_dotdot,
582 .paginate_button.current, .paginate_button.disabled,
584 .paginate_button.current, .paginate_button.disabled,
583 .disabled {
585 .disabled {
584 color: @grey3;
586 color: @grey3;
585 cursor: default;
587 cursor: default;
586 }
588 }
587
589
588 .ellipsis {
590 .ellipsis {
589 display: inline-block;
591 display: inline-block;
590 text-align: left;
592 text-align: left;
591 padding: @menupadding/4 @menupadding;
593 padding: @menupadding/4 @menupadding;
592 border: 1px solid @rcblue;
594 border: 1px solid @rcblue;
593 border-left: 0;
595 border-left: 0;
594 float: left;
596 float: left;
595 }
597 }
596 }
598 }
597
599
598 // SIDEBAR
600 // SIDEBAR
599
601
600 .sidebar {
602 .sidebar {
601 .block-left;
603 .block-left;
602 clear: left;
604 clear: left;
603 max-width: @sidebar-width;
605 max-width: @sidebar-width;
604 margin-right: @sidebarpadding;
606 margin-right: @sidebarpadding;
605 padding-right: @sidebarpadding;
607 padding-right: @sidebarpadding;
606 font-family: @text-regular;
608 font-family: @text-regular;
607 color: @grey1;
609 color: @grey1;
608
610
609 &#graph_nodes {
611 &#graph_nodes {
610 clear:both;
612 clear:both;
611 width: auto;
613 width: auto;
612 margin-left: -100px;
614 margin-left: -100px;
613 padding: 0;
615 padding: 0;
614 border: none;
616 border: none;
615 }
617 }
616
618
617 .nav-pills {
619 .nav-pills {
618 margin: 0;
620 margin: 0;
619 }
621 }
620
622
621 .nav {
623 .nav {
622 list-style: none;
624 list-style: none;
623 padding: 0;
625 padding: 0;
624
626
625 li {
627 li {
626 padding-bottom: @menupadding;
628 padding-bottom: @menupadding;
627 line-height: 1em;
629 line-height: 1em;
628 color: @grey4;
630 color: @grey4;
629
631
630 &.active a {
632 &.active a {
631 color: @grey2;
633 color: @grey2;
632 }
634 }
633
635
634 a {
636 a {
635 color: @grey4;
637 color: @grey4;
636 }
638 }
637
639
638 &:before { content: none; }
640 &:before { content: none; }
639 }
641 }
640
642
641 }
643 }
642 }
644 }
General Comments 0
You need to be logged in to leave comments. Login now