commits.scss 2.8 KB
Newer Older
1
.commits-compare-switch {
D
Dmitriy Zaporozhets 已提交
2 3
  @include btn-default;
  @include btn-white;
4
  background: image-url("switch_icon.png") no-repeat center center;
5
  text-indent: -9999px;
D
Dmitriy Zaporozhets 已提交
6 7 8
  float: left;
  margin-right: 9px;
}
9

D
Dmitriy Zaporozhets 已提交
10 11
.lists-separator {
  margin: 10px 0;
12
  border-color: #ddd;
D
Dmitriy Zaporozhets 已提交
13 14
}

D
Dmitriy Zaporozhets 已提交
15 16 17
.commits-row {
  ul {
    margin: 0;
18

D
Dmitriy Zaporozhets 已提交
19 20
    li.commit {
      padding: 8px 0;
D
Dmitriy Zaporozhets 已提交
21 22
    }
  }
D
Dmitriy Zaporozhets 已提交
23

D
Dmitriy Zaporozhets 已提交
24 25 26 27
  .commits-row-date {
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 5px;
D
Dmitriy Zaporozhets 已提交
28
  }
29
}
D
Dmitriy Zaporozhets 已提交
30

31
li.commit {
32 33
  list-style: none;

34 35 36 37 38
  .commit-row-title {
    font-size: $list-font-size;
    line-height: 20px;
    margin-bottom: 2px;

39 40 41 42
    .btn-clipboard {
      margin-top: -1px;
    }

43 44 45 46 47 48 49
    .notes_count {
      float: right;
      margin-right: 10px;
    }

    .commit_short_id {
      min-width: 65px;
50
      color: $gl-dark-link-color;
51 52 53 54 55 56 57 58
      font-family: $monospace_font;
    }

    .str-truncated {
      max-width: 70%;
    }

    .commit-row-message {
D
Dmitriy Zaporozhets 已提交
59
      color: $gl-dark-link-color;
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79

      &:hover {
        text-decoration: underline;
      }
    }

    .text-expander {
      background: #eee;
      color: #555;
      padding: 0 5px;
      cursor: pointer;
      margin-left: 4px;
      &:hover {
        background-color: #ddd;
      }
    }
  }

  .commit-row-description {
    font-size: 14px;
80
    border-left: 1px solid #eee;
81 82 83 84 85 86 87 88 89 90 91
    padding: 10px 15px;
    margin: 5px 0 10px 5px;
    background: #f9f9f9;
    display: none;

    pre {
      border: none;
      background: inherit;
      padding: 0;
      margin: 0;
    }
P
Phil Hughes 已提交
92 93 94 95

    a {
      color: $gl-dark-link-color;
    }
96 97 98
  }

  .commit-row-info {
99
    color: $gl-gray;
100 101 102
    line-height: 24px;

    a {
103
      color: $gl-gray;
104 105
    }

106 107 108 109
    .avatar {
      margin-right: 8px;
    }

110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    .committed_ago {
      display: inline-block;
    }
  }

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

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

127 128 129 130 131 132
.branch-commit {
  color: $gl-gray;
  .commit-id, .commit-row-message {
    color: $gl-gray;
  }
}
133

134 135 136
.divergence-graph {
  padding: 12px 12px 0 0;
  float: right;
137

138 139 140 141 142 143
  .graph-side {
    position: relative;
    width: 80px;
    height: 22px;
    padding: 5px 0 13px;
    float: left;
144

145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
    .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;
    }
160

161 162
    .count {
      padding-top: 6px;
163
      padding-bottom: 0;
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
      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;
  }
}