projects.css.scss 11.1 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
  //@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;
}


N
Nihad Abbasov 已提交
339
.top_menu_count {
G
gitlabhq 已提交
340 341 342
  background: none repeat scroll 0 0 white;
  color: #333;
  border-color: #4BB8D2;
G
gitlabhq 已提交
343
  padding: 2px;
G
gitlabhq 已提交
344
  font-size:10px;
G
gitlabhq 已提交
345
  border-top:none;
G
gitlabhq 已提交
346 347 348 349 350
  text-align:center;
  float:right;
  width:25px;


G
gitlabhq 已提交
351 352 353 354 355 356 357 358 359 360 361
}

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

N
Nihad Abbasov 已提交
362
/** FLASH **/
G
gitlabhq 已提交
363

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

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

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

N
Nihad Abbasov 已提交
408
  &.hm {
G
gitlabhq 已提交
409 410 411
    margin: 0px 0px;
  }

N
Nihad Abbasov 已提交
412
  &.vm {
G
gitlabhq 已提交
413 414 415 416 417 418
    margin: 5px 0px;
  }
}

/** Notes **/

N
Nihad Abbasov 已提交
419
#notes-list {
G
gitlabhq 已提交
420 421 422 423 424 425
  display:block;
  list-style:none;
  margin:0px;
  padding:0px;
}

N
Nihad Abbasov 已提交
426
.notes_count {
G
gitlabhq 已提交
427 428 429 430 431 432 433 434 435 436 437 438
  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 已提交
439 440
.issue_notes {
  .note_content {
G
gitlabhq 已提交
441 442 443 444
    float:left;
    width:400px;
  }
}
V
Valera Sizov 已提交
445 446

#user_projects_limit{
N
Nihad Abbasov 已提交
447
  width: 60px;
V
Valera Sizov 已提交
448
}
G
gitlabhq 已提交
449

N
Nihad Abbasov 已提交
450
.project_thumb {
G
gitlabhq 已提交
451 452 453 454 455
  margin:20px 0;
  width: 250px;
  float:left;
  padding:20px;
  text-align:center;
N
Nihad Abbasov 已提交
456
  p, h4 {
G
gitlabhq 已提交
457 458
    text-align:left;
  }
N
Nihad Abbasov 已提交
459
  .lbutton {
G
gitlabhq 已提交
460 461 462
    float:left;
  }
}
V
VSizov 已提交
463 464 465 466

.handle:hover{
  cursor: move;
}
V
VSizov 已提交
467 468 469 470 471 472

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

N
Nihad Abbasov 已提交
474 475
.recent_message_parent {
  img {
G
gitlabhq 已提交
476 477 478 479 480
    padding-right:10px;
  }

  float: left;
  margin: 0 20px 20px 0px;
G
gitlabhq 已提交
481
  padding: 5px 0px;;
G
gitlabhq 已提交
482 483
  width: 420px;

G
gitlabhq 已提交
484 485
  &.dash_wall{
    border-bottom: 2px solid orange;
N
Nihad Abbasov 已提交
486
    span {
G
gitlabhq 已提交
487 488 489 490 491 492 493
      background: orange;
      color:black;
    }
  }

  &.dash_issue{
    border-bottom: 2px solid #ffbbbb;
N
Nihad Abbasov 已提交
494
    span {
G
gitlabhq 已提交
495 496 497 498 499 500
      background: #ffbbbb;
    }
  }
  &.dash_commit{
    border-bottom: 2px solid #bbbbff;

N
Nihad Abbasov 已提交
501
    span{
G
gitlabhq 已提交
502 503 504 505
      background: #bbbbff;
    }
  }

506 507 508
  &.dash_snippet{
    border-bottom: 2px solid #bbffbb;

N
Nihad Abbasov 已提交
509
    span{
510 511 512 513
      background: #bbffbb;
    }
  }

N
Nihad Abbasov 已提交
514
  span{
515 516 517 518 519
    border: 1px solid #aaa;
    color:black;
    padding:1px 4px;
  }

N
Nihad Abbasov 已提交
520
  h4 {
G
gitlabhq 已提交
521 522 523
    margin-bottom:3px;
  }

524
}
G
gitlabhq 已提交
525
.commit,
G
gitlabhq 已提交
526
.message{
N
Nihad Abbasov 已提交
527
  .author {
G
gitlabhq 已提交
528 529
    background: #eaeaea;
    color: #333;
530 531 532
    border: 1px solid #aaa;
    padding:1px 2px;
    margin-right:5px;
G
gitlabhq 已提交
533 534
  }
}
G
gitlabhq 已提交
535 536

/* Note textare */
N
Nihad Abbasov 已提交
537
#note_note {
G
gitlabhq 已提交
538 539 540 541 542
  height:100px;
  width:97%;
  font-size:14px;
}

G
gitlabhq 已提交
543
#new_note {
N
Nihad Abbasov 已提交
544
  #note_note {
G
gitlabhq 已提交
545 546
    height:25px;
  }
N
Nihad Abbasov 已提交
547
  .attach_holder {
G
gitlabhq 已提交
548 549 550
    display:none;
  }
}
G
gitlabhq 已提交
551 552 553 554 555 556 557 558 559

.field_with_errors {
  input[type="text"],
  input[type="password"],
  textarea
  {
    background: none repeat scroll 0 0 #FFBBBB
  }
}
G
gitlabhq 已提交
560 561 562 563 564 565

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

N
Nihad Abbasov 已提交
566
  &.high {
G
gitlabhq 已提交
567 568 569 570
    background: #D12F19;
    color:white;
  }

N
Nihad Abbasov 已提交
571
  &.today {
G
gitlabhq 已提交
572 573 574 575
    background: #44aa22;
    color:white;
  }

N
Nihad Abbasov 已提交
576
  &.yours {
G
gitlabhq 已提交
577 578 579
    background: #4466cc;
    color:white;
  }
G
gitlabhq 已提交
580 581 582 583
  &.normal {
    background: #2c5ca6;
    color:white;
  }
G
gitlabhq 已提交
584 585 586 587 588 589
  &.notes {
    background: #2c5c66;
    color:white;
  }
}

N
Nihad Abbasov 已提交
590 591
#issues-table .issue {
  &.critical {
G
gitlabhq 已提交
592 593 594 595 596 597
    td {
      //background: #D12F19;
      //color:#fff;
    }
  }
}
G
gitlabhq 已提交
598 599

.top_panel_issues{
N
Nihad Abbasov 已提交
600 601 602
  #issue_search_form {
    margin:5px 0;
    input {
G
gitlabhq 已提交
603 604
      border:1px solid #D3D3D3;
      padding: 3px;
G
gitlabhq 已提交
605
      height: 28px;
G
gitlabhq 已提交
606
      width: 300px;
G
gitlabhq 已提交
607 608 609
      -webkit-appearance:none;
      box-sizing: border-box;
      -moz-box-sizing: border-box;
G
gitlabhq 已提交
610

N
Nihad Abbasov 已提交
611
      &:focus {
G
gitlabhq 已提交
612 613 614 615 616 617
        border-color:#c2e1ef;
      }
    }
  }
}

G
gitlabhq 已提交
618 619 620 621 622 623
.left { 
  float:left;
}
.right { 
  float:right;
}
G
gitlabhq 已提交
624 625 626 627 628 629 630 631 632 633 634 635

.width-50p{
  width:50%;
}
.width-49p{
  width:49%;
}
.width-30p{
  width:30%;
}
.width-65p{
  width:65%;
G
gitlabhq 已提交
636
}
N
Nihad Abbasov 已提交
637 638
pre.commit_message {
  white-space: pre-wrap;
G
gitlabhq 已提交
639
}
G
gitlabhq 已提交
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674

#container { 
  min-height:100%;
}
.ui-selectmenu{
  @include round-borders-all(4px);
  margin-right:10px;
  font-size:1.5em;
  height:auto;
  font-weight:bold;
  .ui-selectmenu-status { 
    padding:3px 10px;
  }
}

td.code { 
  width: 100%;
  .highlight { 
    margin-left: 55px;
    overflow:auto;
    overflow-y:hidden;
  }
}
.highlight pre { 
  white-space: pre;
  word-wrap:normal;
}

.highlighttable tr:hover {
  background:white;
}
table.highlighttable pre{ 
  line-height:16px !important;
  font-size:12px !important;
}
G
gitlabhq 已提交
675 676 677 678 679 680 681 682 683 684 685 686 687

.project-refs-form { 
  span {
    background: none !important;
    position:static !important;
    width:auto !important;
    height: auto !important;
  }
}

.project-refs-select {
  width:200px;
}
G
gitlabhq 已提交
688 689 690 691 692 693 694 695

body.project-page #notes-list .note {padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
body.project-page #notes-list .note {padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
body.project-page #notes-list .note img{float: left; margin-right: 10px;}
body.project-page #notes-list .note span.note-title{display: block;}
body.project-page #notes-list .note span.note-title{margin-bottom: 10px}
body.project-page #notes-list .note span.note-author{color: #999; font-weight: normal; font-style: italic;}
body.project-page #notes-list .note span.note-author strong{font-weight: bold; font-style: normal;}