Blame view

src/styles/components/progress.less 2.75 KB
c1dcac7a   梁灏   add Progress UI
1
2
3
4
  @progress-prefix-cls: ~"@{css-prefix}progress";
  
  .@{progress-prefix-cls} {
      display: inline-block;
48921bf5   Rijn   add vertical prog...
5
  
c1dcac7a   梁灏   add Progress UI
6
      width: 100%;
48921bf5   Rijn   add vertical prog...
7
8
9
10
11
      &-vertical {
          height: 100%;
          width: auto;
      }
  
d9ef3d93   梁灏   optimize some style
12
      font-size: @font-size-small;
c1dcac7a   梁灏   add Progress UI
13
14
15
16
17
18
19
20
21
22
23
24
25
      position: relative;
  
      &-outer {
          display: inline-block;
          width: 100%;
          margin-right: 0;
          padding-right: 0;
  
          .@{progress-prefix-cls}-show-info & {
              padding-right: 55px;
              margin-right: -55px;
          }
      }
48921bf5   Rijn   add vertical prog...
26
27
28
29
      &-vertical &-outer {
          height: 100%;
          width: auto;
      }
c1dcac7a   梁灏   add Progress UI
30
31
32
33
34
35
36
  
      &-inner {
          display: inline-block;
          width: 100%;
          background-color: #f3f3f3;
          border-radius: 100px;
          vertical-align: middle;
9d6b35e4   梁灏   Progress add prop...
37
          position: relative;
c1dcac7a   梁灏   add Progress UI
38
      }
48921bf5   Rijn   add vertical prog...
39
40
41
42
43
44
45
46
47
48
49
50
51
52
      &-vertical &-inner {
          height: 100%;
          width: auto;
  
          & > *, &:after {
              display: inline-block;
              vertical-align: bottom;
          }
  
          &:after {
              content: '';
              height: 100%;
          }
      }
c1dcac7a   梁灏   add Progress UI
53
54
55
  
      &-bg {
          border-radius: 100px;
9d6b35e4   梁灏   Progress add prop...
56
          background-color: @primary-color;
e2645048   jingsam   :fire: remove tra...
57
          transition: all @transition-time linear;
c1dcac7a   梁灏   add Progress UI
58
59
          position: relative;
      }
9d6b35e4   梁灏   Progress add prop...
60
61
62
63
64
65
66
67
      &-success-bg{
          border-radius: 100px;
          background-color: @success-color;
          transition: all @transition-time linear;
          position: absolute;
          top: 0;
          left: 0;
      }
c1dcac7a   梁灏   add Progress UI
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
  
      &-text {
          display: inline-block;
          margin-left: 5px;
          text-align: left;
          font-size: 1em;
          vertical-align: middle;
      }
  
      &-active {
          .@{progress-prefix-cls}-bg:before {
              content: '';
              opacity: 0;
              position: absolute;
              top: 0;
              left: 0;
              right: 0;
              bottom: 0;
              background: #fff;
              border-radius: 10px;
e2645048   jingsam   :fire: remove tra...
88
              animation: ivu-progress-active 2s @ease-in-out infinite;
c1dcac7a   梁灏   add Progress UI
89
90
91
          }
      }
  
724a6077   梁灏   update Progress s...
92
93
94
95
96
97
98
      &-vertical&-active{
          .@{progress-prefix-cls}-bg:before {
              top: auto;
              animation: ivu-progress-active-vertical 2s @ease-in-out infinite;
          }
      }
  
c1dcac7a   梁灏   add Progress UI
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
      &-wrong {
          .@{progress-prefix-cls}-bg {
              background-color: @error-color;
          }
          .@{progress-prefix-cls}-text {
              color: @error-color;
          }
      }
  
      &-success {
          .@{progress-prefix-cls}-bg {
              background-color: @success-color;
          }
          .@{progress-prefix-cls}-text {
              color: @success-color;
          }
      }
  }
  
  @keyframes ivu-progress-active {
      0% {
          opacity: .3;
          width: 0;
      }
      100% {
          opacity: 0;
          width: 100%;
      }
e2645048   jingsam   :fire: remove tra...
127
  }
724a6077   梁灏   update Progress s...
128
129
130
131
132
133
134
135
136
137
138
  
  @keyframes ivu-progress-active-vertical {
      0% {
          opacity: .3;
          height: 0;
      }
      100% {
          opacity: 0;
          height: 100%;
      }
  }