commit.scss 1.6 KB
Newer Older
D
Dmitriy Zaporozhets 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
.commit-title{
  display: block;
}

.commit-author, .commit-committer{
  display: block;
  color: #999;
  font-weight: normal;
  font-style: italic;
}

.commit-author strong, .commit-committer strong{
  font-weight: bold;
  font-style: normal;
}

.commit-description {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  margin-top: 10px;
}

.commit-info-row {
  margin-bottom: 10px;
  .avatar {
    @extend .avatar-inline;
  }
  .commit-committer-link,
  .commit-author-link {
    color: #444;
    font-weight: bold;
  }
}

.commit-box {
  .commit-title {
    margin: 0;
40 41
    font-size: 23px;
    color: #313236;
D
Dmitriy Zaporozhets 已提交
42 43 44 45 46 47 48 49
  }

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

.file-stats {
50 51 52 53 54 55 56
  ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;

    li {
      padding: 3px 0px;
57
      line-height: 20px;
58 59
    }
  }
D
Dmitriy Zaporozhets 已提交
60 61
  .new-file {
    a {
D
Dmitriy Zaporozhets 已提交
62
      color: $gl-text-green;
D
Dmitriy Zaporozhets 已提交
63 64 65
    }
  }
  .renamed-file {
66
    a {
D
Dmitriy Zaporozhets 已提交
67
      color: $gl-text-orange;
D
Dmitriy Zaporozhets 已提交
68 69 70 71
    }
  }
  .deleted-file {
    a {
D
Dmitriy Zaporozhets 已提交
72
      color: $gl-text-red;
D
Dmitriy Zaporozhets 已提交
73 74 75
    }
  }
  .edit-file{
76 77
    a {
      color: $gl-text-color;
D
Dmitriy Zaporozhets 已提交
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
    }
  }
}

/*
 * 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;
  .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;
  }
}