commits.scss 3.7 KB
Newer Older
1
.commits-compare-switch {
D
Dmitriy Zaporozhets 已提交
2 3
  @include btn-default;
  @include btn-white;
D
Dmitriy Zaporozhets 已提交
4 5 6
  float: left;
  margin-right: 9px;
}
7

P
Phil Hughes 已提交
8 9 10
.commit-header {
  padding: 5px 10px;
  background-color: $background-color;
S
Sam Rose 已提交
11 12
  border-top: 1px solid $gray-darker;
  border-bottom: 1px solid $gray-darker;
P
Phil Hughes 已提交
13 14 15 16 17
  font-size: 14px;

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

P
Phil Hughes 已提交
20
.commit-row-title {
21
  line-height: 1.35;
22

P
Phil Hughes 已提交
23 24 25
  .notes_count {
    float: right;
    margin-right: 10px;
D
Dmitriy Zaporozhets 已提交
26
  }
D
Dmitriy Zaporozhets 已提交
27

P
Phil Hughes 已提交
28 29
  .str-truncated {
    max-width: 70%;
D
Dmitriy Zaporozhets 已提交
30
  }
31

P
Phil Hughes 已提交
32 33
  .commit-row-message {
    color: $gl-dark-link-color;
D
Dmitriy Zaporozhets 已提交
34
  }
D
Dmitriy Zaporozhets 已提交
35

36 37 38 39 40
}

.text-expander {
  display: inline-block;
  background: $gray-light;
41
  color: $gl-gray-light;
42 43 44 45 46 47 48 49 50 51
  padding: 0 5px;
  cursor: pointer;
  border: 1px solid $border-gray-dark;
  border-radius: $border-radius-default;
  margin-left: 5px;
  line-height: 1;

  &:hover {
    background-color: darken($gray-light, 10%);
    text-decoration: none;
D
Dmitriy Zaporozhets 已提交
52
  }
53
}
D
Dmitriy Zaporozhets 已提交
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;
59 60 61
    margin-top: 2px;
    font-size: 0;
  }
62

A
Annabel Dunstone 已提交
63 64
  .ci-status-link {
    display: inline-block;
65 66
    position: relative;
    top: 1px;
A
Annabel Dunstone 已提交
67 68
  }

69 70
  .btn-clipboard,
  .btn-transparent {
71 72 73
    padding-left: 0;
    padding-right: 0;
  }
74

75 76 77
  .btn {
    &:not(:first-child) {
      margin-left: $gl-padding;
78
    }
P
Phil Hughes 已提交
79 80
  }
}
81

P
Phil Hughes 已提交
82 83 84 85
.commit-short-id {
  font-family: $monospace_font;
  font-weight: 600;
}
86

87 88
.commit,
.generic_commit_status {
P
Phil Hughes 已提交
89
  padding: 10px 0;
90
  position: relative;
91

P
Phil Hughes 已提交
92
  @media (min-width: $screen-sm-min) {
P
Phil Hughes 已提交
93
    padding-left: 46px;
P
Phil Hughes 已提交
94
  }
95

P
Phil Hughes 已提交
96
  &:not(:last-child) {
S
Sam Rose 已提交
97
    border-bottom: 1px solid $gray-darker;
P
Phil Hughes 已提交
98
  }
99

P
Phil Hughes 已提交
100 101
  a,
  button {
P
Phil Hughes 已提交
102
    color: $gl-dark-link-color;
P
Phil Hughes 已提交
103
    vertical-align: baseline;
P
Phil Hughes 已提交
104
  }
105

P
Phil Hughes 已提交
106
  .avatar {
P
Phil Hughes 已提交
107
    margin-left: -46px;
108 109
  }

P
Phil Hughes 已提交
110 111
  .item-title {
    display: inline-block;
P
Phil Hughes 已提交
112 113 114 115

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

118 119
  .commit-row-description {
    font-size: 14px;
120
    border-left: 1px solid $btn-gray-hover;
121
    padding: 10px 15px;
P
Phil Hughes 已提交
122
    margin: 10px 0;
123
    background: $gray-light;
124
    display: none;
A
Annabel Dunstone 已提交
125 126
    white-space: pre-line;
    word-break: normal;
127 128 129 130 131 132

    pre {
      border: none;
      background: inherit;
      padding: 0;
      margin: 0;
133
      white-space: pre-wrap;
134
    }
P
Phil Hughes 已提交
135 136 137 138

    a {
      color: $gl-dark-link-color;
    }
139 140 141
  }

  .commit-row-info {
142
    color: $gl-gray;
143
    line-height: 1.35;
144 145

    a {
146
      color: $gl-gray;
147 148
    }

149 150 151
    .avatar {
      margin-right: 8px;
    }
152 153 154 155 156 157 158 159 160 161 162 163 164
  }

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

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

166 167
.branch-commit {
  color: $gl-gray;
168

169 170 171 172 173 174 175 176
  .commit-icon {
    text-align: center;
    display: inline-block;

    svg {
      height: 14px;
      width: 14px;
      vertical-align: middle;
177
      fill: $gl-gray-light;
178 179 180
    }
  }

D
Dimitrie Hoekstra 已提交
181
  .commit-id {
182 183 184
    color: $gl-link-color;
  }

185
  .commit-row-message {
186 187 188
    color: $gl-gray;
  }
}
189

190 191 192
.divergence-graph {
  padding: 12px 12px 0 0;
  float: right;
193

194 195 196 197 198 199
  .graph-side {
    position: relative;
    width: 80px;
    height: 22px;
    padding: 5px 0 13px;
    float: left;
200

201 202 203
    .bar {
      position: absolute;
      height: 4px;
S
Sam Rose 已提交
204
      background-color: $divergence-graph-bar-bg;
205 206 207 208 209 210 211 212 213 214 215
    }

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

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

217 218
    .count {
      padding-top: 6px;
219
      padding-bottom: 0;
220
      font-size: 12px;
S
Sam Rose 已提交
221
      color: $gl-title-color;
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
      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;
S
Sam Rose 已提交
242
    background-color: $divergence-graph-separator-bg;
243 244
  }
}