Blame view

src/styles/components/spin.less 1.7 KB
7fa943eb   梁灏   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  @spin-prefix-cls: ~"@{css-prefix}spin";
  @spin-dot-size-small: 12px;
  @spin-dot-size: 20px;
  @spin-dot-size-large: 32px;
  
  .@{spin-prefix-cls} {
      color: @primary-color;
      vertical-align: middle;
      text-align: center;
  
      &-dot {
          position: relative;
          display: block;
          border-radius: 50%;
          background-color: @primary-color;
          .square(@spin-dot-size);
e2645048   jingsam   :fire: remove tra...
17
          animation: ani-spin-bounce 1s 0s ease-in-out infinite;
7fa943eb   梁灏   init
18
19
20
21
22
23
24
25
26
27
28
29
30
      }
  
      &-large &-dot {
          .square(@spin-dot-size-large);
      }
  
      &-small &-dot {
          .square(@spin-dot-size-small);
      }
  
      &-fix {
          position: absolute;
          top: 0;
7fa943eb   梁灏   init
31
          left: 0;
7fa943eb   梁灏   init
32
          z-index: @zindex-spin;
7fa943eb   梁灏   init
33
          .square(100%);
300bd662   梁灏   fixed #704
34
          background-color: rgba(255,255,255,.9);
7fa943eb   梁灏   init
35
      }
297648f1   梁灏   fixed #1063
36
37
      &-fullscreen{
          z-index: @zindex-spin-fullscreen;
7fdad3a3   梁灏   update $Spin and ...
38
39
40
41
42
43
44
          &-wrapper{
              position: fixed;
              top: 0;
              right: 0;
              bottom: 0;
              left: 0;
          }
297648f1   梁灏   fixed #1063
45
      }
7fa943eb   梁灏   init
46
47
  
      &-fix &-main {
4fffb066   梁灏   update Spin style
48
49
50
51
52
          position: absolute;
          top: 50%;
          left: 50%;
          -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
7fa943eb   梁灏   init
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
      }
  
      &-fix &-dot {
          display: inline-block;
      }
  
      &-text,
      &-show-text &-dot {
          display: none;
      }
  
      &-show-text &-text {
          display: block;
      }
  }
  
300bd662   梁灏   fixed #704
69
70
71
72
73
74
75
76
77
  // use in Table loading, Table right border is not included in .ivu-table-wrapper, so fix it
  .@{table-prefix-cls}-wrapper{
      > .@{spin-prefix-cls}-fix{
          border: 1px solid @border-color-base;
          border-top: 0;
          border-left: 0;
      }
  }
  
7fa943eb   梁灏   init
78
79
  @keyframes ani-spin-bounce {
      0% {
e2645048   jingsam   :fire: remove tra...
80
          transform: scale(0);
7fa943eb   梁灏   init
81
82
83
      }
  
      100% {
e2645048   jingsam   :fire: remove tra...
84
          transform: scale(1);
7fa943eb   梁灏   init
85
86
          opacity: 0;
      }
e2645048   jingsam   :fire: remove tra...
87
  }