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

15
.diff_file {
16
  border: 1px solid #CCC;
17
  margin-bottom: 1em;
18 19

  .diff_file_header {
20 21 22
    @extend .clearfix;
    padding: 5px 5px 5px 10px;
    color: #555;
23
    border-bottom: 1px solid #CCC;
24
    background: #eee;
25
    // TODO Replace with linear-gradient mixin
26 27 28 29 30
    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);

31 32
    > span {
      font-family: $monospace;
33
      font-size: 14px;
34 35
      line-height: 30px;
    }
36

37 38 39
    a.view-commit{
      font-weight: bold;
    }
40

41 42 43 44
    .commit-short-id{
      font-family: $monospace;
      font-size: smaller;
    }
45

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

68 69
    table {
      td {
70
        line-height: 18px;
71 72
      }
    }
73 74
  }
  .diff_file_content_image {
75
    background: #eee;
76
    text-align: center;
77 78
    .image {
      display: inline-block;
79 80
      margin: 50px;
      max-width: 400px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
81

Koen Punt's avatar
Koen Punt committed
82 83 84 85
      img{
        background: url('trans_bg.gif');
      }

86 87 88 89
      &.diff_removed {
        img{
          border: 1px solid #C00;
        }
90 91
      }

92 93 94 95 96
      &.diff_added {
        img{
          border: 1px solid #0C0;
        }
      }
97

98 99
      .image-info{
        margin: 5px 0 0 0;
100 101
      }
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
102

103
    &.img_compared {
104
      .image {
105
        max-width: 300px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
106 107
      }
    }
108 109 110 111
  }
}

.diff_file_content{
112
  table {
113 114 115
    border: none;
    margin: 0px;
    padding: 0px;
116
    tr {
117
      td {
118
        font-size: 12px;
119 120 121 122
      }
    }
  }
  .old_line, .new_line {
123 124 125
    margin: 0px;
    padding: 0px;
    border: none;
126 127
    background: #EEE;
    color: #666;
128 129
    padding: 0px 5px;
    border-right: 1px solid #ccc;
130 131 132 133
    text-align: right;
    min-width: 35px;
    max-width: 35px;
    width: 35px;
134 135 136
    moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
137
    a {
138 139 140
      float: left;
      width: 35px;
      font-weight: normal;
141
      color: #666;
142
      &:hover {
143
        text-decoration: underline;
144 145 146
      }
    }
  }
147
  .line_content {
148 149 150 151 152
    white-space: pre;
    height: 14px;
    margin: 0px;
    padding: 0px;
    border: none;
153
    &.new {
154 155
      background: #CFD;
    }
156
    &.old {
157 158
      background: #FDD;
    }
159
    &.matched {
160 161
      color: #ccc;
      background: #fafafa;
162 163 164 165 166 167 168 169 170 171
    }
  }
}

/** 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;}

randx's avatar
randx committed
172 173

/** COMMIT ROW **/
174 175
.commit {
  .browse_code_link_holder {
randx's avatar
randx committed
176
    @extend .span2;
177
    float: right;
randx's avatar
randx committed
178 179
  }

180
  .committed_ago {
181
    float: right;
randx's avatar
randx committed
182 183
    @extend .cgray;
  }
184

185
  .notes_count {
186
    float: right;
187 188 189
    margin: -6px 8px 6px;
  }

190
  code {
191
    background: #FCEEC1;
192
    color: $style_color;
193
  }
194

195
  .commit_short_id {
196
    float: left;
197
    @extend .lined;
198
    min-width: 65px;
199
    font-family: $monospace;
200
  }
randx's avatar
randx committed
201
}
202 203

.diff_file_header a,
204 205
.file-stats a {
  color: $style_color;
206
}
207

208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
.file-stats {
  .new-file{
    i{
      color: #1BCF00;
    }
  }
  .renamed-file{
    i{
      color: #FE9300;
    }
  }
  .deleted-file{
    i{
      color: #FF0000;
    }
  }
  .edit-file{
    i{
      color: #555;
227 228 229
    }
  }
}
230 231

.label_commit {
232
  @include border-radius(4px);
233
  padding: 2px 4px;
234
  font-size: 13px;
235
  background: #474D57;
236
  color: #fff;
237
  font-family: $monospace;
238
}
239 240 241


.commits-compare-switch{
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
242
  background: url("switch_icon.png") no-repeat center center;
243 244 245
  width: 16px;
  height: 18px;
  text-indent: -9999px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
246 247 248 249 250 251 252
  float: left;
  margin-right: 9px;
  border: 1px solid #DDD;
  @include border-radius(4px);
  padding: 4px;
  background-color: #EEE;
}