@autobest-ui/components 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +10 -10
  2. package/esm/accordion/__stories__/style.scss +58 -58
  3. package/esm/affix/__stories__/style.scss +13 -13
  4. package/esm/affix/style/index.scss +34 -34
  5. package/esm/base.scss +42 -42
  6. package/esm/carousel/__stories__/style.scss +41 -41
  7. package/esm/carousel/index.d.ts +21 -13
  8. package/esm/carousel/index.js +77 -44
  9. package/esm/carousel/style/index.css +1 -1
  10. package/esm/carousel/style/index.scss +43 -37
  11. package/esm/checkbox/style/index.scss +117 -117
  12. package/esm/collapse/__stories__/style.scss +18 -18
  13. package/esm/collapse/style/index.scss +42 -42
  14. package/esm/confirm/style/index.scss +44 -44
  15. package/esm/date-picker/calendar/grid/index.scss +85 -85
  16. package/esm/date-picker/calendar/index.scss +57 -57
  17. package/esm/date-picker/style/index.scss +18 -18
  18. package/esm/drawer/style/index.scss +44 -44
  19. package/esm/ellipsis/style/index.scss +35 -35
  20. package/esm/guide/__stories__/style.scss +13 -13
  21. package/esm/guide/style/index.scss +17 -17
  22. package/esm/icon/__stories__/style.scss +39 -39
  23. package/esm/icon/style/index.scss +6 -6
  24. package/esm/index.d.ts +1 -1
  25. package/esm/input-number/style/index.scss +86 -86
  26. package/esm/lazy-image/__stories__/style.scss +9 -9
  27. package/esm/lazy-image/style/index.scss +24 -24
  28. package/esm/link-list/style/index.scss +125 -125
  29. package/esm/loading/style/index.scss +30 -30
  30. package/esm/loading-bar/style/index.scss +62 -62
  31. package/esm/loading-container/__stories__/style.scss +5 -5
  32. package/esm/loading-container/style/index.scss +27 -27
  33. package/esm/loading-icon/style/index.scss +23 -23
  34. package/esm/mask/style/index.scss +34 -34
  35. package/esm/message/style/index.scss +70 -70
  36. package/esm/modal/style/index.scss +112 -112
  37. package/esm/move/__stories__/style.scss +6 -6
  38. package/esm/move/style/index.scss +7 -7
  39. package/esm/popover/__stories__/style.scss +15 -15
  40. package/esm/popover/style/index.scss +59 -59
  41. package/esm/select/__stories__/style.scss +8 -8
  42. package/esm/select/style/index.scss +126 -126
  43. package/esm/show-more/style/index.scss +22 -22
  44. package/esm/skeleton/__stories__/style.scss +2 -2
  45. package/esm/skeleton/style/index.scss +26 -26
  46. package/esm/style.css +15 -15
  47. package/esm/table/__stories__/style.css +1 -1
  48. package/esm/table/__stories__/style.scss +33 -2
  49. package/esm/table/body/BodyRow.d.ts +13 -0
  50. package/esm/table/body/BodyRow.js +94 -0
  51. package/esm/table/body/CheckIcon.d.ts +16 -0
  52. package/esm/table/body/CheckIcon.js +35 -0
  53. package/esm/table/body/index.d.ts +24 -0
  54. package/esm/table/body/index.js +61 -0
  55. package/esm/table/header/CheckIcon.d.ts +13 -0
  56. package/esm/table/header/CheckIcon.js +37 -0
  57. package/esm/table/header/HeaderCell.d.ts +18 -0
  58. package/esm/table/{HeaderCell.js → header/HeaderCell.js} +11 -4
  59. package/esm/table/header/HeaderRow.d.ts +16 -0
  60. package/esm/table/header/HeaderRow.js +76 -0
  61. package/esm/table/index.d.ts +52 -27
  62. package/esm/table/index.js +178 -155
  63. package/esm/table/interface.d.ts +16 -3
  64. package/esm/table/style/index.css +1 -1
  65. package/esm/table/style/index.scss +51 -70
  66. package/esm/tabs/__stories__/style.scss +8 -8
  67. package/esm/tabs/style/index.css +1 -1
  68. package/esm/tabs/style/index.scss +62 -62
  69. package/esm/tooltip/style/index.scss +61 -61
  70. package/esm/trigger/style/index.scss +79 -79
  71. package/lib/accordion/__stories__/style.scss +58 -58
  72. package/lib/affix/__stories__/style.scss +13 -13
  73. package/lib/affix/style/index.scss +34 -34
  74. package/lib/base.scss +42 -42
  75. package/lib/carousel/__stories__/style.scss +41 -41
  76. package/lib/carousel/index.d.ts +21 -13
  77. package/lib/carousel/index.js +80 -45
  78. package/lib/carousel/style/index.css +1 -1
  79. package/lib/carousel/style/index.scss +43 -37
  80. package/lib/checkbox/style/index.scss +117 -117
  81. package/lib/collapse/__stories__/style.scss +18 -18
  82. package/lib/collapse/style/index.scss +42 -42
  83. package/lib/confirm/style/index.scss +44 -44
  84. package/lib/date-picker/calendar/grid/index.scss +85 -85
  85. package/lib/date-picker/calendar/index.scss +57 -57
  86. package/lib/date-picker/style/index.scss +18 -18
  87. package/lib/drawer/style/index.scss +44 -44
  88. package/lib/ellipsis/style/index.scss +35 -35
  89. package/lib/guide/__stories__/style.scss +13 -13
  90. package/lib/guide/style/index.scss +17 -17
  91. package/lib/icon/__stories__/style.scss +39 -39
  92. package/lib/icon/style/index.scss +6 -6
  93. package/lib/index.d.ts +1 -1
  94. package/lib/input-number/style/index.scss +86 -86
  95. package/lib/lazy-image/__stories__/style.scss +9 -9
  96. package/lib/lazy-image/style/index.scss +24 -24
  97. package/lib/link-list/style/index.scss +125 -125
  98. package/lib/loading/style/index.scss +30 -30
  99. package/lib/loading-bar/style/index.scss +62 -62
  100. package/lib/loading-container/__stories__/style.scss +5 -5
  101. package/lib/loading-container/style/index.scss +27 -27
  102. package/lib/loading-icon/style/index.scss +23 -23
  103. package/lib/mask/style/index.scss +34 -34
  104. package/lib/message/style/index.scss +70 -70
  105. package/lib/modal/style/index.scss +112 -112
  106. package/lib/move/__stories__/style.scss +6 -6
  107. package/lib/move/style/index.scss +7 -7
  108. package/lib/popover/__stories__/style.scss +15 -15
  109. package/lib/popover/style/index.scss +59 -59
  110. package/lib/select/__stories__/style.scss +8 -8
  111. package/lib/select/style/index.scss +126 -126
  112. package/lib/show-more/style/index.scss +22 -22
  113. package/lib/skeleton/__stories__/style.scss +2 -2
  114. package/lib/skeleton/style/index.scss +26 -26
  115. package/lib/style.css +15 -15
  116. package/lib/table/__stories__/style.css +1 -1
  117. package/lib/table/__stories__/style.scss +33 -2
  118. package/lib/table/body/BodyRow.d.ts +13 -0
  119. package/lib/table/body/BodyRow.js +108 -0
  120. package/lib/table/body/CheckIcon.d.ts +16 -0
  121. package/lib/table/body/CheckIcon.js +47 -0
  122. package/lib/table/body/index.d.ts +24 -0
  123. package/lib/table/body/index.js +73 -0
  124. package/lib/table/header/CheckIcon.d.ts +13 -0
  125. package/lib/table/header/CheckIcon.js +49 -0
  126. package/lib/table/header/HeaderCell.d.ts +18 -0
  127. package/lib/table/{HeaderCell.js → header/HeaderCell.js} +11 -4
  128. package/lib/table/header/HeaderRow.d.ts +16 -0
  129. package/lib/table/header/HeaderRow.js +89 -0
  130. package/lib/table/index.d.ts +52 -27
  131. package/lib/table/index.js +177 -155
  132. package/lib/table/interface.d.ts +16 -3
  133. package/lib/table/style/index.css +1 -1
  134. package/lib/table/style/index.scss +51 -70
  135. package/lib/tabs/__stories__/style.scss +8 -8
  136. package/lib/tabs/style/index.css +1 -1
  137. package/lib/tabs/style/index.scss +62 -62
  138. package/lib/tooltip/style/index.scss +61 -61
  139. package/lib/trigger/style/index.scss +79 -79
  140. package/package.json +2 -2
  141. package/esm/table/BodyCell.d.ts +0 -6
  142. package/esm/table/BodyCell.js +0 -12
  143. package/esm/table/HeaderCell.d.ts +0 -13
  144. package/lib/table/BodyCell.d.ts +0 -6
  145. package/lib/table/BodyCell.js +0 -22
  146. package/lib/table/HeaderCell.d.ts +0 -13
@@ -1,25 +1,25 @@
1
- $namespace: ab-lazy-image;
2
-
3
- .#{$namespace} {
4
- transition: opacity 500ms;
5
-
6
- &-loading {
7
- background: #f2f2f2;
8
- overflow: hidden;
9
- }
10
-
11
- &-loading.#{$namespace}-active {
12
- background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
13
- background-size: 400% 100%;
14
- animation: ab-skeleton-loading 1.4s ease infinite;
15
- }
16
-
17
- @keyframes ab-skeleton-loading {
18
- 0% {
19
- background-position: 100% 50%;
20
- }
21
- 100% {
22
- background-position: 0 50%;
23
- }
24
- }
1
+ $namespace: ab-lazy-image;
2
+
3
+ .#{$namespace} {
4
+ transition: opacity 500ms;
5
+
6
+ &-loading {
7
+ background: #f2f2f2;
8
+ overflow: hidden;
9
+ }
10
+
11
+ &-loading.#{$namespace}-active {
12
+ background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
13
+ background-size: 400% 100%;
14
+ animation: ab-skeleton-loading 1.4s ease infinite;
15
+ }
16
+
17
+ @keyframes ab-skeleton-loading {
18
+ 0% {
19
+ background-position: 100% 50%;
20
+ }
21
+ 100% {
22
+ background-position: 0 50%;
23
+ }
24
+ }
25
25
  }
@@ -1,125 +1,125 @@
1
- $namespace: ab-link-list;
2
-
3
- // column Gap
4
- $values: (2) (4) (5) (6) (8);
5
- @mixin generateIgnoreCol($type) {
6
- @each $val in $values {
7
- &.#{$namespace}#{$type}#{$val} > a, &.#{$namespace}#{$type}#{$val} > span {
8
- min-width: calc(100% / #{$val} - 0.15rem);
9
- max-width: calc(100% / #{$val} - 0.15rem);
10
- }
11
- }
12
- }
13
-
14
- .#{$namespace} {
15
- &-title {
16
- font-size: .16rem;
17
- margin: 0 0;
18
- padding: 0 0 .12rem 0;
19
- display: flex;
20
- justify-content: space-between;
21
- align-items: center;
22
- }
23
-
24
- &-icon {
25
- display: none;
26
- }
27
-
28
- &-content {
29
- flex-wrap: wrap;
30
- width: auto;
31
- margin-right: -0.15rem;
32
- @include generateIgnoreCol($type: -col);
33
- }
34
-
35
- &-content > span, &-content > a {
36
- cursor: pointer;
37
- border: .5px solid #D0D0D0;
38
- margin-bottom: 8px;
39
- display: inline-block;
40
- justify-content: space-between;
41
- align-items: center;
42
- width: 100%;
43
- position: relative;
44
- overflow: hidden;
45
- text-overflow: ellipsis;
46
- white-space: nowrap;
47
- padding: .085rem .15rem .085rem .12rem;
48
- color: #333333;
49
- margin-right: .15rem;
50
-
51
- &:after {
52
- content: '>';
53
- position: absolute;
54
- right: .1rem;
55
- top: 50%;
56
- transform: translateY(-50%);
57
- color: #808080;
58
- font-size: .12rem;
59
- }
60
-
61
- &:hover {
62
- text-decoration: underline;
63
- color: #f97601;
64
- }
65
- }
66
-
67
- &-content > .#{$namespace}-hidden {
68
- display: none;
69
- }
70
-
71
- &-wrap-popover.ab-popover-wrap {
72
- max-width: 3.5rem;
73
- min-width: 3rem;
74
- }
75
-
76
- &-sub-title {
77
- display: block;
78
- padding-bottom: .06rem;
79
- font-size: .12rem;
80
- }
81
-
82
- &-sub-link {
83
- text-decoration: underline;
84
- color: #333;
85
- font-size: .12rem;
86
- padding: 0 .05rem .05rem 0;
87
- display: inline-block;
88
- }
89
- }
90
-
91
- @media only screen and (max-width: 767px) {
92
- .#{$namespace} {
93
-
94
- &-divider {
95
- border-bottom: 1px solid #D0D0D0;
96
- }
97
-
98
- &-body {
99
- height: 0;
100
- width: 0;
101
- overflow: hidden;
102
-
103
- &.#{$namespace}-active {
104
- height: auto;
105
- width: auto;
106
- }
107
- }
108
-
109
- &-content > span, &-content > a {
110
- min-width: calc(50% - 0.15rem) !important;
111
- max-width: calc(50% - 0.15rem) !important;
112
- }
113
-
114
- &-icon {
115
- font-weight: bold;
116
- font-size: .22rem;
117
- cursor: pointer;
118
- width: .20rem;
119
- height: .20rem;
120
- display: flex;
121
- align-items: center;
122
- justify-content: center;
123
- }
124
- }
125
- }
1
+ $namespace: ab-link-list;
2
+
3
+ // column Gap
4
+ $values: (2) (4) (5) (6) (8);
5
+ @mixin generateIgnoreCol($type) {
6
+ @each $val in $values {
7
+ &.#{$namespace}#{$type}#{$val} > a, &.#{$namespace}#{$type}#{$val} > span {
8
+ min-width: calc(100% / #{$val} - 0.15rem);
9
+ max-width: calc(100% / #{$val} - 0.15rem);
10
+ }
11
+ }
12
+ }
13
+
14
+ .#{$namespace} {
15
+ &-title {
16
+ font-size: .16rem;
17
+ margin: 0 0;
18
+ padding: 0 0 .12rem 0;
19
+ display: flex;
20
+ justify-content: space-between;
21
+ align-items: center;
22
+ }
23
+
24
+ &-icon {
25
+ display: none;
26
+ }
27
+
28
+ &-content {
29
+ flex-wrap: wrap;
30
+ width: auto;
31
+ margin-right: -0.15rem;
32
+ @include generateIgnoreCol($type: -col);
33
+ }
34
+
35
+ &-content > span, &-content > a {
36
+ cursor: pointer;
37
+ border: .5px solid #D0D0D0;
38
+ margin-bottom: 8px;
39
+ display: inline-block;
40
+ justify-content: space-between;
41
+ align-items: center;
42
+ width: 100%;
43
+ position: relative;
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ white-space: nowrap;
47
+ padding: .085rem .15rem .085rem .12rem;
48
+ color: #333333;
49
+ margin-right: .15rem;
50
+
51
+ &:after {
52
+ content: '>';
53
+ position: absolute;
54
+ right: .1rem;
55
+ top: 50%;
56
+ transform: translateY(-50%);
57
+ color: #808080;
58
+ font-size: .12rem;
59
+ }
60
+
61
+ &:hover {
62
+ text-decoration: underline;
63
+ color: #f97601;
64
+ }
65
+ }
66
+
67
+ &-content > .#{$namespace}-hidden {
68
+ display: none;
69
+ }
70
+
71
+ &-wrap-popover.ab-popover-wrap {
72
+ max-width: 3.5rem;
73
+ min-width: 3rem;
74
+ }
75
+
76
+ &-sub-title {
77
+ display: block;
78
+ padding-bottom: .06rem;
79
+ font-size: .12rem;
80
+ }
81
+
82
+ &-sub-link {
83
+ text-decoration: underline;
84
+ color: #333;
85
+ font-size: .12rem;
86
+ padding: 0 .05rem .05rem 0;
87
+ display: inline-block;
88
+ }
89
+ }
90
+
91
+ @media only screen and (max-width: 767px) {
92
+ .#{$namespace} {
93
+
94
+ &-divider {
95
+ border-bottom: 1px solid #D0D0D0;
96
+ }
97
+
98
+ &-body {
99
+ height: 0;
100
+ width: 0;
101
+ overflow: hidden;
102
+
103
+ &.#{$namespace}-active {
104
+ height: auto;
105
+ width: auto;
106
+ }
107
+ }
108
+
109
+ &-content > span, &-content > a {
110
+ min-width: calc(50% - 0.15rem) !important;
111
+ max-width: calc(50% - 0.15rem) !important;
112
+ }
113
+
114
+ &-icon {
115
+ font-weight: bold;
116
+ font-size: .22rem;
117
+ cursor: pointer;
118
+ width: .20rem;
119
+ height: .20rem;
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ }
124
+ }
125
+ }
@@ -1,31 +1,31 @@
1
- $namespace: ab-loading;
2
-
3
- .#{$namespace}-wrap {
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
- z-index: 9999;
8
- background-color: rgba(#fff, .7);
9
- height: 100%;
10
- width: 100%;
11
-
12
- .#{$namespace}-content {
13
- position: absolute;
14
- left: 50%;
15
- top: 50%;
16
- display: block;
17
- width: .31rem;
18
- height: .31rem;
19
- transform: translate3d(-50%, -50%, 0);
20
- }
21
-
22
- &.#{$namespace}-rect-loading {
23
- background-color: rgba(#000, .7);
24
-
25
- .#{$namespace}-content {
26
- top: 10%;
27
- width: 1.6rem;
28
- height: .24rem;
29
- }
30
- }
1
+ $namespace: ab-loading;
2
+
3
+ .#{$namespace}-wrap {
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ z-index: 9999;
8
+ background-color: rgba(#fff, .7);
9
+ height: 100%;
10
+ width: 100%;
11
+
12
+ .#{$namespace}-content {
13
+ position: absolute;
14
+ left: 50%;
15
+ top: 50%;
16
+ display: block;
17
+ width: .31rem;
18
+ height: .31rem;
19
+ transform: translate3d(-50%, -50%, 0);
20
+ }
21
+
22
+ &.#{$namespace}-rect-loading {
23
+ background-color: rgba(#000, .7);
24
+
25
+ .#{$namespace}-content {
26
+ top: 10%;
27
+ width: 1.6rem;
28
+ height: .24rem;
29
+ }
30
+ }
31
31
  }
@@ -1,62 +1,62 @@
1
- $namespace: ab-loading-bar;
2
-
3
- .#{$namespace} {
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
- margin-bottom: -3px;
8
- height: 3px;
9
- width: 100%;
10
- z-index: 999;
11
- @keyframes movingBar {
12
- 0% {
13
- left: 50%;
14
- right: 50%;
15
- }
16
- 99.9% {
17
- left: 0;
18
- right: 0;
19
- }
20
- 100% {
21
- left: 50%;
22
- right: 50%;
23
- }
24
- }
25
- @keyframes changeBar {
26
- 0% {
27
- background-color: #0aa770;
28
- }
29
- 33.3% {
30
- background-color: #0aa770;
31
- }
32
- 33.33% {
33
- background-color: #ff0000;
34
- }
35
- 66.6% {
36
- background-color: #f987d6;
37
- }
38
- 66.66% {
39
- background-color: #f987d6;
40
- }
41
- 99.9% {
42
- background-color: #00bcd4;
43
- }
44
- }
45
- &-bar {
46
- position: absolute;
47
- height: 0;
48
- width: 100%;
49
- text-indent: -9999px;
50
- background-color: #0aa770;
51
- animation: changeBar 2.25s infinite;
52
- &:before {
53
- content: "";
54
- height: 3px;
55
- position: absolute;
56
- left: 50%;
57
- right: 50%;
58
- background-color: inherit;
59
- animation: movingBar 0.75s infinite;
60
- }
61
- }
62
- }
1
+ $namespace: ab-loading-bar;
2
+
3
+ .#{$namespace} {
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ margin-bottom: -3px;
8
+ height: 3px;
9
+ width: 100%;
10
+ z-index: 999;
11
+ @keyframes movingBar {
12
+ 0% {
13
+ left: 50%;
14
+ right: 50%;
15
+ }
16
+ 99.9% {
17
+ left: 0;
18
+ right: 0;
19
+ }
20
+ 100% {
21
+ left: 50%;
22
+ right: 50%;
23
+ }
24
+ }
25
+ @keyframes changeBar {
26
+ 0% {
27
+ background-color: #0aa770;
28
+ }
29
+ 33.3% {
30
+ background-color: #0aa770;
31
+ }
32
+ 33.33% {
33
+ background-color: #ff0000;
34
+ }
35
+ 66.6% {
36
+ background-color: #f987d6;
37
+ }
38
+ 66.66% {
39
+ background-color: #f987d6;
40
+ }
41
+ 99.9% {
42
+ background-color: #00bcd4;
43
+ }
44
+ }
45
+ &-bar {
46
+ position: absolute;
47
+ height: 0;
48
+ width: 100%;
49
+ text-indent: -9999px;
50
+ background-color: #0aa770;
51
+ animation: changeBar 2.25s infinite;
52
+ &:before {
53
+ content: "";
54
+ height: 3px;
55
+ position: absolute;
56
+ left: 50%;
57
+ right: 50%;
58
+ background-color: inherit;
59
+ animation: movingBar 0.75s infinite;
60
+ }
61
+ }
62
+ }
@@ -1,6 +1,6 @@
1
- .loading-container-demo {
2
- margin: 1rem;
3
- width: 2rem;
4
- height: 2rem;
5
- background: #b0b0b0;
1
+ .loading-container-demo {
2
+ margin: 1rem;
3
+ width: 2rem;
4
+ height: 2rem;
5
+ background: #b0b0b0;
6
6
  }
@@ -1,28 +1,28 @@
1
- $namespace: ab-loading-container;
2
-
3
- .#{$namespace} {
4
- position: relative;
5
-
6
- &-active {
7
- user-select: none;
8
- pointer-events: none;
9
- }
10
-
11
- &-icon-box {
12
- position: absolute;
13
- background-color: rgba(#fff, .7);
14
- top: 0;
15
- left: 0;
16
- z-index: 4;
17
- display: block;
18
- width: 100%;
19
- height: 100%;
20
- }
21
-
22
- &-icon {
23
- position: absolute;
24
- top: 50%;
25
- left: 50%;
26
- transform: translate3d(-50%, -50%, 0);
27
- }
1
+ $namespace: ab-loading-container;
2
+
3
+ .#{$namespace} {
4
+ position: relative;
5
+
6
+ &-active {
7
+ user-select: none;
8
+ pointer-events: none;
9
+ }
10
+
11
+ &-icon-box {
12
+ position: absolute;
13
+ background-color: rgba(#fff, .7);
14
+ top: 0;
15
+ left: 0;
16
+ z-index: 4;
17
+ display: block;
18
+ width: 100%;
19
+ height: 100%;
20
+ }
21
+
22
+ &-icon {
23
+ position: absolute;
24
+ top: 50%;
25
+ left: 50%;
26
+ transform: translate3d(-50%, -50%, 0);
27
+ }
28
28
  }
@@ -1,24 +1,24 @@
1
- $namespace: ab-svg-loading;
2
-
3
- .#{$namespace} {
4
- display: inline-block;
5
-
6
- &-icon {
7
- display: block;
8
- width: .31rem;
9
- height: .31rem;
10
- animation: loading 1s infinite linear reverse;
11
- }
12
-
13
- @keyframes loading {
14
- 0% {
15
- transform: rotate(0deg)
16
- }
17
- 50% {
18
- transform: rotate(180deg)
19
- }
20
- 100% {
21
- transform: rotate(360deg)
22
- }
23
- }
1
+ $namespace: ab-svg-loading;
2
+
3
+ .#{$namespace} {
4
+ display: inline-block;
5
+
6
+ &-icon {
7
+ display: block;
8
+ width: .31rem;
9
+ height: .31rem;
10
+ animation: loading 1s infinite linear reverse;
11
+ }
12
+
13
+ @keyframes loading {
14
+ 0% {
15
+ transform: rotate(0deg)
16
+ }
17
+ 50% {
18
+ transform: rotate(180deg)
19
+ }
20
+ 100% {
21
+ transform: rotate(360deg)
22
+ }
23
+ }
24
24
  }
@@ -1,35 +1,35 @@
1
- $namespace: ab-mask;
2
- $maskFade: #{$namespace}-fade;
3
-
4
- .#{$namespace} {
5
- position: fixed;
6
- top: 0;
7
- left: 0;
8
- z-index: 101;
9
- width: 100%;
10
- height: 100%;
11
- background-color: rgba(0, 0, 0, 0.45);
12
- transition: opacity 400ms cubic-bezier(.7, .3, .1, 1);
13
- }
14
-
15
- .#{$maskFade} {
16
- &-enter, &-appear {
17
- opacity: 0;
18
- }
19
-
20
- &-enter-active, &-appear-active, &-enter-done {
21
- opacity: 1;
22
- }
23
-
24
- &-exit {
25
- opacity: 1;
26
- }
27
-
28
- &-exit-active {
29
- opacity: 0;
30
- }
31
-
32
- &-exit-done {
33
- display: none;
34
- }
1
+ $namespace: ab-mask;
2
+ $maskFade: #{$namespace}-fade;
3
+
4
+ .#{$namespace} {
5
+ position: fixed;
6
+ top: 0;
7
+ left: 0;
8
+ z-index: 101;
9
+ width: 100%;
10
+ height: 100%;
11
+ background-color: rgba(0, 0, 0, 0.45);
12
+ transition: opacity 400ms cubic-bezier(.7, .3, .1, 1);
13
+ }
14
+
15
+ .#{$maskFade} {
16
+ &-enter, &-appear {
17
+ opacity: 0;
18
+ }
19
+
20
+ &-enter-active, &-appear-active, &-enter-done {
21
+ opacity: 1;
22
+ }
23
+
24
+ &-exit {
25
+ opacity: 1;
26
+ }
27
+
28
+ &-exit-active {
29
+ opacity: 0;
30
+ }
31
+
32
+ &-exit-done {
33
+ display: none;
34
+ }
35
35
  }