Blame view

src/styles/components/timeline.less 2.01 KB
385cfeba   梁灏   add Timeline UI
1
2
3
4
5
6
7
8
9
  @timeline-prefix-cls: ~"@{css-prefix}timeline";
  @timeline-color: @border-color-split;
  
  .@{timeline-prefix-cls} {
      list-style: none;
      margin: 0;
      padding: 0;
  
      &-item {
c649968a   梁灏   fix Timeline cust...
10
          margin: 0 !important;
385cfeba   梁灏   add Timeline UI
11
12
13
14
15
16
          padding: 0 0 12px 0;
          list-style: none;
          position: relative;
  
          &-tail {
              height: 100%;
c9433dcc   梁灏   optimize Timeline...
17
              border-left: 1px solid @timeline-color;
385cfeba   梁灏   add Timeline UI
18
              position: absolute;
c9433dcc   梁灏   optimize Timeline...
19
              left: 6px;
385cfeba   梁灏   add Timeline UI
20
21
22
23
24
25
26
27
              top: 0;
          }
  
          &-pending &-tail {
              display: none;
          }
  
          &-head {
c9433dcc   梁灏   optimize Timeline...
28
29
              width: 13px;
              height: 13px;
385cfeba   梁灏   add Timeline UI
30
              background-color: #fff;
c9433dcc   梁灏   optimize Timeline...
31
32
              border-radius: 50%;
              border: 1px solid transparent;
385cfeba   梁灏   add Timeline UI
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
              position: absolute;
  
              &-blue {
                  border-color: @primary-color;
                  color: @primary-color;
              }
              &-red {
                  border-color: @error-color;
                  color: @error-color;
              }
              &-green {
                  border-color: @success-color;
                  color: @success-color;
              }
          }
  
          &-head-custom {
              width: 40px;
              height: auto;
              margin-top: 6px;
              padding: 3px 0;
              text-align: center;
              line-height: 1;
              border: 0;
              border-radius: 0;
3c01d81a   梁灏   fixed Modal bug,w...
58
              font-size: @font-size-base;
385cfeba   梁灏   add Timeline UI
59
              position: absolute;
c9433dcc   梁灏   optimize Timeline...
60
              left: -13px;
e2645048   jingsam   :fire: remove tra...
61
              transform: translateY(-50%);
385cfeba   梁灏   add Timeline UI
62
63
64
          }
  
          &-content {
c649968a   梁灏   fix Timeline cust...
65
              padding: 1px 1px 10px 24px;
3c01d81a   梁灏   fixed Modal bug,w...
66
              font-size: @font-size-small;
385cfeba   梁灏   add Timeline UI
67
              position: relative;
6700f596   梁灏   publish 0.9.8-rc-2
68
              top: -3px;
385cfeba   梁灏   add Timeline UI
69
70
71
72
73
74
75
76
77
78
79
80
          }
  
          &:last-child {
              .@{timeline-prefix-cls}-item-tail {
                  display: none;
              }
          }
      }
  
      &&-pending &-item:nth-last-of-type(2) {
  
          .@{timeline-prefix-cls}-item-tail {
c9433dcc   梁灏   optimize Timeline...
81
              border-left: 1px dotted @timeline-color;
385cfeba   梁灏   add Timeline UI
82
83
84
85
86
          }
          .@{timeline-prefix-cls}-item-content {
              min-height: 48px;
          }
      }
e2645048   jingsam   :fire: remove tra...
87
  }