commits.scss 9.16 KB
Newer Older
1
/**
2
 * Commit file
3
 */
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
4 5 6 7 8 9 10 11 12
.commit-committer-link,
.commit-author-link {
  font-size: 13px;
  color: #555;
  &:hover {
    color: #999;
  }
}

13
.file {
14
  border: 1px solid #CCC;
15
  margin-bottom: 1em;
16

17
  .header {
18
    @extend .clearfix;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
19 20
    background: #DDD;
    border-bottom: 1px solid #CCC;
21 22
    padding: 5px 5px 5px 10px;
    color: #555;
23

24
    > span {
25
      font-family: $monospace_font;
26
      font-size: 14px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
27
      line-height: 2;
28
    }
29

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
30
    .view-file {
31
      font-weight: bold;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
32 33
      float: right;
      background-color: #EEE;
34
    }
35

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
36
    .commit-short-id {
37
      font-family: $monospace_font;
38 39
      font-size: smaller;
    }
40

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
41
    .file-mode {
42
      font-family: $monospace_font;
43 44
    }
  }
45
  .content {
46 47
    overflow: auto;
    overflow-y: hidden;
48
    background: #FFF;
49
    color: #333;
50
    font-size: 12px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
51 52
    .old {
      span.idiff {
53
        background-color: #FAA;
54 55
      }
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
56 57
    .new {
      span.idiff {
58
        background-color: #AFA;
59 60 61
      }
    }

62
    table {
63
      width: 100%;
64 65 66 67
      font-family: $monospace_font;
      border: none;
      margin: 0px;
      padding: 0px;
68
      td {
69
        line-height: 18px;
70 71 72
        font-size: 12px;
      }
    }
73
    .old_line, .new_line, .diff_line {
74 75 76 77 78 79 80 81 82
      margin: 0px;
      padding: 0px;
      border: none;
      background: #EEE;
      color: #666;
      padding: 0px 5px;
      border-right: 1px solid #ccc;
      text-align: right;
      min-width: 35px;
83
      max-width: 50px;
84 85 86 87 88 89 90 91 92 93 94
      width: 35px;
      @include user-select(none);
      a {
        float: left;
        width: 35px;
        font-weight: normal;
        color: #666;
        &:hover {
          text-decoration: underline;
        }
      }
95 96 97 98 99 100 101 102 103
      &.new {
        background: #CFD;
      }
      &.old {
        background: #FDD;
      }
    }
    .diff_line {
      padding: 0;
104
    }
105 106 107 108 109 110 111 112 113 114 115 116
    .line_holder {
      &.old .old_line,
      &.old .new_line {
        background: #FCC;
        border-color: #E7BABA;
      }
      &.new .old_line,
      &.new .new_line {
        background: #CFC;
        border-color: #B9ECB9;
      }
    }
117
    .line_content {
118
      display: block;
119
      white-space: pre;
120
      height: 18px;
121
      margin: 0px;
122
      padding: 0px 0.5em;
123 124 125 126 127 128 129 130 131 132
      border: none;
      &.new {
        background: #CFD;
      }
      &.old {
        background: #FDD;
      }
      &.matched {
        color: #ccc;
        background: #fafafa;
133
      }
134 135 136 137 138
      &.parallel {
        display: table-cell;
        overflow: hidden;
        width: 50%;
      }
139
    }
140
  }
141 142
  .image {
    background: #ddd;
143
    text-align: center;
144 145
    padding: 30px;
    .wrap{
146
      display: inline-block;
147
    }
148

149 150 151 152
    .frame {
      display: inline-block;
      background-color: #fff;
      line-height: 0;
Koen Punt's avatar
Koen Punt committed
153
      img{
154
        border: 1px solid #FFF;
Koen Punt's avatar
Koen Punt committed
155 156
        background: url('trans_bg.gif');
      }
157 158 159
      &.deleted {
        border: 1px solid $deleted;
      }
Koen Punt's avatar
Koen Punt committed
160

161 162
      &.added {
        border: 1px solid $added;
163
      }
164 165 166 167 168 169
    }
    .image-info{
      font-size: 12px;
      margin: 5px 0 0 0;
      color: grey;
    }
170

171 172
    .view.swipe{
      position: relative;
173

174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
      .swipe-frame{
        display: block;
        margin: auto;
        position: relative;
      }
      .swipe-wrap{
        overflow: hidden;
        border-left: 1px solid #999;
        position: absolute;
        display: block;
        top: 13px;
        right: 7px;
      }
      .frame{
        top: 0;
        right: 0;
        position: absolute;
        &.deleted{
          margin: 0;
          display: block;
          top: 13px;
          right: 7px;
196 197
        }
      }
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
      .swipe-bar{
        display: block;
        height: 100%;
        width: 15px;
        z-index: 100;
        position: absolute;
        cursor: pointer;
        &:hover{
          .top-handle{
            background-position: -15px 3px;
          }
          .bottom-handle{
            background-position: -15px -11px;
          }
        };
        .top-handle{
          display: block;
          height: 14px;
          width: 15px;
          position: absolute;
          top: 0px;
          background: url('swipemode_sprites.gif') 0 3px no-repeat;
        }
        .bottom-handle{
          display: block;
          height: 14px;
          width: 15px;
          position: absolute;
          bottom: 0px;
          background: url('swipemode_sprites.gif') 0 -11px no-repeat;
        }
229
      }
230 231 232 233 234 235
    } //.view.swipe
    .view.onion-skin{
      .onion-skin-frame{
        display: block;
        margin: auto;
        position: relative;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
236
      }
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
      .frame.added, .frame.deleted {
        position: absolute;
        display: block;
        top: 0px;
        left: 0px;
      }
      .controls{
        display: block;
        height: 14px;
        width: 300px;
        z-index: 100;
        position: absolute;
        bottom: 0px;
        left: 50%;
        margin-left: -150px;
252

253 254 255 256 257 258 259 260
        .drag-track{
          display: block;
          position: absolute;
          left: 12px;
          height: 10px;
          width: 276px;
          background: url('onion_skin_sprites.gif') -4px -20px repeat-x;
        }
261

262 263 264 265 266 267 268 269 270 271
        .dragger {
          display: block;
          position: absolute;
          left: 0px;
          top: 0px;
          height: 14px;
          width: 14px;
          background: url('onion_skin_sprites.gif') 0px -34px repeat-x;
          cursor: pointer;
        }
272

273 274 275 276 277 278 279 280 281
        .transparent {
          display: block;
          position: absolute;
          top: 2px;
          right: 0px;
          height: 10px;
          width: 10px;
          background: url('onion_skin_sprites.gif') -2px 0px no-repeat;
        }
282

283 284 285 286 287 288 289 290 291 292 293
        .opaque {
          display: block;
          position: absolute;
          top: 2px;
          left: 0px;
          height: 10px;
          width: 10px;
          background: url('onion_skin_sprites.gif') -2px -10px no-repeat;
        }
      }
    } //.view.onion-skin
294
  }
295
  .view-modes{
296

297 298
    padding: 10px;
    text-align: center;
299

300 301 302
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
303
    background-image: -ms-linear-gradient(#eee 6.6%, #dfdfdf);
304
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
305

306 307 308 309 310
    ul, li{
      list-style: none;
      margin: 0;
      padding: 0;
      display: inline-block;
311
    }
312

313 314 315 316 317 318 319 320 321
    li{
      color: grey;
      border-left: 1px solid #c1c1c1;
      padding: 0 12px 0 16px;
      cursor: pointer;
      &:first-child{
        border-left: none;
      }
      &:hover{
322
        text-decoration: underline;
323
      }
324 325 326 327 328 329 330 331 332 333
      &.active{
        &:hover{
          text-decoration: none;
        }
        cursor: default;
        color: #333;
      }
      &.disabled{
        display: none;
      }
334 335 336 337 338
    }
  }
}

/** COMMIT BLOCK **/
339 340 341 342 343 344 345 346
.commit-title{
  display: block;
}
.commit-title{
  margin-bottom: 10px;
}
.commit-author, .commit-committer{
  display: block;
347 348
  color: #999;
  font-weight: normal;
349 350 351
  font-style: italic;
}
.commit-author strong, .commit-committer strong{
352
  font-weight: bold;
353 354
  font-style: normal;
}
355

randx's avatar
randx committed
356

357 358
.file-stats a {
  color: $style_color;
359
}
360

361
.file-stats {
362 363 364 365 366
  .new-file {
    a {
      color: #090;
    }
    i {
367 368 369
      color: #1BCF00;
    }
  }
370 371
  .renamed-file {
    i {
372 373 374
      color: #FE9300;
    }
  }
375 376 377 378 379 380
  .deleted-file {
    a {
      color: #B00;
    }
    i {
      color: #EE0000;
381 382 383 384 385
    }
  }
  .edit-file{
    i{
      color: #555;
386 387 388
    }
  }
}
389 390

.label_commit {
391
  @include border-radius(4px);
392
  padding: 2px 4px;
393
  font-size: 13px;
394
  background: #474D57;
395
  color: #fff;
396
  font-family: $monospace_font;
397
}
398 399 400


.commits-compare-switch{
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
401
  background: url("switch_icon.png") no-repeat center center;
402 403
  width: 32px;
  height: 32px;
404
  text-indent: -9999px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
405 406 407 408 409 410 411
  float: left;
  margin-right: 9px;
  border: 1px solid #DDD;
  @include border-radius(4px);
  padding: 4px;
  background-color: #EEE;
}
412 413 414 415 416

.commit-description {
  background: none;
  border: none;
  margin: 0;
417 418
  padding: 0;
  margin-top: 10px;
419
}
420

421 422 423 424 425 426 427 428 429 430 431 432 433
.commit-box {
  margin: 10px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 20px 0;

  .commit-title {
    margin: 0;
    font-size: 20px;
  }

  .commit-description {
    margin-top: 15px;
434
  }
435
}
436

437

438 439 440 441 442
.commit-stat-summary {
  color: #666;
  line-height: 2;
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
443 444 445
.commit-breadcrumb {
  padding: 0;
}
446 447 448 449 450 451 452 453 454 455 456 457

.commit-info-row {
  margin-bottom: 10px;
  .avatar {
    @extend .avatar-inline;
  }
  .commit-committer-link,
  .commit-author-link {
    color: #444;
    font-weight: bold;
  }
}
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
.lists-separator {
  margin: 10px 0;
  border-top: 1px dashed #CCC;
}

/**
 * COMMIT ROW
 */
li.commit {
  padding: 8px;

  .commit-row-title {
    font-size: 14px;
    margin-bottom: 2px;

    .notes_count {
      float: right;
      margin-right: 10px;
    }

    .commit_short_id {
      min-width: 65px;
      font-family: $monospace_font;
    }

484 485 486 487
    .str-truncated {
      max-width: 70%;
    }

488
    .commit-row-message {
489 490
      color: #333;
      font-weight: 500;
491 492 493 494 495 496 497 498
      &:hover {
        color: #444;
        text-decoration: underline;
      }
    }
  }

  .commit-row-info {
499 500
    color: #777;

501 502 503 504 505 506 507 508
    a {
      color: #777;
    }

    .committed_ago {
      float: right;
    }
  }
509 510 511 512 513 514 515 516 517 518 519

  &.inline-commit {
    .commit-row-title {
      font-size: 13px;
    }

    .committed_ago {
      float: right;
      @extend .cgray;
    }
  }
520
}