events.scss 2.8 KB
Newer Older
1 2 3 4 5
/**
 * Dashboard events feed
 *
 */
.event-item {
6
  font-size: $gl-font-size;
D
Dmitriy Zaporozhets 已提交
7
  padding: $gl-padding-top 0 $gl-padding-top ($gl-avatar-size + $gl-padding-top);
D
Douwe Maan 已提交
8
  border-bottom: 1px solid $table-border-color;
9
  color: #7f8fa4;
10

11 12
  &.event-inline {
    .avatar {
13 14
      position: relative;
      top: -2px;
15
    }
16

17
    .event-title,
18
    .event-item-timestamp {
D
Dmitriy Zaporozhets 已提交
19
      line-height: 40px;
20
    }
21 22
  }

23 24 25 26 27
  a {
    color: #4c4e54;
  }

  .avatar {
D
Dmitriy Zaporozhets 已提交
28
    margin-left: -($gl-avatar-size + $gl-padding-top);
29 30
  }

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

35
    .author_name {
36
      color: #333;
37 38
    }
  }
39

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

D
Dmitriy Zaporozhets 已提交
43
    .event-note {
44
      word-wrap: break-word;
45

46
      .md {
47 48
        color: #7f8fa4;
        font-size: $gl-font-size;
49 50 51 52

        iframe.twitter-share-button {
          vertical-align: bottom;
        }
53 54
      }

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

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

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

97 98 99
  &:last-child { border:none }

  .event_commits {
D
Dmitriy Zaporozhets 已提交
100 101 102
    li {
      &.commit {
        background: transparent;
103
        padding: 3px;
104
        padding-left: 0;
105
        border: none;
D
Dmitriy Zaporozhets 已提交
106
        .commit-row-title {
107
          font-size: $gl-font-size;
D
Dmitriy Zaporozhets 已提交
108
        }
D
Dmitriy Zaporozhets 已提交
109
      }
110

D
Dmitriy Zaporozhets 已提交
111
      &.commits-stat {
112
        margin-top: 3px;
D
Dmitriy Zaporozhets 已提交
113
        display: block;
114
        padding: 3px;
115
        padding-left: 0;
116 117 118 119

        &:hover {
          background: none;
        }
D
Dmitriy Zaporozhets 已提交
120
      }
121 122
    }
  }
123 124 125 126 127

  .event-item-timestamp {
    float: right;
    line-height: 22px;
  }
128 129
}

D
Dmitriy Zaporozhets 已提交
130

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

@media (max-width: $screen-xs-max) {
149
  .event-item {
150
    padding-left: $gl-padding;
151

152 153 154 155 156 157 158 159 160 161 162
    .event-title {
      white-space: normal;
      overflow: visible;
      max-width: 100%;
    }
    .avatar {
      display: none;
    }

    .event-body {
      margin: 0;
163
      border-left: 2px solid #ddd;
164 165 166 167 168 169
      padding-left: 10px;
    }

    .event-item-timestamp {
      display: none;
    }
170 171
  }
}