projects.css.scss 11.2 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 {
55 56
    overflow:auto;
    overflow-y:hidden;
G
gitlabhq 已提交
57 58 59 60 61
    background:#fff;
    color:#333;
    font-size: 12px;
    font-family: 'Courier New', 'andale mono','lucida console',monospace;
  }
N
Nihad Abbasov 已提交
62
  .diff_file_content_image {
G
gitlabhq 已提交
63 64
    background:#eee;
    text-align:center;
N
Nihad Abbasov 已提交
65
    img {
G
gitlabhq 已提交
66 67 68 69 70 71
      padding:100px;
      max-width:300px;
    }
  }
}

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

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

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

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

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

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

a {
  color: #111;
}

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

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

.back_small.button{

}

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

N
Nihad Abbasov 已提交
231
#projects-list .project {
G
gitlabhq 已提交
232 233 234
  height:50px;
}

D
Dmitriy Zaporozhets 已提交
235
#tree-slider .tree-item,
G
gitlabhq 已提交
236
#projects-list .project,
G
gitlabhq 已提交
237
#snippets-table .snippet,
N
Nihad Abbasov 已提交
238
#issues-table .issue{
G
gitlabhq 已提交
239 240 241
  cursor:pointer;
}

N
Nihad Abbasov 已提交
242
.clear {
G
gitlabhq 已提交
243 244 245
  clear: both;
}

N
Nihad Abbasov 已提交
246 247
.top_project_menu {
  a {
G
gitlabhq 已提交
248 249 250 251 252 253 254 255 256 257 258
    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 已提交
259
    &.current {
G
gitlabhq 已提交
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
      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,
D
Dmitriy Zaporozhets 已提交
279 280 281
.new_key,
.new_issue,
.new_note,
G
gitlabhq 已提交
282 283
.edit_user,
.new_project,
G
gitlabhq 已提交
284 285
.new_snippet,
.edit_snippet,
N
Nihad Abbasov 已提交
286
.edit_project {
G
gitlabhq 已提交
287 288 289
  input[type='text'],
  input[type='email'],
  input[type='password'],
N
Nihad Abbasov 已提交
290
  textarea {
G
gitlabhq 已提交
291 292 293 294 295 296 297
    width:400px;
    padding:8px;
    font-size:14px;
    @include round-borders-all(4px);
  }
}

N
Nihad Abbasov 已提交
298
.input_button {
G
gitlabhq 已提交
299 300 301 302 303 304 305 306 307 308 309 310
  //@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 已提交
311
.top_menu_count {
G
gitlabhq 已提交
312 313 314
  background: none repeat scroll 0 0 white;
  color: #333;
  border-color: #4BB8D2;
G
gitlabhq 已提交
315
  padding: 2px;
G
gitlabhq 已提交
316
  font-size:10px;
G
gitlabhq 已提交
317
  border-top:none;
G
gitlabhq 已提交
318 319 320 321 322
  text-align:center;
  float:right;
  width:25px;


G
gitlabhq 已提交
323 324 325 326 327 328 329 330 331 332 333
}

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

N
Nihad Abbasov 已提交
334
/** FLASH **/
G
gitlabhq 已提交
335

N
Nihad Abbasov 已提交
336
#flash_container {
G
gitlabhq 已提交
337 338 339 340 341 342 343 344 345 346 347
  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 已提交
348
  h4 {
G
gitlabhq 已提交
349 350 351
    color:#444;
    font-size:22px;
    padding-top:5px;
G
gitlabhq 已提交
352
    margin:2px;
G
gitlabhq 已提交
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
  }
}

/** 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 已提交
368
  font-size:12px !important;
G
gitlabhq 已提交
369 370 371 372 373 374 375 376 377 378 379
  line-height:130%;
  text-decoration:none;
  font-weight:bold;
  color:#565656;
  cursor:pointer;

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

N
Nihad Abbasov 已提交
380
  &.hm {
G
gitlabhq 已提交
381 382 383
    margin: 0px 0px;
  }

N
Nihad Abbasov 已提交
384
  &.vm {
G
gitlabhq 已提交
385 386 387 388 389 390
    margin: 5px 0px;
  }
}

/** Notes **/

N
Nihad Abbasov 已提交
391
#notes-list {
G
gitlabhq 已提交
392 393 394 395 396 397
  display:block;
  list-style:none;
  margin:0px;
  padding:0px;
}

N
Nihad Abbasov 已提交
398
.notes_count {
G
gitlabhq 已提交
399 400 401 402 403 404 405 406 407 408 409 410
  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 已提交
411 412
.issue_notes {
  .note_content {
G
gitlabhq 已提交
413 414 415 416
    float:left;
    width:400px;
  }
}
V
Valera Sizov 已提交
417 418

#user_projects_limit{
N
Nihad Abbasov 已提交
419
  width: 60px;
V
Valera Sizov 已提交
420
}
G
gitlabhq 已提交
421

N
Nihad Abbasov 已提交
422
.project_thumb {
G
gitlabhq 已提交
423 424 425 426 427
  margin:20px 0;
  width: 250px;
  float:left;
  padding:20px;
  text-align:center;
N
Nihad Abbasov 已提交
428
  p, h4 {
G
gitlabhq 已提交
429 430
    text-align:left;
  }
N
Nihad Abbasov 已提交
431
  .lbutton {
G
gitlabhq 已提交
432 433 434
    float:left;
  }
}
V
VSizov 已提交
435 436 437 438

.handle:hover{
  cursor: move;
}
V
VSizov 已提交
439 440 441 442 443 444

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

G
gitlabhq 已提交
446 447

/* Note textare */
N
Nihad Abbasov 已提交
448
#note_note {
G
gitlabhq 已提交
449 450 451 452 453
  height:100px;
  width:97%;
  font-size:14px;
}

G
gitlabhq 已提交
454
#new_note {
N
Nihad Abbasov 已提交
455
  #note_note {
G
gitlabhq 已提交
456 457
    height:25px;
  }
N
Nihad Abbasov 已提交
458
  .attach_holder {
G
gitlabhq 已提交
459 460 461
    display:none;
  }
}
G
gitlabhq 已提交
462 463 464 465 466 467 468 469 470

.field_with_errors {
  input[type="text"],
  input[type="password"],
  textarea
  {
    background: none repeat scroll 0 0 #FFBBBB
  }
}
G
gitlabhq 已提交
471 472 473 474 475

.tag {
  @include round-borders-all(4px);
  padding:2px 4px;
  border:none;
D
Dmitriy Zaporozhets 已提交
476
  text-shadow:none;
G
gitlabhq 已提交
477

N
Nihad Abbasov 已提交
478
  &.high {
G
gitlabhq 已提交
479 480 481 482
    background: #D12F19;
    color:white;
  }

N
Nihad Abbasov 已提交
483
  &.today {
G
gitlabhq 已提交
484 485 486 487
    background: #44aa22;
    color:white;
  }

N
Nihad Abbasov 已提交
488
  &.yours {
G
gitlabhq 已提交
489 490 491
    background: #4466cc;
    color:white;
  }
G
gitlabhq 已提交
492 493 494 495
  &.normal {
    background: #2c5ca6;
    color:white;
  }
G
gitlabhq 已提交
496 497 498 499 500 501
  &.notes {
    background: #2c5c66;
    color:white;
  }
}

N
Nihad Abbasov 已提交
502 503
#issues-table .issue {
  &.critical {
G
gitlabhq 已提交
504 505 506 507 508 509
    td {
      //background: #D12F19;
      //color:#fff;
    }
  }
}
G
gitlabhq 已提交
510 511

.top_panel_issues{
N
Nihad Abbasov 已提交
512 513 514
  #issue_search_form {
    margin:5px 0;
    input {
G
gitlabhq 已提交
515 516
      border:1px solid #D3D3D3;
      padding: 3px;
G
gitlabhq 已提交
517
      height: 28px;
G
gitlabhq 已提交
518
      width: 300px;
G
gitlabhq 已提交
519 520 521
      -webkit-appearance:none;
      box-sizing: border-box;
      -moz-box-sizing: border-box;
G
gitlabhq 已提交
522

N
Nihad Abbasov 已提交
523
      &:focus {
G
gitlabhq 已提交
524 525 526 527 528 529
        border-color:#c2e1ef;
      }
    }
  }
}

G
gitlabhq 已提交
530 531 532 533 534 535
.left { 
  float:left;
}
.right { 
  float:right;
}
G
gitlabhq 已提交
536 537 538 539 540 541 542 543 544 545 546 547

.width-50p{
  width:50%;
}
.width-49p{
  width:49%;
}
.width-30p{
  width:30%;
}
.width-65p{
  width:65%;
G
gitlabhq 已提交
548
}
N
Nihad Abbasov 已提交
549 550
pre.commit_message {
  white-space: pre-wrap;
G
gitlabhq 已提交
551
}
G
gitlabhq 已提交
552 553

#container { 
R
Ricardo Rauch 已提交
554
/*  min-height:100%;*/
G
gitlabhq 已提交
555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586
}
.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 已提交
587 588 589 590 591 592 593 594 595 596 597 598 599

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

.project-refs-select {
  width:200px;
}
G
gitlabhq 已提交
600

D
Dmitriy Zaporozhets 已提交
601 602 603 604 605 606
.issues_filter {
  margin-top:10px;
  .left { 
    margin-right:15px;
  }
}
D
Dmitriy Zaporozhets 已提交
607 608
.filter .left { margin-right:15px; }
 
D
Dmitriy Zaporozhets 已提交
609

D
Dmitriy Zaporozhets 已提交
610 611 612 613
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }

614 615 616 617 618 619 620 621 622
body.project-page table .commit { 
  a.tree-commit-link { 
    color:gray;
    &:hover { 
      text-decoration:underline;
    }
  }
}

G
gitlabhq 已提交
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646
#notes-list .note .delete-note { display:none; }
#notes-list .note:hover .delete-note { display:block; }

#issues-table-holder .issue .action-links {
  display:none; 
  a { 
    margin-left:10px;
  }
}
  
.issue-number {
  float: left;
  border-radius: 5px;
  text-shadow: none;
  background: rgba(0, 0, 0, 0.12);
  text-align: center;
  padding: 14px 8px;
  width: 40px;
  margin-right: 10px;
  color: #444;
}

#issues-table-holder .issue:hover .action-links { display:block; }

G
gitlabhq 已提交
647 648 649 650 651 652 653
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;}
G
gitlabhq 已提交
654 655 656 657 658 659 660 661 662 663 664


/** NEW PROJECT **/
.new-project-hodler { 
  .icon span { 
    background-position: -31px -70px;
  }
  td {
    border-bottom: 1px solid #DEE2E3;
  }
}
D
Dmitriy Zaporozhets 已提交
665

G
gitlabhq 已提交
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683
//.message .note-title p { margin-bottom:0px; }

.commit,
.message { 
  .title { 
    color:#666;
    a { 
      color:#666 !important;
    }
    p { 
      margin-top:0px;
    }
  }

  .author { 
    color: #999
  }
}