timeline.less 1.7 KB
Newer Older
A
almasaeed2010 已提交
1 2 3 4 5 6 7 8 9 10 11
/*
 * Component: Timeline
 * -------------------
 */

.timeline{
  position: relative;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;

12
  // The line
A
almasaeed2010 已提交
13 14 15 16 17
  &:before {
    content: '';
    position: absolute;
    top: 0px;
    bottom: 0;
18
    width: 4px;
A
almasaeed2010 已提交
19
    background: #ddd;
20
    left: 31px;
A
almasaeed2010 已提交
21
    margin: 0;
22
    .border-radius(2px);
A
almasaeed2010 已提交
23 24 25 26 27 28 29 30 31
  }


  > li {
    position: relative;
    margin-right: 10px;
    margin-bottom: 15px;
    .clearfix();

32
    // The content
A
almasaeed2010 已提交
33
    > .timeline-item {
34 35 36
      .box-shadow(@box-boxshadow);
      .border-radius(@box-border-radius);
      margin-top: 0px;
A
almasaeed2010 已提交
37
      background: #fff;
38
      color: #444;
A
almasaeed2010 已提交
39 40
      margin-left: 60px;
      margin-right: 15px;
41
      padding: 0;
A
almasaeed2010 已提交
42 43
      position: relative;

44
      // The time and header
A
almasaeed2010 已提交
45 46 47
      > .time {
        color: #999;
        float: right;
48 49
        padding: 10px;
        font-size: 12px;
A
almasaeed2010 已提交
50 51 52 53
      }
      > .timeline-header {
        margin: 0;
        color: #555;
54 55
        border-bottom: 1px solid @box-border-color;
        padding: 10px;
A
almasaeed2010 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68
        font-size: 16px;
        line-height: 1.1;
        > a {
          font-weight: 600;
        }
      }
      // Item body and footer
      > .timeline-body, > .timeline-footer {
        padding: 10px;
      }

    }

69
    // Time label
A
almasaeed2010 已提交
70 71 72 73 74 75
    &.time-label {
      > span {
        font-weight: 600;
        padding: 5px;
        display: inline-block;
        background-color: #fff;
76
        
A
almasaeed2010 已提交
77 78 79 80
        .border-radius(4px);
      }
    }

81
    // The icons
A
almasaeed2010 已提交
82 83 84 85 86 87 88 89 90
    > .fa,
    > .glyphicon,
    > .ion {
      width: 30px;
      height: 30px;
      font-size: 15px;
      line-height: 30px;
      position: absolute;
      color: #666;
91
      background: @gray;
A
almasaeed2010 已提交
92 93 94 95 96 97 98
      border-radius: 50%;
      text-align: center;
      left: 18px;
      top: 0;
    }
  }
}