commits.scss 4.3 KB
Newer Older
A
Annabel Dunstone Gray 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
.commit-description {
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  word-break: normal;
  white-space: pre-wrap;
}

.js-details-expand {
  &:hover {
    text-decoration: none;
  }
}

.commit-box {
  border-top: 1px solid $border-color;
  padding: $gl-padding 0;

  .commit-title {
    margin: 0;
T
tauriedavis 已提交
22
    color: $gl-text-color;
A
Annabel Dunstone Gray 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  }

  .commit-description {
    margin-top: 15px;
  }
}

.commit-hash-full {
  @media (max-width: $screen-sm-max) {
    width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
  }
}

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
.pipeline-info {
  .status-icon-container {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;

    svg {
      display: block;
      width: 22px;
      height: 22px;
    }
  }

  .mr-widget-pipeline-graph {
    display: inline-block;
    vertical-align: middle;
    margin: 0 -6px 0 0;

    .dropdown-menu {
      margin-top: 11px;
    }
  }
}

.branch-info .commit-icon {
  margin-right: 3px;

  svg {
    top: 3px;
  }
}

A
Annabel Dunstone Gray 已提交
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
/*
 * Commit message textarea for web editor and
 * custom merge request message
 */
.commit-message-container {
  background-color: $body-bg;
  position: relative;
  font-family: $monospace_font;
  $left: 12px;
  overflow: hidden; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
  .max-width-marker {
    width: 72ch;
    color: $commit-max-width-marker-color;
    font-family: inherit;
    left: $left;
    height: 100%;
    border-right: 1px solid mix($input-border, $white-light);
    position: absolute;
    z-index: 1;
  }

94
  textarea {
A
Annabel Dunstone Gray 已提交
95 96 97 98 99 100 101 102 103
    background-color: $commit-message-text-area-bg;
    font-family: inherit;
    padding-left: $left;
    position: relative;
    z-index: 2;
  }
}


104
.commits-compare-switch {
D
Dmitriy Zaporozhets 已提交
105 106 107
  float: left;
  margin-right: 9px;
}
108

P
Phil Hughes 已提交
109 110
.commit-header {
  padding: 5px 10px;
A
Annabel Dunstone Gray 已提交
111
  background-color: $gray-light;
S
Sam Rose 已提交
112
  border-bottom: 1px solid $gray-darker;
S
Simon Knox 已提交
113
  border-top: 1px solid $gray-darker;
P
Phil Hughes 已提交
114 115 116 117 118
  font-size: 14px;

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

P
Phil Hughes 已提交
121 122 123 124
.commit-row-title {
  .notes_count {
    float: right;
    margin-right: 10px;
D
Dmitriy Zaporozhets 已提交
125
  }
D
Dmitriy Zaporozhets 已提交
126

P
Phil Hughes 已提交
127 128
  .str-truncated {
    max-width: 70%;
D
Dmitriy Zaporozhets 已提交
129
  }
130

P
Phil Hughes 已提交
131
  .commit-row-message {
T
tauriedavis 已提交
132
    color: $gl-text-color;
D
Dmitriy Zaporozhets 已提交
133
  }
134 135 136 137 138
}

.text-expander {
  display: inline-block;
  background: $gray-light;
T
tauriedavis 已提交
139
  color: $gl-text-color-secondary;
140 141 142 143 144 145 146 147 148 149
  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 已提交
150
  }
151
}
D
Dmitriy Zaporozhets 已提交
152

S
Simon Knox 已提交
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
.commit.flex-list {
  display: flex;
}

.avatar-cell {
  width: 46px;
  padding-left: 10px;

  img {
    margin-right: 0;
  }
}

.commit-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-grow: 1;
  padding-left: 10px;

  .merge-request-branches & {
    flex-direction: column;
  }
}

.commit-content {
  padding-right: 10px;
}

P
Phil Hughes 已提交
182
.commit-actions {
P
Phil Hughes 已提交
183
  @media (min-width: $screen-sm-min) {
184 185
    font-size: 0;
  }
186

A
Annabel Dunstone 已提交
187 188
  .ci-status-link {
    display: inline-block;
189 190
    position: relative;
    top: 1px;
A
Annabel Dunstone 已提交
191 192
  }

193 194
  .btn-clipboard,
  .btn-transparent {
195 196 197
    padding-left: 0;
    padding-right: 0;
  }
198

199 200 201
  .btn {
    &:not(:first-child) {
      margin-left: $gl-padding;
202
    }
P
Phil Hughes 已提交
203 204
  }
}
205

P
Phil Hughes 已提交
206 207 208 209
.commit-short-id {
  font-family: $monospace_font;
  font-weight: 600;
}
210

211 212
.commit,
.generic_commit_status {
213

P
Phil Hughes 已提交
214 215
  a,
  button {
T
tauriedavis 已提交
216
    color: $gl-text-color;
P
Phil Hughes 已提交
217
    vertical-align: baseline;
P
Phil Hughes 已提交
218
  }
219 220 221 222

  .commit-row-description {
    font-size: 14px;
    padding: 10px 15px;
P
Phil Hughes 已提交
223
    margin: 10px 0;
224
    background: $gray-light;
225
    display: none;
A
Annabel Dunstone 已提交
226 227
    white-space: pre-line;
    word-break: normal;
228 229 230 231 232 233

    pre {
      border: none;
      background: inherit;
      padding: 0;
      margin: 0;
234
      white-space: pre-wrap;
235
    }
P
Phil Hughes 已提交
236 237

    a {
T
tauriedavis 已提交
238
      color: $gl-text-color;
P
Phil Hughes 已提交
239
    }
240 241 242 243 244 245 246 247 248 249 250 251 252
  }

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

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

254
.branch-commit {
T
tauriedavis 已提交
255
  color: $gl-text-color;
256

257 258 259 260 261 262 263 264
  .commit-icon {
    text-align: center;
    display: inline-block;

    svg {
      height: 14px;
      width: 14px;
      vertical-align: middle;
T
tauriedavis 已提交
265
      fill: $gl-text-color-secondary;
266 267 268
    }
  }

D
Dimitrie Hoekstra 已提交
269
  .commit-id {
270 271 272
    color: $gl-link-color;
  }

273
  .commit-row-message {
T
tauriedavis 已提交
274
    color: $gl-text-color;
275 276
  }
}