summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/generic/timeline.scss
blob: f29cf25fa4c51cb2c89ddfa1484347e136270570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative;

  &:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    margin-left: 29px;
  }

  .timeline-entry {
    position: relative;
    margin-top: 5px;
    margin-left: 30px;
    margin-bottom: 10px;
    clear: both;


    &:target {
      .timeline-entry-inner .timeline-content {
        -webkit-animation:target-note 2s linear;
        background: $hover;
      }
    }

    .timeline-entry-inner {
      position: relative;
      margin-left: -20px;

      &:before, &:after {
        content: " ";
        display: table;
      }

      .timeline-icon {
        margin-top: 2px;
        background: #fff;
        color: #737881;
        float: left;
        @include border-radius(40px);
        @include box-shadow(0 0 0 3px #EEE);
        overflow: hidden;

        .avatar {
          margin: 0;
          padding: 0;
        }
      }

      .timeline-content {
        position: relative;
        background: #f5f5f6;
        padding: 10px 15px;
        margin-left: 60px;

        &:after {
          content: '';
          display: block;
          position: absolute;
          width: 0;
          height: 0;
          border-style: solid;
          border-width: 9px 9px 9px 0;
          border-color: transparent #f5f5f6 transparent transparent;
          left: 0;
          top: 10px;
          margin-left: -9px;
        }
      }
    }
  }
}