common.scss 10.1 KB
Newer Older
1
a {
D
Dmitriy Zaporozhets 已提交
2
  outline: none;
3 4 5 6 7
  color: $link_color;
  &:hover { 
    text-decoration:none; 
    color: $style_color;
  }
D
Dmitriy Zaporozhets 已提交
8 9 10 11

  &.btn { 
    color: $style_color;
  }
12 13
}

D
Dmitriy Zaporozhets 已提交
14 15 16 17
a:focus { 
  outline: none; 
}

18 19 20 21
.vlink { 
  color: $link_color !important;
}

22 23 24 25
.pills a:hover { 
  background-color:#ccc;
}

26
.pills .active a {
27
  background-color: #aaa;
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
}

.label { 
  background-color: #474D57;
}

.tabs > li > a, .pills > li > a {
  color:$style_color;
}

.diff_file_header a,
.file_stats a {
  color:$style_color;
}

D
Dmitriy Zaporozhets 已提交
43 44 45 46
/** COLORS **/
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
47
.cblack { color:#111; }
48
.cwhite { color:#fff !important }
D
Dmitriy Zaporozhets 已提交
49 50 51 52 53 54

/** COMMON STYLES **/
.left {
  float:left;
}
.right {
55
  float:right !important;
D
Dmitriy Zaporozhets 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
}
.width-50p{
  width:50%;
}
.width-49p{
  width:49%;
}
.width-30p{
  width:30%;
}
.width-65p{
  width:65%;
}
.width-100p{
  width:100%;
}
.append-bottom-10 {
  margin-bottom:10px;
}
.append-bottom-20 {
  margin-bottom:20px;
}
.prepend-top-10 {
  margin-top:10px;
}
D
Dmitriy Zaporozhets 已提交
81 82 83 84

.padded { 
  padding:20px;
}
D
Dmitriy Zaporozhets 已提交
85 86 87
.no-borders { 
  border:none;
}
88 89 90 91
table.no-borders { 
  border:none;
  tr, td { border:none }
}
D
Dmitriy Zaporozhets 已提交
92 93 94
.no-padding { 
  padding:0 !important;
}
95 96 97
.underlined { 
  border-bottom: 1px solid $border_color;
}
D
Dmitriy Zaporozhets 已提交
98

99
/** LAYOUT **/
D
Dmitriy Zaporozhets 已提交
100

101 102
.container { 
  width:$min_app_width;
D
Dmitriy Zaporozhets 已提交
103 104 105 106 107 108
  padding-top:0;
  z-index:5;
}

.container .content { 
  margin:0 $app_padding;
109 110
}

111
.container  .sidebar { 
D
Dmitriy Zaporozhets 已提交
112
  width: 200px;
113
  height:100%;
114
  min-height:450px;
115 116
  float:right;
}
117 118 119

img.avatar { 
  float:left;
D
Dmitriy Zaporozhets 已提交
120 121 122 123 124
  margin-right:15px;
  width:40px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
125 126
}

127 128 129 130 131 132
img.lil_av { 
  padding-left: 5px;
  position: relative;
  top: 3px;
}

D
Dmitriy Zaporozhets 已提交
133 134 135 136 137 138 139 140 141
.media-grid { 
  h3, h2 , h4 {
    &.media_h { 
      padding-left:10px;
      float:left;
    }
  }
}

D
Dmitriy Zaporozhets 已提交
142 143
.wll { 
  background-color: #FFF;
144
  padding: 10px 5px;
D
Dmitriy Zaporozhets 已提交
145 146 147
  min-height: 20px;
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
148 149 150 151
  cursor:pointer;
  &:hover { 
    background:$hover;
  }
D
Dmitriy Zaporozhets 已提交
152
  &:last-child { border:none }
153 154 155
  p { padding-top:5px; margin:0; color:$style_color;}
  .author { color: #999; }
  p { 
156
    color:#222;
157 158 159 160 161 162
    margin-bottom: 0;
    img { 
      position:relative;
      top:3px;
    }
  }
D
Dmitriy Zaporozhets 已提交
163 164
}

165
.visible_link,
D
Dmitriy Zaporozhets 已提交
166
.author_link { 
167
  color: $link_color;
D
Dmitriy Zaporozhets 已提交
168
}
D
Dmitriy Zaporozhets 已提交
169 170 171 172 173 174 175 176 177 178 179 180 181
.entry { 
  position: relative;
  padding: 7px 15px;
  margin-bottom: 18px;
  color: #404040;
  filter:none;

  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
D
Dmitriy Zaporozhets 已提交
182

D
Dmitriy Zaporozhets 已提交
183 184 185
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
186

D
Dmitriy Zaporozhets 已提交
187 188 189
  background:#F1F1F1;
  border: 1px solid #ccc;

190

D
Dmitriy Zaporozhets 已提交
191
  p { 
192
    color:$style_color;
D
Dmitriy Zaporozhets 已提交
193 194 195 196 197 198 199 200 201
    margin-bottom: 0;
    img { 
      position:relative;
      top:3px;
    }
  }
}

.widget { 
202
  @include shade;
D
Dmitriy Zaporozhets 已提交
203 204
  padding:20px;
  margin-bottom:20px;
205 206
  border: 1px solid #DDD;
  border-radius: 5px;
207
  background:#fafafa;
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222

  .link_holder { 
    background:#eee;
    position:relative;
    left:-20px;
    top:20px;
    padding:10px 20px;
    width:100%;
    border-top:1px solid #ccc;

    a { 
      font-size:14px;
      color:#666;
    }
  }
D
Dmitriy Zaporozhets 已提交
223
}
224

225 226 227 228

.ui-box { 
  margin-bottom: 40px;
  @include round-borders-all(4px);
229
  @include shade;
230 231
  border-color:#ddd;

232 233 234 235
  ul { 
    margin:0;
  }

236
  h5, .title { 
237
    padding: 0 10px;
238
    background:#f5f5f5;
239
    border-bottom: 1px solid #eee;
240 241
    @include round-borders-top(4px);
    border-top:none;
242 243 244 245

    form { 
      padding-top:16px;
    }
246 247
  }

248 249 250
  .row_title { 
    font-weight:bold;
    color:#444;
251 252 253
    &:hover { 
      text-decoration:underline;
    }
254
  }
255 256

  li, .wll {
257
    padding:10px;
258 259 260 261
    &:first-child { 
      @include round-borders-top(4px);
      border-top:none;
    }
262 263 264 265 266

    &:last-child { 
      @include round-borders-bottom(4px);
      border:none;
    }
267
  }
268

269
}
270 271

.help li { color:#111 } 
272 273 274 275 276 277 278 279

.back_link { 
  text-decoration:underline;
  font-size:14px;
  font-weight:bold;
  padding:10px 0;
  padding-bottom:0;
}
D
Dmitriy Zaporozhets 已提交
280 281 282 283 284 285 286 287 288

.info_link { 
  margin-right:5px;
  float:left;

  img { 
    width:20px;
  }
}
289 290 291

.borders { 
  border: 1px solid #ccc;
D
Dmitriy Zaporozhets 已提交
292
  @include shade;
293
}
D
Dmitriy Zaporozhets 已提交
294

295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
.download_repo_link { 
  background: url("images.png") no-repeat 0 -48px;
  padding-left:20px;
}

.number { 
  border-radius: 4px; 
  text-shadow: none; 
  background: rgba(0,0,0,.12); 
  text-align: center; 
  padding: 2px 4px; 
  line-height:20px;
  margin-left:2px;
}

table a code { 
  position: relative;
  top: -2px;
  margin-right: 3px;
}
315 316 317 318

.span12 hr{
 margin-top: 5px;
}
D
Dmitriy Zaporozhets 已提交
319 320 321 322

.btn.padded { 
  margin-right:3px;
}
323 324 325 326 327 328 329

.loading { 
  margin:20px auto;
  background: url(ajax-loader-facebook.gif) no-repeat center center;
  width:40px;
  height:40px;
}
D
Dmitriy Zaporozhets 已提交
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449

/** FLASH message **/
#flash_container {
  height:45px;
  position:fixed;
  z-index:10001;
  top:0px;
  width:100%;
  margin-bottom:15px;
  overflow:hidden;
  background:white;
  cursor:pointer;
  border-bottom:1px solid #777;

  h4 {
    color:#444;
    font-size:22px;
    padding-top:5px;
    margin:2px;
  }
}

.git_url_wrapper {
  margin-right:50px
}
.file_stats {
  span {
    img {
      width:14px;
      float:left;
      margin-right:6px;
      padding:2px 0;
    }
  }
}

.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 **/
.ajax-tab-loading {
  padding:40px;
  display:none;
}
.dashboard-loader {
  float:left;
  margin:10px;
  display:none;
}
.user-mention {
  color:#2FA0BB;
  font-weight:bold;
}

a.project-update.titled {
  position:relative;
  padding-left:35% !important;
  .title-block {
    padding:10px;
    width:35%;
    position:absolute;
    left:0;
    top:0;
  }
}
/**
 * Project graph
 */
#holder {
  cursor: move;
  height: 70%;
  overflow: hidden;
}



input.git_clone_url { 
  width:475px;
}

.team_member_row { 
  img { 
    width:60px;
  }
}

.merge-request-form-holder {
  select { 
    width:300px;
  }
}

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

#new_issue_dialog textarea{
    height: 100px;
}

.project_list_url { 
450
  width:250px;
D
Dmitriy Zaporozhets 已提交
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 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
  background:#fff !important;
}

/**
 * 
 * COMMIT SHOw
 *
 */
.diff_file {
  border:1px solid #CCC;
  margin-bottom:1em;

  .diff_file_header {
    padding:5px 5px;
    border-bottom:1px solid #CCC;
    background: #eee;
  }
  .diff_file_content {
    overflow:auto;
    overflow-y:hidden;
    background:#fff;
    color:#333;
    font-size: 12px;
    font-family: 'Menlo', 'Courier New', 'andale mono','lucida console',monospace;
  }
  .diff_file_content_image {
    background:#eee;
    text-align:center;
    img {
      padding:100px;
      max-width:300px;
    }
  }
}

.diff_file_content{
  table { 
    border:none;
    margin:0px;
    padding:0px;
    tr {
      td { 
        font-size:12px;
      }
    }
  }
  .old_line, .new_line {
    margin:0px;
    padding:0px;
    border:none;
    background:#F7F7F7;
    color:#aaa;
    padding: 0px 5px;
    border-right: 1px solid #ccc;
    text-align:right;
    min-width:35px;
    max-width:35px;
    width:35px;
    moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    a { 
      float:left;
      width:35px;
      font-weight:normal;
      color:#aaa;
      &:hover { 
        text-decoration:underline;
      }
    }
  }
  .line_content { 
    white-space:pre; 
    height:14px;
    margin:0px;
    padding:0px;
    border:none;
    &.new { 
      background: #CFD;
    }
    &.old { 
      background: #FDD;
    }
    &.matched { 
      color:#ccc;
      background:#fafafa;
    }
  }
}

/** COMMIT BLOCK **/
.commit-title{display: block;}
.commit-title{margin-bottom: 10px}
.commit-author, .commit-committer{display: block;color: #999; font-weight: normal; font-style: italic;}
.commit-author strong, .commit-committer strong{font-weight: bold; font-style: normal;}

/** bordered list **/
ul.bordered-list { 
  margin:5px 0px;
  padding:0px;
  li { 
    padding: 5px 0;
    border-bottom: 1px solid #EEE;
    overflow: hidden;
    display: block;
    margin:0px;
  }
}

ul.bordered-list li:last-child { border:none } 

.line_holder { 
  &:hover { 
    td { 
      background: #FFFFCF !important;
    }
  }
}

li.commit { 
  .avatar { 
    width:24px;
    top:-3px;
    margin-right:10px;
    margin-left:10px;
  }

  code { 
    padding:4px;
  }
}
p.time {
  color: #999;
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}
587 588 589 590 591


.dashboard_category { 
  margin-bottom:30px;

592 593 594 595 596 597 598 599 600


  h3 a { 
    color:#474D57;

    &:hover { 
      text-decoration:underline;
    }
  }
601 602 603 604 605
  .dashboard_block { 
    width:700px;
    margin:auto;

    .wll { 
D
Dmitriy Zaporozhets 已提交
606
      padding:5px;
D
Dmitriy Zaporozhets 已提交
607
      margin-top:5px;
608 609 610 611 612 613 614 615 616 617 618
      border:none;
      &:hover { 
        background:none;
      }

      h4 {
        color:#666;
      }
    }
  }
}
619 620 621 622 623 624 625 626 627

.styled_image { 
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -moz-box-shadow: 0 0 5px #888;
  -webkit-box-shadow: 0 0 5px#888;
  box-shadow: 0 0 5px #888;
}
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649

.event_feed { 
  min-height:40px;
  border-bottom:1px solid #eee;
  .avatar { 
    width:32px;
  }
  ul { 
    margin-left:50px;
    margin-bottom:5px;
    .avatar { 
      width:24px;
    }
  }

  padding: 10px 5px;
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  &:last-child { border:none }
  .wll:hover { background:none }
}

D
Dmitriy Zaporozhets 已提交
650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
.ico { 
  background: url("images.png") no-repeat -85px -77px;
  width: 19px;
  height: 16px;
  float: left;
  position: relative;
  margin-right: 10px;
  top: 8px;

  &.project { 
    background-position:  -37px -77px;
  }

  &.activities { 
    background-position:-162px -22px;
  }
  &.projects { 
    background-position:-209px -21px;
  }
}
D
Dmitriy Zaporozhets 已提交
670 671 672 673 674 675 676 677 678 679 680 681 682

.leftbar { 

  h5, .title { 
    padding:5px 10px;
  }

  h4 { 
    font-size:14px;
    padding:2px 10px;
    color:#888;
    border-bottom:1px solid #eee;
  }
D
Dmitriy Zaporozhets 已提交
683
  a:last-child h4 { border:none; }
D
Dmitriy Zaporozhets 已提交
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702

  a.active { 
    h4 {
      color:#111;
      border-right:4px solid $styled_border_color;
      .ico.project { 
        background-position:-209px -21px;
      }
    }
  }
}

.btn { 
  &.very_small { 
    font-size:11px;
    padding:4px;
    margin:2px;
  }
}