commits.scss 7.86 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 19 20
    @extend .clearfix;
    padding: 5px 5px 5px 10px;
    color: #555;
21
    border-bottom: 1px solid #CCC;
22
    background: #eee;
23
    // TODO Replace with linear-gradient mixin
24 25 26 27 28
    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);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);

29 30 31 32
    a{
      color: $style_color;
    }
    
33
    > span {
34
      font-family: $monospace_font;
35
      font-size: 14px;
36 37
      line-height: 30px;
    }
38

39
    a.view-file{
40 41
      font-weight: bold;
    }
42

43
    .commit-short-id{
44
      font-family: $monospace_font;
45 46
      font-size: smaller;
    }
47

48
    .file-mode{
49
      font-family: $monospace_font;
50 51
    }
  }
52
  .content {
53 54
    overflow: auto;
    overflow-y: hidden;
55
    background: #FFF;
56
    color: #333;
57
    font-size: 12px;
58 59
    .old{
      span.idiff{
60
        background-color: #FAA;
61 62 63 64
      }
    }
    .new{
      span.idiff{
65
        background-color: #AFA;
66 67 68
      }
    }

69
    table {
70 71 72 73
      font-family: $monospace_font;
      border: none;
      margin: 0px;
      padding: 0px;
74
      td {
75
        line-height: 18px;
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
        font-size: 12px;
      }
    }
    .old_line, .new_line {
      margin: 0px;
      padding: 0px;
      border: none;
      background: #EEE;
      color: #666;
      padding: 0px 5px;
      border-right: 1px solid #ccc;
      text-align: right;
      min-width: 35px;
      max-width: 35px;
      width: 35px;
      @include user-select(none);
      a {
        float: left;
        width: 35px;
        font-weight: normal;
        color: #666;
        &: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;
117 118
      }
    }
119
  }
120 121
  .image {
    background: #ddd;
122
    text-align: center;
123 124
    padding: 30px;
    .wrap{
125
      display: inline-block;
126 127 128 129 130 131
    }
    
    .frame {
      display: inline-block;
      background-color: #fff;
      line-height: 0;
Koen Punt's avatar
Koen Punt committed
132
      img{
133
        border: 1px solid #FFF;
Koen Punt's avatar
Koen Punt committed
134 135
        background: url('trans_bg.gif');
      }
136 137 138
      &.deleted {
        border: 1px solid $deleted;
      }
Koen Punt's avatar
Koen Punt committed
139

140 141
      &.added {
        border: 1px solid $added;
142
      }
143 144 145 146 147 148
    }
    .image-info{
      font-size: 12px;
      margin: 5px 0 0 0;
      color: grey;
    }
149

150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
    .view.swipe{
      position: relative;
      
      .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;
175 176
        }
      }
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
      .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;
        }
208
      }
209 210 211 212 213 214
    } //.view.swipe
    .view.onion-skin{
      .onion-skin-frame{
        display: block;
        margin: auto;
        position: relative;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
215
      }
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
      .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;
        
        .drag-track{
          display: block;
          position: absolute;
          left: 12px;
          height: 10px;
          width: 276px;
          background: url('onion_skin_sprites.gif') -4px -20px repeat-x;
        }
        
        .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;
        }
        
        .transparent {
          display: block;
          position: absolute;
          top: 2px;
          right: 0px;
          height: 10px;
          width: 10px;
          background: url('onion_skin_sprites.gif') -2px 0px no-repeat;
        }
        
        .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
273
  }
274
  .view-modes{
275

276 277 278 279 280 281 282 283 284 285 286 287 288
    padding: 10px;
    text-align: center;
    
    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);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
    
    ul, li{
      list-style: none;
      margin: 0;
      padding: 0;
      display: inline-block;
289
    }
290 291 292 293 294 295 296 297 298 299
    
    li{
      color: grey;
      border-left: 1px solid #c1c1c1;
      padding: 0 12px 0 16px;
      cursor: pointer;
      &:first-child{
        border-left: none;
      }
      &:hover{
300
        text-decoration: underline;
301
      }
302 303 304 305 306 307 308 309 310 311
      &.active{
        &:hover{
          text-decoration: none;
        }
        cursor: default;
        color: #333;
      }
      &.disabled{
        display: none;
      }
312 313 314 315 316
    }
  }
}

/** COMMIT BLOCK **/
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
.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;
}
333

randx's avatar
randx committed
334

335 336 337
/**
 * COMMIT ROW
 */
338 339
.commit {
  .browse_code_link_holder {
randx's avatar
randx committed
340
    @extend .span2;
341
    float: right;
randx's avatar
randx committed
342 343
  }

344
  .committed_ago {
345
    float: right;
randx's avatar
randx committed
346 347
    @extend .cgray;
  }
348

349
  .notes_count {
350
    float: right;
351 352 353
    margin: -6px 8px 6px;
  }

354
  code {
355
    background: #FCEEC1;
356
    color: $style_color;
357
  }
358

359
  .commit_short_id {
360
    float: left;
361
    @extend .lined;
362
    min-width: 65px;
363
    font-family: $monospace_font;
364
  }
randx's avatar
randx committed
365
}
366

367 368
.file-stats a {
  color: $style_color;
369
}
370

371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
.file-stats {
  .new-file{
    i{
      color: #1BCF00;
    }
  }
  .renamed-file{
    i{
      color: #FE9300;
    }
  }
  .deleted-file{
    i{
      color: #FF0000;
    }
  }
  .edit-file{
    i{
      color: #555;
390 391 392
    }
  }
}
393 394

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


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