projects.css.scss 10.4 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
@mixin panel-color {
G
gitlabhq 已提交
106 107 108 109 110 111
  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 已提交
112
#header-panel {
G
gitlabhq 已提交
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
  @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 已提交
132
    &.current {
G
gitlabhq 已提交
133 134 135 136 137
      border-bottom: 3px solid #EAEAEA !important;
      padding: 10px 20px 0;
      color: #eaeaea;
    }
  }
N
Nihad Abbasov 已提交
138
  .search-holder {
G
gitlabhq 已提交
139
    float:left;
N
Nihad Abbasov 已提交
140
    width:290px;
G
gitlabhq 已提交
141 142
    input {
      @include round-borders-all(4px);
N
Nihad Abbasov 已提交
143
      width:290px;
G
gitlabhq 已提交
144 145 146 147
      border-color:#888;
      padding:5px;
      background:#666;
      color:#222;
N
Nihad Abbasov 已提交
148
      &:focus {
G
gitlabhq 已提交
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
        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;
}

165 166 167
//body {
  //background: #eaeaea;
//}
G
gitlabhq 已提交
168 169 170 171 172 173

a {
  color: #111;
}

.diff_file_content{
N
Nihad Abbasov 已提交
174
  .old_line, .new_line {
G
gitlabhq 已提交
175 176 177 178 179 180 181 182 183 184
    background:#ECECEC;
    color:#777;
    width:15px;
    float:left;
    padding: 0px 10px;
    border-right: 1px solid #ccc;
  }
}

.view_file_content{
N
Nihad Abbasov 已提交
185
  .old_line, .new_line {
G
gitlabhq 已提交
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
    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 已提交
202
  .view_file_header {
G
gitlabhq 已提交
203 204 205 206
    padding:5px 5px;
    border-bottom:1px solid #CCC;
    background: #eee;
  }
N
Nihad Abbasov 已提交
207
  .view_file_content {
G
gitlabhq 已提交
208 209 210 211
    background:#fff;
    color:#514721;
    font-size: 11px;
  }
N
Nihad Abbasov 已提交
212
  .view_file_content_image {
G
gitlabhq 已提交
213 214
    background:#eee;
    text-align:center;
N
Nihad Abbasov 已提交
215
    img {
G
gitlabhq 已提交
216 217 218 219 220 221 222 223 224 225
      padding:100px;
      max-width:300px;
    }
  }
}

.back_small.button{

}

N
Nihad Abbasov 已提交
226
input.ssh_project_url {
G
gitlabhq 已提交
227 228 229 230 231 232 233
  padding:5px;
  margin:0px;
  float:right;
  width:400px;
  text-align:center;
}

N
Nihad Abbasov 已提交
234
.day-commits-table li.commit {
G
gitlabhq 已提交
235 236
  cursor:pointer;

N
Nihad Abbasov 已提交
237
  &:hover {
G
gitlabhq 已提交
238 239 240 241 242 243 244 245
    @include hover-color;
  }
}

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

N
Nihad Abbasov 已提交
249
  &:hover {
G
gitlabhq 已提交
250
    @include hover-color;
N
Nihad Abbasov 已提交
251
    td {
G
gitlabhq 已提交
252 253 254 255
      @include hover-color;
    }
  }
}
N
Nihad Abbasov 已提交
256
#projects-list .project {
G
gitlabhq 已提交
257 258 259 260
  height:50px;
}

#projects-list .project,
G
gitlabhq 已提交
261
#snippets-table .snippet,
N
Nihad Abbasov 已提交
262
#issues-table .issue{
G
gitlabhq 已提交
263 264
  cursor:pointer;

N
Nihad Abbasov 已提交
265
  &:hover {
G
gitlabhq 已提交
266
      @include hover-color;
N
Nihad Abbasov 已提交
267
    td {
G
gitlabhq 已提交
268 269 270 271 272
      @include hover-color;
    }
  }
}

N
Nihad Abbasov 已提交
273
.clear {
G
gitlabhq 已提交
274 275 276
  clear: both;
}

N
Nihad Abbasov 已提交
277 278
.top_project_menu {
  a {
G
gitlabhq 已提交
279 280 281 282 283 284 285 286 287 288 289
    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 已提交
290
    &.current {
G
gitlabhq 已提交
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
      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 已提交
312 313
.new_snippet,
.edit_snippet,
N
Nihad Abbasov 已提交
314
.edit_project {
G
gitlabhq 已提交
315 316 317
  input[type='text'],
  input[type='email'],
  input[type='password'],
N
Nihad Abbasov 已提交
318
  textarea {
G
gitlabhq 已提交
319 320 321 322 323 324 325
    width:400px;
    padding:8px;
    font-size:14px;
    @include round-borders-all(4px);
  }
}

N
Nihad Abbasov 已提交
326
.input_button {
G
gitlabhq 已提交
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343
  //@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 已提交
344
.top_menu_count {
G
gitlabhq 已提交
345 346 347
  background: none repeat scroll 0 0 white;
  color: #333;
  border-color: #4BB8D2;
G
gitlabhq 已提交
348
  padding: 2px;
G
gitlabhq 已提交
349
  font-size:10px;
G
gitlabhq 已提交
350
  border-top:none;
G
gitlabhq 已提交
351 352 353 354 355
  text-align:center;
  float:right;
  width:25px;


G
gitlabhq 已提交
356 357 358 359 360 361 362 363 364 365 366
}

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

N
Nihad Abbasov 已提交
367
/** FLASH **/
G
gitlabhq 已提交
368

N
Nihad Abbasov 已提交
369
#flash_container {
G
gitlabhq 已提交
370 371 372 373 374 375 376 377 378 379 380
  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 已提交
381
  h4 {
G
gitlabhq 已提交
382 383 384
    color:#444;
    font-size:22px;
    padding-top:5px;
G
gitlabhq 已提交
385
    margin:2px;
G
gitlabhq 已提交
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
  }
}

/** 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 已提交
401
  font-size:12px !important;
G
gitlabhq 已提交
402 403 404 405 406 407 408 409 410 411 412
  line-height:130%;
  text-decoration:none;
  font-weight:bold;
  color:#565656;
  cursor:pointer;

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

N
Nihad Abbasov 已提交
413
  &.hm {
G
gitlabhq 已提交
414 415 416
    margin: 0px 0px;
  }

N
Nihad Abbasov 已提交
417
  &.vm {
G
gitlabhq 已提交
418 419 420 421 422 423
    margin: 5px 0px;
  }
}

/** Notes **/

N
Nihad Abbasov 已提交
424
#notes-list {
G
gitlabhq 已提交
425 426 427 428 429
  display:block;
  list-style:none;
  margin:0px;
  padding:0px;

N
Nihad Abbasov 已提交
430
  li {
G
gitlabhq 已提交
431 432 433 434 435 436
    display:list-item;
    padding:8px;
    margin:0px;
    background: #F7FBFC;
    border-top: 1px solid #E2EAEE;

N
Nihad Abbasov 已提交
437
    &:first-child {
G
gitlabhq 已提交
438 439 440 441 442
      border-top: none;
    }
    &:nth-child(2n+1) {
      background: white;
    }
N
Nihad Abbasov 已提交
443
    p {
G
gitlabhq 已提交
444 445 446 447 448
      margin-bottom: 4px;
      font-size: 13px;
      color:#111;
    }
  }
N
Nihad Abbasov 已提交
449 450
  cite {
    &.ago {
G
gitlabhq 已提交
451
      color:#666;
G
gitlabhq 已提交
452 453 454 455
    }
  }
}

N
Nihad Abbasov 已提交
456
.notes_count {
G
gitlabhq 已提交
457 458 459 460 461 462 463 464 465 466 467
  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 已提交
468
.note_author {
G
gitlabhq 已提交
469 470 471
  float:left;
  width:60px;
}
N
Nihad Abbasov 已提交
472
.note_content {
G
gitlabhq 已提交
473
  float:left;
G
gitlabhq 已提交
474
  width:650px;
G
gitlabhq 已提交
475 476
}

N
Nihad Abbasov 已提交
477 478
.issue_notes {
  .note_content {
G
gitlabhq 已提交
479 480 481 482
    float:left;
    width:400px;
  }
}
V
Valera Sizov 已提交
483 484

#user_projects_limit{
N
Nihad Abbasov 已提交
485
  width: 60px;
V
Valera Sizov 已提交
486
}
G
gitlabhq 已提交
487

N
Nihad Abbasov 已提交
488
.project_thumb {
G
gitlabhq 已提交
489 490 491 492 493
  margin:20px 0;
  width: 250px;
  float:left;
  padding:20px;
  text-align:center;
N
Nihad Abbasov 已提交
494
  p, h4 {
G
gitlabhq 已提交
495 496
    text-align:left;
  }
N
Nihad Abbasov 已提交
497
  .lbutton {
G
gitlabhq 已提交
498 499 500
    float:left;
  }
}
V
VSizov 已提交
501 502 503 504

.handle:hover{
  cursor: move;
}
V
VSizov 已提交
505 506 507 508 509 510

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

N
Nihad Abbasov 已提交
512 513
.recent_message_parent {
  img {
G
gitlabhq 已提交
514 515 516 517 518
    padding-right:10px;
  }

  float: left;
  margin: 0 20px 20px 0px;
G
gitlabhq 已提交
519
  padding: 5px 0px;;
G
gitlabhq 已提交
520 521
  width: 420px;

G
gitlabhq 已提交
522 523
  &.dash_wall{
    border-bottom: 2px solid orange;
N
Nihad Abbasov 已提交
524
    span {
G
gitlabhq 已提交
525 526 527 528 529 530 531
      background: orange;
      color:black;
    }
  }

  &.dash_issue{
    border-bottom: 2px solid #ffbbbb;
N
Nihad Abbasov 已提交
532
    span {
G
gitlabhq 已提交
533 534 535 536 537 538
      background: #ffbbbb;
    }
  }
  &.dash_commit{
    border-bottom: 2px solid #bbbbff;

N
Nihad Abbasov 已提交
539
    span{
G
gitlabhq 已提交
540 541 542 543
      background: #bbbbff;
    }
  }

544 545 546
  &.dash_snippet{
    border-bottom: 2px solid #bbffbb;

N
Nihad Abbasov 已提交
547
    span{
548 549 550 551
      background: #bbffbb;
    }
  }

N
Nihad Abbasov 已提交
552
  span{
553 554 555 556 557
    border: 1px solid #aaa;
    color:black;
    padding:1px 4px;
  }

N
Nihad Abbasov 已提交
558
  h4 {
G
gitlabhq 已提交
559 560 561
    margin-bottom:3px;
  }

562
}
G
gitlabhq 已提交
563
.commit,
N
Nihad Abbasov 已提交
564
.message,
G
gitlabhq 已提交
565
#notes-list{
N
Nihad Abbasov 已提交
566
  .author {
G
gitlabhq 已提交
567 568
    background: #eaeaea;
    color: #333;
569 570 571
    border: 1px solid #aaa;
    padding:1px 2px;
    margin-right:5px;
G
gitlabhq 已提交
572 573
  }
}
G
gitlabhq 已提交
574 575

/* Note textare */
N
Nihad Abbasov 已提交
576
#note_note {
G
gitlabhq 已提交
577 578 579 580 581
  height:100px;
  width:97%;
  font-size:14px;
}

N
Nihad Abbasov 已提交
582 583
.wall_page {
  #note_note {
G
gitlabhq 已提交
584 585
    height:25px;
  }
N
Nihad Abbasov 已提交
586
  .attach_holder {
G
gitlabhq 已提交
587 588 589
    display:none;
  }
}
G
gitlabhq 已提交
590 591 592 593 594 595 596 597 598

.field_with_errors {
  input[type="text"],
  input[type="password"],
  textarea
  {
    background: none repeat scroll 0 0 #FFBBBB
  }
}
G
gitlabhq 已提交
599 600 601 602 603 604

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

N
Nihad Abbasov 已提交
605
  &.high {
G
gitlabhq 已提交
606 607 608 609
    background: #D12F19;
    color:white;
  }

N
Nihad Abbasov 已提交
610
  &.today {
G
gitlabhq 已提交
611 612 613 614
    background: #44aa22;
    color:white;
  }

N
Nihad Abbasov 已提交
615
  &.yours {
G
gitlabhq 已提交
616 617 618
    background: #4466cc;
    color:white;
  }
G
gitlabhq 已提交
619 620 621 622
  &.normal {
    background: #2c5ca6;
    color:white;
  }
G
gitlabhq 已提交
623 624 625 626 627 628
  &.notes {
    background: #2c5c66;
    color:white;
  }
}

N
Nihad Abbasov 已提交
629 630
#issues-table .issue {
  &.critical {
G
gitlabhq 已提交
631 632 633 634 635 636
    td {
      //background: #D12F19;
      //color:#fff;
    }
  }
}
G
gitlabhq 已提交
637 638

.top_panel_issues{
N
Nihad Abbasov 已提交
639 640 641
  #issue_search_form {
    margin:5px 0;
    input {
G
gitlabhq 已提交
642 643
      border:1px solid #D3D3D3;
      padding: 3px;
G
gitlabhq 已提交
644
      height: 28px;
G
gitlabhq 已提交
645
      width: 300px;
G
gitlabhq 已提交
646 647 648
      -webkit-appearance:none;
      box-sizing: border-box;
      -moz-box-sizing: border-box;
G
gitlabhq 已提交
649

N
Nihad Abbasov 已提交
650
      &:focus {
G
gitlabhq 已提交
651 652 653 654 655 656
        border-color:#c2e1ef;
      }
    }
  }
}

G
gitlabhq 已提交
657 658 659 660 661 662
.left { 
  float:left;
}
.right { 
  float:right;
}
G
gitlabhq 已提交
663 664 665 666 667 668 669 670 671 672 673 674

.width-50p{
  width:50%;
}
.width-49p{
  width:49%;
}
.width-30p{
  width:30%;
}
.width-65p{
  width:65%;
N
Nihad Abbasov 已提交
675 676
pre.commit_message {
  white-space: pre-wrap;
G
gitlabhq 已提交
677
}