gitlab_bootstrap.scss 12.7 KB
Newer Older
1
body {
2 3
  margin-bottom:20px;
}
R
randx 已提交
4 5 6

pre {
  font-family:'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace;
7 8 9 10 11

  &.dark {
    background: #333;
    color:#f5f5f5;
  }
R
randx 已提交
12 13
}

R
randx 已提交
14 15 16
a {
  outline: none;
  color: $link_color;
17 18
  &:hover {
    text-decoration:none;
R
randx 已提交
19 20 21
    color: $blue_link;
  }

22
  &.btn {
R
randx 已提交
23 24 25
    color: $style_color;
  }

26
  &.dark {
R
randx 已提交
27 28 29
    color: $style_color;
  }

30 31
  &.lined {
    text-decoration:underline;
32
    &:hover { text-decoration:underline; }
R
randx 已提交
33 34
  }

35
  &.gray {
R
randx 已提交
36 37 38
    color:gray;
  }

39
  &.supp_diff_link {
R
randx 已提交
40 41 42 43 44 45 46 47 48 49 50 51
    text-align:center;
    padding:20px 0;
    background:#f1f1f1;
    width:100%;
    float:left;
  }

  &.neib  {
    margin-right:15px;
  }
}

52
.neib {
D
Dmitriy Zaporozhets 已提交
53 54 55
  margin-right:10px;
}

56
.alert-message {
R
randx 已提交
57 58
  @extend .alert;

59
  &.success {
R
randx 已提交
60 61 62
    @extend .alert-success;
  }

63
  &.error {
R
randx 已提交
64 65 66 67
    @extend .alert-error;
  }
}

68 69
.alert {
  &.alert-well {
R
randx 已提交
70 71 72 73 74 75 76 77 78 79 80 81 82 83
    background:#ddd;
    border:1px solid #ccc;
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #ddd), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#ddd 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#ddd 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#ddd 6.6%, #dfdfdf);
    color:#111;
  }
}

h3, h4, h5, h6 {
  line-height: 36px;
}

84
h5 {
85 86 87
  font-size:14px;
}

R
randx 已提交
88

89
table {
R
randx 已提交
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
  width:100%;
  th {
    padding-top: 9px;
    font-weight: bold;
    vertical-align: middle;
  }
  th, td {
    padding: 10px 10px 9px;
    line-height: 18px;
    text-align: left;
  }

  &.bordered-table {
    border: 1px solid #DDD;
    border-collapse: separate;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
  }

110
  &.zebra-striped {
R
randx 已提交
111 112 113 114
    @extend .table-striped;
  }
}

115
.btn {
R
randx 已提交
116 117 118 119 120 121 122
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f1f1f1), color-stop(25%, #f1f1f1), to(#e6e6e6));
  background-image: -webkit-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: -moz-linear-gradient(top, #f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: -ms-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: -o-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);

123
  &:hover {
R
randx 已提交
124 125
  }

126
  &.btn-primary {
R
randx 已提交
127
    background:$link_color;
128
    border-color: #2A79A3;
129
    &:hover {
R
randx 已提交
130 131 132
      background:$blue_link;
    }
  }
133
  &.primary {
D
Dmitriy Zaporozhets 已提交
134 135
    @extend .btn-primary;
  }
136

137
  &.success {
138 139 140 141 142
    color: #fff;
    text-shadow: 0 0 1px #111;
    background: #5bb75b;;
    font-weight: bold;

143
    &:hover {
144 145 146 147 148
      background-color: #51a351;
      color: #fff;
    }
  }

149
  &.danger,
150
  &.btn-danger {
151 152 153 154
    color:#fff;
    background: #DA4E49;
    border-color: #BD362F;

155
    &:hover {
156 157 158 159 160
      color:#fff;
      background: #EE4E49;
    }
  }

161
  &.danger {
D
Dmitriy Zaporozhets 已提交
162 163
    @extend .btn-danger;
  }
R
randx 已提交
164

165
  &.small {
R
randx 已提交
166 167
    @extend .btn-small;
  }
168

169
  &.active {
170 171 172
    border-color:#aaa;
    background-color:#ccc;
  }
R
randx 已提交
173 174
}

175 176
a:focus {
  outline: none;
R
randx 已提交
177 178
}

179
.nav-pills a:hover {
R
randx 已提交
180
  background-color:#888;
R
randx 已提交
181 182 183
}

.nav-pills .active a {
R
randx 已提交
184
  background-color: $style_color;
R
randx 已提交
185 186
}

187
.label {
R
randx 已提交
188
  background-color: #474D57;
189
  &.label-important {
190 191
    background-color: #B94A48;
  }
192

193
  &.label-issue {
194 195 196 197 198
    background-color: #eee;
    border: 1px solid #ccc;
    padding:4px 6px;
    color:#444;
    text-shadow:0 0 1px #fff;
D
Dmitriy Zaporozhets 已提交
199

200
    &.grouped {
D
Dmitriy Zaporozhets 已提交
201 202 203 204
      float: left;
      margin-right: 6px;
      padding: 6px;
    }
205
  }
R
randx 已提交
206 207 208 209 210 211
}

.nav-tabs > li > a, .nav-pills > li > a {
  color:$style_color;
}

212
.nav-tabs > .active > a {
213 214 215
  font-weight:bold;
}

R
randx 已提交
216 217 218 219 220
/** COLORS **/
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
.cblack { color:#111; }
221
.cdark { color:#444 }
R
randx 已提交
222
.cwhite { color:#fff !important }
223
.bgred { background: #F2DEDE !important}
R
randx 已提交
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260

/** COMMON STYLES **/
.left {
  float:left;
}
.right {
  float:right !important;
}
.width-50p{
  width:50%;
}
.width-49p{
  width:49%;
}
.width-30p{
  width:30%;
}
.width-65p{
  width:65%;
}
.width-100p{
  width:100%;
}
.append-bottom-10 {
  margin-bottom:10px;
}
.append-bottom-20 {
  margin-bottom:20px;
}
.prepend-top-10 {
  margin-top:10px;
}

.prepend-top-20 {
  margin-top:20px;
}

261
.padded {
R
randx 已提交
262 263 264
  padding:20px;
}

265
.ipadded {
R
randx 已提交
266 267
  padding:20px !important;
}
268
.lborder {
R
randx 已提交
269 270 271
  border-left:1px solid #eee;
}

272
.borders {
R
randx 已提交
273 274 275
  border: 1px solid #ccc;
  @include shade;
}
276
.no-borders {
R
randx 已提交
277 278
  border:none;
}
279
table.no-borders {
R
randx 已提交
280 281 282
  border:none;
  tr, td { border:none }
}
283
.no-padding {
R
randx 已提交
284 285
  padding:0 !important;
}
286
.underlined {
R
randx 已提交
287 288
  border-bottom: 1px solid $border_color;
}
289
.vlink {
R
randx 已提交
290 291 292
  color: $link_color !important;
}

293
.pretty_label {
R
randx 已提交
294 295 296 297 298 299 300 301 302
  @include round-borders-all(4px);
  padding:2px 4px;
  background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.076, #fefefe), to(#F6F7F8));
  background-image: -webkit-linear-gradient(#fefefe 7.6%, #F6F7F8);
  background-image: -moz-linear-gradient(#fefefe 7.6%, #F6F7F8);
  background-image: -o-linear-gradient(#fefefe 7.6%, #F6F7F8);
  color: #777;
  border: 1px solid #DEDFE1;

303
  &.branch {
R
randx 已提交
304 305 306 307
    border:none;
    font-size:13px;
    background: #474D57;
    color:#fff;
R
randx 已提交
308
    font-weight:bold;
R
randx 已提交
309 310 311 312
    font-family: monospace;
  }
}

313
.event_label {
314 315 316
  @extend .label;
  background-color: #999;

317
  &.pushed {
318 319 320
    background-color: #3A87AD;
  }

321
  &.opened {
322 323 324
    background-color: #468847;
  }

325
  &.closed {
326 327
    background-color: #B94A48;
  }
328

329
  &.merged {
330 331
    background-color: #2A2;
  }
R
randx 已提交
332 333
}

334
img.avatar {
R
randx 已提交
335 336 337
  float:left;
  margin-right:15px;
  width:40px;
R
randx 已提交
338 339
  border:1px solid #ddd;
  padding:1px;
340

341
  &.s16 {
342
    width:16px;
R
randx 已提交
343
    height:16px;
344
  }
345
  &.s24 {
346
    width:24px;
R
randx 已提交
347
    height:24px;
348
  }
349
  &.s32 {
R
randx 已提交
350
    width:32px;
R
randx 已提交
351
    height:32px;
R
randx 已提交
352
  }
R
randx 已提交
353 354
}

355
img.lil_av {
R
randx 已提交
356 357 358 359
  padding-left: 4px;
  padding-right:3px;
}

360
form {
R
randx 已提交
361 362
  @extend .form-horizontal;

363
  .actions {
R
randx 已提交
364 365 366
    @extend .form-actions;
  }

367
  .clearfix {
R
randx 已提交
368 369 370
    @extend .control-group;
  }

371
  .input {
R
randx 已提交
372 373 374
    @extend .controls;
  }

375
  label {
R
randx 已提交
376 377
    @extend .control-label;
  }
378
  .xlarge {
R
randx 已提交
379 380
    @extend .input-xlarge;
  }
381
  .xxlarge {
R
randx 已提交
382 383 384 385 386 387 388 389
    @extend .input-xxlarge;
  }
}

/**
 * List li block element #1
 *
 */
390
.wll {
R
randx 已提交
391 392 393 394 395
  background-color: #FFF;
  padding: 10px 5px;
  min-height: 20px;
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
396
  &.smoke {
R
randx 已提交
397 398
    background-color:#f5f5f5;
  }
399
  &:hover {
R
randx 已提交
400 401 402 403 404
    background:$hover;
  }
  &:last-child { border:none }
  p { padding-top:5px; margin:0; color:$style_color;}
  .author { color: #999; }
405
  p {
R
randx 已提交
406 407
    color:#222;
    margin-bottom: 0;
408
    img {
R
randx 已提交
409 410 411 412 413 414 415 416 417 418 419
      position:relative;
      top:3px;
    }
  }
}


/**
 * Block element #2
 *
 */
420
.entry {
R
randx 已提交
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
  position: relative;
  padding: 7px 15px;
  margin-bottom: 18px;
  color: #404040;
  filter:none;

  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;

  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);

  background:#F1F1F1;
  border: 1px solid #ccc;


442
  p {
R
randx 已提交
443 444
    color:$style_color;
    margin-bottom: 0;
445
    img {
R
randx 已提交
446 447 448 449 450 451 452 453 454 455 456
      position:relative;
      top:3px;
    }
  }
}


/**
 * Big UI Block for show page content
 *
 */
457
.ui-box {
R
randx 已提交
458
  background:#F9F9F9;
D
Dmitriy Zaporozhets 已提交
459
  margin-bottom: 25px;
R
randx 已提交
460
  @include round-borders-all(4px);
R
randx 已提交
461
  border-color: #CCC;
D
Dmitriy Zaporozhets 已提交
462
  @include solid_shade;
R
randx 已提交
463

464
  ul {
R
randx 已提交
465 466 467
    margin:0;
  }

468
  h5, .title {
R
randx 已提交
469 470
    padding: 0 10px;
    @include round-borders-top(4px);
R
randx 已提交
471
    @include bg-gray-gradient;
R
randx 已提交
472
    border-bottom: 1px solid #bbb;
R
randx 已提交
473

474
    &.small {
475 476 477 478 479 480
      line-height: 28px;
      font-size: 14px;
      line-height:28px;
      text-shadow: 0 1px 1px white;
    }

481
    form {
R
randx 已提交
482 483 484 485
      padding:9px 0;
      margin:0px;
    }

486 487
    .nav-pills {
      li {
R
randx 已提交
488 489
        padding:3px 0;
        &.active a { background-color:$style_color; }
490
        a {
R
randx 已提交
491 492 493 494 495 496
          border-radius:7px;
        }
      }
    }
  }

497
  .bottom {
R
randx 已提交
498
    @include bg-gray-gradient;
R
randx 已提交
499 500
    @include round-borders-bottom(4px);
    border-bottom:none;
R
randx 已提交
501
    border-top: 1px solid #bbb;
R
randx 已提交
502 503
  }

504 505
  &.padded {
    h5, .title {
R
randx 已提交
506 507 508 509
      margin: -20px;
      margin-bottom: 0;
      padding: 5px 20px;
    }
510
    .middle_title {
R
randx 已提交
511 512 513 514 515 516 517 518 519
      background:#f5f5f5;
      margin:20px -20px;
      padding: 0 20px;
      border-top:1px solid #eee;
      border-bottom:1px solid #eee;
      font-size:14px;
      color:#777;
    }
  }
520
  .row_title {
R
randx 已提交
521 522
    font-weight:bold;
    color:#444;
R
Riyad Preukschas 已提交
523 524
    &:hover {
      color:#444;
R
randx 已提交
525 526 527 528 529 530
      text-decoration:underline;
    }
  }

  li, .wll {
    padding:10px;
531
    &:first-child {
R
randx 已提交
532 533 534 535
      @include round-borders-top(4px);
      border-top:none;
    }

536
    &:last-child {
R
randx 已提交
537 538 539 540 541 542
      @include round-borders-bottom(4px);
      border:none;
    }
  }

}
543 544

table.admin-table {
545
  @extend .table-bordered;
546
  @extend .zebra-striped;
D
Dmitriy Zaporozhets 已提交
547
  @include solid_shade;
548
  th {
549 550
    border-color: #CCC;
    border-bottom: 1px solid #bbb;
R
randx 已提交
551
    @include bg-gray-gradient;
552 553
  }
}
554

555
.field_with_errors {
556 557 558
  display:inline;
}

559 560 561 562 563 564 565 566
ul.breadcrumb {
  background:white;
  border:none;
  li {
    display: inline;
    text-shadow: 0 1px 0 white
  }

567
  a {
568 569 570 571 572
    color:#474D57;
    font-weight:bold;
    font-size:14px;
  }

573
  .arrow {
574 575 576 577 578 579 580 581 582 583 584
    background: url("images.png") no-repeat -85px -77px;
    width: 19px;
    height: 16px;
    float: left;
    position: relative;
    left: -10px;
    padding:0;
    margin:0;
  }
}

585
.nothing_here_message {
586 587 588 589
  text-align:center;
  padding:20px;
  color:#777;
}
R
randx 已提交
590 591

/**
592
 *  UI box element
R
randx 已提交
593
 *  contains top, middle, bottom blocks
594
 *
R
randx 已提交
595
 */
596
.main_box {
R
randx 已提交
597 598 599 600
  @extend .borders;
  @extend .prepend-top-20;
  @extend .append-bottom-20;
  border-width:1px;
D
Dmitriy Zaporozhets 已提交
601 602
  @include solid_shade;

R
randx 已提交
603 604 605 606 607 608 609 610 611

  img { max-width: 100%; }

  pre {
    code {
      background: none !important;
    }
  }

612 613 614
  .top_box_content,
  .middle_box_content,
  .bottom_box_content {
R
randx 已提交
615 616 617 618 619 620 621 622 623 624
    padding:15px;

    pre {
      background: none !important;
      margin:0;
      border:none;
      padding:0;
    }
  }

625
  .middle_box_content {
R
randx 已提交
626 627 628 629 630 631 632 633
    border-radius:0;
    border:none;
    font-size:12px;
    background-color:#f5f5f5;
    border:none;
    border-top:1px solid #eee;
  }

634
  .bottom_box_content {
R
randx 已提交
635 636 637
    border-top:1px solid #eee;
  }
}
R
randx 已提交
638

639 640
input[type=text] {
  &.large_text {
R
randx 已提交
641 642 643 644 645
    padding:6px;
    font-size:16px;
  }
}

646 647
p {
  &.slead {
R
randx 已提交
648 649 650 651 652 653 654 655
    color:#456;
    font-size:16px;
    margin-bottom: 12px;
    font-weight: 200;
    line-height: 24px;
  }
}

656
h3.page_title {
R
randx 已提交
657 658
  color:#456;
  font-size:20px;
659
  font-weight: normal;
R
randx 已提交
660 661
  line-height: 28px;
}
662

R
randx 已提交
663
/**
664
 * File content holder
R
randx 已提交
665 666
 *
 */
667
.file_holder {
R
randx 已提交
668 669
  border:1px solid #CCC;
  margin-bottom:1em;
D
Dmitriy Zaporozhets 已提交
670
  @include solid_shade;
R
randx 已提交
671

672
  .file_title {
R
randx 已提交
673
    border-bottom: 1px solid #bbb;
R
randx 已提交
674
    @include bg-gray-gradient;
R
randx 已提交
675 676 677 678 679 680 681 682
    margin: 0;
    font-weight: normal;
    font-weight: bold;
    text-align: left;
    color: #666;
    padding: 9px 10px;
    height:18px;

683
    .options {
R
randx 已提交
684 685 686 687
      float:right;
      margin-top: -5px;
    }

688
    .file_name {
R
randx 已提交
689 690 691
      color:$style_color;
      font-size:14px;
      text-shadow: 0 1px 1px #fff;
692
      small {
R
randx 已提交
693 694 695 696
        color:#999;
        font-size:13px;
      }
    }
R
randx 已提交
697 698
  }
  .file_content {
R
randx 已提交
699 700 701
    background:#fff;
    font-size: 11px;

702
    &.wiki {
703
      font-size: 13px;
704
      code {
R
randx 已提交
705 706 707
        padding:0 4px;
      }
      padding:20px;
708 709 710 711 712 713
      h1, h2 {
        line-height: 46px;
      }
      h3, h4 {
        line-height: 40px;
      }
R
randx 已提交
714 715
    }

716
    &.image_file {
R
randx 已提交
717 718 719 720 721 722 723 724
      background:#eee;
      text-align:center;
      img {
        padding:100px;
        max-width:300px;
      }
    }

725
    &.blob_file {
R
randx 已提交
726 727 728 729 730 731

    }

    /**
     *  Blame file
     */
732 733
    &.blame {
      tr {
R
randx 已提交
734 735
        border-bottom: 1px solid #eee;
      }
736
      td {
R
randx 已提交
737 738
        padding:5px;
      }
739 740
      .author,
      .blame_commit {
R
randx 已提交
741 742 743
        background:#f5f5f5;
        vertical-align:top;
      }
744 745
      .lines {
        pre {
R
randx 已提交
746 747 748 749 750 751 752 753
          padding:0;
          margin:0;
          background:none;
          border:none;
        }
      }
    }

754
    &.logs {
755 756 757 758
      background:#eee;
      max-height: 700px;
      overflow-y: auto;

759
      ol {
760 761 762 763 764
        margin-left:40px;
        padding: 10px 0;
        border-left: 1px solid #CCC;
        margin-bottom:0;
        background: white;
765
        li {
766
          color:#888;
767
          p {
768 769 770 771 772 773
            margin:0;
            color:#333;
            line-height:24px;
            padding-left: 10px;
          }

774
          &:hover {
775 776 777 778 779 780
            background:$hover;
          }
        }
      }
    }

R
randx 已提交
781 782 783
    /**
     *  Code file
     */
784
    &.code {
R
randx 已提交
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815
      padding:0;
      td.code {
        width: 100%;
        .highlight {
          margin-left: 55px;
          overflow:auto;
          overflow-y:hidden;
        }
      }
      .highlight pre {
        white-space: pre;
        word-wrap:normal;
      }

      table.highlighttable {
        border: none;
      }
      body.project-page table.highlighttable td { border: none }
      table.highlighttable tr:hover { background:none;}

      table.highlighttable pre{
        line-height:16px !important;
        font-size:12px !important;
      }

      table.highlighttable .linenodiv pre {
        text-align: right;
        padding-right: 4px;
        color:#666;
      }
    }
R
randx 已提交
816 817
  }
}