common.scss 10.6 KB
Newer Older
1 2 3 4 5
.diff_file_header a,
.file_stats a {
  color:$style_color;
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6

7
/** LAYOUT **/
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
8

9
.container { 
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
10 11 12 13 14
  padding-top:0;
  z-index:5;
}

.container .content { 
randx's avatar
randx committed
15
  margin:0 0;
16 17
}

18
.container  .sidebar { 
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
19
  width: 200px;
20
  height:100%;
21
  min-height:450px;
22 23
  float:right;
}
24

25 26
.profile_avatar_holder { 
  float:left;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
27 28
  width:60px;
  height:60px;
29 30
  margin-right:20px;
  img { 
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
31 32
    width:60px;
    height:60px;
33
    background:#eee;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
34 35 36
  }
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
37

38
.visible_link,
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
39
.author_link { 
40
  color: $link_color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
41
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
42 43

.widget { 
44
  @include shade;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
45 46
  padding:20px;
  margin-bottom:20px;
47 48
  border: 1px solid #DDD;
  border-radius: 5px;
49
  background:#fafafa;
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

  .link_holder { 
    background:#eee;
    position:relative;
    left:-20px;
    top:20px;
    padding:10px 20px;
    width:100%;
    border-top:1px solid #ccc;

    a { 
      font-size:14px;
      color:#666;
    }
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
65
}
66

67
.help li { color:#111 } 
68 69 70 71 72 73 74 75

.back_link { 
  text-decoration:underline;
  font-size:14px;
  font-weight:bold;
  padding:10px 0;
  padding-bottom:0;
}
76 77 78 79 80 81 82 83 84

.info_link { 
  margin-right:5px;
  float:left;

  img { 
    width:20px;
  }
}
85

86 87 88 89 90 91 92 93 94 95 96
.download_repo_link { 
  background: url("images.png") no-repeat 0 -48px;
  padding-left:20px;
}

.number { 
  border-radius: 4px; 
  text-shadow: none; 
  background: rgba(0,0,0,.12); 
  text-align: center; 
  padding: 2px 4px; 
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
97
  line-height:18px;
98 99 100 101 102 103 104 105
  margin-left:2px;
}

table a code { 
  position: relative;
  top: -2px;
  margin-right: 3px;
}
106 107 108 109

.span12 hr{
 margin-top: 5px;
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
110 111 112

.btn.padded { 
  margin-right:3px;
randx's avatar
randx committed
113
  padding:4px 10px 4px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
114
}
115 116 117

.loading { 
  margin:20px auto;
118
  background: url(ajax_loader.gif) no-repeat center center;
119 120 121
  width:40px;
  height:40px;
}
122 123 124

/** FLASH message **/
#flash_container {
125
  height:50px;
126 127 128 129 130 131 132 133
  position:fixed;
  z-index:10001;
  top:0px;
  width:100%;
  margin-bottom:15px;
  overflow:hidden;
  background:white;
  cursor:pointer;
134
  border-bottom:1px solid #ccc;
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206

  h4 {
    color:#444;
    font-size:22px;
    padding-top:5px;
    margin:2px;
  }
}

.git_url_wrapper {
  margin-right:50px
}
.file_stats {
  span {
    img {
      width:14px;
      float:left;
      margin-right:6px;
      padding:2px 0;
    }
  }
}

.handle:hover {
  cursor:move;
}

span.update-author {
  display:block;
}
span.update-author {
  color:#999;
  font-weight:normal;
  font-style:italic;
}
span.update-author strong {
  font-weight:bold;
  font-style: normal;
}

/** UPDATE ITEM **/
span.update-author {
  display:block;
}
/** END UPDATE ITEM **/
.ajax-tab-loading {
  padding:40px;
  display:none;
}
.dashboard-loader {
  float:left;
  margin:10px;
  display:none;
}
.user-mention {
  color:#2FA0BB;
  font-weight:bold;
}

a.project-update.titled {
  position:relative;
  padding-left:35% !important;
  .title-block {
    padding:10px;
    width:35%;
    position:absolute;
    left:0;
    top:0;
  }
}

input.git_clone_url { 
randx's avatar
randx committed
207
  width:325px;
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
}

.merge-request-form-holder {
  select { 
    width:300px;
  }
}

/** Issues **/
#issue_assignee_id {
  width:300px;
}

#new_issue_dialog textarea{
    height: 100px;
}

.project_list_url { 
226
  width:250px;
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
  background:#fff !important;
}


/** bordered list **/
ul.bordered-list { 
  margin:5px 0px;
  padding:0px;
  li { 
    padding: 5px 0;
    border-bottom: 1px solid #EEE;
    overflow: hidden;
    display: block;
    margin:0px;
  }
}

ul.bordered-list li:last-child { border:none } 

.line_holder { 
  &:hover { 
    td { 
      background: #FFFFCF !important;
    }
  }
}

li.commit { 
  .avatar { 
    width:24px;
    top:-3px;
    margin-right:10px;
    margin-left:10px;
  }

  code { 
263 264 265 266 267 268
    padding: 2px 2px 0;
    margin-top: -2px;
    &:hover {
      color: black;
      border: 1px solid #ccc;
    }
269 270 271 272 273 274 275
  }
}
p.time {
  color: #999;
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}
276 277


278 279 280 281
/** 
 * Dashboard page
 * 
 */
282 283
.dashboard_category { 
  margin-bottom:30px;
284 285 286 287 288 289
  h3 a { 
    color:#474D57;
    &:hover { 
      text-decoration:underline;
    }
  }
290

291
  .dashboard_block { 
292 293
    .dash_project_item { 
      margin-bottom:10px;
294
      border:none;
295
      padding:0px 5px;
296 297 298
      .project_link {
        color:#888;
        &:hover {
299 300 301 302 303
          color:#111;
          .ico.project { 
            background-position:-209px -21px;
          }
        }
304 305 306 307 308 309 310
      }
      h4 {
        color:#666;
      }
    }
  }
}
311 312 313 314 315 316 317 318 319

.styled_image { 
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -moz-box-shadow: 0 0 5px #888;
  -webkit-box-shadow: 0 0 5px#888;
  box-shadow: 0 0 5px #888;
}
320 321 322

.event_feed { 
  min-height:40px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
323
  border-bottom:1px solid #ddd;
324 325 326
  .avatar { 
    width:32px;
  }
327 328 329 330 331 332 333
  .event_icon { 
    float:right;
    margin-right:2px;
    img { 
      width:20px;
    }
  }
334 335 336 337 338 339 340 341
  ul { 
    margin-left:50px;
    margin-bottom:5px;
    .avatar { 
      width:24px;
    }
  }

342
  padding: 15px 5px;
343 344 345 346
  &:last-child { border:none }
  .wll:hover { background:none }
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
.ico { 
  background: url("images.png") no-repeat -85px -77px;
  width: 19px;
  height: 16px;
  float: left;
  position: relative;
  margin-right: 10px;
  top: 8px;

  &.project { 
    background-position:  -37px -77px;
  }

  &.activities { 
    background-position:-162px -22px;
  }
  &.projects { 
    background-position:-209px -21px;
  }
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
367 368 369 370 371 372 373 374 375 376 377 378

.leftbar { 
  h5, .title { 
    padding:5px 10px;
  }

  h4 { 
    font-size:14px;
    padding:2px 10px;
    color:#888;
    border-bottom:1px solid #eee;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
379
  a:last-child h4 { border:none; }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
380

381
  a:hover { 
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
382 383
    h4 {
      color:#111;
384
      background:$hover;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
385 386 387 388 389
      .ico.project { 
        background-position:-209px -21px;
      }
    }
  }
390 391 392
  .bottom { 
    padding:10px;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
393 394 395 396 397
}

.btn { 
  &.very_small { 
    font-size:11px;
398
    padding:2px 6px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
399 400 401
    margin:2px;
  }
}
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421

.mr_source_commit , 
.mr_target_commit { 
  .commit { 
    list-style:none;
    margin-top:10px;
    &:hover { 
      background:none;
    }
  }
}

.prettyprint { 
  background-color: #fefbf3;
  padding: 9px;
  border: 1px solid rgba(0,0,0,.2);
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,.1);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
422 423 424 425 426

.hint {
  font-style: italic;
  color: #999;
}
427 428 429 430 431 432 433 434 435

.upvotes {
  font-size: 14px;
  font-weight: bold;
  color: #468847;
  text-align: right;
  padding: 4px;
  margin: 2px;
}
436

437 438
/* Fix for readme code (stopped it from being yellow) */
.readme {
439 440 441 442 443
  pre {
    background: white !important;
    
    code {
      background: none !important;
444 445 446
    }
  }
}
447

448 449 450 451 452 453
/**
 *  UI box element 
 *  contains top, middle, bottom blocks
 * 
 */
.main_box { 
454 455 456
  @extend .borders;
  @extend .prepend-top-20;
  @extend .append-bottom-20;
457
  border-width:1px;
458

randx's avatar
randx committed
459 460
  img { max-width: 100%; }

461 462 463 464 465
  pre {
    code {
      background: none !important;
    }
  }
Steven Verbeek's avatar
Steven Verbeek committed
466

467 468 469
  .top_box_content, 
  .middle_box_content, 
  .bottom_box_content { 
470
    padding:15px;
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491

    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;
  }
492 493
}

494 495 496
.highlight_word { 
  background:#EEDC94;
}
497 498 499 500 501 502 503 504 505

.status_info { 
  font-size:14px;
  padding:5px 15px;
  line-height:24px;
  width:60px;
  text-align:center;
  float:left;
  margin-right:20px;
506 507 508 509 510 511 512 513 514 515 516 517 518

  &.success { 
    background: #5BB75B;
    color: white;
    text-shadow: 0 1px #111;
    border-color: #9A9;
  }
  &.error { 
    background: #DA4E49;
    border-color: #BD362F;
    color: white;
    text-shadow: 0 1px #111;
  }
519 520
}

521 522
.arrow{ 
  background: #E3E5EA;
523 524
  padding: 5px;
  margin-top:5px;
525 526 527 528 529
  border-radius: 5px;
  text-shadow: none;
  color: #999;
  line-height: 16px;
  font-weight:bold;
Valery Sizov's avatar
Valery Sizov committed
530 531 532 533 534
}

.thin_area{
  height: 150px;
}
randx's avatar
randx committed
535 536

.gitlab_pagination { 
537 538 539 540 541 542
  span a { color:$link_color; }
  .prev, .next, .current, .page a { 
    padding:10px;
  }
  .current { 
    border-bottom:2px solid $style_color;
randx's avatar
randx committed
543 544
  }
}
545 546 547 548 549 550 551 552

// Fixes alignment on notes.
.new_note {
  label {
    text-align:left;
  }
}

553
.new_note {
554 555 556 557 558 559 560 561 562 563 564 565 566 567
  .input-file {
    font: 500px monospace;
    opacity:0;
    filter: alpha(opacity=0);
    position: absolute;
    z-index: 1;
    top:0;
    right:0;
    padding:0;
    margin: 0;
  }

  .file_upload {
    position: absolute;
568 569
    right:14px;
    top:7px;
570 571 572 573
  }

  div.attachments {
    position:relative;
574
    width: 350px;
575
    height: 36px;
576 577 578 579 580 581
    overflow:hidden;
    margin:0 0 5px !important;
  }
  .file_name {
    line-height:30px;
    width:240px;
582
    height:28px;
583 584
    overflow:hidden;
  }
585 586 587 588
}

// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
randx's avatar
randx committed
589
  img { max-width:100% }
590 591 592 593 594 595 596 597 598
  .note-title {
    li {
      border-bottom:none !important;
    }
    .file {
      padding-left:20px;
      background:url("icon-attachment.png") no-repeat left center;
    }
  }
599
}
randx's avatar
randx committed
600 601 602 603 604 605

.markdown { 
  img { 
    max-width:100%;
  }
}
606 607 608 609

.wiki_content code, .readme code{
  background-color: inherit;
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
610 611 612 613 614 615

.team_member_show { 
  td:first-child { 
    color:#aaa;
  }
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
616 617 618

.remember_me { 
  text-align:left;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
619 620 621 622 623 624 625 626

  input { 
    margin:0;
  }

  span { 
    padding-left:5px;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
627 628 629 630 631 632 633 634 635 636 637
}


/**
 * Milestones list
 *
 */

.milestone { 
  @extend .wll;
}
randx's avatar
randx committed
638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654

/**
 * Admin area
 *
 */
.admin_dash { 
  .data { 
    a { 
      h1 { 
        line-height:48px;
        font-size:48px;
        padding:20px;
        text-align:center;
      }
    }
  }
}
655 656 657 658 659 660 661

.rss-icon {
  img {
    width:24px;
    vertical-align:top;
  }
}
662 663 664 665 666 667 668

.automerge_widget { 

  &.can_be_merged { 
    background: #DFF0D8;
  }

669 670 671 672 673

  form { 
    margin-bottom:0;
    .clearfix { 
      margin-bottom:0;
674 675
    }
  }
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698

  .accept_group { 
    float:left;
    border: 1px solid #ADA;
    padding: 2px;
    @include border-radius(5px);
    border-radius: 5px;
    background: #CEB;

    .accept_merge_request { 
      float:left;
    }
    .remove_branch_holder { 
      margin-left:20px;
      margin-right:10px;
      float:left;
    }
    label { 
      color:#444;
    }
  }


699 700 701 702
  .how_to_merge_link { 
    @extend .primary;
  }
}
randx's avatar
randx committed
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726

.graph_holder { 
  border: 1px solid #aaa;
  padding:1px;


  h4 { 
    padding:0 10px;
    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);
  }

  .graph { 
    background: #f1f1f1;
    cursor: move;
    height: 70%;
    overflow: hidden;
  }

}
727 728 729

/* CHZN reset few styles */
.chzn-container-single .chzn-single { 
randx's avatar
randx committed
730
  background:#FFF;
731 732 733 734 735
  border: 1px solid #ccc;
}
.chzn-container-active .chzn-single { 
  background:#fff;
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
736 737 738 739 740 741 742 743 744 745 746 747

/**
 * Push event widget
 * 
 */
.event_lp { 
  @extend .alert-info;
  margin-bottom:15px;
  padding:8px;
  border-style: solid;
  border-width: 1px;
  @include border-radius(4px);
randx's avatar
randx committed
748
  min-height:42px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
749
}