@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
package/lib/base.scss CHANGED
@@ -1,42 +1,42 @@
1
- /* reset css */
2
- html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video, input, a, textarea {
3
- box-sizing: border-box;
4
- }
5
-
6
- html {
7
- font-size: 100px;
8
- font-family: Arial, sans-serif;
9
- touch-action: manipulation;
10
- -ms-touch-action: manipulation;
11
- }
12
-
13
- @media only screen and (max-width: 767px) {
14
- html {
15
- //font-size: 24.15459vw;
16
- // 暂时取消对UI自适应,而是统一成一种
17
- font-size: 100px;
18
- }
19
- }
20
-
21
- body {
22
- font-size: .12rem;
23
- color: #333;
24
- margin: 0;
25
- padding: 0;
26
- -webkit-font-smoothing: antialiased;
27
- -moz-osx-font-smoothing: grayscale;
28
- }
29
-
30
- a {
31
- text-decoration: none;
32
- }
33
-
34
- input {
35
- outline: none;
36
- }
37
-
38
- ul, li {
39
- padding: 0;
40
- margin: 0;
41
- list-style: none;
42
- }
1
+ /* reset css */
2
+ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video, input, a, textarea {
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ html {
7
+ font-size: 100px;
8
+ font-family: Arial, sans-serif;
9
+ touch-action: manipulation;
10
+ -ms-touch-action: manipulation;
11
+ }
12
+
13
+ @media only screen and (max-width: 767px) {
14
+ html {
15
+ //font-size: 24.15459vw;
16
+ // 暂时取消对UI自适应,而是统一成一种
17
+ font-size: 100px;
18
+ }
19
+ }
20
+
21
+ body {
22
+ font-size: .12rem;
23
+ color: #333;
24
+ margin: 0;
25
+ padding: 0;
26
+ -webkit-font-smoothing: antialiased;
27
+ -moz-osx-font-smoothing: grayscale;
28
+ }
29
+
30
+ a {
31
+ text-decoration: none;
32
+ }
33
+
34
+ input {
35
+ outline: none;
36
+ }
37
+
38
+ ul, li {
39
+ padding: 0;
40
+ margin: 0;
41
+ list-style: none;
42
+ }
@@ -1,41 +1,41 @@
1
- .demo-carousel {
2
- margin: auto;
3
- position: relative;
4
-
5
- p {
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- font-size: 32px;
10
- margin: 0;
11
- color: #F3F4F6;
12
- height: 225px;
13
- border-radius: 3px;
14
- }
15
- }
16
-
17
- .ab-carousel {
18
- position: relative;
19
- }
20
-
21
- .button-prev, .button-next {
22
- position: absolute;
23
- box-sizing: border-box;
24
- cursor: pointer;
25
- font-size: 32px;
26
- top: 50%;
27
- margin-top: -15px;
28
- width: 30px;
29
- height: 30px;
30
- color: #F3F4F6;
31
- }
32
-
33
- .button-prev {
34
- left: 5px;
35
- top: 50%;
36
- }
37
-
38
- .button-next {
39
- right: 5px;
40
- top: 50%;
41
- }
1
+ .demo-carousel {
2
+ margin: auto;
3
+ position: relative;
4
+
5
+ p {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ font-size: 32px;
10
+ margin: 0;
11
+ color: #F3F4F6;
12
+ height: 225px;
13
+ border-radius: 3px;
14
+ }
15
+ }
16
+
17
+ .ab-carousel {
18
+ position: relative;
19
+ }
20
+
21
+ .button-prev, .button-next {
22
+ position: absolute;
23
+ box-sizing: border-box;
24
+ cursor: pointer;
25
+ font-size: 32px;
26
+ top: 50%;
27
+ margin-top: -15px;
28
+ width: 30px;
29
+ height: 30px;
30
+ color: #F3F4F6;
31
+ }
32
+
33
+ .button-prev {
34
+ left: 5px;
35
+ top: 50%;
36
+ }
37
+
38
+ .button-next {
39
+ right: 5px;
40
+ top: 50%;
41
+ }
@@ -1,37 +1,37 @@
1
- $namespace: ab-carousel;
2
-
3
- .#{$namespace} {
4
- position: relative;
5
-
6
- &-content {
7
- position: relative;
8
- display: block;
9
- height: 100%;
10
- width: 100%;
11
- margin: 0;
12
- padding: 0;
13
- overflow: hidden;
14
- }
15
-
16
- &-list {
17
- user-select: none;
18
- position: relative;
19
- top: 0;
20
- left: 0;
21
- display: block;
22
- overflow: hidden;
23
- }
24
-
25
- &-slider {
26
- outline: none;
27
- overflow: hidden;
28
- float: left;
29
- display: none;
30
- }
31
-
32
- &.#{$namespace}-init {
33
- .#{$namespace}-slider {
34
- display: block;
35
- }
36
- }
37
- }
1
+ $namespace: ab-carousel;
2
+
3
+ .#{$namespace} {
4
+ position: relative;
5
+
6
+ &-content {
7
+ position: relative;
8
+ display: block;
9
+ height: 100%;
10
+ width: 100%;
11
+ margin: 0;
12
+ padding: 0;
13
+ overflow: hidden;
14
+ }
15
+
16
+ &-list {
17
+ user-select: none;
18
+ position: relative;
19
+ top: 0;
20
+ left: 0;
21
+ display: block;
22
+ overflow: hidden;
23
+ }
24
+
25
+ &-slider {
26
+ outline: none;
27
+ overflow: hidden;
28
+ float: left;
29
+ display: none;
30
+ }
31
+
32
+ &.#{$namespace}-init {
33
+ .#{$namespace}-slider {
34
+ display: block;
35
+ }
36
+ }
37
+ }
@@ -1,118 +1,118 @@
1
- $namespace: ab-checkbox;
2
-
3
- .#{$namespace} {
4
- display: inline-block;
5
- position: relative;
6
- font-size: 0;
7
- cursor: pointer;
8
-
9
- &-input {
10
- position: absolute;
11
- opacity: 0;
12
- margin: 0;
13
- padding: 0;
14
- width: 100%;
15
- height: 100%;
16
- cursor: pointer;
17
- z-index: 2;
18
- }
19
-
20
- &-inner {
21
- display: inline-block;
22
- position: relative;
23
- width: .16rem;
24
- height: .16rem;
25
- transition: all .3s;
26
- border: .02rem solid #B0B0B0;
27
- border-radius: .02rem;
28
- background-color: #fff;
29
- }
30
-
31
- &-icon {
32
- visibility: hidden;
33
- position: absolute;
34
- width: .06rem;
35
- height: .1rem;
36
- left: 20%;
37
- top: 40%;
38
- transform: rotate(45deg) scale(0) translate(-50%, -50%);
39
- transition: all .2s;
40
- border: .02rem solid #E84040;
41
- border-top: none;
42
- border-left: none;
43
- }
44
-
45
- &.#{$namespace}-checked {
46
- .#{$namespace} {
47
- &-icon {
48
- visibility: visible;
49
- transform: rotate(45deg) scale(1) translate(-50%, -50%);
50
- }
51
- }
52
- }
53
-
54
- &.#{$namespace}-disabled {
55
- cursor: not-allowed;
56
- color: rgba(0, 0, 0, .25);
57
-
58
- .#{$namespace} {
59
- &-inner {
60
- border-color: #f0f0f0 !important;
61
- background-color: #f5f5f5 !important;
62
- }
63
-
64
- &-icon {
65
- border-color: #cecece;
66
- }
67
-
68
- &-content {
69
- text-decoration: none !important;
70
- }
71
- }
72
- }
73
-
74
- &-wrap {
75
- display: inline-block;
76
- position: relative;
77
- cursor: pointer;
78
-
79
- .#{$namespace} {
80
- position: absolute;
81
- transform: translateY(-50%);
82
- top: 50%;
83
- left: 0;
84
- }
85
-
86
- &:hover {
87
- .#{$namespace}-content {
88
- text-decoration: underline;
89
- }
90
- }
91
- }
92
-
93
- &-content {
94
- padding-left: .24rem;
95
- display: inline-block;
96
- }
97
-
98
- &-wrap.#{$namespace}-reverse {
99
- .#{$namespace} {
100
- left: auto;
101
- right: 0;
102
-
103
- &-content {
104
- padding-left: 0;
105
- padding-right: .24rem;
106
- }
107
- }
108
- }
109
-
110
- &-wrap.#{$namespace}-disabled {
111
- cursor: not-allowed;
112
- color: rgba(0, 0, 0, .25);
113
-
114
- .#{$namespace}-content {
115
- text-decoration: none !important;
116
- }
117
- }
1
+ $namespace: ab-checkbox;
2
+
3
+ .#{$namespace} {
4
+ display: inline-block;
5
+ position: relative;
6
+ font-size: 0;
7
+ cursor: pointer;
8
+
9
+ &-input {
10
+ position: absolute;
11
+ opacity: 0;
12
+ margin: 0;
13
+ padding: 0;
14
+ width: 100%;
15
+ height: 100%;
16
+ cursor: pointer;
17
+ z-index: 2;
18
+ }
19
+
20
+ &-inner {
21
+ display: inline-block;
22
+ position: relative;
23
+ width: .16rem;
24
+ height: .16rem;
25
+ transition: all .3s;
26
+ border: .02rem solid #B0B0B0;
27
+ border-radius: .02rem;
28
+ background-color: #fff;
29
+ }
30
+
31
+ &-icon {
32
+ visibility: hidden;
33
+ position: absolute;
34
+ width: .06rem;
35
+ height: .1rem;
36
+ left: 20%;
37
+ top: 40%;
38
+ transform: rotate(45deg) scale(0) translate(-50%, -50%);
39
+ transition: all .2s;
40
+ border: .02rem solid #E84040;
41
+ border-top: none;
42
+ border-left: none;
43
+ }
44
+
45
+ &.#{$namespace}-checked {
46
+ .#{$namespace} {
47
+ &-icon {
48
+ visibility: visible;
49
+ transform: rotate(45deg) scale(1) translate(-50%, -50%);
50
+ }
51
+ }
52
+ }
53
+
54
+ &.#{$namespace}-disabled {
55
+ cursor: not-allowed;
56
+ color: rgba(0, 0, 0, .25);
57
+
58
+ .#{$namespace} {
59
+ &-inner {
60
+ border-color: #f0f0f0 !important;
61
+ background-color: #f5f5f5 !important;
62
+ }
63
+
64
+ &-icon {
65
+ border-color: #cecece;
66
+ }
67
+
68
+ &-content {
69
+ text-decoration: none !important;
70
+ }
71
+ }
72
+ }
73
+
74
+ &-wrap {
75
+ display: inline-block;
76
+ position: relative;
77
+ cursor: pointer;
78
+
79
+ .#{$namespace} {
80
+ position: absolute;
81
+ transform: translateY(-50%);
82
+ top: 50%;
83
+ left: 0;
84
+ }
85
+
86
+ &:hover {
87
+ .#{$namespace}-content {
88
+ text-decoration: underline;
89
+ }
90
+ }
91
+ }
92
+
93
+ &-content {
94
+ padding-left: .24rem;
95
+ display: inline-block;
96
+ }
97
+
98
+ &-wrap.#{$namespace}-reverse {
99
+ .#{$namespace} {
100
+ left: auto;
101
+ right: 0;
102
+
103
+ &-content {
104
+ padding-left: 0;
105
+ padding-right: .24rem;
106
+ }
107
+ }
108
+ }
109
+
110
+ &-wrap.#{$namespace}-disabled {
111
+ cursor: not-allowed;
112
+ color: rgba(0, 0, 0, .25);
113
+
114
+ .#{$namespace}-content {
115
+ text-decoration: none !important;
116
+ }
117
+ }
118
118
  }
@@ -1,19 +1,19 @@
1
- .demo-collapse{
2
- min-height: 200px;
3
- padding: 0.2rem;
4
- }
5
-
6
- .title-wrap {
7
- width: 1rem;
8
- height: .4rem;
9
- background-color: #3B82F6;
10
- color: #F3F4F6;
11
-
12
- > strong {
13
- display: block;
14
- width: 1rem;
15
- height: .2rem;
16
- background-color: #10B981;
17
- cursor: pointer;
18
- }
1
+ .demo-collapse{
2
+ min-height: 200px;
3
+ padding: 0.2rem;
4
+ }
5
+
6
+ .title-wrap {
7
+ width: 1rem;
8
+ height: .4rem;
9
+ background-color: #3B82F6;
10
+ color: #F3F4F6;
11
+
12
+ > strong {
13
+ display: block;
14
+ width: 1rem;
15
+ height: .2rem;
16
+ background-color: #10B981;
17
+ cursor: pointer;
18
+ }
19
19
  }
@@ -1,43 +1,43 @@
1
- $namespace: ab-collapse;
2
- $collapseFade: #{$namespace}-fade;
3
-
4
- .#{$namespace} {
5
- transform-origin: left top;
6
- transition: opacity 200ms, height 200ms;
7
- &-hidden{
8
- height: 0;
9
- overflow: hidden;
10
- }
11
- }
12
-
13
- .#{$collapseFade} {
14
- &-enter {
15
- opacity: 0.8;
16
- overflow: hidden;
17
- }
18
-
19
- &-enter-active {
20
- opacity: 1;
21
- overflow: hidden;
22
- }
23
-
24
- &-enter-done {
25
- opacity: 1;
26
- overflow: initial;
27
- }
28
-
29
- &-exit {
30
- opacity: 1;
31
- overflow: hidden;
32
- }
33
-
34
- &-exit-active {
35
- opacity: 0.8;
36
- overflow: hidden;
37
- }
38
-
39
- &-exit-done {
40
- display: none;
41
- overflow: initial;
42
- }
1
+ $namespace: ab-collapse;
2
+ $collapseFade: #{$namespace}-fade;
3
+
4
+ .#{$namespace} {
5
+ transform-origin: left top;
6
+ transition: opacity 200ms, height 200ms;
7
+ &-hidden{
8
+ height: 0;
9
+ overflow: hidden;
10
+ }
11
+ }
12
+
13
+ .#{$collapseFade} {
14
+ &-enter {
15
+ opacity: 0.8;
16
+ overflow: hidden;
17
+ }
18
+
19
+ &-enter-active {
20
+ opacity: 1;
21
+ overflow: hidden;
22
+ }
23
+
24
+ &-enter-done {
25
+ opacity: 1;
26
+ overflow: initial;
27
+ }
28
+
29
+ &-exit {
30
+ opacity: 1;
31
+ overflow: hidden;
32
+ }
33
+
34
+ &-exit-active {
35
+ opacity: 0.8;
36
+ overflow: hidden;
37
+ }
38
+
39
+ &-exit-done {
40
+ display: none;
41
+ overflow: initial;
42
+ }
43
43
  }
@@ -1,44 +1,44 @@
1
- $namespace: ab-confirm;
2
-
3
- .#{$namespace} {
4
- &-btns {
5
- display: flex;
6
- justify-content: flex-end;
7
- padding-top: .42rem;
8
- }
9
-
10
- &-ok, &-cancel {
11
- overflow: hidden;
12
- position: relative;
13
- font-size: .12rem;
14
- border-width: 1px;
15
- border-style: solid;
16
- outline: none;
17
- cursor: pointer;
18
- font-weight: bold;
19
- padding: .05rem .3rem;
20
- display: inline-block;
21
- color: #fff;
22
- margin-left: .3rem;
23
- }
24
-
25
- &-ok {
26
- border-color: #bc0000;
27
- background: linear-gradient(180deg, #c00000 0%, #c00000 0%, #a00000 100%, #a00000 100%);
28
-
29
- &:hover {
30
- border-color: #bc0000;
31
- background: #bc0000;
32
- }
33
- }
34
-
35
- &-cancel {
36
- border-color: #808080;
37
- background: linear-gradient(180deg, #909090 0%, #909090 0%, #707070 100%, #707070 100%);
38
-
39
- &:hover {
40
- border-color: #808080;
41
- background: #808080;
42
- }
43
- }
44
- }
1
+ $namespace: ab-confirm;
2
+
3
+ .#{$namespace} {
4
+ &-btns {
5
+ display: flex;
6
+ justify-content: flex-end;
7
+ padding-top: .42rem;
8
+ }
9
+
10
+ &-ok, &-cancel {
11
+ overflow: hidden;
12
+ position: relative;
13
+ font-size: .12rem;
14
+ border-width: 1px;
15
+ border-style: solid;
16
+ outline: none;
17
+ cursor: pointer;
18
+ font-weight: bold;
19
+ padding: .05rem .3rem;
20
+ display: inline-block;
21
+ color: #fff;
22
+ margin-left: .3rem;
23
+ }
24
+
25
+ &-ok {
26
+ border-color: #bc0000;
27
+ background: linear-gradient(180deg, #c00000 0%, #c00000 0%, #a00000 100%, #a00000 100%);
28
+
29
+ &:hover {
30
+ border-color: #bc0000;
31
+ background: #bc0000;
32
+ }
33
+ }
34
+
35
+ &-cancel {
36
+ border-color: #808080;
37
+ background: linear-gradient(180deg, #909090 0%, #909090 0%, #707070 100%, #707070 100%);
38
+
39
+ &:hover {
40
+ border-color: #808080;
41
+ background: #808080;
42
+ }
43
+ }
44
+ }