common.scss 8.5 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 184 185 186 187 188 189

  &.joined {
    background-color: #1cb9ff;
  }

  &.left {
    background-color: #ff5057;
  }
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
}

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

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

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

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

#new_issue_dialog textarea{
    height: 100px;
}

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


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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

417 418 419 420 421 422 423 424
.upvotes {
  font-size: 14px;
  font-weight: bold;
  color: #468847;
  text-align: right;
  padding: 4px;
  margin: 2px;
}
S
Steven Verbeek 已提交
425

426 427
/* Fix for readme code (stopped it from being yellow) */
.readme {
428 429
  pre {
    background: white !important;
430

431 432
    code {
      background: none !important;
S
Steven Verbeek 已提交
433 434 435
    }
  }
}
436

D
Dmitriy Zaporozhets 已提交
437

438
.highlight_word {
439 440
  background:#EEDC94;
}
441

442
.status_info {
443 444 445 446 447 448 449
  font-size:14px;
  padding:5px 15px;
  line-height:24px;
  width:60px;
  text-align:center;
  float:left;
  margin-right:20px;
450

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

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

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

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

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

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

511 512
.markdown {
  img {
R
randx 已提交
513 514 515
    max-width:100%;
  }
}
516 517 518 519

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

521 522
.team_member_show {
  td:first-child {
D
Dmitriy Zaporozhets 已提交
523 524 525
    color:#aaa;
  }
}
D
Dmitriy Zaporozhets 已提交
526

527
.remember_me {
D
Dmitriy Zaporozhets 已提交
528
  text-align:left;
D
Dmitriy Zaporozhets 已提交
529

530
  input {
D
Dmitriy Zaporozhets 已提交
531 532 533
    margin:0;
  }

534
  span {
D
Dmitriy Zaporozhets 已提交
535 536
    padding-left:5px;
  }
D
Dmitriy Zaporozhets 已提交
537 538 539
}


R
randx 已提交
540 541 542 543 544

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

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

564
  strong {
R
randx 已提交
565 566
    line-height:24px;
  }
567
}
568

R
randx 已提交
569

570 571

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

/**
 * Push event widget
583
 *
D
Dmitriy Zaporozhets 已提交
584
 */
585
.event_lp {
586 587
  @extend .ui-box;
  color:#777;
R
randx 已提交
588
  margin-bottom:20px;
D
Dmitriy Zaporozhets 已提交
589 590
  padding:8px;
  @include border-radius(4px);
R
randx 已提交
591 592
  min-height:22px;

593
  .avatar {
R
randx 已提交
594 595
    width:24px;
  }
D
Dmitriy Zaporozhets 已提交
596
}
R
randx 已提交
597

R
randx 已提交
598
.supp_diff_link,
599
.mr_show_all_commits {
R
randx 已提交
600 601
  cursor:pointer;
}
D
Dmitriy Zaporozhets 已提交
602 603

.merge_request,
604 605
.issue {
  &.today{
R
randx 已提交
606 607
    background: #EFE;
    border-color:#CEC;
D
Dmitriy Zaporozhets 已提交
608
  }
609
  &.closed {
R
randx 已提交
610 611
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
612
  }
613
  &.merged {
614 615
    background: #F5f5f5;
    border-color:#E5E5E5;
D
Dmitriy Zaporozhets 已提交
616
  }
R
randx 已提交
617
}
618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636

.themes_opts {
  padding-left:20px;

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

    .prev {
      @extend .borders;
      height:120px;
      width:175px;
      margin-bottom:10px;
      img {
        width:180px;
      }
    }
  }
}
637 638 639 640 641 642 643 644 645 646 647

.git_error_tips {
  @extend .span6;
  text-align:left;
  margin-top:40px;
  pre {
    background:white;
    border:none;
    font-size: 12px;
  }
}
648 649 650 651 652 653 654 655

.error_message {
  @extend .cred;
  border-bottom: 1px solid #D21;
  padding-bottom:20px;
  text-align:center;
  margin-bottom:10px;
}