commits.scss 3.1 KB
Newer Older
1
.commits-compare-switch {
D
Dmitriy Zaporozhets 已提交
2 3
  @include btn-default;
  @include btn-white;
4
  background: image-url("switch_icon.png") no-repeat center center;
5
  text-indent: -9999px;
D
Dmitriy Zaporozhets 已提交
6 7 8
  float: left;
  margin-right: 9px;
}
9

P
Phil Hughes 已提交
10 11 12
.commit-header {
  padding: 5px 10px;
  background-color: $background-color;
P
Phil Hughes 已提交
13 14
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid #eee;
P
Phil Hughes 已提交
15 16 17 18 19
  font-size: 14px;

  &:first-child {
    border-top-width: 0;
  }
D
Dmitriy Zaporozhets 已提交
20 21
}

P
Phil Hughes 已提交
22
.commit-row-title {
23
  line-height: 1;
24
  margin-bottom: 5px;
25

P
Phil Hughes 已提交
26 27 28
  .notes_count {
    float: right;
    margin-right: 10px;
D
Dmitriy Zaporozhets 已提交
29
  }
D
Dmitriy Zaporozhets 已提交
30

P
Phil Hughes 已提交
31 32
  .str-truncated {
    max-width: 70%;
D
Dmitriy Zaporozhets 已提交
33
  }
34

P
Phil Hughes 已提交
35 36 37
  .commit-row-message {
    color: $gl-dark-link-color;
  }
38

P
Phil Hughes 已提交
39
  .text-expander {
P
Phil Hughes 已提交
40 41
    background: $gray-light;
    color: $gl-gray-dark;
P
Phil Hughes 已提交
42 43
    padding: 0 5px;
    cursor: pointer;
P
Phil Hughes 已提交
44 45 46 47
    border: 1px solid $border-gray-dark;
    border-radius: $border-radius-default;
    margin-left: 5px;

P
Phil Hughes 已提交
48
    &:hover {
P
Phil Hughes 已提交
49 50
      background-color: darken($gray-light, 10%);
      text-decoration: none;
51
    }
P
Phil Hughes 已提交
52 53
  }
}
54

P
Phil Hughes 已提交
55
.commit-actions {
P
Phil Hughes 已提交
56
  @media (min-width: $screen-sm-min) {
P
Phil Hughes 已提交
57
    float: right;
P
Phil Hughes 已提交
58
    margin-left: $gl-padding;
P
Phil Hughes 已提交
59 60
  }
}
61

P
Phil Hughes 已提交
62 63 64 65
.commit-short-id {
  font-family: $monospace_font;
  font-weight: 600;
}
66

P
Phil Hughes 已提交
67
.commit {
P
Phil Hughes 已提交
68
  padding: 10px 0;
P
Phil Hughes 已提交
69 70 71 72

  @media (min-width: $screen-sm-min) {
    padding-left: 55px;
  }
73

P
Phil Hughes 已提交
74 75 76 77
  &:not(:last-child) {
    border-bottom: 1px solid #eee;
  }

P
Phil Hughes 已提交
78 79
  a,
  button {
P
Phil Hughes 已提交
80
    color: $gl-dark-link-color;
P
Phil Hughes 已提交
81
    vertical-align: baseline;
P
Phil Hughes 已提交
82
  }
83

P
Phil Hughes 已提交
84 85 86 87
  .avatar {
    margin-left: -55px;
  }

P
Phil Hughes 已提交
88 89
  .item-title {
    display: inline-block;
P
Phil Hughes 已提交
90 91 92 93

    @media (min-width: $screen-sm-min) {
      max-width: 70%;
    }
P
Phil Hughes 已提交
94 95
  }

96 97
  .commit-row-description {
    font-size: 14px;
98
    border-left: 1px solid #eee;
99
    padding: 10px 15px;
P
Phil Hughes 已提交
100
    margin: 10px 0;
101 102 103 104 105 106 107 108 109
    background: #f9f9f9;
    display: none;

    pre {
      border: none;
      background: inherit;
      padding: 0;
      margin: 0;
    }
P
Phil Hughes 已提交
110 111 112 113

    a {
      color: $gl-dark-link-color;
    }
114 115 116
  }

  .commit-row-info {
117
    color: $gl-gray;
118
    line-height: 1;
119 120

    a {
121
      color: $gl-gray;
122 123
    }

124 125 126
    .avatar {
      margin-right: 8px;
    }
127 128 129 130 131 132 133 134 135 136 137 138 139
  }

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

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

141 142 143 144 145 146
.branch-commit {
  color: $gl-gray;
  .commit-id, .commit-row-message {
    color: $gl-gray;
  }
}
147

148 149 150
.divergence-graph {
  padding: 12px 12px 0 0;
  float: right;
151

152 153 154 155 156 157
  .graph-side {
    position: relative;
    width: 80px;
    height: 22px;
    padding: 5px 0 13px;
    float: left;
158

159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
    .bar {
      position: absolute;
      height: 4px;
      background-color: #ccc;
    }

    .bar-behind {
      right: 0;
      border-radius: 3px 0 0 3px;
    }

    .bar-ahead {
      left: 0;
      border-radius: 0 3px 3px 0;
    }
174

175 176
    .count {
      padding-top: 6px;
177
      padding-bottom: 0;
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
      font-size: 12px;
      color: #333;
      display: block;
    }

    .count-behind {
      padding-right: 4px;
      text-align: right;
    }

    .count-ahead {
      padding-left: 4px;
      text-align: left;
    }
  }

  .graph-separator {
    position: relative;
    width: 1px;
    height: 18px;
    margin: 5px 0 0;
    float: left;
    background-color: #ccc;
  }
}