events.scss 2.6 KB
Newer Older
1 2 3 4 5
/**
 * Dashboard events feed
 *
 */
.event-item {
6 7 8 9 10
  font-size: 16px;
  padding: 18px;
  margin: 0 -15px;
  border-bottom: 1px solid #f1f2f4;
  color: #7f8fa4;
11

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

19 20 21 22 23 24 25 26
  a {
    color: #4c4e54;
  }

  .avatar {
    margin-right: 15px;
  }

27
  .event-title {
28
    @include str-truncated(calc(100% - 174px));
29 30

    max-width: 70%;
31
    font-weight: 500;
32

33
    .author_name {
34
      color: #333;
35 36
    }
  }
37

38
  .event-body {
39
    margin-left: 60px;
40
    margin-right: 80px;
D
Dmitriy Zaporozhets 已提交
41

D
Dmitriy Zaporozhets 已提交
42
    .event-note {
43
      margin-top: 5px;
44
      word-wrap: break-word;
45

46
      .md {
47
        font-size: 16px;
48 49 50 51

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

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

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

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

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

  .event_commits {
99
    margin-top: 9px;
100

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

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

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

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

D
Dmitriy Zaporozhets 已提交
131

132 133 134 135
/*
 * Last push widget
 */
.event-last-push {
136
  overflow: auto;
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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
  .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;
    }
168 169
  }
}