@autobest-ui/components 1.1.1 → 1.1.8

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/style/index.scss +37 -37
  8. package/esm/checkbox/style/index.scss +117 -117
  9. package/esm/collapse/__stories__/style.scss +18 -18
  10. package/esm/collapse/style/index.scss +42 -42
  11. package/esm/confirm/style/index.scss +44 -44
  12. package/esm/date-picker/calendar/grid/index.scss +85 -85
  13. package/esm/date-picker/calendar/index.scss +57 -57
  14. package/esm/date-picker/index.d.ts +1 -0
  15. package/esm/date-picker/index.js +17 -7
  16. package/esm/date-picker/style/index.css +1 -1
  17. package/esm/date-picker/style/index.scss +23 -19
  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 +2 -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 +14 -14
  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 +19 -0
  50. package/esm/table/body/BodyRow.js +98 -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 +62 -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/style/index.scss +37 -37
  77. package/lib/checkbox/style/index.scss +117 -117
  78. package/lib/collapse/__stories__/style.scss +18 -18
  79. package/lib/collapse/style/index.scss +42 -42
  80. package/lib/confirm/style/index.scss +44 -44
  81. package/lib/date-picker/calendar/grid/index.scss +85 -85
  82. package/lib/date-picker/calendar/index.scss +57 -57
  83. package/lib/date-picker/index.d.ts +1 -0
  84. package/lib/date-picker/index.js +17 -7
  85. package/lib/date-picker/style/index.css +1 -1
  86. package/lib/date-picker/style/index.scss +23 -19
  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 +2 -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 +14 -14
  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 +19 -0
  119. package/lib/table/body/BodyRow.js +112 -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 +74 -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,86 +1,86 @@
1
- $namespace: ab-dp-cg;
2
-
3
- .#{$namespace} {
4
- &-title, &-head, &-content {
5
- display: flex;
6
- align-items: center;
7
- }
8
-
9
- &-title {
10
- user-select: none;
11
- font-size: .14rem;
12
- padding-bottom: .08rem;
13
-
14
- > strong {
15
- flex: 1 1;
16
- margin-left: .1rem;
17
- cursor: default;
18
- color: #4A4A4A;
19
-
20
- &.#{$namespace}-clickable {
21
- cursor: pointer;
22
-
23
- &:hover {
24
- color: #000;
25
- }
26
- }
27
- }
28
- }
29
-
30
- &-icon, &-dis-icon {
31
- align-self: flex-end;
32
- margin-left: .08rem;
33
- }
34
-
35
- &-icon {
36
- cursor: pointer;
37
- }
38
-
39
- &-head {
40
- padding-bottom: .05rem;
41
-
42
- > li {
43
- display: flex;
44
- align-items: center;
45
- justify-content: center;
46
- cursor: default;
47
- }
48
- }
49
-
50
- &-content {
51
- flex-wrap: wrap;
52
-
53
- > li {
54
- cursor: pointer;
55
- display: flex;
56
- align-items: center;
57
- justify-content: center;
58
- color: #000;
59
-
60
- &:hover {
61
- background: #F0F0F0;
62
- }
63
-
64
- &.#{$namespace}-dis {
65
- cursor: not-allowed;
66
- color: #b0b0b0;
67
-
68
- &:hover {
69
- background: none;
70
- }
71
- }
72
-
73
- &:active, &.#{$namespace}-selected {
74
- background: #c7e0f4;
75
- border: 3px solid #C7E0F4;
76
- border-radius: 2px;
77
- color: #000000;
78
- }
79
-
80
- &.#{$namespace}-today {
81
- background: #0078D4;
82
- color: #ffffff;
83
- }
84
- }
85
- }
1
+ $namespace: ab-dp-cg;
2
+
3
+ .#{$namespace} {
4
+ &-title, &-head, &-content {
5
+ display: flex;
6
+ align-items: center;
7
+ }
8
+
9
+ &-title {
10
+ user-select: none;
11
+ font-size: .14rem;
12
+ padding-bottom: .08rem;
13
+
14
+ > strong {
15
+ flex: 1 1;
16
+ margin-left: .1rem;
17
+ cursor: default;
18
+ color: #4A4A4A;
19
+
20
+ &.#{$namespace}-clickable {
21
+ cursor: pointer;
22
+
23
+ &:hover {
24
+ color: #000;
25
+ }
26
+ }
27
+ }
28
+ }
29
+
30
+ &-icon, &-dis-icon {
31
+ align-self: flex-end;
32
+ margin-left: .08rem;
33
+ }
34
+
35
+ &-icon {
36
+ cursor: pointer;
37
+ }
38
+
39
+ &-head {
40
+ padding-bottom: .05rem;
41
+
42
+ > li {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ cursor: default;
47
+ }
48
+ }
49
+
50
+ &-content {
51
+ flex-wrap: wrap;
52
+
53
+ > li {
54
+ cursor: pointer;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ color: #000;
59
+
60
+ &:hover {
61
+ background: #F0F0F0;
62
+ }
63
+
64
+ &.#{$namespace}-dis {
65
+ cursor: not-allowed;
66
+ color: #b0b0b0;
67
+
68
+ &:hover {
69
+ background: none;
70
+ }
71
+ }
72
+
73
+ &:active, &.#{$namespace}-selected {
74
+ background: #c7e0f4;
75
+ border: 3px solid #C7E0F4;
76
+ border-radius: 2px;
77
+ color: #000000;
78
+ }
79
+
80
+ &.#{$namespace}-today {
81
+ background: #0078D4;
82
+ color: #ffffff;
83
+ }
84
+ }
85
+ }
86
86
  }
@@ -1,58 +1,58 @@
1
- $namespace: ab-dp-cal;
2
-
3
- .#{$namespace} {
4
- display: flex;
5
-
6
- &-my {
7
- padding-left: .12rem;
8
- margin-left: .12rem;
9
- border-left: 1px solid #B0B0B0;
10
- }
11
-
12
- &-day, &-my {
13
- width: 2.1rem;
14
- }
15
-
16
- &-dis {
17
- color: #C8C8C8;
18
- }
19
-
20
- &-dg {
21
- > ul {
22
- > li {
23
- width: 14.28%;
24
- height: .28rem;
25
-
26
- &.#{$namespace}-out {
27
- color: #666666;
28
- }
29
- }
30
- }
31
- }
32
-
33
- &-myg {
34
- padding-bottom: .62rem;
35
-
36
- > ul {
37
- justify-content: space-between;
38
-
39
- > li {
40
- width: .4rem;
41
- height: .4rem;
42
- margin-bottom: .1rem;
43
- }
44
- }
45
- }
46
-
47
- &-t {
48
- cursor: pointer;
49
- position: absolute;
50
- right: .08rem;
51
- bottom: .3rem;
52
-
53
- &.#{$namespace}-t-dis {
54
- color: #b0b0b0;
55
- cursor: default;
56
- }
57
- }
1
+ $namespace: ab-dp-cal;
2
+
3
+ .#{$namespace} {
4
+ display: flex;
5
+
6
+ &-my {
7
+ padding-left: .12rem;
8
+ margin-left: .12rem;
9
+ border-left: 1px solid #B0B0B0;
10
+ }
11
+
12
+ &-day, &-my {
13
+ width: 2.1rem;
14
+ }
15
+
16
+ &-dis {
17
+ color: #C8C8C8;
18
+ }
19
+
20
+ &-dg {
21
+ > ul {
22
+ > li {
23
+ width: 14.28%;
24
+ height: .28rem;
25
+
26
+ &.#{$namespace}-out {
27
+ color: #666666;
28
+ }
29
+ }
30
+ }
31
+ }
32
+
33
+ &-myg {
34
+ padding-bottom: .62rem;
35
+
36
+ > ul {
37
+ justify-content: space-between;
38
+
39
+ > li {
40
+ width: .4rem;
41
+ height: .4rem;
42
+ margin-bottom: .1rem;
43
+ }
44
+ }
45
+ }
46
+
47
+ &-t {
48
+ cursor: pointer;
49
+ position: absolute;
50
+ right: .08rem;
51
+ bottom: .3rem;
52
+
53
+ &.#{$namespace}-t-dis {
54
+ color: #b0b0b0;
55
+ cursor: default;
56
+ }
57
+ }
58
58
  }
@@ -54,6 +54,7 @@ declare class DatePicker extends React.Component<DatePickerProps, DatePickerStat
54
54
  parseDateFromString: (value: any) => Date;
55
55
  };
56
56
  onCalendarSelect: (date: Date) => void;
57
+ updateDate: () => void;
57
58
  onInputFocus: () => void;
58
59
  onInputChange: (ev: any) => void;
59
60
  onChangeDate: () => void;
@@ -88,11 +88,23 @@ function (_super) {
88
88
  }
89
89
  };
90
90
 
91
- _this.onInputFocus = function () {
92
- if (_this.calendarRef.current && _this.state.inputValue) {
93
- _this.calendarRef.current.updateDate(_this.props.parseDateFromString(_this.state.inputValue, _this.props.name));
91
+ _this.updateDate = function () {
92
+ if (!_this.calendarRef.current || !_this.state.inputValue) {
93
+ return;
94
+ }
95
+
96
+ var date = _this.props.parseDateFromString(_this.state.inputValue, _this.props.name);
97
+
98
+ if (isNaN(date.getTime())) {
99
+ return;
94
100
  }
95
101
 
102
+ _this.calendarRef.current.updateDate(date);
103
+ };
104
+
105
+ _this.onInputFocus = function () {
106
+ _this.updateDate();
107
+
96
108
  _this.setState({
97
109
  calendarVisible: true
98
110
  });
@@ -109,13 +121,11 @@ function (_super) {
109
121
  };
110
122
 
111
123
  _this.onChangeDate = function () {
112
- if (!_this.props.allowTextInput || !_this.calendarRef.current || !_this.state.inputValue) {
124
+ if (!_this.props.allowTextInput) {
113
125
  return;
114
126
  }
115
127
 
116
- var date = _this.props.parseDateFromString(_this.state.inputValue, _this.props.name);
117
-
118
- _this.calendarRef.current.updateDate(date);
128
+ _this.updateDate();
119
129
  };
120
130
 
121
131
  _this.onPopoverVisibleChange = function (visible) {
@@ -1 +1 @@
1
- .ab-date-picker{position:relative}.ab-date-picker-input{outline:0;font-size:.14rem;padding:.04rem;width:1.44rem}.ab-date-picker-icon{position:absolute;right:.05rem;top:50%;transform:translateY(-50%)}
1
+ .ab-date-picker{position:relative}.ab-date-picker-input{outline:0;font-size:.14rem;padding:.04rem;width:1.44rem}.ab-date-picker-input.ab-date-picker-error{background:#fffacd}.ab-date-picker-icon{position:absolute;right:.05rem;top:50%;transform:translateY(-50%)}
@@ -1,19 +1,23 @@
1
- $namespace: ab-date-picker;
2
-
3
- .#{$namespace} {
4
- position: relative;
5
-
6
- &-input {
7
- outline: none;
8
- font-size: .14rem;
9
- padding: .04rem;
10
- width: 1.44rem;
11
- }
12
-
13
- &-icon {
14
- position: absolute;
15
- right: 0.05rem;
16
- top: 50%;
17
- transform: translateY(-50%);
18
- }
19
- }
1
+ $namespace: ab-date-picker;
2
+
3
+ .#{$namespace} {
4
+ position: relative;
5
+
6
+ &-input {
7
+ outline: none;
8
+ font-size: .14rem;
9
+ padding: .04rem;
10
+ width: 1.44rem;
11
+
12
+ &.#{$namespace}-error {
13
+ background: #fffacd;
14
+ }
15
+ }
16
+
17
+ &-icon {
18
+ position: absolute;
19
+ right: 0.05rem;
20
+ top: 50%;
21
+ transform: translateY(-50%);
22
+ }
23
+ }
@@ -1,44 +1,44 @@
1
- $namespace: ab-drawer;
2
-
3
- .#{$namespace} {
4
- position: fixed;
5
- z-index: 101;
6
- background-color: #fff;
7
- overflow: auto;
8
- transition: transform 300ms cubic-bezier(.7, .3, .1, 1);
9
-
10
- &-times {
11
- position: absolute;
12
- right: .17rem;
13
- font-size: .16rem;
14
- color: #b0b0b0;
15
- cursor: pointer;
16
- top: .11rem;
17
-
18
- &:hover {
19
- color: #333;
20
- }
21
- }
22
-
23
- &-tf-top {
24
- transform: translate(0, -100%);
25
- }
26
-
27
- &-tf-bottom {
28
- transform: translate(0, 100%);
29
- }
30
-
31
- &-tf-left {
32
- transform: translate(-100%, 0);
33
- }
34
-
35
- &-tf-right {
36
- transform: translate(100%, 0);
37
- }
38
-
39
- &-hidden {
40
- &.ab-mask, &.ab-drawer {
41
- display: none;
42
- }
43
- }
44
- }
1
+ $namespace: ab-drawer;
2
+
3
+ .#{$namespace} {
4
+ position: fixed;
5
+ z-index: 101;
6
+ background-color: #fff;
7
+ overflow: auto;
8
+ transition: transform 300ms cubic-bezier(.7, .3, .1, 1);
9
+
10
+ &-times {
11
+ position: absolute;
12
+ right: .17rem;
13
+ font-size: .16rem;
14
+ color: #b0b0b0;
15
+ cursor: pointer;
16
+ top: .11rem;
17
+
18
+ &:hover {
19
+ color: #333;
20
+ }
21
+ }
22
+
23
+ &-tf-top {
24
+ transform: translate(0, -100%);
25
+ }
26
+
27
+ &-tf-bottom {
28
+ transform: translate(0, 100%);
29
+ }
30
+
31
+ &-tf-left {
32
+ transform: translate(-100%, 0);
33
+ }
34
+
35
+ &-tf-right {
36
+ transform: translate(100%, 0);
37
+ }
38
+
39
+ &-hidden {
40
+ &.ab-mask, &.ab-drawer {
41
+ display: none;
42
+ }
43
+ }
44
+ }
@@ -1,35 +1,35 @@
1
- $namespace: ab-ellipsis;
2
-
3
- $lines: (1) (2) (3) (4) (5);
4
- @mixin generateLines($type) {
5
- @each $val in $lines {
6
- &.#{$namespace}#{$type}#{$val} {
7
- -webkit-line-clamp: $val;
8
- }
9
- }
10
- }
11
-
12
- @mixin clearLines($type) {
13
- @each $val in $lines {
14
- &.#{$namespace}#{$type}#{$val} {
15
- -webkit-line-clamp: unset;
16
- }
17
- }
18
- }
19
-
20
- .#{$namespace} {
21
- overflow: hidden;
22
- display: block;
23
- display: -webkit-box;
24
- -webkit-box-orient: vertical;
25
-
26
- @include generateLines('-line');
27
- }
28
-
29
-
30
- @media only screen and (max-width: 767px) {
31
- .#{$namespace} {
32
- @include clearLines('-line');
33
- @include generateLines('-m-line');
34
- }
35
- }
1
+ $namespace: ab-ellipsis;
2
+
3
+ $lines: (1) (2) (3) (4) (5);
4
+ @mixin generateLines($type) {
5
+ @each $val in $lines {
6
+ &.#{$namespace}#{$type}#{$val} {
7
+ -webkit-line-clamp: $val;
8
+ }
9
+ }
10
+ }
11
+
12
+ @mixin clearLines($type) {
13
+ @each $val in $lines {
14
+ &.#{$namespace}#{$type}#{$val} {
15
+ -webkit-line-clamp: unset;
16
+ }
17
+ }
18
+ }
19
+
20
+ .#{$namespace} {
21
+ overflow: hidden;
22
+ display: block;
23
+ display: -webkit-box;
24
+ -webkit-box-orient: vertical;
25
+
26
+ @include generateLines('-line');
27
+ }
28
+
29
+
30
+ @media only screen and (max-width: 767px) {
31
+ .#{$namespace} {
32
+ @include clearLines('-line');
33
+ @include generateLines('-m-line');
34
+ }
35
+ }
@@ -1,14 +1,14 @@
1
- .guide-demo {
2
- .input {
3
- width: 3rem;
4
- }
5
-
6
- .btn {
7
- display: block;
8
- margin-top: .2rem;
9
- width: .8rem;
10
- height: .3rem;
11
- font-size: .16rem;
12
- text-align: center;
13
- }
1
+ .guide-demo {
2
+ .input {
3
+ width: 3rem;
4
+ }
5
+
6
+ .btn {
7
+ display: block;
8
+ margin-top: .2rem;
9
+ width: .8rem;
10
+ height: .3rem;
11
+ font-size: .16rem;
12
+ text-align: center;
13
+ }
14
14
  }
@@ -1,18 +1,18 @@
1
- $namespace: ab-guide;
2
-
3
- .#{$namespace} {
4
- &-mask.ab-mask {
5
- background-color: rgba(0, 0, 0, .7);
6
- z-index: 4;
7
- }
8
-
9
- &-icon {
10
- position: absolute;
11
- z-index: 5;
12
- }
13
-
14
- &-content {
15
- position: relative;
16
- z-index: 6;
17
- }
1
+ $namespace: ab-guide;
2
+
3
+ .#{$namespace} {
4
+ &-mask.ab-mask {
5
+ background-color: rgba(0, 0, 0, .7);
6
+ z-index: 4;
7
+ }
8
+
9
+ &-icon {
10
+ position: absolute;
11
+ z-index: 5;
12
+ }
13
+
14
+ &-content {
15
+ position: relative;
16
+ z-index: 6;
17
+ }
18
18
  }
@@ -1,40 +1,40 @@
1
- .demo-icon-list{
2
- padding: .2rem .1rem;
3
- font-size: .12rem;
4
- display: flex;
5
- width: 100%;
6
- flex-wrap: wrap;
7
-
8
- & > li {
9
- padding: .1rem;
10
- border: 1px solid #E0E0E0;
11
- margin: .05rem;
12
- display: flex;
13
- flex-direction: column;
14
- justify-content: center;
15
- align-items: center;
16
- background-color: #F3F4F6;
17
- min-width: 1.2rem;
18
- min-height: 1.5rem;
19
-
20
- svg {
21
- max-width: .5rem;
22
- height: .5rem;
23
- }
24
-
25
- p {
26
- padding: 0 5px;
27
- text-align: center;
28
- width: 1rem;
29
- word-break: break-all;
30
- }
31
-
32
- &:hover{
33
- background-color: #E5E7EB;
34
- }
35
- }
36
-
37
- .demo-icon-name{
38
- padding-top: .15rem;
39
- }
1
+ .demo-icon-list{
2
+ padding: .2rem .1rem;
3
+ font-size: .12rem;
4
+ display: flex;
5
+ width: 100%;
6
+ flex-wrap: wrap;
7
+
8
+ & > li {
9
+ padding: .1rem;
10
+ border: 1px solid #E0E0E0;
11
+ margin: .05rem;
12
+ display: flex;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ align-items: center;
16
+ background-color: #F3F4F6;
17
+ min-width: 1.2rem;
18
+ min-height: 1.5rem;
19
+
20
+ svg {
21
+ max-width: .5rem;
22
+ height: .5rem;
23
+ }
24
+
25
+ p {
26
+ padding: 0 5px;
27
+ text-align: center;
28
+ width: 1rem;
29
+ word-break: break-all;
30
+ }
31
+
32
+ &:hover{
33
+ background-color: #E5E7EB;
34
+ }
35
+ }
36
+
37
+ .demo-icon-name{
38
+ padding-top: .15rem;
39
+ }
40
40
  }