gitlab_bootstrap.scss 13.5 KB
Newer Older
1 2 3
body { 
  margin-bottom:20px;
}
R
randx 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
a {
  outline: none;
  color: $link_color;
  &:hover { 
    text-decoration:none; 
    color: $blue_link;
  }

  &.btn { 
    color: $style_color;
  }

  &.dark { 
    color: $style_color;
  }

  &.lined { 
    text-decoration:underlined; 
  }

  &.gray { 
    color:gray;
  }

  &.supp_diff_link { 
    text-align:center;
    padding:20px 0;
    background:#f1f1f1;
    width:100%;
    float:left;
  }

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

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

R
randx 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
.alert-message { 
  @extend .alert;

  &.success { 
    @extend .alert-success;
  }

  &.error { 
    @extend .alert-error;
  }
}

.alert { 
  &.alert-well { 
    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;
}

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

R
randx 已提交
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
code { 
  background:#FCEEC1;
  color:$style_color;
}

table { 
  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;
  }

  &.zebra-striped { 
    @extend .table-striped;
  }
}

.btn { 
  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);

  &:hover { 
  }

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

130 131 132 133 134 135 136 137 138 139 140 141
  &.success { 
    color: #fff;
    text-shadow: 0 0 1px #111;
    background: #5bb75b;;
    font-weight: bold;

    &:hover { 
      background-color: #51a351;
      color: #fff;
    }
  }

142 143 144 145 146 147 148 149 150 151 152 153
  &.danger,
  &.btn-danger { 
    color:#fff;
    background: #DA4E49;
    border-color: #BD362F;

    &:hover { 
      color:#fff;
      background: #EE4E49;
    }
  }

D
Dmitriy Zaporozhets 已提交
154 155 156
  &.danger { 
    @extend .btn-danger;
  }
R
randx 已提交
157 158 159 160

  &.small { 
    @extend .btn-small;
  }
161 162 163 164 165

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

a:focus { 
  outline: none; 
}

.nav-pills a:hover { 
R
randx 已提交
173
  background-color:#888;
R
randx 已提交
174 175 176
}

.nav-pills .active a {
R
randx 已提交
177
  background-color: $style_color;
R
randx 已提交
178 179 180 181
}

.label { 
  background-color: #474D57;
182 183 184
  &.label-important { 
    background-color: #B94A48;
  }
185 186 187 188 189 190 191

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

    &.grouped { 
      float: left;
      margin-right: 6px;
      padding: 6px;
    }
198
  }
R
randx 已提交
199 200 201 202 203 204
}

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

205 206 207 208
.nav-tabs > .active > a { 
  font-weight:bold;
}

R
randx 已提交
209 210 211 212 213
/** COLORS **/
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
.cblack { color:#111; }
214
.cdark { color:#444 }
R
randx 已提交
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 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
.cwhite { color:#fff !important }

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

.padded { 
  padding:20px;
}

.ipadded { 
  padding:20px !important;
}
.lborder { 
  border-left:1px solid #eee;
}

.borders { 
  border: 1px solid #ccc;
  @include shade;
}
.no-borders { 
  border:none;
}
table.no-borders { 
  border:none;
  tr, td { border:none }
}
.no-padding { 
  padding:0 !important;
}
.underlined { 
  border-bottom: 1px solid $border_color;
}
.vlink { 
  color: $link_color !important;
}

.pretty_label { 
  @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;

  &.branch { 
    border:none;
    font-size:13px;
    background: #474D57;
    color:#fff;
R
randx 已提交
300
    font-weight:bold;
R
randx 已提交
301 302 303 304 305
    font-family: monospace;
  }
}

.event_label { 
306 307 308 309 310 311 312 313 314 315 316 317 318 319
  @extend .label;
  background-color: #999;

  &.pushed { 
    background-color: #3A87AD;
  }

  &.opened { 
    background-color: #468847;
  }

  &.closed { 
    background-color: #B94A48;
  }
R
randx 已提交
320 321 322 323 324 325 326 327 328
}

img.avatar { 
  float:left;
  margin-right:15px;
  width:40px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
329 330 331 332 333 334 335

  &.s16 { 
    width:16px;
  }
  &.s24 { 
    width:24px;
  }
R
randx 已提交
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
}

img.lil_av { 
  padding-left: 4px;
  padding-right:3px;
}

form { 
  @extend .form-horizontal;

  .actions { 
    @extend .form-actions;
  }

  .clearfix { 
    @extend .control-group;
  }

  .input { 
    @extend .controls;
  }

  label { 
    @extend .control-label;
  }
  .xlarge { 
    @extend .input-xlarge;
  }
  .xxlarge { 
    @extend .input-xxlarge;
  }
}

/**
 * List li block element #1
 *
 */
.wll { 
  background-color: #FFF;
  padding: 10px 5px;
  min-height: 20px;
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor:pointer;
  &.smoke { 
    background-color:#f5f5f5;
  }
  &:hover { 
    background:$hover;
  }
  &:last-child { border:none }
  p { padding-top:5px; margin:0; color:$style_color;}
  .author { color: #999; }
  p { 
    color:#222;
    margin-bottom: 0;
    img { 
      position:relative;
      top:3px;
    }
  }
}


/**
 * Block element #2
 *
 */
.entry { 
  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;


  p { 
    color:$style_color;
    margin-bottom: 0;
    img { 
      position:relative;
      top:3px;
    }
  }
}


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

  ul { 
    margin:0;
  }

  h5, .title { 
    padding: 0 10px;
    @include round-borders-top(4px);
R
randx 已提交
454 455 456 457 458 459
    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 已提交
460

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

R
randx 已提交
468 469 470 471 472
    form { 
      padding:9px 0;
      margin:0px;
    }

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

  .bottom { 
R
randx 已提交
485 486 487 488
    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 已提交
489 490
    @include round-borders-bottom(4px);
    border-bottom:none;
R
randx 已提交
491
    border-top: 1px solid #bbb;
R
randx 已提交
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
  }

  &.padded { 
    h5, .title { 
      margin: -20px;
      margin-bottom: 0;
      padding: 5px 20px;
    }
    .middle_title { 
      background:#f5f5f5;
      margin:20px -20px;
      padding: 0 20px;
      border-top:1px solid #eee;
      border-bottom:1px solid #eee;
      font-size:14px;
      color:#777;
    }
  }
  .row_title { 
    font-weight:bold;
    color:#444;
    &:hover { 
      text-decoration:underline;
    }
  }

  li, .wll {
    padding:10px;
    &:first-child { 
      @include round-borders-top(4px);
      border-top:none;
    }

    &:last-child { 
      @include round-borders-bottom(4px);
      border:none;
    }
  }

}
532 533 534 535 536 537 538 539 540 541 542 543 544 545

table.admin-table {
  @extend .table-bordered; 
  @extend .zebra-striped;
  th { 
    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);
  }
}
546 547 548 549 550

.field_with_errors { 
  display:inline;
}

551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576
ul.breadcrumb {
  background:white;
  border:none;
  li {
    display: inline;
    text-shadow: 0 1px 0 white
  }

  a { 
    color:#474D57;
    font-weight:bold;
    font-size:14px;
  }

  .arrow { 
    background: url("images.png") no-repeat -85px -77px;
    width: 19px;
    height: 16px;
    float: left;
    position: relative;
    left: -10px;
    padding:0;
    margin:0;
  }
}

577 578 579 580 581
.nothing_here_message { 
  text-align:center;
  padding:20px;
  color:#777;
}
R
randx 已提交
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627

/**
 *  UI box element 
 *  contains top, middle, bottom blocks
 * 
 */
.main_box { 
  @extend .borders;
  @extend .prepend-top-20;
  @extend .append-bottom-20;
  border-width:1px;

  img { max-width: 100%; }

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

  .top_box_content, 
  .middle_box_content, 
  .bottom_box_content { 
    padding:15px;

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

  .middle_box_content { 
    border-radius:0;
    border:none;
    font-size:12px;
    background-color:#f5f5f5;
    border:none;
    border-top:1px solid #eee;
  }

  .bottom_box_content { 
    border-top:1px solid #eee;
  }
}
R
randx 已提交
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651

input[type=text] { 
  &.large_text { 
    padding:6px;
    font-size:16px;
  }
}

p { 
  &.slead { 
    color:#456;
    font-size:16px;
    margin-bottom: 12px;
    font-weight: 200;
    line-height: 24px;
  }
}

h3.page_title { 
  color:#456;
  font-size:20px;
  font-weight: 600;
  line-height: 28px;
}
652

R
randx 已提交
653 654 655 656 657 658 659
/**
 * File content holder 
 *
 */
.file_holder { 
  border:1px solid #CCC;
  margin-bottom:1em;
R
randx 已提交
660
  @include shade;
R
randx 已提交
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676

  .file_title { 
    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;

R
randx 已提交
677 678 679 680 681 682 683 684 685 686 687 688 689 690
    .options { 
      float:right;
      margin-top: -5px;
    }

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

    &.wiki { 
697
      font-size: 13px;
R
randx 已提交
698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747
      code { 
        padding:0 4px;
      }
      padding:20px;
      h1, h2 {  
        line-height: 46px;  
      }  
      h3, h4 {  
        line-height: 40px;  
      }  
    }

    &.image_file { 
      background:#eee;
      text-align:center;
      img {
        padding:100px;
        max-width:300px;
      }
    }

    &.blob_file { 

    }

    /**
     *  Blame file
     */
    &.blame { 
      tr { 
        border-bottom: 1px solid #eee;
      }
      td { 
        padding:5px;
      }
      .author, 
      .blame_commit { 
        background:#f5f5f5;
        vertical-align:top;
      }
      .lines { 
        pre { 
          padding:0;
          margin:0;
          background:none;
          border:none;
        }
      }
    }

748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774
    &.logs { 
      background:#eee;
      max-height: 700px;
      overflow-y: auto;

      ol { 
        margin-left:40px;
        padding: 10px 0;
        border-left: 1px solid #CCC;
        margin-bottom:0;
        background: white;
        li { 
          color:#888;
          p { 
            margin:0;
            color:#333;
            line-height:24px;
            padding-left: 10px;
          }

          &:hover { 
            background:$hover;
          }
        }
      }
    }

R
randx 已提交
775 776 777 778 779 780 781 782 783 784 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
    /**
     *  Code file
     */
    &.code { 
      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 已提交
810 811
  }
}