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

D
Dmitriy Zaporozhets 已提交
6

7
/** LAYOUT **/
D
Dmitriy Zaporozhets 已提交
8

9
.container { 
D
Dmitriy Zaporozhets 已提交
10 11 12 13 14
  padding-top:0;
  z-index:5;
}

.container .content { 
R
randx 已提交
15
  margin:0 0;
16 17
}

18
.container  .sidebar { 
D
Dmitriy Zaporozhets 已提交
19
  width: 200px;
20
  height:100%;
21
  min-height:450px;
22 23
  float:right;
}
24

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

D
Dmitriy Zaporozhets 已提交
37

38
.visible_link,
D
Dmitriy Zaporozhets 已提交
39
.author_link { 
40
  color: $link_color;
D
Dmitriy Zaporozhets 已提交
41
}
D
Dmitriy Zaporozhets 已提交
42 43

.widget { 
44
  @include shade;
D
Dmitriy Zaporozhets 已提交
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;
    }
  }
D
Dmitriy Zaporozhets 已提交
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;
}
D
Dmitriy Zaporozhets 已提交
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; 
D
Dmitriy Zaporozhets 已提交
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;
}
D
Dmitriy Zaporozhets 已提交
110 111 112

.btn.padded { 
  margin-right:3px;
R
randx 已提交
113
  padding:4px 10px 4px;
D
Dmitriy Zaporozhets 已提交
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;
}
D
Dmitriy Zaporozhets 已提交
122 123 124

/** FLASH message **/
#flash_container {
125
  height:50px;
D
Dmitriy Zaporozhets 已提交
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;
D
Dmitriy Zaporozhets 已提交
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 { 
R
randx 已提交
207
  width:325px;
D
Dmitriy Zaporozhets 已提交
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;
D
Dmitriy Zaporozhets 已提交
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;
    }
D
Dmitriy Zaporozhets 已提交
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;
D
Dmitriy Zaporozhets 已提交
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 }
}

D
Dmitriy Zaporozhets 已提交
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;
  }
}
D
Dmitriy Zaporozhets 已提交
367 368 369 370 371 372 373 374 375

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

  h4 { 
    font-size:14px;
    padding:2px 10px;
R
randx 已提交
376 377
    color:#666;
    border-bottom:1px solid #f1f1f1;
D
Dmitriy Zaporozhets 已提交
378
  }
D
Dmitriy Zaporozhets 已提交
379
  a:last-child h4 { border:none; }
D
Dmitriy Zaporozhets 已提交
380

381
  a:hover { 
D
Dmitriy Zaporozhets 已提交
382 383
    h4 {
      color:#111;
384
      background:$hover;
R
randx 已提交
385
      border-color:#CCC;
D
Dmitriy Zaporozhets 已提交
386 387 388 389 390
      .ico.project { 
        background-position:-209px -21px;
      }
    }
  }
391 392 393
  .bottom { 
    padding:10px;
  }
D
Dmitriy Zaporozhets 已提交
394 395 396 397 398
}

.btn { 
  &.very_small { 
    font-size:11px;
399
    padding:2px 6px;
D
Dmitriy Zaporozhets 已提交
400 401 402
    margin:2px;
  }
}
403 404 405 406 407 408 409 410 411 412


.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);
}
413 414 415 416 417

.hint {
  font-style: italic;
  color: #999;
}
418 419 420 421 422 423 424 425 426

.upvotes {
  font-size: 14px;
  font-weight: bold;
  color: #468847;
  text-align: right;
  padding: 4px;
  margin: 2px;
}
S
Steven Verbeek 已提交
427

428 429
/* Fix for readme code (stopped it from being yellow) */
.readme {
430 431 432 433 434
  pre {
    background: white !important;
    
    code {
      background: none !important;
S
Steven Verbeek 已提交
435 436 437
    }
  }
}
438

D
Dmitriy Zaporozhets 已提交
439

440 441 442
.highlight_word { 
  background:#EEDC94;
}
443 444 445 446 447 448 449 450 451

.status_info { 
  font-size:14px;
  padding:5px 15px;
  line-height:24px;
  width:60px;
  text-align:center;
  float:left;
  margin-right:20px;
452 453 454 455 456 457 458 459 460 461 462 463 464

  &.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;
  }
465 466
}

467 468
.arrow{ 
  background: #E3E5EA;
469 470
  padding: 5px;
  margin-top:5px;
471 472 473 474 475
  border-radius: 5px;
  text-shadow: none;
  color: #999;
  line-height: 16px;
  font-weight:bold;
V
Valery Sizov 已提交
476 477 478 479 480
}

.thin_area{
  height: 150px;
}
R
randx 已提交
481 482

.gitlab_pagination { 
483 484 485 486 487 488
  span a { color:$link_color; }
  .prev, .next, .current, .page a { 
    padding:10px;
  }
  .current { 
    border-bottom:2px solid $style_color;
R
randx 已提交
489 490
  }
}
491 492 493 494 495 496 497 498

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

499 500
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
R
randx 已提交
501
  img { max-width:100% }
502 503 504 505 506 507 508 509 510
  .note-title {
    li {
      border-bottom:none !important;
    }
    .file {
      padding-left:20px;
      background:url("icon-attachment.png") no-repeat left center;
    }
  }
511
}
R
randx 已提交
512 513 514 515 516 517

.markdown { 
  img { 
    max-width:100%;
  }
}
518 519 520 521

.wiki_content code, .readme code{
  background-color: inherit;
}
D
Dmitriy Zaporozhets 已提交
522 523 524 525 526 527

.team_member_show { 
  td:first-child { 
    color:#aaa;
  }
}
D
Dmitriy Zaporozhets 已提交
528 529 530

.remember_me { 
  text-align:left;
D
Dmitriy Zaporozhets 已提交
531 532 533 534 535 536 537 538

  input { 
    margin:0;
  }

  span { 
    padding-left:5px;
  }
D
Dmitriy Zaporozhets 已提交
539 540 541 542 543 544 545 546 547 548 549
}


/**
 * Milestones list
 *
 */

.milestone { 
  @extend .wll;
}
R
randx 已提交
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566

/**
 * Admin area
 *
 */
.admin_dash { 
  .data { 
    a { 
      h1 { 
        line-height:48px;
        font-size:48px;
        padding:20px;
        text-align:center;
      }
    }
  }
}
567 568 569 570 571 572

.rss-icon {
  img {
    width:24px;
    vertical-align:top;
  }
R
randx 已提交
573 574 575 576

  strong { 
    line-height:24px;
  }
577
}
578

R
randx 已提交
579

580 581 582

/* CHZN reset few styles */
.chzn-container-single .chzn-single { 
R
randx 已提交
583
  background:#FFF;
R
randx 已提交
584 585
  border: 1px solid #bbb;
  box-shadow:none;
586 587 588 589
}
.chzn-container-active .chzn-single { 
  background:#fff;
}
D
Dmitriy Zaporozhets 已提交
590 591 592 593 594 595 596

/**
 * Push event widget
 * 
 */
.event_lp { 
  @extend .alert-info;
R
randx 已提交
597
  margin-bottom:20px;
D
Dmitriy Zaporozhets 已提交
598 599 600 601
  padding:8px;
  border-style: solid;
  border-width: 1px;
  @include border-radius(4px);
R
randx 已提交
602
  min-height:42px;
D
Dmitriy Zaporozhets 已提交
603
}
R
randx 已提交
604

R
randx 已提交
605 606 607 608
.supp_diff_link,
.mr_show_all_commits { 
  cursor:pointer;
}
D
Dmitriy Zaporozhets 已提交
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666

/**
 *  Issues, MRs legend 
 * 
 */

.list_legend {
  float:left;
  margin-right:20px;
  .icon {
    width:16px;
    height:16px;
    float:left;
    margin-right:5px;
    @include border-radius(4px);
    &.critical { 
      background: #EAA;
      border:1px solid #B88;
    }
    &.today{ 
      background: #ADA;
      border:1px solid #8B8;
    }
    &.closed { 
      background: #DDD;
      border:1px solid  #BBB;
    }
    &.yours { 
      background: #AAD;
      border:1px solid #88B;
    }
    &.merged { 
      background: #DAD;
      border:1px solid #B8B;
    }
  }
  .text { 
    padding-bottom: 10px;
    float:left;
  }
}

.merge_request,
.issue { 
  .list_legend { 
    margin-right: 5px;
    margin-top: 10px;
    .icon {
      width:16px;
      height:16px;
      float:left;
      margin-right:5px;
      @include border-radius(4px);
      border:1px solid #ddd;
    }
  }

  &.critical { 
R
randx 已提交
667 668
    background: #FEE;
    border-color:#ECC;
D
Dmitriy Zaporozhets 已提交
669 670 671 672 673 674
    .icon { 
      background: #EAA;
      border:1px solid #B88;
    }
  }
  &.today{ 
R
randx 已提交
675 676
    background: #EFE;
    border-color:#CEC;
D
Dmitriy Zaporozhets 已提交
677 678 679 680 681 682
    .icon { 
      background: #ADA;
      border:1px solid #8B8;
    }
  }
  &.closed { 
R
randx 已提交
683 684
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
685 686 687 688 689 690 691 692 693 694 695 696
    .icon { 
      background: #DDD;
      border:1px solid  #BBB;
    }
  }
  &.yours { 
    .icon { 
      background: #AAD;
      border:1px solid #88B;
    }
  }
  &.merged { 
R
randx 已提交
697 698
    background: #FEF;
    border-color:#EDE;
D
Dmitriy Zaporozhets 已提交
699 700 701 702 703 704
    .icon { 
      background: #DAD;
      border:1px solid #B8B;
    }
  }
}