events.scss 2.9 KB
Newer Older
1 2 3 4 5
/**
 * Dashboard events feed
 *
 */
.event-item {
6
  font-size: $gl-font-size;
7
  padding: $gl-padding $gl-padding $gl-padding ($gl-padding + $gl-avatar-size + 15px);
8 9
  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
    .event-title,
20 21 22
    .event-item-timestamp {
      line-height: 44px;
    }
23 24
  }

25 26 27 28 29
  a {
    color: #4c4e54;
  }

  .avatar {
30
    margin-left: -($gl-avatar-size + 15px);
31 32
  }

33
  .event-title {
34
    @include str-truncated(calc(100% - 174px));
35
    font-weight: 600;
36

37
    .author_name {
38
      color: #333;
39 40
    }
  }
41

42
  .event-body {
K
Kjel Delaey 已提交
43 44
    margin-right: 174px;

D
Dmitriy Zaporozhets 已提交
45
    .event-note {
46
      margin-top: 5px;
47
      word-wrap: break-word;
48

49
      .md {
50 51
        color: #7f8fa4;
        font-size: $gl-font-size;
52 53 54 55

        iframe.twitter-share-button {
          vertical-align: bottom;
        }
56 57
      }

58 59 60 61
      pre {
        border: none;
        background: #f9f9f9;
        border-radius: 0;
62
        color: #777;
63
        margin: 0 20px;
64
        overflow: hidden;
65 66
      }

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

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

100 101 102
  &:last-child { border:none }

  .event_commits {
103
    margin-top: 9px;
104

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

D
Dmitriy Zaporozhets 已提交
116
      &.commits-stat {
117
        margin-top: 3px;
D
Dmitriy Zaporozhets 已提交
118
        display: block;
119
        padding: 3px;
120
        padding-left: 0;
121 122 123 124

        &:hover {
          background: none;
        }
D
Dmitriy Zaporozhets 已提交
125
      }
126 127
    }
  }
128 129 130 131 132

  .event-item-timestamp {
    float: right;
    line-height: 22px;
  }
133 134
}

D
Dmitriy Zaporozhets 已提交
135

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

@media (max-width: $screen-xs-max) {
153
  .event-item {
154
    padding-left: $gl-padding;
155

156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
    .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;
    }
174 175
  }
}