@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.
- package/components/btns/btns@a.scss +41 -87
- package/components/btns/btns@b.scss +22 -22
- package/components/btns/btns@c.scss +2 -2
- package/components/btns/mcui@btns.scss +2 -2
- package/components/card/card@a.scss +37 -37
- package/components/card/card@b.scss +36 -41
- package/components/cite/cite@a.scss +1 -2
- package/components/demo/demo@a.scss +3 -3
- package/components/form/base.scss +30 -26
- package/components/form/form@a/base.scss +5 -5
- package/components/form/form@a/checkbox.scss +21 -27
- package/components/form/form@a/date.scss +6 -6
- package/components/form/form@a/input.scss +25 -25
- package/components/form/form@a/radio.scss +2 -6
- package/components/form/form@a/select.scss +10 -12
- package/components/form/form@a/switch.scss +7 -10
- package/components/form/form@a/textarea.scss +29 -41
- package/components/form/form@a/upload.scss +11 -16
- package/components/form/form@b/base.scss +3 -5
- package/components/form/form@b/checkbox.scss +1 -3
- package/components/form/form@b/date.scss +6 -6
- package/components/form/form@b/input.scss +23 -41
- package/components/form/form@b/radio.scss +1 -3
- package/components/form/form@b/select.scss +10 -12
- package/components/form/form@b/switch.scss +7 -10
- package/components/form/form@b/textarea.scss +25 -41
- package/components/form/form@b/upload.scss +11 -16
- package/components/form/form@c/base.scss +9 -12
- package/components/form/form@c/checkbox.scss +3 -6
- package/components/form/form@c/date.scss +7 -9
- package/components/form/form@c/input.scss +27 -42
- package/components/form/form@c/radio.scss +3 -6
- package/components/form/form@c/select.scss +10 -12
- package/components/form/form@c/switch.scss +7 -10
- package/components/form/form@c/textarea.scss +21 -33
- package/components/form/form@c/upload.scss +11 -16
- package/components/form/form@d/input.scss +13 -13
- package/components/form/form@d/textarea.scss +16 -16
- package/components/form/form@d/upload.scss +2 -2
- package/components/form/mcui@form.scss +1 -1
- package/components/form/radio@theme=aa.scss +1 -5
- package/components/grid/grid@a.scss +7 -9
- package/components/imgs/base.scss +2 -3
- package/components/imgs/imgs@a.scss +11 -19
- package/components/imgs/imgs@b.scss +1 -1
- package/components/line/line@a.scss +3 -6
- package/components/line/line@b.scss +4 -12
- package/components/list/list@a.scss +13 -18
- package/components/list/list@b.scss +9 -13
- package/components/load/load@a.scss +11 -12
- package/components/load/load@e.scss +1 -3
- package/components/load/load@h.scss +3 -7
- package/components/menu/menu@b.scss +28 -40
- package/components/navs/navs@a.scss +12 -25
- package/components/navs/navs@b.scss +14 -29
- package/components/note/note@a.scss +8 -13
- package/components/note/note@b.scss +8 -22
- package/components/opts/opts@a.scss +7 -10
- package/components/path/path@a.scss +2 -6
- package/components/steps/steps@a.scss +10 -22
- package/components/steps/steps@v.scss +25 -37
- package/components/table/base.scss +15 -13
- package/components/table/table@a.scss +42 -41
- package/components/table/table@b.scss +23 -25
- package/components/table/table@c.scss +2 -4
- package/components/tabs/tabs@a.scss +7 -7
- package/components/tabs/tabs@b.scss +7 -7
- package/components/tabs/tabs@c.scss +7 -7
- package/components/tags/tags@a.scss +26 -40
- package/components/tags/tags@b.scss +22 -36
- package/components/tips/tips@a.scss +6 -6
- package/components/title/title@a.scss +3 -3
- package/components/title/title@b.scss +4 -3
- package/core/base.scss +24 -9
- package/core/color.scss +35 -179
- package/core/{mcui@core.scss → neatui@core.scss} +0 -2
- package/core/reset.scss +15 -2
- package/core/scroll.scss +20 -15
- package/core/size.scss +2 -2
- package/core/theme.scss +199 -69
- package/core/trim.scss +36 -0
- package/core/ux.scss +13 -19
- package/neatui.scss +1 -1
- package/package.json +1 -1
- package/components/paging/mc-paging-ui1503.scss +0 -106
- package/components/paging/mc-paging.scss +0 -432
- package/components/paging/paging@theme=aa.scss +0 -45
- package/core/pos.scss +0 -252
- package/core/trim.mobile.scss +0 -327
- /package/core/{mcui@core.lite.scss → neatui@core.lite.scss} +0 -0
- /package/core/{mcui@mobile.scss → neatui@mobile.scss} +0 -0
package/core/theme.scss
CHANGED
|
@@ -1,89 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
// 兜底
|
|
2
|
+
$theme: if(
|
|
3
|
+
global-variable-exists(theme),
|
|
4
|
+
$theme,
|
|
5
|
+
(
|
|
6
|
+
_sys: (
|
|
7
|
+
main: #0889e4,
|
|
8
|
+
text: #000000,
|
|
9
|
+
fore: #ffffff,
|
|
10
|
+
back: #f5f5f5,
|
|
11
|
+
link: #d07950,
|
|
12
|
+
code: #e23861,
|
|
13
|
+
well: #4bbc73,
|
|
14
|
+
warn: #fb9a2a,
|
|
15
|
+
risk: #f95850,
|
|
16
|
+
info: #0889e4
|
|
17
|
+
)
|
|
15
18
|
)
|
|
16
19
|
);
|
|
17
20
|
|
|
18
21
|
// 检测
|
|
19
22
|
@if (global-variable-exists(theme)) {
|
|
20
|
-
|
|
23
|
+
$fa: map-keys($theme);
|
|
24
|
+
$fk: nth($fa, 1);
|
|
25
|
+
@if (length($fa) == 1 and $fk == _sys) {
|
|
26
|
+
@warn '检测到您未定义主题色卡,请遵循 neatui 设计规范建立主题色卡;https://neatui.fekit.cn/#/docs/config';
|
|
27
|
+
@debug '尝试修复错误...';
|
|
28
|
+
@debug '创建系统默认色卡[theme=_sys]';
|
|
29
|
+
} @else {
|
|
30
|
+
@debug '检测到主题色卡[theme=#{$fk}]';
|
|
31
|
+
}
|
|
32
|
+
|
|
21
33
|
@each $var in $theme {
|
|
22
34
|
$n: nth($var, 1);
|
|
23
35
|
$s: nth($var, 2);
|
|
24
|
-
@
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
@error '[theme=#{$n}]主题缺少一个关键的基础颜色#{$baseColorItem}';
|
|
36
|
+
@if ($s and type-of($s) == 'map') {
|
|
37
|
+
$baseColor: 'main', 'text', 'fore', 'back', 'link', 'code', 'well', 'warn', 'risk';
|
|
38
|
+
@each $baseColorItem in $baseColor {
|
|
39
|
+
@if (map-has-key($s, $baseColorItem)) {
|
|
40
|
+
} @else {
|
|
41
|
+
@warn '[theme=#{$n}]主题缺少一个关键的基础颜色#{$baseColorItem}';
|
|
42
|
+
}
|
|
32
43
|
}
|
|
44
|
+
} @else {
|
|
45
|
+
@debug '[theme=#{$n}]主题色卡配置错误';
|
|
33
46
|
}
|
|
34
47
|
}
|
|
35
|
-
} @else {
|
|
36
|
-
@debug '未定义基础色卡,请遵循MCUI设计规范建立主题色卡;https://mcui.asnowsoft.com/#/start/design';
|
|
37
|
-
@debug '尝试修复错误...';
|
|
38
|
-
@debug '创建系统默认色卡[theme=_sys]';
|
|
39
|
-
$theme: $default !global;
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
// 扩展颜色
|
|
43
51
|
@each $i in $theme {
|
|
44
52
|
$n: nth($i, 1);
|
|
45
53
|
$s: nth($i, 2);
|
|
46
|
-
$
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
(
|
|
68
|
-
$
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
@if ($s and type-of($s) == 'map') {
|
|
55
|
+
$m: (
|
|
56
|
+
none: transparent,
|
|
57
|
+
w: #ffffff,
|
|
58
|
+
b: #000000,
|
|
59
|
+
read: mix(map-get($s, 'text'), map-get($s, 'fore'), 85%),
|
|
60
|
+
desc: mix(map-get($s, 'text'), map-get($s, 'fore'), 55%),
|
|
61
|
+
note: mix(map-get($s, 'text'), map-get($s, 'fore'), 35%),
|
|
62
|
+
// idle: mix(map-get($s, 'text'), map-get($s, 'fore'), 25%),
|
|
63
|
+
case:
|
|
64
|
+
mix(map-get($s, 'text'), map-get($s, 'fore'), 20%),
|
|
65
|
+
line: mix(map-get($s, 'text'), map-get($s, 'fore'), 10%),
|
|
66
|
+
weak: mix(map-get($s, 'text'), map-get($s, 'fore'), 3%),
|
|
67
|
+
// deep:
|
|
68
|
+
// rgb(
|
|
69
|
+
// red(map-get($s, 'back')) - (red(map-get($s, 'back')) * 0.05 + 5),
|
|
70
|
+
// green(map-get($s, 'back')) - (green(map-get($s, 'back')) * 0.05 + 5),
|
|
71
|
+
// blue(map-get($s, 'back')) - (blue(map-get($s, 'back')) * 0.05 + 5)
|
|
72
|
+
// ),
|
|
73
|
+
);
|
|
74
|
+
// 将扩展颜色加入放题色卡中
|
|
75
|
+
$theme: map-merge(
|
|
76
|
+
$theme,
|
|
77
|
+
(
|
|
78
|
+
$n: map-merge($m, $s)
|
|
79
|
+
)
|
|
80
|
+
);
|
|
81
|
+
}
|
|
71
82
|
}
|
|
72
83
|
|
|
73
84
|
// 主题
|
|
74
|
-
@mixin theme($
|
|
75
|
-
$hasTheme: map-get($theme, $
|
|
76
|
-
@if ($
|
|
85
|
+
@mixin theme($n: null) {
|
|
86
|
+
$hasTheme: map-get($theme, $n);
|
|
87
|
+
@if ($n != null) {
|
|
77
88
|
@if ($hasTheme != null) {
|
|
78
89
|
$t: $hasTheme;
|
|
79
90
|
$first: nth(nth($theme, 1), 1);
|
|
80
|
-
$n: $
|
|
81
|
-
$
|
|
82
|
-
@if ($
|
|
91
|
+
$n: $n;
|
|
92
|
+
$s: #{nth(&, 1)};
|
|
93
|
+
@if ($s == 'html' or $s == '' or $s == null) {
|
|
83
94
|
@if ($n == $first) {
|
|
84
|
-
@at-root html
|
|
85
|
-
[theme],
|
|
86
|
-
[theme='#{$n}'] {
|
|
95
|
+
@at-root html {
|
|
87
96
|
@content;
|
|
88
97
|
}
|
|
89
98
|
} @else {
|
|
@@ -101,18 +110,17 @@ $default: (
|
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
} @else {
|
|
104
|
-
@
|
|
113
|
+
@warn '没有指定主题#{$hasTheme}';
|
|
105
114
|
}
|
|
106
115
|
} @else {
|
|
107
116
|
$first: nth(nth($theme, 1), 1);
|
|
108
117
|
@each $t in $theme {
|
|
109
118
|
$n: nth($t, 1);
|
|
110
|
-
$
|
|
111
|
-
|
|
119
|
+
$s: #{nth(&, 1)};
|
|
120
|
+
|
|
121
|
+
@if ($s == 'html' or $s == ':root' or $s == '' or $s == null) {
|
|
112
122
|
@if ($n == $first) {
|
|
113
|
-
@at-root html
|
|
114
|
-
[theme],
|
|
115
|
-
[theme='#{$n}'] {
|
|
123
|
+
@at-root html {
|
|
116
124
|
@content;
|
|
117
125
|
}
|
|
118
126
|
} @else {
|
|
@@ -143,7 +151,6 @@ $default: (
|
|
|
143
151
|
$n: nth(nth($theme, 1), 1);
|
|
144
152
|
$s: nth(nth($theme, 1), 2);
|
|
145
153
|
}
|
|
146
|
-
|
|
147
154
|
@if ($s != null) {
|
|
148
155
|
@if (map-has-key($s, $a)) {
|
|
149
156
|
$a: map-get($s, $a);
|
|
@@ -152,5 +159,128 @@ $default: (
|
|
|
152
159
|
}
|
|
153
160
|
}
|
|
154
161
|
@return $a;
|
|
162
|
+
} @else {
|
|
163
|
+
@return transparent;
|
|
155
164
|
}
|
|
156
165
|
}
|
|
166
|
+
|
|
167
|
+
// 变量
|
|
168
|
+
@mixin vars() {
|
|
169
|
+
$levels: xs, ss, sm, sl, ms, mm, ml, ls, lm, ll, xl;
|
|
170
|
+
$colors: main, text, well, warn, risk;
|
|
171
|
+
|
|
172
|
+
$f: nth(nth($theme, 1), 1);
|
|
173
|
+
@each $i in $theme {
|
|
174
|
+
$n: nth($i, 1);
|
|
175
|
+
$s: nth($i, 2);
|
|
176
|
+
@if ($n == $f) {
|
|
177
|
+
html {
|
|
178
|
+
@each $c in $s {
|
|
179
|
+
$k: nth($c, 1);
|
|
180
|
+
$v: nth($c, 2);
|
|
181
|
+
--#{$k}: #{red($v), green($v), blue($v)};
|
|
182
|
+
--co-#{$k}: #{$v};
|
|
183
|
+
|
|
184
|
+
$ls: 0.05;
|
|
185
|
+
@each $l in $levels {
|
|
186
|
+
// 透明度
|
|
187
|
+
@if ($k != 'none') {
|
|
188
|
+
--co-#{$k}-#{$l}: #{rgba($v, $ls)};
|
|
189
|
+
|
|
190
|
+
@if ($k != 'w' and $k != 'b') {
|
|
191
|
+
--co-#{$k}-fore-#{$l}: #{mix($v, map-get($s, 'fore'), $ls * 100%)};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@if ($k == 'main' or $k == 'well' or $k == 'warn' or $k == 'risk') {
|
|
195
|
+
--co-#{$k}-text-#{$l}: #{mix($v, map-get($s, 'text'), $ls * 100%)};
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
@if ($ls <= 0.1 or $ls >= 0.8) {
|
|
199
|
+
$ls: $ls + 0.05;
|
|
200
|
+
} @else {
|
|
201
|
+
$ls: $ls + 0.1;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// 文本颜色
|
|
207
|
+
// --co-main-text: #{mix(map-get($s, 'main'), map-get($s, 'text'), 85%)};
|
|
208
|
+
// --co-well-text: #{mix(map-get($s, 'well'), map-get($s, 'text'), 85%)};
|
|
209
|
+
// --co-warn-text: #{mix(map-get($s, 'warn'), map-get($s, 'text'), 85%)};
|
|
210
|
+
// --co-risk-text: #{mix(map-get($s, 'risk'), map-get($s, 'text'), 85%)};
|
|
211
|
+
|
|
212
|
+
// --co-line-fore: #{mix(map-get($s, 'line'), map-get($s, 'fore'), 70%)};
|
|
213
|
+
// --bg-main: #{saturate(rgba(map-get($s, 'main'), 0.05), 20%)};
|
|
214
|
+
// --bg-weak: #{mix(map-get($s, 'weak'), map-get($s, 'fore'), 75%)};
|
|
215
|
+
// --bg-well: #{saturate(rgba(map-get($s, 'well'), 0.05), 20%)};
|
|
216
|
+
// --bg-warn: #{saturate(rgba(map-get($s, 'warn'), 0.05), 20%)};
|
|
217
|
+
// --bg-risk: #{saturate(rgba(map-get($s, 'risk'), 0.05), 20%)};
|
|
218
|
+
// --bg-info: #{saturate(rgba(map-get($s, 'info'), 0.05), 20%)};
|
|
219
|
+
// --bg-well: #{rgba(map-get($s, 'well'), 0.08)};
|
|
220
|
+
// --bg-warn: #{rgba(map-get($s, 'warn'), 0.08)};
|
|
221
|
+
// --bg-risk: #{rgba(map-get($s, 'risk'), 0.08)};
|
|
222
|
+
|
|
223
|
+
// @each $k in $colors {
|
|
224
|
+
// $v: map-get($s, $k);
|
|
225
|
+
// $ls: 0.05;
|
|
226
|
+
// @each $l in $levels {
|
|
227
|
+
// // 透明度
|
|
228
|
+
// --co-#{$k}-#{$l}: #{rgba($v, $ls)};
|
|
229
|
+
// // 增亮度
|
|
230
|
+
// --bg-#{$k}-#{$l}: #{saturate(rgba($v, $ls), 20%)};
|
|
231
|
+
// @if ($ls == 0.05 or $ls == 0.9) {
|
|
232
|
+
// $ls: $ls + 0.05;
|
|
233
|
+
// } @else {
|
|
234
|
+
// $ls: $ls + 0.1;
|
|
235
|
+
// }
|
|
236
|
+
// }
|
|
237
|
+
// }
|
|
238
|
+
}
|
|
239
|
+
} @else {
|
|
240
|
+
[theme~='#{$n}'] {
|
|
241
|
+
@each $c in $s {
|
|
242
|
+
$k: nth($c, 1);
|
|
243
|
+
$v: nth($c, 2);
|
|
244
|
+
@if ($k != 'none') {
|
|
245
|
+
--co-#{$k}: #{$v};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
$ls: 0.05;
|
|
249
|
+
@each $l in $levels {
|
|
250
|
+
// 透明度
|
|
251
|
+
--co-#{$k}-#{$l}: #{rgba($v, $ls)};
|
|
252
|
+
@if ($ls <= 0.1 or $ls >= 0.8) {
|
|
253
|
+
$ls: $ls + 0.05;
|
|
254
|
+
} @else {
|
|
255
|
+
$ls: $ls + 0.1;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// 文本颜色
|
|
261
|
+
// --co-main-text: #{mix(map-get($s, 'main'), map-get($s, 'text'), 85%)};
|
|
262
|
+
// --co-well-text: #{mix(map-get($s, 'well'), map-get($s, 'text'), 85%)};
|
|
263
|
+
// --co-warn-text: #{mix(map-get($s, 'warn'), map-get($s, 'text'), 85%)};
|
|
264
|
+
// --co-risk-text: #{mix(map-get($s, 'risk'), map-get($s, 'text'), 85%)};
|
|
265
|
+
|
|
266
|
+
// @each $k in $colors {
|
|
267
|
+
// $v: map-get($s, $k);
|
|
268
|
+
// $ls: 0.05;
|
|
269
|
+
// @each $l in $levels {
|
|
270
|
+
// // 透明度
|
|
271
|
+
// --co-#{$k}-#{$l}: #{rgba($v, $ls)};
|
|
272
|
+
// // 增亮度
|
|
273
|
+
// --bg-#{$k}-#{$l}: #{saturate(rgba($v, $ls), 20%)};
|
|
274
|
+
// @if ($ls == 0.05 or $ls == 0.9) {
|
|
275
|
+
// $ls: $ls + 0.05;
|
|
276
|
+
// } @else {
|
|
277
|
+
// $ls: $ls + 0.1;
|
|
278
|
+
// }
|
|
279
|
+
// }
|
|
280
|
+
// }
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@include vars();
|
package/core/trim.scss
CHANGED
|
@@ -322,6 +322,24 @@
|
|
|
322
322
|
}
|
|
323
323
|
$w_base: $w_base + 2;
|
|
324
324
|
}
|
|
325
|
+
.#{$media}w-auto {
|
|
326
|
+
width: auto;
|
|
327
|
+
}
|
|
328
|
+
.#{$media}min-w-auto {
|
|
329
|
+
min-width: auto;
|
|
330
|
+
}
|
|
331
|
+
.#{$media}max-w-auto {
|
|
332
|
+
max-width: auto;
|
|
333
|
+
}
|
|
334
|
+
.#{$media}w-full {
|
|
335
|
+
width: 100%;
|
|
336
|
+
}
|
|
337
|
+
.#{$media}min-w-full {
|
|
338
|
+
min-width: 100%;
|
|
339
|
+
}
|
|
340
|
+
.#{$media}max-w-full {
|
|
341
|
+
max-width: 100%;
|
|
342
|
+
}
|
|
325
343
|
|
|
326
344
|
// 高度
|
|
327
345
|
$h_base: 0;
|
|
@@ -355,6 +373,24 @@
|
|
|
355
373
|
}
|
|
356
374
|
$h_base: $h_base + 2;
|
|
357
375
|
}
|
|
376
|
+
.#{$media}h-auto {
|
|
377
|
+
height: auto;
|
|
378
|
+
}
|
|
379
|
+
.#{$media}min-h-auto {
|
|
380
|
+
min-height: auto;
|
|
381
|
+
}
|
|
382
|
+
.#{$media}max-h-auto {
|
|
383
|
+
max-height: auto;
|
|
384
|
+
}
|
|
385
|
+
.#{$media}h-full {
|
|
386
|
+
height: 100%;
|
|
387
|
+
}
|
|
388
|
+
.#{$media}min-h-full {
|
|
389
|
+
min-height: 100%;
|
|
390
|
+
}
|
|
391
|
+
.#{$media}max-h-full {
|
|
392
|
+
max-height: 100%;
|
|
393
|
+
}
|
|
358
394
|
|
|
359
395
|
// 缩小
|
|
360
396
|
.#{$media}s-no {
|
package/core/ux.scss
CHANGED
|
@@ -19,17 +19,13 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
}
|
|
21
21
|
&:hover {
|
|
22
|
-
|
|
23
|
-
box-shadow: inset 0 0 0 100em co(weak);
|
|
24
|
-
}
|
|
22
|
+
box-shadow: inset 0 0 0 100em rgba(0, 0, 0, 0.05);
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
// 移入阴影
|
|
29
27
|
.ux-shadow:hover {
|
|
30
|
-
|
|
31
|
-
box-shadow: 0 0.1em 0.5em co(deep);
|
|
32
|
-
}
|
|
28
|
+
box-shadow: 0 0.1em 0.5em var(--co-deep);
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
// 点击效果
|
|
@@ -98,9 +94,8 @@
|
|
|
98
94
|
|
|
99
95
|
&:hover {
|
|
100
96
|
transition: color 0.35s;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
97
|
+
|
|
98
|
+
color: var(--co-link);
|
|
104
99
|
}
|
|
105
100
|
}
|
|
106
101
|
|
|
@@ -125,9 +120,8 @@
|
|
|
125
120
|
|
|
126
121
|
&:hover {
|
|
127
122
|
transition: color 0.35s;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
123
|
+
|
|
124
|
+
color: var(--co-link);
|
|
131
125
|
|
|
132
126
|
&::before {
|
|
133
127
|
transform: scale(1);
|
|
@@ -251,10 +245,10 @@
|
|
|
251
245
|
.downmenu {
|
|
252
246
|
position: absolute;
|
|
253
247
|
top: 130%;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
248
|
+
|
|
249
|
+
background: var(--co-fore);
|
|
250
|
+
box-shadow: 0 1px 0.3em 1px var(--co-deep);
|
|
251
|
+
|
|
258
252
|
padding: 1.5rem;
|
|
259
253
|
right: 0.15rem;
|
|
260
254
|
min-width: 10.5rem;
|
|
@@ -295,9 +289,9 @@
|
|
|
295
289
|
box-sizing: content-box;
|
|
296
290
|
width: 0.5em;
|
|
297
291
|
height: 0.5em;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
292
|
+
|
|
293
|
+
background: var(--co-fore);
|
|
294
|
+
|
|
301
295
|
top: -0.25em;
|
|
302
296
|
left: 50%;
|
|
303
297
|
margin-left: -0.25em;
|
package/neatui.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/*主体*/
|
|
2
|
-
/*辅助*/
|
|
3
|
-
/*辅助*/
|
|
4
|
-
/*阅读(默认)*/
|
|
5
|
-
/*辅助阅读*/
|
|
6
|
-
/*信息*/
|
|
7
|
-
/*成功*/
|
|
8
|
-
/*提醒/警告*/
|
|
9
|
-
/*错误/强调*/
|
|
10
|
-
/*黑色*/
|
|
11
|
-
/*白色*/
|
|
12
|
-
/*UI1502---xui-paging (css)---STA*/
|
|
13
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav {
|
|
14
|
-
display: inline-block;
|
|
15
|
-
list-style: none;
|
|
16
|
-
position: relative;
|
|
17
|
-
}
|
|
18
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > * {
|
|
19
|
-
display: inline-block;
|
|
20
|
-
float: left;
|
|
21
|
-
min-width: 2.5rem;
|
|
22
|
-
height: 2.5rem;
|
|
23
|
-
line-height: 2.4rem;
|
|
24
|
-
position: relative;
|
|
25
|
-
background: #ffffff;
|
|
26
|
-
border: 1px solid #dfdfdf;
|
|
27
|
-
text-align: center;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
transition: background 0.2s;
|
|
30
|
-
-moz-transition: background 0.2s;
|
|
31
|
-
-webkit-transition: background 0.2s;
|
|
32
|
-
-o-transition: all 0.2s;
|
|
33
|
-
margin-right: -1px;
|
|
34
|
-
}
|
|
35
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.group {
|
|
36
|
-
width: 6rem;
|
|
37
|
-
margin-right: 5px;
|
|
38
|
-
border: 0;
|
|
39
|
-
}
|
|
40
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *:first-child {
|
|
41
|
-
border-radius: 3px 0 0 3px;
|
|
42
|
-
}
|
|
43
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *:last-child {
|
|
44
|
-
border: 1px solid #dfdfdf;
|
|
45
|
-
border-radius: 0 3px 3px 0;
|
|
46
|
-
}
|
|
47
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.prve:after,
|
|
48
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.next:after {
|
|
49
|
-
display: inline-block;
|
|
50
|
-
content: "";
|
|
51
|
-
width: 0.45rem;
|
|
52
|
-
height: 0.45rem;
|
|
53
|
-
border: 0.45rem solid transparent;
|
|
54
|
-
}
|
|
55
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.prve:after {
|
|
56
|
-
border-right-color: #999999;
|
|
57
|
-
margin-left: -0.45rem;
|
|
58
|
-
}
|
|
59
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.next:after {
|
|
60
|
-
border-left-color: #999999;
|
|
61
|
-
margin-right: -0.45rem;
|
|
62
|
-
}
|
|
63
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.frist:before,
|
|
64
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.last:before {
|
|
65
|
-
display: inline-block;
|
|
66
|
-
content: "";
|
|
67
|
-
width: 2px;
|
|
68
|
-
height: .9rem;
|
|
69
|
-
background: #999999;
|
|
70
|
-
border-radius: 1px;
|
|
71
|
-
}
|
|
72
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.frist:after,
|
|
73
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.last:after {
|
|
74
|
-
display: inline-block;
|
|
75
|
-
content: "";
|
|
76
|
-
width: 0.45rem;
|
|
77
|
-
height: 0.45rem;
|
|
78
|
-
border: 0.45rem solid transparent;
|
|
79
|
-
}
|
|
80
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.last:before {
|
|
81
|
-
margin-right: -0.8rem;
|
|
82
|
-
}
|
|
83
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.frist:after {
|
|
84
|
-
border-right-color: #999999;
|
|
85
|
-
margin-left: -0.2rem;
|
|
86
|
-
}
|
|
87
|
-
.mc-paging[data-mcui=ui1503] > .mc-paging-nav > *.last:after {
|
|
88
|
-
border-left-color: #999999;
|
|
89
|
-
margin-right: -0.6rem;
|
|
90
|
-
}
|
|
91
|
-
/*---UI1503 xui-paging END---*/
|
|
92
|
-
.mc-paging[data-mcui=ui1503][data-sz=s] > .mc-paging-nav > * {
|
|
93
|
-
min-width: 2.5rem;
|
|
94
|
-
height: 2.5rem;
|
|
95
|
-
line-height: 2.4rem;
|
|
96
|
-
}
|
|
97
|
-
.mc-paging[data-mcui=ui1503][data-sz=m] > .mc-paging-nav > * {
|
|
98
|
-
min-width: 3rem;
|
|
99
|
-
height: 3rem;
|
|
100
|
-
line-height: 3rem;
|
|
101
|
-
}
|
|
102
|
-
.mc-paging[data-mcui=ui1503][data-sz=l] > .mc-paging-nav > * {
|
|
103
|
-
min-width: 3.5rem;
|
|
104
|
-
height: 3.5rem;
|
|
105
|
-
line-height: 3.4rem;
|
|
106
|
-
}
|