BigW Consortium Gitlab

commit.scss 2.38 KB
Newer Older
1
.commit-title {
2 3 4
  display: block;
}

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

12
.commit-author strong, .commit-committer strong {
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;
25 26 27 28
}

.commit-info-row {
  margin-bottom: 10px;
Phil Hughes committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

  &.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;
      }
    }
  }

44 45
  .avatar {
    @extend .avatar-inline;
Phil Hughes committed
46 47 48 49 50
    margin-left: 0;

    @media (min-width: $screen-sm-min) {
      margin-left: 4px;
    }
51 52 53
  }
  .commit-committer-link,
  .commit-author-link {
54
    color: $gl-gray;
55 56
    font-weight: bold;
  }
57 58 59 60

  .fa-clipboard {
    color: $dropdown-title-btn-color;
  }
61 62 63 64 65 66

  .commit-info {
    &.branches {
      margin-left: 8px;
    }
  }
67 68 69
}

.commit-box {
70 71
  border-top: 1px solid $border-color;

72 73
  .commit-title {
    margin: 0;
74
    font-size: 23px;
75
    color: $gl-gray-dark;
76 77 78 79 80 81 82 83
  }

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

.file-stats {
84 85 86 87 88 89
  ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;

    li {
90
      padding: 3px 0;
91
      line-height: 20px;
92 93
    }
  }
94 95
  .new-file {
    a {
96
      color: $gl-text-green;
97 98 99
    }
  }
  .renamed-file {
100
    a {
101
      color: $gl-text-orange;
102 103 104 105
    }
  }
  .deleted-file {
    a {
106
      color: $gl-text-red;
107 108
    }
  }
109
  .edit-file {
110 111
    a {
      color: $gl-text-color;
112 113 114 115
    }
  }
}

116 117 118 119 120 121 122 123
.commit-action-buttons {
  i {
    color: $gl-icon-color;
    font-size: 13px;
    margin-right: 3px;
  }
}

124 125 126 127 128 129 130 131 132
/*
 * 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;
133
  overflow: hidden; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
  .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;
  }
  > textarea {
    background-color: rgba(0, 0, 0, 0.0);
    font-family: inherit;
    padding-left: $left;
    position: relative;
    z-index: 2;
  }
}