gitlab_bootstrap.scss 13.5 KB
Newer Older
1
body {
2 3
  margin-bottom:20px;
}
R
randx 已提交
4 5 6
a {
  outline: none;
  color: $link_color;
7 8
  &:hover {
    text-decoration:none;
R
randx 已提交
9 10 11
    color: $blue_link;
  }

12
  &.btn {
R
randx 已提交
13 14 15
    color: $style_color;
  }

16
  &.dark {
R
randx 已提交
17 18 19
    color: $style_color;
  }

20 21
  &.lined {
    text-decoration:underline;
22
    &:hover { text-decoration:underline; }
R
randx 已提交
23 24
  }

25
  &.gray {
R
randx 已提交
26 27 28
    color:gray;
  }

29
  &.supp_diff_link {
R
randx 已提交
30 31 32 33 34 35 36 37 38 39 40 41
    text-align:center;
    padding:20px 0;
    background:#f1f1f1;
    width:100%;
    float:left;
  }

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

42
.neib {
D
Dmitriy Zaporozhets 已提交
43 44 45
  margin-right:10px;
}

46
.alert-message {
R
randx 已提交
47 48
  @extend .alert;

49
  &.success {
R
randx 已提交
50 51 52
    @extend .alert-success;
  }

53
  &.error {
R
randx 已提交
54 55 56 57
    @extend .alert-error;
  }
}

58 59
.alert {
  &.alert-well {
R
randx 已提交
60 61 62 63 64 65 66 67 68 69 70 71 72 73
    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;
}

74
h5 {
75 76 77
  font-size:14px;
}

R
randx 已提交
78

79
table {
R
randx 已提交
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
  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;
  }

100
  &.zebra-striped {
R
randx 已提交
101 102 103 104
    @extend .table-striped;
  }
}

105
.btn {
R
randx 已提交
106 107 108 109 110 111 112
  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);

113
  &:hover {
R
randx 已提交
114 115
  }

116
  &.btn-primary {
R
randx 已提交
117
    background:$link_color;
118
    border-color: #2A79A3;
119
    &:hover {
R
randx 已提交
120 121 122
      background:$blue_link;
    }
  }
123
  &.primary {
D
Dmitriy Zaporozhets 已提交
124 125
    @extend .btn-primary;
  }
126

127
  &.success {
128 129 130 131 132
    color: #fff;
    text-shadow: 0 0 1px #111;
    background: #5bb75b;;
    font-weight: bold;

133
    &:hover {
134 135 136 137 138
      background-color: #51a351;
      color: #fff;
    }
  }

139
  &.danger,
140
  &.btn-danger {
141 142 143 144
    color:#fff;
    background: #DA4E49;
    border-color: #BD362F;

145
    &:hover {
146 147 148 149 150
      color:#fff;
      background: #EE4E49;
    }
  }

151
  &.danger {
D
Dmitriy Zaporozhets 已提交
152 153
    @extend .btn-danger;
  }
R
randx 已提交
154

155
  &.small {
R
randx 已提交
156 157
    @extend .btn-small;
  }
158

159
  &.active {
160 161 162
    border-color:#aaa;
    background-color:#ccc;
  }
R
randx 已提交
163 164
}

165 166
a:focus {
  outline: none;
R
randx 已提交
167 168
}

169
.nav-pills a:hover {
R
randx 已提交
170
  background-color:#888;
R
randx 已提交
171 172 173
}

.nav-pills .active a {
R
randx 已提交
174
  background-color: $style_color;
R
randx 已提交
175 176
}

177
.label {
R
randx 已提交
178
  background-color: #474D57;
179
  &.label-important {
180 181
    background-color: #B94A48;
  }
182

183
  &.label-issue {
184 185 186 187 188
    background-color: #eee;
    border: 1px solid #ccc;
    padding:4px 6px;
    color:#444;
    text-shadow:0 0 1px #fff;
D
Dmitriy Zaporozhets 已提交
189

190
    &.grouped {
D
Dmitriy Zaporozhets 已提交
191 192 193 194
      float: left;
      margin-right: 6px;
      padding: 6px;
    }
195
  }
R
randx 已提交
196 197 198 199 200 201
}

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

202
.nav-tabs > .active > a {
203 204 205
  font-weight:bold;
}

R
randx 已提交
206 207 208 209 210
/** COLORS **/
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
.cblack { color:#111; }
211
.cdark { color:#444 }
R
randx 已提交
212
.cwhite { color:#fff !important }
213
.bgred { background: #F2DEDE !important}
R
randx 已提交
214 215 216 217 218 219 220 221 222 223 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

/** 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;
}

251
.padded {
R
randx 已提交
252 253 254
  padding:20px;
}

255
.ipadded {
R
randx 已提交
256 257
  padding:20px !important;
}
258
.lborder {
R
randx 已提交
259 260 261
  border-left:1px solid #eee;
}

262
.borders {
R
randx 已提交
263 264 265
  border: 1px solid #ccc;
  @include shade;
}
266
.no-borders {
R
randx 已提交
267 268
  border:none;
}
269
table.no-borders {
R
randx 已提交
270 271 272
  border:none;
  tr, td { border:none }
}
273
.no-padding {
R
randx 已提交
274 275
  padding:0 !important;
}
276
.underlined {
R
randx 已提交
277 278
  border-bottom: 1px solid $border_color;
}
279
.vlink {
R
randx 已提交
280 281 282
  color: $link_color !important;
}

283
.pretty_label {
R
randx 已提交
284 285 286 287 288 289 290 291 292
  @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;

293
  &.branch {
R
randx 已提交
294 295 296 297
    border:none;
    font-size:13px;
    background: #474D57;
    color:#fff;
R
randx 已提交
298
    font-weight:bold;
R
randx 已提交
299 300 301 302
    font-family: monospace;
  }
}

303
.event_label {
304 305 306
  @extend .label;
  background-color: #999;

307
  &.pushed {
308 309 310
    background-color: #3A87AD;
  }

311
  &.opened {
312 313 314
    background-color: #468847;
  }

315
  &.closed {
316 317
    background-color: #B94A48;
  }
318

319
  &.merged {
320 321
    background-color: #2A2;
  }
R
randx 已提交
322 323
}

324
img.avatar {
R
randx 已提交
325 326 327
  float:left;
  margin-right:15px;
  width:40px;
328
  border:2px solid #ddd;
329

330
  &.s16 {
331 332
    width:16px;
  }
333
  &.s24 {
334 335
    width:24px;
  }
336
  &.s32 {
R
randx 已提交
337 338
    width:32px;
  }
R
randx 已提交
339 340
}

341
img.lil_av {
R
randx 已提交
342 343 344 345
  padding-left: 4px;
  padding-right:3px;
}

346
form {
R
randx 已提交
347 348
  @extend .form-horizontal;

349
  .actions {
R
randx 已提交
350 351 352
    @extend .form-actions;
  }

353
  .clearfix {
R
randx 已提交
354 355 356
    @extend .control-group;
  }

357
  .input {
R
randx 已提交
358 359 360
    @extend .controls;
  }

361
  label {
R
randx 已提交
362 363
    @extend .control-label;
  }
364
  .xlarge {
R
randx 已提交
365 366
    @extend .input-xlarge;
  }
367
  .xxlarge {
R
randx 已提交
368 369 370 371 372 373 374 375
    @extend .input-xxlarge;
  }
}

/**
 * List li block element #1
 *
 */
376
.wll {
R
randx 已提交
377 378 379 380 381
  background-color: #FFF;
  padding: 10px 5px;
  min-height: 20px;
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
382
  &.smoke {
R
randx 已提交
383 384
    background-color:#f5f5f5;
  }
385
  &:hover {
R
randx 已提交
386 387 388 389 390
    background:$hover;
  }
  &:last-child { border:none }
  p { padding-top:5px; margin:0; color:$style_color;}
  .author { color: #999; }
391
  p {
R
randx 已提交
392 393
    color:#222;
    margin-bottom: 0;
394
    img {
R
randx 已提交
395 396 397 398 399 400 401 402 403 404 405
      position:relative;
      top:3px;
    }
  }
}


/**
 * Block element #2
 *
 */
406
.entry {
R
randx 已提交
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
  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;


428
  p {
R
randx 已提交
429 430
    color:$style_color;
    margin-bottom: 0;
431
    img {
R
randx 已提交
432 433 434 435 436 437 438 439 440 441 442
      position:relative;
      top:3px;
    }
  }
}


/**
 * Big UI Block for show page content
 *
 */
443
.ui-box {
R
randx 已提交
444
  background:#F9F9F9;
D
Dmitriy Zaporozhets 已提交
445
  margin-bottom: 25px;
R
randx 已提交
446
  @include round-borders-all(4px);
R
randx 已提交
447
  border-color: #CCC;
D
Dmitriy Zaporozhets 已提交
448
  @include solid_shade;
R
randx 已提交
449

450
  ul {
R
randx 已提交
451 452 453
    margin:0;
  }

454
  h5, .title {
R
randx 已提交
455 456
    padding: 0 10px;
    @include round-borders-top(4px);
R
randx 已提交
457 458 459 460 461 462
    border-bottom: 1px solid #bbb;
    background:#eee;
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
R
randx 已提交
463

464
    &.small {
465 466 467 468 469 470
      line-height: 28px;
      font-size: 14px;
      line-height:28px;
      text-shadow: 0 1px 1px white;
    }

471
    form {
R
randx 已提交
472 473 474 475
      padding:9px 0;
      margin:0px;
    }

476 477
    .nav-pills {
      li {
R
randx 已提交
478 479
        padding:3px 0;
        &.active a { background-color:$style_color; }
480
        a {
R
randx 已提交
481 482 483 484 485 486
          border-radius:7px;
        }
      }
    }
  }

487
  .bottom {
R
randx 已提交
488 489 490 491
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
R
randx 已提交
492 493
    @include round-borders-bottom(4px);
    border-bottom:none;
R
randx 已提交
494
    border-top: 1px solid #bbb;
R
randx 已提交
495 496
  }

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

  li, .wll {
    padding:10px;
524
    &:first-child {
R
randx 已提交
525 526 527 528
      @include round-borders-top(4px);
      border-top:none;
    }

529
    &:last-child {
R
randx 已提交
530 531 532 533 534 535
      @include round-borders-bottom(4px);
      border:none;
    }
  }

}
536 537

table.admin-table {
538
  @extend .table-bordered;
539
  @extend .zebra-striped;
D
Dmitriy Zaporozhets 已提交
540
  @include solid_shade;
541
  th {
542 543 544 545 546 547 548 549 550
    border-color: #CCC;
    border-bottom: 1px solid #bbb;
    background:#eee;
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
  }
}
551

552
.field_with_errors {
553 554 555
  display:inline;
}

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

564
  a {
565 566 567 568 569
    color:#474D57;
    font-weight:bold;
    font-size:14px;
  }

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

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

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

R
randx 已提交
600 601 602 603 604 605 606 607 608

  img { max-width: 100%; }

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

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

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

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

631
  .bottom_box_content {
R
randx 已提交
632 633 634
    border-top:1px solid #eee;
  }
}
R
randx 已提交
635

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

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

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

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

669
  .file_title {
R
randx 已提交
670 671 672 673 674 675 676 677 678 679 680 681 682 683
    border-bottom: 1px solid #bbb;
    background:#eee;
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
    margin: 0;
    font-weight: normal;
    font-weight: bold;
    text-align: left;
    color: #666;
    padding: 9px 10px;
    height:18px;

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

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

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

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

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

    }

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

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

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

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

R
randx 已提交
782 783 784
    /**
     *  Code file
     */
785
    &.code {
R
randx 已提交
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 816
      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 已提交
817 818
  }
}