commits.scss 9.18 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
        background: url('trans_bg.gif');
156
        max-width: 100%;
Koen Punt's avatar
Koen Punt committed
157
      }
158 159 160
      &.deleted {
        border: 1px solid $deleted;
      }
Koen Punt's avatar
Koen Punt committed
161

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

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

175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
      .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;
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 229
      .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;
        }
230
      }
231 232 233 234 235 236
    } //.view.swipe
    .view.onion-skin{
      .onion-skin-frame{
        display: block;
        margin: auto;
        position: relative;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
237
      }
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
      .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;
253

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

263 264 265 266 267 268 269 270 271 272
        .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;
        }
273

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

284 285 286 287 288 289 290 291 292 293 294
        .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
295
  }
296
  .view-modes{
297

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

301 302 303
    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);
304
    background-image: -ms-linear-gradient(#eee 6.6%, #dfdfdf);
305
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
306

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

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

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

randx's avatar
randx committed
357

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

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

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


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

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

422 423 424 425 426 427 428 429 430 431 432 433 434
.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;
435
  }
436
}
437

438

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

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

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

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

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

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

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

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

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

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