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
.loading { 
  margin:20px auto;
113
  background: url(ajax_loader.gif) no-repeat center center;
114 115 116
  width:40px;
  height:40px;
}
D
Dmitriy Zaporozhets 已提交
117 118 119

/** FLASH message **/
#flash_container {
120
  height:50px;
D
Dmitriy Zaporozhets 已提交
121 122 123 124 125 126 127 128
  position:fixed;
  z-index:10001;
  top:0px;
  width:100%;
  margin-bottom:15px;
  overflow:hidden;
  background:white;
  cursor:pointer;
129
  border-bottom:1px solid #ccc;
D
Dmitriy Zaporozhets 已提交
130 131 132 133 134 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

  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 已提交
202
  width:325px;
D
Dmitriy Zaporozhets 已提交
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
}

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

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

#new_issue_dialog textarea{
    height: 100px;
}

.project_list_url { 
221
  width:250px;
D
Dmitriy Zaporozhets 已提交
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
  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 { 
258 259 260 261 262 263
    padding: 2px 2px 0;
    margin-top: -2px;
    &:hover {
      color: black;
      border: 1px solid #ccc;
    }
D
Dmitriy Zaporozhets 已提交
264 265 266 267 268 269 270
  }
}
p.time {
  color: #999;
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}
271 272


273 274 275 276
/** 
 * Dashboard page
 * 
 */
277 278
.dashboard_category { 
  margin-bottom:30px;
279 280 281 282 283 284
  h3 a { 
    color:#474D57;
    &:hover { 
      text-decoration:underline;
    }
  }
285

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

.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;
}
315 316 317

.event_feed { 
  min-height:40px;
D
Dmitriy Zaporozhets 已提交
318
  border-bottom:1px solid #ddd;
319 320 321
  .avatar { 
    width:32px;
  }
322 323 324 325 326 327 328
  .event_icon { 
    float:right;
    margin-right:2px;
    img { 
      width:20px;
    }
  }
329 330 331 332 333 334 335 336
  ul { 
    margin-left:50px;
    margin-bottom:5px;
    .avatar { 
      width:24px;
    }
  }

337
  padding: 15px 5px;
338 339
  &:last-child { border:none }
  .wll:hover { background:none }
340 341 342 343 344 345 346 347 348

  .event_commits { 
    margin-top: 5px;

    li.commit { 
      padding:5px;
      border:none;
    }
  }
349 350
}

D
Dmitriy Zaporozhets 已提交
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370
.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 已提交
371 372 373 374 375 376 377 378 379

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

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

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

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

  &.grouped { 
    margin-right:7px;
    float:left;
  }

  &.padded { 
    margin-right:3px;
    padding:4px 10px 4px;
  }
D
Dmitriy Zaporozhets 已提交
416
}
417 418 419 420 421 422 423 424 425 426


.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);
}
427 428 429 430 431

.hint {
  font-style: italic;
  color: #999;
}
432 433 434 435 436 437 438 439 440

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

442 443
/* Fix for readme code (stopped it from being yellow) */
.readme {
444 445 446 447 448
  pre {
    background: white !important;
    
    code {
      background: none !important;
S
Steven Verbeek 已提交
449 450 451
    }
  }
}
452

D
Dmitriy Zaporozhets 已提交
453

454 455 456
.highlight_word { 
  background:#EEDC94;
}
457 458 459 460 461 462 463 464 465

.status_info { 
  font-size:14px;
  padding:5px 15px;
  line-height:24px;
  width:60px;
  text-align:center;
  float:left;
  margin-right:20px;
466 467 468 469 470 471 472 473 474 475 476 477 478

  &.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;
  }
479 480
}

481 482
.arrow{ 
  background: #E3E5EA;
483 484
  padding: 5px;
  margin-top:5px;
485 486 487 488 489
  border-radius: 5px;
  text-shadow: none;
  color: #999;
  line-height: 16px;
  font-weight:bold;
V
Valery Sizov 已提交
490 491 492 493 494
}

.thin_area{
  height: 150px;
}
R
randx 已提交
495 496

.gitlab_pagination { 
497 498 499 500 501 502
  span a { color:$link_color; }
  .prev, .next, .current, .page a { 
    padding:10px;
  }
  .current { 
    border-bottom:2px solid $style_color;
R
randx 已提交
503 504
  }
}
505 506 507 508 509 510 511 512

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

513 514
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
R
randx 已提交
515
  img { max-width:100% }
516 517 518 519 520 521 522 523 524
  .note-title {
    li {
      border-bottom:none !important;
    }
    .file {
      padding-left:20px;
      background:url("icon-attachment.png") no-repeat left center;
    }
  }
525
}
R
randx 已提交
526 527 528 529 530 531

.markdown { 
  img { 
    max-width:100%;
  }
}
532 533 534 535

.wiki_content code, .readme code{
  background-color: inherit;
}
D
Dmitriy Zaporozhets 已提交
536 537 538 539 540 541

.team_member_show { 
  td:first-child { 
    color:#aaa;
  }
}
D
Dmitriy Zaporozhets 已提交
542 543 544

.remember_me { 
  text-align:left;
D
Dmitriy Zaporozhets 已提交
545 546 547 548 549 550 551 552

  input { 
    margin:0;
  }

  span { 
    padding-left:5px;
  }
D
Dmitriy Zaporozhets 已提交
553 554 555 556 557 558 559 560 561 562 563
}


/**
 * Milestones list
 *
 */

.milestone { 
  @extend .wll;
}
R
randx 已提交
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580

/**
 * Admin area
 *
 */
.admin_dash { 
  .data { 
    a { 
      h1 { 
        line-height:48px;
        font-size:48px;
        padding:20px;
        text-align:center;
      }
    }
  }
}
581 582 583 584 585 586

.rss-icon {
  img {
    width:24px;
    vertical-align:top;
  }
R
randx 已提交
587 588 589 590

  strong { 
    line-height:24px;
  }
591
}
592

R
randx 已提交
593

594 595 596

/* CHZN reset few styles */
.chzn-container-single .chzn-single { 
R
randx 已提交
597
  background:#FFF;
R
randx 已提交
598 599
  border: 1px solid #bbb;
  box-shadow:none;
600 601 602 603
}
.chzn-container-active .chzn-single { 
  background:#fff;
}
D
Dmitriy Zaporozhets 已提交
604 605 606 607 608 609 610

/**
 * Push event widget
 * 
 */
.event_lp { 
  @extend .alert-info;
R
randx 已提交
611
  margin-bottom:20px;
D
Dmitriy Zaporozhets 已提交
612 613 614 615
  padding:8px;
  border-style: solid;
  border-width: 1px;
  @include border-radius(4px);
R
randx 已提交
616 617 618 619 620
  min-height:22px;

  .avatar { 
    width:24px;
  }
D
Dmitriy Zaporozhets 已提交
621
}
R
randx 已提交
622

R
randx 已提交
623 624 625 626
.supp_diff_link,
.mr_show_all_commits { 
  cursor:pointer;
}
D
Dmitriy Zaporozhets 已提交
627 628 629 630 631 632 633 634 635 636

/**
 *  Issues, MRs legend 
 * 
 */

.list_legend {
  float:left;
  margin-right:20px;
  .icon {
R
randx 已提交
637 638
    width:12px;
    height:12px;
D
Dmitriy Zaporozhets 已提交
639 640
    float:left;
    margin-right:5px;
R
randx 已提交
641
    margin-top: 2px;
D
Dmitriy Zaporozhets 已提交
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 667 668 669
    @include border-radius(4px);
    &.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;
R
randx 已提交
670
    margin-top: 14px;
D
Dmitriy Zaporozhets 已提交
671
    .icon {
R
randx 已提交
672 673
      width:8px;
      height:8px;
D
Dmitriy Zaporozhets 已提交
674 675 676 677 678 679 680 681
      float:left;
      margin-right:5px;
      @include border-radius(4px);
      border:1px solid #ddd;
    }
  }

  &.today{ 
R
randx 已提交
682 683
    background: #EFE;
    border-color:#CEC;
D
Dmitriy Zaporozhets 已提交
684 685 686 687 688 689
    .icon { 
      background: #ADA;
      border:1px solid #8B8;
    }
  }
  &.closed { 
R
randx 已提交
690 691
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
692 693 694 695 696 697 698 699 700 701 702 703
    .icon { 
      background: #DDD;
      border:1px solid  #BBB;
    }
  }
  &.yours { 
    .icon { 
      background: #AAD;
      border:1px solid #88B;
    }
  }
  &.merged { 
704 705
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
706 707 708 709 710
    .icon { 
      background: #DAD;
      border:1px solid #B8B;
    }
  }
R
randx 已提交
711
}