projects.css.scss 10.9 KB
Newer Older
G
gitlabhq 已提交
1 2 3 4
// Place all the styles related to the Projects controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

N
Nihad Abbasov 已提交
5
@mixin round-borders-bottom($radius) {
G
gitlabhq 已提交
6 7 8 9 10 11 12 13 14 15 16 17
  border-top: 1px solid #eaeaea;

  -moz-border-radius-bottomright: $radius;
  -moz-border-radius-bottomleft: $radius;

  border-bottom-right-radius: $radius;
  border-bottom-left-radius: $radius;

  -webkit-border-bottom-left-radius: $radius;
  -webkit-border-bottom-right-radius: $radius;
}

N
Nihad Abbasov 已提交
18
@mixin round-borders-top($radius) {
G
gitlabhq 已提交
19 20 21 22 23 24 25 26 27 28 29 30
  border-top: 1px solid #eaeaea;

  -moz-border-radius-topright: $radius;
  -moz-border-radius-topleft: $radius;

  border-top-right-radius: $radius;
  border-top-left-radius: $radius;

  -webkit-border-top-left-radius: $radius;
  -webkit-border-top-right-radius: $radius;
}

N
Nihad Abbasov 已提交
31
@mixin round-borders-all($radius) {
G
gitlabhq 已提交
32 33 34 35 36 37
  border: 1px solid #eaeaea;
  -moz-border-radius: $radius;
  -webkit-border-radius: $radius;
  border-radius: $radius;
}

N
Nihad Abbasov 已提交
38
@mixin hover-color {
G
gitlabhq 已提交
39 40 41 42 43 44 45 46 47 48
  background: #fff !important;
  background: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#FFF6BF)) !important;
  background: -moz-linear-gradient(top,#fff,#FFF6BF) !important;
  background: transparent 9 !important;
}

.diff_file {
  border:1px solid #CCC;
  margin-bottom:1em;

N
Nihad Abbasov 已提交
49
  .diff_file_header {
G
gitlabhq 已提交
50 51 52 53
    padding:5px 5px;
    border-bottom:1px solid #CCC;
    background: #eee;
  }
N
Nihad Abbasov 已提交
54
  .diff_file_content {
G
gitlabhq 已提交
55 56 57 58 59 60
    overflow-x: scroll;
    background:#fff;
    color:#333;
    font-size: 12px;
    font-family: 'Courier New', 'andale mono','lucida console',monospace;
  }
N
Nihad Abbasov 已提交
61
  .diff_file_content_image {
G
gitlabhq 已提交
62 63
    background:#eee;
    text-align:center;
N
Nihad Abbasov 已提交
64
    img {
G
gitlabhq 已提交
65 66 67 68 69 70
      padding:100px;
      max-width:300px;
    }
  }
}

N
Nihad Abbasov 已提交
71 72
#logo {
 &:hover {
G
gitlabhq 已提交
73 74 75 76
   background:none;
 }
}

N
Nihad Abbasov 已提交
77
.file_stats {
G
gitlabhq 已提交
78 79 80
  margin-bottom:10px;
  @include round-borders-all(4px);

N
Nihad Abbasov 已提交
81
  span {
G
gitlabhq 已提交
82 83 84
    border-top: 1px solid #eaeaea;
    padding:5px 5px;
    display:block;
N
Nihad Abbasov 已提交
85
    &:first-child {
G
gitlabhq 已提交
86 87 88
      border-top:none;
    }

N
Nihad Abbasov 已提交
89
    img {
G
gitlabhq 已提交
90 91 92 93 94 95 96
      width:18px;
      float:left;
      margin-right: 6px;
    }
  }
}

N
Nihad Abbasov 已提交
97
.round-borders {
G
gitlabhq 已提交
98 99 100
  @include round-borders-all(4px);
  padding: 4px 0px;
}
N
Nihad Abbasov 已提交
101
table.round-borders {
G
gitlabhq 已提交
102 103 104
  float:left;
}

N
Nihad Abbasov 已提交
105
.day-commits-table {
G
gitlabhq 已提交
106 107 108 109 110 111 112
  @include round-borders-all(4px);
  padding: 4px 0px;
  margin-bottom:10px;
  display:block;
  width:100%;
  background: #E6F1F6;

N
Nihad Abbasov 已提交
113
  .day-header {
G
gitlabhq 已提交
114 115 116 117 118 119
    padding:10px;
    h3 {
      margin:0px;
    }
  }

N
Nihad Abbasov 已提交
120
  ul {
G
gitlabhq 已提交
121 122 123 124 125
    display:block;
    list-style:none;
    margin:0px;
    padding:0px;

N
Nihad Abbasov 已提交
126
    li.commit {
G
gitlabhq 已提交
127 128 129 130 131 132
      display:list-item;
      padding:8px;
      margin:0px;
      background: #F7FBFC;
      border-top: 1px solid #E2EAEE;

N
Nihad Abbasov 已提交
133
      &:first-child {
G
gitlabhq 已提交
134 135 136 137 138 139
        border-top: 1px solid #E2EAEE;
      }
      &:nth-child(2n+1) {
        background: white;
      }

N
Nihad Abbasov 已提交
140
      a.button {
G
gitlabhq 已提交
141 142 143 144 145
        width:85px;
        padding:10px;
        margin:0px;
        float:right;
      }
N
Nihad Abbasov 已提交
146
      p {
G
gitlabhq 已提交
147 148 149 150 151 152
        margin-bottom: 3px;
        font-size: 13px;
      }
    }
  }
}
N
Nihad Abbasov 已提交
153
@mixin panel-color {
G
gitlabhq 已提交
154 155 156 157 158 159
  background: #111 !important;
  background: -webkit-gradient(linear,left top,left bottom,from(#333),to(#111)) !important;
  background: -moz-linear-gradient(top,#333,#111) !important;
  background: transparent 9 !important;
}

N
Nihad Abbasov 已提交
160
#header-panel {
G
gitlabhq 已提交
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
  @include panel-color;
  height:40px;
  position:fixed;
  z-index:999;
  top:0px;
  width:100%;
  margin-bottom:10px;
  overflow:hidden;
  .button{
    color:#bbb;
    border:none;
    margin:0px;
    height:25px;
    background:transparent;
    padding:10px 20px 5px 20px;
    &:hover{
      color:white;
    }

N
Nihad Abbasov 已提交
180
    &.current {
G
gitlabhq 已提交
181 182 183 184 185
      border-bottom: 3px solid #EAEAEA !important;
      padding: 10px 20px 0;
      color: #eaeaea;
    }
  }
N
Nihad Abbasov 已提交
186
  .search-holder {
G
gitlabhq 已提交
187
    float:left;
N
Nihad Abbasov 已提交
188
    width:290px;
G
gitlabhq 已提交
189 190
    input {
      @include round-borders-all(4px);
N
Nihad Abbasov 已提交
191
      width:290px;
G
gitlabhq 已提交
192 193 194 195
      border-color:#888;
      padding:5px;
      background:#666;
      color:#222;
N
Nihad Abbasov 已提交
196
      &:focus {
G
gitlabhq 已提交
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
        background:#fff;
        color:#000;
      }
    }
  }
}

#content-container{
  min-height:250px;
  background: #fff;
  @include round-borders-bottom(8px);
  borders:2px solid #eaeaea;
  border-top: none;
  padding:20px;
}

213 214 215
//body {
  //background: #eaeaea;
//}
G
gitlabhq 已提交
216 217 218 219 220 221

a {
  color: #111;
}

.diff_file_content{
N
Nihad Abbasov 已提交
222
  .old_line, .new_line {
G
gitlabhq 已提交
223 224 225 226 227 228 229 230 231 232
    background:#ECECEC;
    color:#777;
    width:15px;
    float:left;
    padding: 0px 10px;
    border-right: 1px solid #ccc;
  }
}

.view_file_content{
N
Nihad Abbasov 已提交
233
  .old_line, .new_line {
G
gitlabhq 已提交
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
    background:#ECECEC;
    color:#777;
    width:15px;
    float:left;
    padding: 0px 10px;
    border-right: 1px solid #ccc;
  }
  .old_line{
    display:none;
  }
}

.view_file {
  border:1px solid #CCC;
  margin-bottom:1em;

N
Nihad Abbasov 已提交
250
  .view_file_header {
G
gitlabhq 已提交
251 252 253 254
    padding:5px 5px;
    border-bottom:1px solid #CCC;
    background: #eee;
  }
N
Nihad Abbasov 已提交
255
  .view_file_content {
G
gitlabhq 已提交
256 257 258 259
    background:#fff;
    color:#514721;
    font-size: 11px;
  }
N
Nihad Abbasov 已提交
260
  .view_file_content_image {
G
gitlabhq 已提交
261 262
    background:#eee;
    text-align:center;
N
Nihad Abbasov 已提交
263
    img {
G
gitlabhq 已提交
264 265 266 267 268 269 270 271 272 273
      padding:100px;
      max-width:300px;
    }
  }
}

.back_small.button{

}

N
Nihad Abbasov 已提交
274
input.ssh_project_url {
G
gitlabhq 已提交
275 276 277 278 279 280 281
  padding:5px;
  margin:0px;
  float:right;
  width:400px;
  text-align:center;
}

N
Nihad Abbasov 已提交
282
.day-commits-table li.commit {
G
gitlabhq 已提交
283 284
  cursor:pointer;

N
Nihad Abbasov 已提交
285
  &:hover {
G
gitlabhq 已提交
286 287 288 289 290 291 292 293
    @include hover-color;
  }
}

/*
#FFF6BF
#FFD324
*/
N
Nihad Abbasov 已提交
294
#tree-slider tr.tree-item {
G
gitlabhq 已提交
295 296
  cursor:pointer;

N
Nihad Abbasov 已提交
297
  &:hover {
G
gitlabhq 已提交
298
    @include hover-color;
N
Nihad Abbasov 已提交
299
    td {
G
gitlabhq 已提交
300 301 302 303
      @include hover-color;
    }
  }
}
N
Nihad Abbasov 已提交
304
#projects-list .project {
G
gitlabhq 已提交
305 306 307 308
  height:50px;
}

#projects-list .project,
G
gitlabhq 已提交
309
#snippets-table .snippet,
N
Nihad Abbasov 已提交
310
#issues-table .issue{
G
gitlabhq 已提交
311 312
  cursor:pointer;

N
Nihad Abbasov 已提交
313
  &:hover {
G
gitlabhq 已提交
314
      @include hover-color;
N
Nihad Abbasov 已提交
315
    td {
G
gitlabhq 已提交
316 317 318 319 320
      @include hover-color;
    }
  }
}

N
Nihad Abbasov 已提交
321
.clear {
G
gitlabhq 已提交
322 323 324
  clear: both;
}

N
Nihad Abbasov 已提交
325 326
.top_project_menu {
  a {
G
gitlabhq 已提交
327 328 329 330 331 332 333 334 335 336 337
    border-right: 1px solid #FFFFFF;
    box-shadow: -1px 0 #DDDDDD inset;
    color: #666;
    display: block;
    font-size: 16px;
    text-decoration: none;
    line-height: 20px;
    padding: 11px 26px 12px 24px;
    text-shadow: 0 1px 0 #FFFFFF;
    float:left;

N
Nihad Abbasov 已提交
338
    &.current {
G
gitlabhq 已提交
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359
      background-color: #FFFFFF;
      color: #222222;
    }
  }
}

.top_bar {
  margin-top:50px;
  background-color: #F4F4F4;
  @include round-borders-top(8px);
  box-shadow: 0 1px #FFFFFF inset, 0 -1px #DDDDDD inset;
  height: 43px;
  overflow: hidden;
  width:990px;
}

/** FORM INPUTS **/

.user_new,
.edit_user,
.new_project,
G
gitlabhq 已提交
360 361
.new_snippet,
.edit_snippet,
N
Nihad Abbasov 已提交
362
.edit_project {
G
gitlabhq 已提交
363 364 365
  input[type='text'],
  input[type='email'],
  input[type='password'],
N
Nihad Abbasov 已提交
366
  textarea {
G
gitlabhq 已提交
367 368 369 370 371 372 373
    width:400px;
    padding:8px;
    font-size:14px;
    @include round-borders-all(4px);
  }
}

N
Nihad Abbasov 已提交
374
.input_button {
G
gitlabhq 已提交
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
  //@include round-borders-all(4px);
  padding:8px;
  font-size:14px;
  cursor:pointer;
  background-color: #F5F5F5;
  border-color: #EEEEEE #DEDEDE #DEDEDE #EEEEEE;
  border-right: 1px solid #DEDEDE;
  border-style: solid;
  border-width: 1px;
}

tbody tr:nth-child(2n) td, tbody tr.even td {
  background: none repeat scroll 0 0 #F7FBFC;
  border-top: 1px solid #E2EAEE;
  border-bottom: 1px solid #E2EAEE;
}

N
Nihad Abbasov 已提交
392
.top_menu_count {
G
gitlabhq 已提交
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
  background: none repeat scroll 0 0 #FFF6BF;
  border-color: #FFD324;
  color: #514721;
  border: 1px solid #DDDDDD;
  padding: 2px;
  font-size:12px;
  position:relative;
  top:-14px;
  left:10px;
  border-top:none;
}

#logo {
  color: #EAEAEA;
  font-family: monospace;
  font-size: 26px;
  padding: 4px;
  text-decoration: none;
  text-shadow: #555 1px 1px;
}

/** FALSH **/

N
Nihad Abbasov 已提交
416
#flash_container {
G
gitlabhq 已提交
417 418 419 420 421 422 423 424 425 426 427
  height:40px;
  position:fixed;
  z-index:1009;
  top:0px;
  width:100%;
  margin-bottom:10px;
  overflow:hidden;
  background:white;
  cursor:pointer;
  border-bottom:1px solid #777;

N
Nihad Abbasov 已提交
428
  h4 {
G
gitlabhq 已提交
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
    color:#444;
    font-size:22px;
    padding-top:5px;
  }
}

/** Buttons **/

.lbutton,
.lite_button {
  display:block;
  float:left;
  margin: 0px 5px;
  padding:5px 10px;

  font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;
  border:1px solid #D3D3D3;
  background:white;
G
css fix  
gitlabhq 已提交
447
  font-size:12px !important;
G
gitlabhq 已提交
448 449 450 451 452 453 454 455 456 457 458
  line-height:130%;
  text-decoration:none;
  font-weight:bold;
  color:#565656;
  cursor:pointer;

  &:hover {
    border:1px solid #C2E1EF;
    color: #0099FF;
  }

N
Nihad Abbasov 已提交
459
  &.hm {
G
gitlabhq 已提交
460 461 462
    margin: 0px 0px;
  }

N
Nihad Abbasov 已提交
463
  &.vm {
G
gitlabhq 已提交
464 465 466 467 468 469
    margin: 5px 0px;
  }
}

/** Notes **/

N
Nihad Abbasov 已提交
470
#notes-list {
G
gitlabhq 已提交
471 472 473 474 475
  display:block;
  list-style:none;
  margin:0px;
  padding:0px;

N
Nihad Abbasov 已提交
476
  li {
G
gitlabhq 已提交
477 478 479 480 481 482
    display:list-item;
    padding:8px;
    margin:0px;
    background: #F7FBFC;
    border-top: 1px solid #E2EAEE;

N
Nihad Abbasov 已提交
483
    &:first-child {
G
gitlabhq 已提交
484 485 486 487 488
      border-top: none;
    }
    &:nth-child(2n+1) {
      background: white;
    }
N
Nihad Abbasov 已提交
489
    p {
G
gitlabhq 已提交
490 491 492 493 494
      margin-bottom: 4px;
      font-size: 13px;
      color:#111;
    }
  }
N
Nihad Abbasov 已提交
495 496
  cite {
    &.ago {
G
gitlabhq 已提交
497
      color:#666;
G
gitlabhq 已提交
498 499 500 501
    }
  }
}

N
Nihad Abbasov 已提交
502
.notes_count {
G
gitlabhq 已提交
503 504 505 506 507 508 509 510 511 512 513
  background: none repeat scroll 0 0 #FFF6BF;
  border-color: #FFD324;
  color: #514721;
  border: 2px solid #DDDDDD;
  margin-bottom: 1em;
  margin-top: 3px;
  padding: 2px 5px;
  position: relative;
  right: 6px;
  top: 6px;
}
N
Nihad Abbasov 已提交
514
.note_author {
G
gitlabhq 已提交
515 516 517
  float:left;
  width:60px;
}
N
Nihad Abbasov 已提交
518
.note_content {
G
gitlabhq 已提交
519
  float:left;
G
gitlabhq 已提交
520
  width:650px;
G
gitlabhq 已提交
521 522
}

N
Nihad Abbasov 已提交
523 524
.issue_notes {
  .note_content {
G
gitlabhq 已提交
525 526 527 528
    float:left;
    width:400px;
  }
}
V
Valera Sizov 已提交
529 530

#user_projects_limit{
N
Nihad Abbasov 已提交
531
  width: 60px;
V
Valera Sizov 已提交
532
}
G
gitlabhq 已提交
533

N
Nihad Abbasov 已提交
534
.project_thumb {
G
gitlabhq 已提交
535 536 537 538 539
  margin:20px 0;
  width: 250px;
  float:left;
  padding:20px;
  text-align:center;
N
Nihad Abbasov 已提交
540
  p, h4 {
G
gitlabhq 已提交
541 542
    text-align:left;
  }
N
Nihad Abbasov 已提交
543
  .lbutton {
G
gitlabhq 已提交
544 545 546
    float:left;
  }
}
V
VSizov 已提交
547 548 549 550

.handle:hover{
  cursor: move;
}
V
VSizov 已提交
551 552 553 554 555 556

.handle{
  width: 12px;
  height: 12px;
  padding: 10px;
}
G
gitlabhq 已提交
557

N
Nihad Abbasov 已提交
558 559
.recent_message_parent {
  img {
G
gitlabhq 已提交
560 561 562 563 564
    padding-right:10px;
  }

  float: left;
  margin: 0 20px 20px 0px;
G
gitlabhq 已提交
565
  padding: 5px 0px;;
G
gitlabhq 已提交
566 567
  width: 420px;

G
gitlabhq 已提交
568 569
  &.dash_wall{
    border-bottom: 2px solid orange;
N
Nihad Abbasov 已提交
570
    span {
G
gitlabhq 已提交
571 572 573 574 575 576 577
      background: orange;
      color:black;
    }
  }

  &.dash_issue{
    border-bottom: 2px solid #ffbbbb;
N
Nihad Abbasov 已提交
578
    span {
G
gitlabhq 已提交
579 580 581 582 583 584
      background: #ffbbbb;
    }
  }
  &.dash_commit{
    border-bottom: 2px solid #bbbbff;

N
Nihad Abbasov 已提交
585
    span{
G
gitlabhq 已提交
586 587 588 589
      background: #bbbbff;
    }
  }

590 591 592
  &.dash_snippet{
    border-bottom: 2px solid #bbffbb;

N
Nihad Abbasov 已提交
593
    span{
594 595 596 597
      background: #bbffbb;
    }
  }

N
Nihad Abbasov 已提交
598
  span{
599 600 601 602 603
    border: 1px solid #aaa;
    color:black;
    padding:1px 4px;
  }

N
Nihad Abbasov 已提交
604
  h4 {
G
gitlabhq 已提交
605 606 607
    margin-bottom:3px;
  }

608
}
G
gitlabhq 已提交
609
.commit,
N
Nihad Abbasov 已提交
610
.message,
G
gitlabhq 已提交
611
#notes-list{
N
Nihad Abbasov 已提交
612
  .author {
G
gitlabhq 已提交
613 614
    background: #eaeaea;
    color: #333;
615 616 617
    border: 1px solid #aaa;
    padding:1px 2px;
    margin-right:5px;
G
gitlabhq 已提交
618 619
  }
}
G
gitlabhq 已提交
620 621

/* Note textare */
N
Nihad Abbasov 已提交
622
#note_note {
G
gitlabhq 已提交
623 624 625 626 627
  height:100px;
  width:97%;
  font-size:14px;
}

N
Nihad Abbasov 已提交
628 629
.wall_page {
  #note_note {
G
gitlabhq 已提交
630 631
    height:25px;
  }
N
Nihad Abbasov 已提交
632
  .attach_holder {
G
gitlabhq 已提交
633 634 635
    display:none;
  }
}
G
gitlabhq 已提交
636 637 638 639 640 641 642 643 644

.field_with_errors {
  input[type="text"],
  input[type="password"],
  textarea
  {
    background: none repeat scroll 0 0 #FFBBBB
  }
}
G
gitlabhq 已提交
645 646 647 648 649 650

.tag {
  @include round-borders-all(4px);
  padding:2px 4px;
  border:none;

N
Nihad Abbasov 已提交
651
  &.high {
G
gitlabhq 已提交
652 653 654 655
    background: #D12F19;
    color:white;
  }

N
Nihad Abbasov 已提交
656
  &.today {
G
gitlabhq 已提交
657 658 659 660
    background: #44aa22;
    color:white;
  }

N
Nihad Abbasov 已提交
661
  &.yours {
G
gitlabhq 已提交
662 663 664
    background: #4466cc;
    color:white;
  }
G
gitlabhq 已提交
665 666 667 668
  &.normal {
    background: #2c5ca6;
    color:white;
  }
G
gitlabhq 已提交
669 670 671 672 673 674
  &.notes {
    background: #2c5c66;
    color:white;
  }
}

N
Nihad Abbasov 已提交
675 676
#issues-table .issue {
  &.critical {
G
gitlabhq 已提交
677 678 679 680 681 682
    td {
      //background: #D12F19;
      //color:#fff;
    }
  }
}
G
gitlabhq 已提交
683 684 685 686 687 688 689

.top_panel_issues{
  #issue_search_form { 
    margin:5px 0; 
    input { 
      border:1px solid #D3D3D3;
      padding: 3px;
G
gitlabhq 已提交
690
      height: 28px;
G
gitlabhq 已提交
691
      width: 300px;
G
gitlabhq 已提交
692 693 694
      -webkit-appearance:none;
      box-sizing: border-box;
      -moz-box-sizing: border-box;
G
gitlabhq 已提交
695 696 697 698 699 700 701 702

      &:focus { 
        border-color:#c2e1ef;
      }
    }
  }
}