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

.label {
  background-color: #474D57;

148 149 150 151 152 153 154 155 156 157 158 159 160
  &.label-tag {
    background: none;
    border: none;
    padding:4px 6px;
    color:#444;
    text-shadow:0 0 1px #fff;

    &.grouped {
      float: left;
      margin-right: 6px;
      padding: 6px;
    }
  }
161 162 163 164 165 166 167 168 169 170 171 172 173
  &.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;
    }
  }
174 175 176 177 178 179 180 181 182 183 184 185

  &.label-success {
    background-color: #8D8;
    color: #333;
    text-shadow: 0 1px 1px white;
  }

  &.label-error {
    background-color: #D88;
    color: #333;
    text-shadow: 0 1px 1px white;
  }
186 187 188 189 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
}

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

252
input.git_clone_url {
R
randx 已提交
253
  width:325px;
D
Dmitriy Zaporozhets 已提交
254 255 256
}

.merge-request-form-holder {
257
  select {
D
Dmitriy Zaporozhets 已提交
258 259 260 261 262 263 264 265 266 267 268 269 270
    width:300px;
  }
}

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

#new_issue_dialog textarea{
    height: 100px;
}

271
.project_list_url {
272
  width:250px;
D
Dmitriy Zaporozhets 已提交
273 274 275 276 277
  background:#fff !important;
}


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

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

292 293 294
.line_holder {
  &:hover {
    td {
D
Dmitriy Zaporozhets 已提交
295 296 297 298 299
      background: #FFFFCF !important;
    }
  }
}

300 301
li.commit {
  .avatar {
D
Dmitriy Zaporozhets 已提交
302
    width:24px;
303
    top:-5px;
D
Dmitriy Zaporozhets 已提交
304 305 306 307
    margin-right:10px;
    margin-left:10px;
  }

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


324
.styled_image {
325
  border:2px solid #ddd;
326
}
327 328


329
.ico {
D
Dmitriy Zaporozhets 已提交
330 331 332 333 334 335 336 337
  background: url("images.png") no-repeat -85px -77px;
  width: 19px;
  height: 16px;
  float: left;
  position: relative;
  margin-right: 10px;
  top: 8px;

338
  &.project {
D
Dmitriy Zaporozhets 已提交
339 340 341
    background-position:  -37px -77px;
  }

342
  &.activities {
D
Dmitriy Zaporozhets 已提交
343 344
    background-position:-162px -22px;
  }
345
  &.projects {
D
Dmitriy Zaporozhets 已提交
346 347 348
    background-position:-209px -21px;
  }
}
D
Dmitriy Zaporozhets 已提交
349

350 351
.leftbar {
  h5, .title {
D
Dmitriy Zaporozhets 已提交
352 353 354
    padding:5px 10px;
  }

355
  h4 {
D
Dmitriy Zaporozhets 已提交
356 357
    font-size:14px;
    padding:2px 10px;
R
randx 已提交
358 359
    color:#666;
    border-bottom:1px solid #f1f1f1;
D
Dmitriy Zaporozhets 已提交
360
  }
D
Dmitriy Zaporozhets 已提交
361
  a:last-child h4 { border:none; }
D
Dmitriy Zaporozhets 已提交
362

363
  a:hover {
D
Dmitriy Zaporozhets 已提交
364 365
    h4 {
      color:#111;
366
      background:$hover;
R
randx 已提交
367
      border-color:#CCC;
368
      .ico.project {
D
Dmitriy Zaporozhets 已提交
369 370 371 372
        background-position:-209px -21px;
      }
    }
  }
373
  .bottom {
374 375
    padding:10px;
  }
D
Dmitriy Zaporozhets 已提交
376 377
}

378
.votes {
R
Riyad Preukschas 已提交
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
  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);
    }
  }
397 398 399 400 401 402 403
  .upvotes {
    display: inline-block;
    color: #468847;
  }
  .downvotes {
    display: inline-block;
    color: #B94A48;
R
Riyad Preukschas 已提交
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
  }
}
.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;
419
  }
420
}
S
Steven Verbeek 已提交
421

422 423
/* Fix for readme code (stopped it from being yellow) */
.readme {
424 425
  pre {
    background: white !important;
426

427 428
    code {
      background: none !important;
S
Steven Verbeek 已提交
429 430 431
    }
  }
}
432

D
Dmitriy Zaporozhets 已提交
433

434
.highlight_word {
435 436
  background:#EEDC94;
}
437

438
.status_info {
439 440 441 442 443 444 445
  font-size:14px;
  padding:5px 15px;
  line-height:24px;
  width:60px;
  text-align:center;
  float:left;
  margin-right:20px;
446

447
  &.success {
448 449 450 451 452
    background: #5BB75B;
    color: white;
    text-shadow: 0 1px #111;
    border-color: #9A9;
  }
453
  &.error {
454 455 456 457 458
    background: #DA4E49;
    border-color: #BD362F;
    color: white;
    text-shadow: 0 1px #111;
  }
459 460
}

461
.arrow{
462
  background: #E3E5EA;
463 464
  padding: 5px;
  margin-top:5px;
465 466 467 468 469
  border-radius: 5px;
  text-shadow: none;
  color: #999;
  line-height: 16px;
  font-weight:bold;
V
Valery Sizov 已提交
470 471 472 473 474
}

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

476
.gitlab_pagination {
477
  span a { color:$link_color; }
478
  .prev, .next, .current, .page a {
479 480
    padding:10px;
  }
481
  .current {
482
    border-bottom:2px solid $style_color;
R
randx 已提交
483 484
  }
}
485 486 487 488 489 490 491 492

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

493 494
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
R
randx 已提交
495
  img { max-width:100% }
496 497 498 499 500 501 502 503 504
  .note-title {
    li {
      border-bottom:none !important;
    }
    .file {
      padding-left:20px;
      background:url("icon-attachment.png") no-repeat left center;
    }
  }
505
}
R
randx 已提交
506

507 508
.markdown {
  img {
R
randx 已提交
509 510 511
    max-width:100%;
  }
}
512 513 514 515

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

517 518
.team_member_show {
  td:first-child {
D
Dmitriy Zaporozhets 已提交
519 520 521
    color:#aaa;
  }
}
D
Dmitriy Zaporozhets 已提交
522

523
.remember_me {
D
Dmitriy Zaporozhets 已提交
524
  text-align:left;
D
Dmitriy Zaporozhets 已提交
525

526
  input {
D
Dmitriy Zaporozhets 已提交
527 528 529
    margin:0;
  }

530
  span {
D
Dmitriy Zaporozhets 已提交
531 532
    padding-left:5px;
  }
D
Dmitriy Zaporozhets 已提交
533 534 535
}


R
randx 已提交
536 537 538 539 540

/**
 * Admin area
 *
 */
541 542 543 544
.admin_dash {
  .data {
    a {
      h1 {
R
randx 已提交
545 546 547 548 549 550 551 552
        line-height:48px;
        font-size:48px;
        padding:20px;
        text-align:center;
      }
    }
  }
}
553 554 555 556 557 558

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

560
  strong {
R
randx 已提交
561 562
    line-height:24px;
  }
563
}
564

R
randx 已提交
565

566 567

/* CHZN reset few styles */
568
.chzn-container-single .chzn-single {
R
randx 已提交
569
  background:#FFF;
R
randx 已提交
570 571
  border: 1px solid #bbb;
  box-shadow:none;
572
}
573
.chzn-container-active .chzn-single {
574 575
  background:#fff;
}
D
Dmitriy Zaporozhets 已提交
576

R
randx 已提交
577

R
randx 已提交
578
.supp_diff_link,
579
.mr_show_all_commits {
R
randx 已提交
580 581
  cursor:pointer;
}
D
Dmitriy Zaporozhets 已提交
582 583

.merge_request,
584 585
.issue {
  &.today{
R
randx 已提交
586 587
    background: #EFE;
    border-color:#CEC;
D
Dmitriy Zaporozhets 已提交
588
  }
589
  &.closed {
R
randx 已提交
590 591
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
592
  }
593
  &.merged {
594 595
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
596
  }
R
randx 已提交
597
}
598 599 600 601 602 603 604 605 606

.themes_opts {
  padding-left:20px;

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

    .prev {
R
randx 已提交
607
      @extend .thumbnail;
608 609 610 611 612 613 614 615 616
      height:120px;
      width:175px;
      margin-bottom:10px;
      img {
        width:180px;
      }
    }
  }
}
617 618 619 620 621 622 623 624 625 626 627

.git_error_tips {
  @extend .span6;
  text-align:left;
  margin-top:40px;
  pre {
    background:white;
    border:none;
    font-size: 12px;
  }
}
628 629 630 631 632 633 634 635

.error_message {
  @extend .cred;
  border-bottom: 1px solid #D21;
  padding-bottom:20px;
  text-align:center;
  margin-bottom:10px;
}
636 637 638 639 640 641 642 643 644 645

.oauth_select_holder {
  padding:20px;
  img {
    padding:5px;
    margin-right:10px;
  }
  .active {
    img {
      border:1px solid #ccc;
D
Dmitriy Zaporozhets 已提交
646
      background:$hover;
647 648 649 650
      @include border-radius(5px);
    }
  }
}
D
Dmitriy Zaporozhets 已提交
651 652 653 654 655 656

.btn-build-token {
  float: left;
  padding: 6px 20px;
  margin-right: 12px;
}
657 658 659 660 661 662 663

.gitlab-promo {
  a {
    color:#aaa;
    margin-right: 30px;
  }
}
664

R
randx 已提交
665 666 667 668 669 670 671 672
pre {
  &.clean {
    background:none;
    border:none;
    margin:0;
    padding:0;
  }
}
673 674 675 676 677

.milestone .progress {
  margin-bottom: 0;
  margin-top:4px;
}
R
randx 已提交
678 679 680 681 682 683 684 685

.float-link {
  float:left;
  margin-right:15px;
  .s16 {
    margin-right:5px;
  }
}