@neatui/css 1.0.27 → 2.0.0-beta.1

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 (91) hide show
  1. package/components/btns/btns@a.scss +41 -87
  2. package/components/btns/btns@b.scss +22 -22
  3. package/components/btns/btns@c.scss +2 -2
  4. package/components/btns/mcui@btns.scss +2 -2
  5. package/components/card/card@a.scss +37 -37
  6. package/components/card/card@b.scss +36 -41
  7. package/components/cite/cite@a.scss +1 -2
  8. package/components/demo/demo@a.scss +3 -3
  9. package/components/form/base.scss +30 -26
  10. package/components/form/form@a/base.scss +5 -5
  11. package/components/form/form@a/checkbox.scss +21 -27
  12. package/components/form/form@a/date.scss +6 -6
  13. package/components/form/form@a/input.scss +25 -25
  14. package/components/form/form@a/radio.scss +2 -6
  15. package/components/form/form@a/select.scss +10 -12
  16. package/components/form/form@a/switch.scss +7 -10
  17. package/components/form/form@a/textarea.scss +29 -41
  18. package/components/form/form@a/upload.scss +11 -16
  19. package/components/form/form@b/base.scss +3 -5
  20. package/components/form/form@b/checkbox.scss +1 -3
  21. package/components/form/form@b/date.scss +6 -6
  22. package/components/form/form@b/input.scss +23 -41
  23. package/components/form/form@b/radio.scss +1 -3
  24. package/components/form/form@b/select.scss +10 -12
  25. package/components/form/form@b/switch.scss +7 -10
  26. package/components/form/form@b/textarea.scss +25 -41
  27. package/components/form/form@b/upload.scss +11 -16
  28. package/components/form/form@c/base.scss +9 -12
  29. package/components/form/form@c/checkbox.scss +3 -6
  30. package/components/form/form@c/date.scss +7 -9
  31. package/components/form/form@c/input.scss +27 -42
  32. package/components/form/form@c/radio.scss +3 -6
  33. package/components/form/form@c/select.scss +10 -12
  34. package/components/form/form@c/switch.scss +7 -10
  35. package/components/form/form@c/textarea.scss +21 -33
  36. package/components/form/form@c/upload.scss +11 -16
  37. package/components/form/form@d/input.scss +13 -13
  38. package/components/form/form@d/textarea.scss +16 -16
  39. package/components/form/form@d/upload.scss +2 -2
  40. package/components/form/mcui@form.scss +1 -1
  41. package/components/form/radio@theme=aa.scss +1 -5
  42. package/components/grid/grid@a.scss +7 -9
  43. package/components/imgs/base.scss +2 -3
  44. package/components/imgs/imgs@a.scss +11 -19
  45. package/components/imgs/imgs@b.scss +1 -1
  46. package/components/line/line@a.scss +3 -6
  47. package/components/line/line@b.scss +4 -12
  48. package/components/list/list@a.scss +13 -18
  49. package/components/list/list@b.scss +9 -13
  50. package/components/load/load@a.scss +11 -12
  51. package/components/load/load@e.scss +1 -3
  52. package/components/load/load@h.scss +3 -7
  53. package/components/menu/menu@b.scss +28 -40
  54. package/components/navs/navs@a.scss +12 -25
  55. package/components/navs/navs@b.scss +14 -29
  56. package/components/note/note@a.scss +8 -13
  57. package/components/note/note@b.scss +8 -22
  58. package/components/opts/opts@a.scss +7 -10
  59. package/components/path/path@a.scss +2 -6
  60. package/components/steps/steps@a.scss +10 -22
  61. package/components/steps/steps@v.scss +25 -37
  62. package/components/table/base.scss +15 -13
  63. package/components/table/table@a.scss +42 -41
  64. package/components/table/table@b.scss +23 -25
  65. package/components/table/table@c.scss +2 -4
  66. package/components/tabs/tabs@a.scss +7 -7
  67. package/components/tabs/tabs@b.scss +7 -7
  68. package/components/tabs/tabs@c.scss +7 -7
  69. package/components/tags/tags@a.scss +26 -40
  70. package/components/tags/tags@b.scss +22 -36
  71. package/components/tips/tips@a.scss +6 -6
  72. package/components/title/title@a.scss +3 -3
  73. package/components/title/title@b.scss +4 -3
  74. package/core/base.scss +24 -9
  75. package/core/color.scss +35 -179
  76. package/core/{mcui@core.scss → neatui@core.scss} +0 -2
  77. package/core/reset.scss +15 -2
  78. package/core/scroll.scss +20 -15
  79. package/core/size.scss +2 -2
  80. package/core/theme.scss +199 -69
  81. package/core/trim.scss +36 -0
  82. package/core/ux.scss +13 -19
  83. package/neatui.scss +1 -1
  84. package/package.json +1 -1
  85. package/components/paging/mc-paging-ui1503.scss +0 -106
  86. package/components/paging/mc-paging.scss +0 -432
  87. package/components/paging/paging@theme=aa.scss +0 -45
  88. package/core/pos.scss +0 -252
  89. package/core/trim.mobile.scss +0 -327
  90. /package/core/{mcui@core.lite.scss → neatui@core.lite.scss} +0 -0
  91. /package/core/{mcui@mobile.scss → neatui@mobile.scss} +0 -0
package/core/color.scss CHANGED
@@ -1,174 +1,46 @@
1
1
  html {
2
- @include theme {
3
- color: co(read);
4
- fill: co(read);
5
- background-color: co(back);
6
- }
2
+ color: var(--co-read);
3
+ fill: var(--co-read);
4
+ background-color: var(--co-back);
7
5
  }
8
6
 
9
7
  @mixin color($n, $v) {
8
+ $levels: xs, ss, sm, sl, ms, mm, ml, ls, lm, ll, xl;
9
+
10
10
  .co-#{$n},
11
- .hover\:co-#{$n}:hover {
12
- color: #{$v} !important;
13
- fill: #{$v} !important;
14
- }
15
- // 透明度
16
- .co-#{$n}\+o-xs,
17
- .hover\:co-#{$n}\+o-xs:hover {
18
- color: rgba($v, 0.05) !important;
19
- fill: rgba($v, 0.05) !important;
20
- }
21
- .co-#{$n}\+o-ss,
22
- .hover\:co-#{$n}\+o-ss:hover {
23
- color: rgba($v, 0.1) !important;
24
- fill: rgba($v, 0.1) !important;
25
- }
26
- .co-#{$n}\+o-sm,
27
- .hover\:co-#{$n}\+o-sm:hover {
28
- color: rgba($v, 0.2) !important;
29
- fill: rgba($v, 0.2) !important;
30
- }
31
- .co-#{$n}\+o-sl,
32
- .hover\:co-#{$n}\+o-sl:hover {
33
- color: rgba($v, 0.3) !important;
34
- fill: rgba($v, 0.3) !important;
35
- }
36
- .co-#{$n}\+o-ms,
37
- .hover\:co-#{$n}\+o-ms:hover {
38
- color: rgba($v, 0.4) !important;
39
- fill: rgba($v, 0.4) !important;
40
- }
41
- .co-#{$n}\+o-mm,
42
- .hover\:co-#{$n}\+o-mm:hover {
43
- color: rgba($v, 0.5) !important;
44
- fill: rgba($v, 0.5) !important;
45
- }
46
- .co-#{$n}\+o-ml,
47
- .hover\:co-#{$n}\+o-ml:hover {
48
- color: rgba($v, 0.6) !important;
49
- fill: rgba($v, 0.6) !important;
50
- }
51
- .co-#{$n}\+o-ls,
52
- .hover\:co-#{$n}\+o-ls:hover {
53
- color: rgba($v, 0.7) !important;
54
- fill: rgba($v, 0.7) !important;
55
- }
56
- .co-#{$n}\+o-lm,
57
- .hover\:co-#{$n}\+o-lm:hover {
58
- color: rgba($v, 0.8) !important;
59
- fill: rgba($v, 0.8) !important;
60
- }
61
- .co-#{$n}\+o-ll,
62
- .hover\:co-#{$n}\+o-ll:hover {
63
- color: rgba($v, 0.9) !important;
64
- fill: rgba($v, 0.9) !important;
11
+ .co-#{$n}\:hover:hover,
12
+ .co-#{$n}\:active:active {
13
+ color: var(--co-#{$n}) !important;
14
+ fill: var(--co-#{$n}) !important;
65
15
  }
66
- .co-#{$n}\+o-xl,
67
- .hover\:co-#{$n}\+o-xl:hover {
68
- color: rgba($v, 0.95) !important;
69
- fill: rgba($v, 0.95) !important;
70
- }
71
-
72
16
  .bg-#{$n},
73
- .hover\:bg-#{$n}:hover {
74
- background-color: #{$v} !important;
75
- }
76
- // 透明度
77
- .bg-#{$n}\+o-xs,
78
- .hover\:bg-#{$n}\+o-xs:hover {
79
- background-color: rgba($v, 0.05) !important;
80
- }
81
- .bg-#{$n}\+o-ss,
82
- .hover\:bg-#{$n}\+o-ss:hover {
83
- background-color: rgba($v, 0.1) !important;
84
- }
85
- .bg-#{$n}\+o-sm,
86
- .hover\:bg-#{$n}\+o-sm:hover {
87
- background-color: rgba($v, 0.2) !important;
88
- }
89
- .bg-#{$n}\+o-sl,
90
- .hover\:bg-#{$n}\+o-sl:hover {
91
- background-color: rgba($v, 0.3) !important;
92
- }
93
- .bg-#{$n}\+o-ms,
94
- .hover\:bg-#{$n}\+o-ms:hover {
95
- background-color: rgba($v, 0.4) !important;
96
- }
97
- .bg-#{$n}\+o-mm,
98
- .hover\:bg-#{$n}\+o-mm:hover {
99
- background-color: rgba($v, 0.5) !important;
100
- }
101
- .bg-#{$n}\+o-ml,
102
- .hover\:bg-#{$n}\+o-ml:hover {
103
- background-color: rgba($v, 0.6) !important;
104
- }
105
- .bg-#{$n}\+o-ls,
106
- .hover\:bg-#{$n}\+o-ls:hover {
107
- background-color: rgba($v, 0.7) !important;
108
- }
109
- .bg-#{$n}\+o-lm,
110
- .hover\:bg-#{$n}\+o-lm:hover {
111
- background-color: rgba($v, 0.8) !important;
17
+ .bg-#{$n}\:hover:hover,
18
+ .bg-#{$n}\:active:active {
19
+ background-color: var(--co-#{$n}) !important;
112
20
  }
113
- .bg-#{$n}\+o-ll,
114
- .hover\:bg-#{$n}\+o-ll:hover {
115
- background-color: rgba($v, 0.9) !important;
116
- }
117
- .bg-#{$n}\+o-xl,
118
- .hover\:bg-#{$n}\+o-xl:hover {
119
- background-color: rgba($v, 0.95) !important;
120
- }
121
-
122
- .b-#{$n},
123
21
  .bk-#{$n},
124
- .hover\:b-#{$n}:hover,
125
- .hover\:bk-#{$n}:hover {
126
- border-color: #{$v} !important;
127
- }
128
- // 透明度
129
- .bk-#{$n}\+o-xs,
130
- .hover\:bk-#{$n}\+o-xs:hover {
131
- border-color: rgba($v, 0.05) !important;
132
- }
133
- .bk-#{$n}\+o-ss,
134
- .hover\:bk-#{$n}\+o-ss:hover {
135
- border-color: rgba($v, 0.1) !important;
136
- }
137
- .bk-#{$n}\+o-sm,
138
- .hover\:bk-#{$n}\+o-sm:hover {
139
- border-color: rgba($v, 0.2) !important;
140
- }
141
- .bk-#{$n}\+o-sl,
142
- .hover\:bk-#{$n}\+o-sl:hover {
143
- border-color: rgba($v, 0.3) !important;
144
- }
145
- .bk-#{$n}\+o-ms,
146
- .hover\:bk-#{$n}\+o-ms:hover {
147
- border-color: rgba($v, 0.4) !important;
148
- }
149
- .bk-#{$n}\+o-mm,
150
- .hover\:bk-#{$n}\+o-mm:hover {
151
- border-color: rgba($v, 0.5) !important;
152
- }
153
- .bk-#{$n}\+o-ml,
154
- .hover\:bk-#{$n}\+o-ml:hover {
155
- border-color: rgba($v, 0.6) !important;
156
- }
157
- .bk-#{$n}\+o-ls,
158
- .hover\:bk-#{$n}\+o-ls:hover {
159
- border-color: rgba($v, 0.7) !important;
22
+ .bk-#{$n}\:hover:hover,
23
+ .bk-#{$n}\:active:active {
24
+ border-color: var(--co-#{$n}) !important;
160
25
  }
161
- .bk-#{$n}\+o-lm,
162
- .hover\:bk-#{$n}\+o-lm:hover {
163
- border-color: rgba($v, 0.8) !important;
164
- }
165
- .bk-#{$n}\+o-ll,
166
- .hover\:bk-#{$n}\+o-ll:hover {
167
- border-color: rgba($v, 0.9) !important;
168
- }
169
- .bk-#{$n}\+o-xl,
170
- .hover\:bk-#{$n}\+o-xl:hover {
171
- border-color: rgba($v, 0.95) !important;
26
+
27
+ @each $i in $levels {
28
+ .co-#{$n}-#{$i},
29
+ .co-#{$n}-#{$i}\:hover:hover,
30
+ .co-#{$n}-#{$i}\:active:active {
31
+ color: var(--co-#{$n}-#{$i}) !important;
32
+ fill: var(--co-#{$n}-#{$i}) !important;
33
+ }
34
+ .bg-#{$n}-#{$i},
35
+ .bg-#{$n}-#{$i}\:hover:hover,
36
+ .bg-#{$n}-#{$i}\:active:active {
37
+ background-color: var(--co-#{$n}-#{$i}) !important;
38
+ }
39
+ .bk-#{$n}-#{$i},
40
+ .bk-#{$n}-#{$i}\:hover:hover,
41
+ .bk-#{$n}-#{$i}\:active:active {
42
+ border-color: var(--co-#{$n}-#{$i}) !important;
43
+ }
172
44
  }
173
45
  }
174
46
 
@@ -178,8 +50,7 @@ html {
178
50
  $n: nth($i, 1);
179
51
  $s: nth($i, 2);
180
52
  @if ($n == $f) {
181
- html,
182
- [theme] {
53
+ html {
183
54
  @each $c in $s {
184
55
  @include color(nth($c, 1), nth($c, 2));
185
56
  }
@@ -191,27 +62,12 @@ html {
191
62
  }
192
63
  }
193
64
  }
194
- @each $c in $s {
195
- $cn: nth($c, 1);
196
- $cv: nth($c, 2);
197
- .#{$n}-co-#{$cn} {
198
- color: $cv !important;
199
- }
200
- .#{$n}-bg-#{$cn} {
201
- background-color: $cv !important;
202
- }
203
- .#{$n}-bk-#{$cn} {
204
- border-color: $cv !important;
205
- }
206
- }
207
65
  }
208
66
  }
209
67
 
210
68
  // 随机背景色
211
69
  .bg-0 {
212
- @include theme {
213
- background-color: co(main);
214
- }
70
+ background-color: var(--co-main);
215
71
  }
216
72
 
217
73
  .bg-1 {
@@ -8,8 +8,6 @@
8
8
  @import './reset.scss';
9
9
  // 基础
10
10
  @import './base.scss';
11
- // 对齐
12
- @import './pos.scss';
13
11
  // 字号
14
12
  @import './size.scss';
15
13
  // 色号
package/core/reset.scss CHANGED
@@ -32,7 +32,10 @@ ul {
32
32
  }
33
33
 
34
34
  body {
35
- font-family: Microsoft YaHei, PingFang SC, sans-serif;
35
+ font-family:
36
+ Microsoft YaHei,
37
+ PingFang SC,
38
+ sans-serif;
36
39
  line-height: 1.75;
37
40
 
38
41
  &.sharp {
@@ -69,7 +72,9 @@ textarea:-webkit-autofill:focus,
69
72
  select:-webkit-autofill,
70
73
  select:-webkit-autofill:hover,
71
74
  select:-webkit-autofill:focus {
72
- transition: background-color 1s 500000s, color 1s 500000s;
75
+ transition:
76
+ background-color 1s 500000s,
77
+ color 1s 500000s;
73
78
  }
74
79
  html input:-internal-autofill-selected {
75
80
  background-color: transparent !important;
@@ -163,3 +168,11 @@ sup {
163
168
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
164
169
  }
165
170
  }
171
+
172
+ // IOS
173
+ @supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
174
+ html {
175
+ padding-bottom: constant(safe-area-inset-bottom);
176
+ padding-bottom: env(safe-area-inset-bottom);
177
+ }
178
+ }
package/core/scroll.scss CHANGED
@@ -3,9 +3,10 @@
3
3
  -webkit-overflow-scrolling: touch;
4
4
  scrollbar-width: thin;
5
5
  scrollbar-gutter: auto;
6
- @include theme {
7
- scrollbar-color: rgba(co(text), 0.15) transparent;
8
- }
6
+ // @include theme {
7
+ // scrollbar-color: rgba(co(text), 0.15) transparent;
8
+ // }
9
+ scrollbar-color: var(--co-text-ss) transparent;
9
10
 
10
11
  &::-webkit-scrollbar {
11
12
  position: absolute;
@@ -17,9 +18,10 @@
17
18
  &::-webkit-scrollbar-thumb {
18
19
  border: 1px solid transparent;
19
20
  border-radius: 10px;
20
- @include theme {
21
- background-color: rgba(co(text), 0.15) !important;
22
- }
21
+ // @include theme {
22
+ // background-color: rgba(co(text), 0.15) !important;
23
+ // }
24
+ background-color: var(--co-text-ss) !important;
23
25
  background-clip: content-box;
24
26
  }
25
27
 
@@ -99,9 +101,10 @@
99
101
  }
100
102
 
101
103
  ::-webkit-scrollbar-thumb {
102
- @include theme {
103
- background-color: rgba(co(text), 0.15) !important;
104
- }
104
+ // @include theme {
105
+ // background-color: rgba(co(text), 0.15) !important;
106
+ // }
107
+ background-color: var(--co-text-ss) !important;
105
108
  }
106
109
 
107
110
  @include med('>mob') {
@@ -110,9 +113,10 @@
110
113
  -webkit-overflow-scrolling: touch;
111
114
  scrollbar-width: thin;
112
115
  scrollbar-gutter: auto;
113
- @include theme {
114
- scrollbar-color: rgba(co(text), 0.15) transparent;
115
- }
116
+ // @include theme {
117
+ // scrollbar-color: rgba(co(text), 0.15) transparent;
118
+ // }
119
+ scrollbar-color: var(--co-text-ss) transparent;
116
120
 
117
121
  &::-webkit-scrollbar {
118
122
  position: absolute;
@@ -124,9 +128,10 @@
124
128
  &::-webkit-scrollbar-thumb {
125
129
  border: 1px solid transparent;
126
130
  border-radius: 10px;
127
- @include theme {
128
- background-color: rgba(co(text), 0.15) !important;
129
- }
131
+ // @include theme {
132
+ // background-color: rgba(co(text), 0.15) !important;
133
+ // }
134
+ background-color: var(--co-text-ss) !important;
130
135
  background-clip: content-box;
131
136
  }
132
137
 
package/core/size.scss CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  // 分级字号
26
26
  @mixin randSize($d: '') {
27
- $rank: 'xs', 'ss', 'sm', 'sl', 'ms', 'mm', 'ml', 'ls', 'lm', 'll', 'xl';
27
+ $rank: 'xxs', 'xs', 'ss', 'sm', 'sl', 'ms', 'mm', 'ml', 'ls', 'lm', 'll', 'xl', 'xxl';
28
28
  // 分级字号
29
29
  .#{$d}fs-no {
30
30
  font-size: 0rem;
@@ -33,7 +33,7 @@
33
33
  line-height: 0;
34
34
  }
35
35
 
36
- $sz: 0.7;
36
+ $sz: 0.6;
37
37
  @each $k in $rank {
38
38
  @if ($sz<1.2) {
39
39
  $sz: $sz + 0.1;