common.scss 9.3 KB
Newer Older
1
/** LAYOUT **/
D
Dmitriy Zaporozhets 已提交
2

3 4 5 6
body {
  margin-bottom:20px;
}

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

12
.container .content {
R
randx 已提交
13
  margin:0 0;
14 15
}

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

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

D
Dmitriy Zaporozhets 已提交
35

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

41
.help li { color:#111 }
42

43
.back_link {
44 45 46 47 48 49
  text-decoration:underline;
  font-size:14px;
  font-weight:bold;
  padding:10px 0;
  padding-bottom:0;
}
D
Dmitriy Zaporozhets 已提交
50

51
.info_link {
D
Dmitriy Zaporozhets 已提交
52 53 54
  margin-right:5px;
  float:left;

55
  img {
D
Dmitriy Zaporozhets 已提交
56 57 58
    width:20px;
  }
}
59

60
.download_repo_link {
61 62 63 64
  background: url("images.png") no-repeat 0 -48px;
  padding-left:20px;
}

65
table a code {
66 67 68 69
  position: relative;
  top: -2px;
  margin-right: 3px;
}
70 71 72 73

.span12 hr{
 margin-top: 5px;
}
D
Dmitriy Zaporozhets 已提交
74

75
.loading {
76
  margin:20px auto;
77
  background: url(ajax_loader.gif) no-repeat center center;
78 79 80
  width:40px;
  height:40px;
}
D
Dmitriy Zaporozhets 已提交
81 82 83

/** FLASH message **/
#flash_container {
84
  height:50px;
D
Dmitriy Zaporozhets 已提交
85 86 87 88 89 90 91 92
  position:fixed;
  z-index:10001;
  top:0px;
  width:100%;
  margin-bottom:15px;
  overflow:hidden;
  background:white;
  cursor:pointer;
93
  border-bottom:1px solid #ccc;
D
Dmitriy Zaporozhets 已提交
94 95

  h4 {
R
randx 已提交
96 97 98
    color:#666;
    font-size:18px;
    line-height:38px;
D
Dmitriy Zaporozhets 已提交
99 100
    padding-top:5px;
    margin:2px;
R
randx 已提交
101
    font-weight:normal;
D
Dmitriy Zaporozhets 已提交
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
  }
}

.git_url_wrapper {
  margin-right:50px
}

.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 **/
.dashboard-loader {
  float:left;
  margin:10px;
  display:none;
}
.user-mention {
  color:#2FA0BB;
  font-weight:bold;
}

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
.neib {
  margin-right:10px;
}

.label {
  background-color: #474D57;

  &.label-issue {
    background-color: #eee;
    border: 1px solid #ccc;
    padding:4px 6px;
    color:#444;
    text-shadow:0 0 1px #fff;

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

.event_label {
  @extend .label;
  background-color: #999;

  &.pushed {
168
    background-color: #4A97BD;
169 170 171
  }

  &.opened {
172
    background-color: #469847;
173 174 175 176 177 178 179 180 181
  }

  &.closed {
    background-color: #B94A48;
  }

  &.merged {
    background-color: #2A2;
  }
A
Alex Denisov 已提交
182 183

  &.joined {
D
Dmitriy Zaporozhets 已提交
184
    background-color: #1ca9dd;
A
Alex Denisov 已提交
185 186 187
  }

  &.left {
D
Dmitriy Zaporozhets 已提交
188 189
    background-color: #888;
    float:none;
A
Alex Denisov 已提交
190
  }
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 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 251 252 253 254 255 256
}

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


.field_with_errors {
  display:inline;
}

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

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

257
input.git_clone_url {
R
randx 已提交
258
  width:325px;
D
Dmitriy Zaporozhets 已提交
259 260 261
}

.merge-request-form-holder {
262
  select {
D
Dmitriy Zaporozhets 已提交
263 264 265 266 267 268 269 270 271 272 273 274 275
    width:300px;
  }
}

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

#new_issue_dialog textarea{
    height: 100px;
}

276
.project_list_url {
277
  width:250px;
D
Dmitriy Zaporozhets 已提交
278 279 280 281 282
  background:#fff !important;
}


/** bordered list **/
283
ul.bordered-list {
D
Dmitriy Zaporozhets 已提交
284 285
  margin:5px 0px;
  padding:0px;
286
  li {
D
Dmitriy Zaporozhets 已提交
287 288 289 290 291 292 293 294
    padding: 5px 0;
    border-bottom: 1px solid #EEE;
    overflow: hidden;
    display: block;
    margin:0px;
  }
}

295
ul.bordered-list li:last-child { border:none }
D
Dmitriy Zaporozhets 已提交
296

297 298 299
.line_holder {
  &:hover {
    td {
D
Dmitriy Zaporozhets 已提交
300 301 302 303 304
      background: #FFFFCF !important;
    }
  }
}

305 306
li.commit {
  .avatar {
D
Dmitriy Zaporozhets 已提交
307
    width:24px;
308
    top:-5px;
D
Dmitriy Zaporozhets 已提交
309 310 311 312
    margin-right:10px;
    margin-left:10px;
  }

313
  code {
314 315 316 317 318 319
    padding: 2px 2px 0;
    margin-top: -2px;
    &:hover {
      color: black;
      border: 1px solid #ccc;
    }
D
Dmitriy Zaporozhets 已提交
320 321 322 323 324 325 326
  }
}
p.time {
  color: #999;
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}
327 328


329
.styled_image {
330
  border:2px solid #ddd;
331
}
332

333
.event_feed {
334
  min-height:40px;
D
Dmitriy Zaporozhets 已提交
335
  border-bottom:1px solid #ddd;
336
  .avatar {
337 338
    width:32px;
  }
339
  .event_icon {
340 341
    float:right;
    margin-right:2px;
342
    img {
343 344 345
      width:20px;
    }
  }
346
  ul {
347 348
    margin-left:50px;
    margin-bottom:5px;
349
    .avatar {
350 351 352 353
      width:24px;
    }
  }

354
  padding: 15px 5px;
355 356
  &:last-child { border:none }
  .wll:hover { background:none }
357

358
  .event_commits {
359 360
    margin-top: 5px;

361 362
    li.commit {
      background: transparent;
363 364 365 366
      padding:5px;
      border:none;
    }
  }
367 368
}

369
.ico {
D
Dmitriy Zaporozhets 已提交
370 371 372 373 374 375 376 377
  background: url("images.png") no-repeat -85px -77px;
  width: 19px;
  height: 16px;
  float: left;
  position: relative;
  margin-right: 10px;
  top: 8px;

378
  &.project {
D
Dmitriy Zaporozhets 已提交
379 380 381
    background-position:  -37px -77px;
  }

382
  &.activities {
D
Dmitriy Zaporozhets 已提交
383 384
    background-position:-162px -22px;
  }
385
  &.projects {
D
Dmitriy Zaporozhets 已提交
386 387 388
    background-position:-209px -21px;
  }
}
D
Dmitriy Zaporozhets 已提交
389

390 391
.leftbar {
  h5, .title {
D
Dmitriy Zaporozhets 已提交
392 393 394
    padding:5px 10px;
  }

395
  h4 {
D
Dmitriy Zaporozhets 已提交
396 397
    font-size:14px;
    padding:2px 10px;
R
randx 已提交
398 399
    color:#666;
    border-bottom:1px solid #f1f1f1;
D
Dmitriy Zaporozhets 已提交
400
  }
D
Dmitriy Zaporozhets 已提交
401
  a:last-child h4 { border:none; }
D
Dmitriy Zaporozhets 已提交
402

403
  a:hover {
D
Dmitriy Zaporozhets 已提交
404 405
    h4 {
      color:#111;
406
      background:$hover;
R
randx 已提交
407
      border-color:#CCC;
408
      .ico.project {
D
Dmitriy Zaporozhets 已提交
409 410 411 412
        background-position:-209px -21px;
      }
    }
  }
413
  .bottom {
414 415
    padding:10px;
  }
D
Dmitriy Zaporozhets 已提交
416 417
}

418
.votes {
R
Riyad Preukschas 已提交
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436
  font-size: 13px;
  line-height: 15px;
  .progress {
    height: 4px;
    margin: 0;
    .bar {
      float: left;
      height: 100%;
    }
    .bar-success {
      background-color: #468847;
      @include bg-gradient(#62C462, #51A351);
    }
    .bar-danger {
      background-color: #B94A48;
      @include bg-gradient(#EE5F5B, #BD362F);
    }
  }
437 438 439 440 441 442 443
  .upvotes {
    display: inline-block;
    color: #468847;
  }
  .downvotes {
    display: inline-block;
    color: #B94A48;
R
Riyad Preukschas 已提交
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
  }
}
.votes-block {
  margin: 14px 6px 6px 0;
  .downvotes {
    float: right;
  }
}
.votes-inline {
  display: inline-block;
  margin: 0 8px;
  .progress {
    display: inline-block;
    padding: 0 0 2px;
    width: 45px;
459
  }
460
}
S
Steven Verbeek 已提交
461

462 463
/* Fix for readme code (stopped it from being yellow) */
.readme {
464 465
  pre {
    background: white !important;
466

467 468
    code {
      background: none !important;
S
Steven Verbeek 已提交
469 470 471
    }
  }
}
472

D
Dmitriy Zaporozhets 已提交
473

474
.highlight_word {
475 476
  background:#EEDC94;
}
477

478
.status_info {
479 480 481 482 483 484 485
  font-size:14px;
  padding:5px 15px;
  line-height:24px;
  width:60px;
  text-align:center;
  float:left;
  margin-right:20px;
486

487
  &.success {
488 489 490 491 492
    background: #5BB75B;
    color: white;
    text-shadow: 0 1px #111;
    border-color: #9A9;
  }
493
  &.error {
494 495 496 497 498
    background: #DA4E49;
    border-color: #BD362F;
    color: white;
    text-shadow: 0 1px #111;
  }
499 500
}

501
.arrow{
502
  background: #E3E5EA;
503 504
  padding: 5px;
  margin-top:5px;
505 506 507 508 509
  border-radius: 5px;
  text-shadow: none;
  color: #999;
  line-height: 16px;
  font-weight:bold;
V
Valery Sizov 已提交
510 511 512 513 514
}

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

516
.gitlab_pagination {
517
  span a { color:$link_color; }
518
  .prev, .next, .current, .page a {
519 520
    padding:10px;
  }
521
  .current {
522
    border-bottom:2px solid $style_color;
R
randx 已提交
523 524
  }
}
525 526 527 528 529 530 531 532

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

533 534
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
R
randx 已提交
535
  img { max-width:100% }
536 537 538 539 540 541 542 543 544
  .note-title {
    li {
      border-bottom:none !important;
    }
    .file {
      padding-left:20px;
      background:url("icon-attachment.png") no-repeat left center;
    }
  }
545
}
R
randx 已提交
546

547 548
.markdown {
  img {
R
randx 已提交
549 550 551
    max-width:100%;
  }
}
552 553 554 555

.wiki_content code, .readme code{
  background-color: inherit;
}
D
Dmitriy Zaporozhets 已提交
556

557 558
.team_member_show {
  td:first-child {
D
Dmitriy Zaporozhets 已提交
559 560 561
    color:#aaa;
  }
}
D
Dmitriy Zaporozhets 已提交
562

563
.remember_me {
D
Dmitriy Zaporozhets 已提交
564
  text-align:left;
D
Dmitriy Zaporozhets 已提交
565

566
  input {
D
Dmitriy Zaporozhets 已提交
567 568 569
    margin:0;
  }

570
  span {
D
Dmitriy Zaporozhets 已提交
571 572
    padding-left:5px;
  }
D
Dmitriy Zaporozhets 已提交
573 574 575
}


R
randx 已提交
576 577 578 579 580

/**
 * Admin area
 *
 */
581 582 583 584
.admin_dash {
  .data {
    a {
      h1 {
R
randx 已提交
585 586 587 588 589 590 591 592
        line-height:48px;
        font-size:48px;
        padding:20px;
        text-align:center;
      }
    }
  }
}
593 594 595 596 597 598

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

600
  strong {
R
randx 已提交
601 602
    line-height:24px;
  }
603
}
604

R
randx 已提交
605

606 607

/* CHZN reset few styles */
608
.chzn-container-single .chzn-single {
R
randx 已提交
609
  background:#FFF;
R
randx 已提交
610 611
  border: 1px solid #bbb;
  box-shadow:none;
612
}
613
.chzn-container-active .chzn-single {
614 615
  background:#fff;
}
D
Dmitriy Zaporozhets 已提交
616 617 618

/**
 * Push event widget
619
 *
D
Dmitriy Zaporozhets 已提交
620
 */
621
.event_lp {
622 623
  @extend .ui-box;
  color:#777;
R
randx 已提交
624
  margin-bottom:20px;
D
Dmitriy Zaporozhets 已提交
625 626
  padding:8px;
  @include border-radius(4px);
R
randx 已提交
627 628
  min-height:22px;

629
  .avatar {
R
randx 已提交
630 631
    width:24px;
  }
D
Dmitriy Zaporozhets 已提交
632
}
R
randx 已提交
633

R
randx 已提交
634
.supp_diff_link,
635
.mr_show_all_commits {
R
randx 已提交
636 637
  cursor:pointer;
}
D
Dmitriy Zaporozhets 已提交
638 639

.merge_request,
640 641
.issue {
  &.today{
R
randx 已提交
642 643
    background: #EFE;
    border-color:#CEC;
D
Dmitriy Zaporozhets 已提交
644
  }
645
  &.closed {
R
randx 已提交
646 647
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
648
  }
649
  &.merged {
650 651
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
652
  }
R
randx 已提交
653
}
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672

.themes_opts {
  padding-left:20px;

  label {
    width:175px;
    margin-right:40px;

    .prev {
      @extend .borders;
      height:120px;
      width:175px;
      margin-bottom:10px;
      img {
        width:180px;
      }
    }
  }
}
673 674 675 676 677 678 679 680 681 682 683

.git_error_tips {
  @extend .span6;
  text-align:left;
  margin-top:40px;
  pre {
    background:white;
    border:none;
    font-size: 12px;
  }
}
684 685 686 687 688 689 690 691

.error_message {
  @extend .cred;
  border-bottom: 1px solid #D21;
  padding-bottom:20px;
  text-align:center;
  margin-bottom:10px;
}
692 693 694 695 696 697 698 699 700 701 702 703 704 705

.oauth_select_holder {
  padding:20px;
  img {
    padding:5px;
    margin-right:10px;
  }
  .active {
    img {
      border:1px solid #ccc;
      @include border-radius(5px);
    }
  }
}