events.scss 2.8 KB
Newer Older
1 2 3 4 5
/**
 * Dashboard events feed
 *
 */
.event-item {
6
  font-size: $gl-font-size;
7 8 9
  padding: $gl-padding;
  margin-left: -$gl-padding;
  margin-right: -$gl-padding;
D
Douwe Maan 已提交
10
  border-bottom: 1px solid $table-border-color;
11
  color: #7f8fa4;
12

13 14
  &.event-inline {
    .avatar {
15 16
      position: relative;
      top: -2px;
17
    }
18 19 20 21 22 23 24 25

    .event-title {
      line-height: 44px;
    }

    .event-item-timestamp {
      line-height: 44px;
    }
26 27
  }

28 29 30 31 32 33 34 35
  a {
    color: #4c4e54;
  }

  .avatar {
    margin-right: 15px;
  }

36
  .event-title {
37
    @include str-truncated(calc(100% - 174px));
38
    font-weight: 600;
39

40
    .author_name {
41
      color: #333;
42 43
    }
  }
44

45
  .event-body {
46
    margin-left: 63px;
47
    margin-right: 80px;
D
Dmitriy Zaporozhets 已提交
48

D
Dmitriy Zaporozhets 已提交
49
    .event-note {
50
      margin-top: 5px;
51
      word-wrap: break-word;
52

53
      .md {
54 55
        color: #7f8fa4;
        font-size: $gl-font-size;
56 57 58 59

        iframe.twitter-share-button {
          vertical-align: bottom;
        }
60 61
      }

62 63 64 65
      pre {
        border: none;
        background: #f9f9f9;
        border-radius: 0;
66
        color: #777;
67
        margin: 0 20px;
68
        overflow: hidden;
69 70
      }

D
Dmitriy Zaporozhets 已提交
71 72 73 74
      .note-image-attach {
        margin-top: 4px;
        margin-left: 0px;
        max-width: 200px;
75
        float: none;
76
      }
77 78 79 80

      p:last-child {
        margin-bottom: 0;
      }
R
Riyad Preukschas 已提交
81 82
    }
    .event-note-icon {
D
Dmitriy Zaporozhets 已提交
83
      color: #777;
R
Riyad Preukschas 已提交
84
      float: left;
85
      font-size: $gl-font-size;
86 87
      line-height: 16px;
      margin-right: 5px;
D
Dmitriy Zaporozhets 已提交
88
    }
89 90
  }
  .event_icon {
91
    position: relative;
92 93 94 95 96
    float: right;
    border: 1px solid #EEE;
    padding: 5px;
    @include border-radius(5px);
    background: #F9F9F9;
97 98
    margin-left: 10px;
    top: -6px;
99
    img {
100
      width: 20px;
101 102
    }
  }
103

104 105 106
  &:last-child { border:none }

  .event_commits {
107
    margin-top: 9px;
108

D
Dmitriy Zaporozhets 已提交
109 110 111
    li {
      &.commit {
        background: transparent;
112
        padding: 3px;
113
        padding-left: 0;
114
        border: none;
D
Dmitriy Zaporozhets 已提交
115
        .commit-row-title {
116
          font-size: $gl-font-size;
D
Dmitriy Zaporozhets 已提交
117
        }
D
Dmitriy Zaporozhets 已提交
118
      }
119

D
Dmitriy Zaporozhets 已提交
120
      &.commits-stat {
121
        margin-top: 3px;
D
Dmitriy Zaporozhets 已提交
122
        display: block;
123
        padding: 3px;
124
        padding-left: 0;
125 126 127 128

        &:hover {
          background: none;
        }
D
Dmitriy Zaporozhets 已提交
129
      }
130 131
    }
  }
132 133 134 135 136

  .event-item-timestamp {
    float: right;
    line-height: 22px;
  }
137 138
}

D
Dmitriy Zaporozhets 已提交
139

140 141 142 143
/*
 * Last push widget
 */
.event-last-push {
144
  overflow: auto;
145
  .event-last-push-text {
146
    @include str-truncated(100%);
147 148
    padding: 5px 0;
    font-size: 13px;
149 150 151
    float:left;
    margin-right: -150px;
    padding-right: 150px;
152
    line-height: 20px;
153 154
  }
}
155 156

@media (max-width: $screen-xs-max) {
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
  .event-item {
    .event-title {
      white-space: normal;
      overflow: visible;
      max-width: 100%;
    }
    .avatar {
      display: none;
    }

    .event-body {
      margin: 0;
      border-left: 2px solid #DDD;
      padding-left: 10px;
    }

    .event-item-timestamp {
      display: none;
    }
176 177
  }
}