commit.scss 2.59 KB
Newer Older
1
.commit-title {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2 3 4
  display: block;
}

5
.commit-author, .commit-committer {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6 7 8 9 10 11
  display: block;
  color: #999;
  font-weight: normal;
  font-style: italic;
}

12
.commit-author strong, .commit-committer strong {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
13 14 15 16 17 18 19 20 21 22
  font-weight: bold;
  font-style: normal;
}

.commit-description {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  margin-top: 10px;
23 24
  word-break: normal;
  white-space: pre-wrap;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
25 26 27 28
}

.commit-info-row {
  margin-bottom: 10px;
29 30
  line-height: 24px;
  padding-top: 6px;
Phil Hughes's avatar
Phil Hughes committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

  &.commit-info-row-header {
    line-height: 34px;

    @media (min-width: $screen-sm-min) {
      margin-bottom: 0;
    }

    .commit-options-dropdown-caret {
      @media (max-width: $screen-sm) {
        margin-left: 0;
      }
    }
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
46 47
  .avatar {
    @extend .avatar-inline;
Phil Hughes's avatar
Phil Hughes committed
48 49 50 51 52
    margin-left: 0;

    @media (min-width: $screen-sm-min) {
      margin-left: 4px;
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
53
  }
54

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
55 56
  .commit-committer-link,
  .commit-author-link {
Annabel Dunstone's avatar
Annabel Dunstone committed
57
    color: $gl-gray;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
58 59
    font-weight: bold;
  }
Annabel Dunstone's avatar
Annabel Dunstone committed
60 61 62 63

  .fa-clipboard {
    color: $dropdown-title-btn-color;
  }
Annabel Dunstone's avatar
Annabel Dunstone committed
64 65 66 67 68 69

  .commit-info {
    &.branches {
      margin-left: 8px;
    }
  }
70 71 72 73

  .ci-status-link {

    svg {
74 75 76
      position: relative;
      top: 2px;
      margin: 0 2px 0 3px;
77 78
    }
  }
79
}
Annabel Dunstone's avatar
Annabel Dunstone committed
80

81 82 83
.ci-status-link {
  svg {
    overflow: visible;
Annabel Dunstone's avatar
Annabel Dunstone committed
84
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
85 86 87
}

.commit-box {
88 89
  border-top: 1px solid $border-color;

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
90 91
  .commit-title {
    margin: 0;
92
    font-size: 23px;
Annabel Dunstone's avatar
Annabel Dunstone committed
93
    color: $gl-gray-dark;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
94 95 96 97 98 99 100 101
  }

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

.file-stats {
102 103 104 105 106 107
  ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;

    li {
108
      padding: 3px 0;
109
      line-height: 20px;
110 111
    }
  }
112

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
113 114
  .new-file {
    a {
115
      color: $gl-text-green;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
116 117
    }
  }
118

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
119
  .renamed-file {
120
    a {
121
      color: $gl-text-orange;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
122 123
    }
  }
124

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
125 126
  .deleted-file {
    a {
127
      color: $gl-text-red;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
128 129
    }
  }
130

131
  .edit-file {
132 133
    a {
      color: $gl-text-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
134 135 136 137
    }
  }
}

Annabel Dunstone's avatar
Annabel Dunstone committed
138 139 140 141 142 143 144 145
.commit-action-buttons {
  i {
    color: $gl-icon-color;
    font-size: 13px;
    margin-right: 3px;
  }
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
146 147 148 149 150 151 152 153 154
/*
 * 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;
155
  overflow: hidden; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
156 157 158 159 160 161 162 163 164 165
  .max-width-marker {
    width: 72ch;
    color: rgba(0, 0, 0, 0.0);
    font-family: inherit;
    left: $left;
    height: 100%;
    border-right: 1px solid mix($input-border, white);
    position: absolute;
    z-index: 1;
  }
166

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
167 168 169 170 171 172 173 174
  > textarea {
    background-color: rgba(0, 0, 0, 0.0);
    font-family: inherit;
    padding-left: $left;
    position: relative;
    z-index: 2;
  }
}