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