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
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
          padding: 0 0 12px 0;
          list-style: none;
          position: relative;
  
          &-tail {
              height: 100%;
              border-left: 2px solid @timeline-color;
              position: absolute;
              left: 5px;
              top: 0;
          }
  
          &-pending &-tail {
              display: none;
          }
  
          &-head {
              width: 12px;
              height: 12px;
              background-color: #fff;
              border-radius: 100px;
              border: 2px solid transparent;
              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
60
61
62
63
64
              position: absolute;
              left: -14px;
              .transform(translateY(-50%));
          }
  
          &-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;
3c01d81a   梁灏   fixed Modal bug,w...
68
              top: -4px;
385cfeba   梁灏   add Timeline UI
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
          }
  
          &:last-child {
              .@{timeline-prefix-cls}-item-tail {
                  display: none;
              }
          }
      }
  
      &&-pending &-item:nth-last-of-type(2) {
  
          .@{timeline-prefix-cls}-item-tail {
              border-left: 2px dotted @timeline-color;
          }
          .@{timeline-prefix-cls}-item-content {
              min-height: 48px;
          }
      }
  }