commits.scss 3.4 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;
11
  border-top: 1px solid #eee;
P
Phil Hughes 已提交
12
  border-bottom: 1px solid #eee;
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 41 42 43 44 45 46 47 48 49 50 51
}

.text-expander {
  display: inline-block;
  background: $gray-light;
  color: $gl-placeholder-color;
  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 65 66
  .ci-status-link {
    display: inline-block;
  }

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

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

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

P
Phil Hughes 已提交
85
.commit {
P
Phil Hughes 已提交
86
  padding: 10px 0;
87
  position: relative;
88

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

P
Phil Hughes 已提交
93 94 95
  &:not(:last-child) {
    border-bottom: 1px solid #eee;
  }
96

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

103

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

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

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

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

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

    a {
      color: $gl-dark-link-color;
    }
137 138 139
  }

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

    a {
144
      color: $gl-gray;
145 146
    }

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

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

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

164 165
.branch-commit {
  color: $gl-gray;
166

167 168
  .commit-id,
  .commit-row-message {
169 170 171
    color: $gl-gray;
  }
}
172

173 174 175
.divergence-graph {
  padding: 12px 12px 0 0;
  float: right;
176

177 178 179 180 181 182
  .graph-side {
    position: relative;
    width: 80px;
    height: 22px;
    padding: 5px 0 13px;
    float: left;
183

184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
    .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;
    }
199

200 201
    .count {
      padding-top: 6px;
202
      padding-bottom: 0;
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
      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;
  }
}