@neatui/css 1.0.2
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/README.md +1 -0
- package/all.scss +22 -0
- package/anim/am-loading.scss +220 -0
- package/anim/am-rotate.scss +17 -0
- package/anim/am-view-aa.scss +91 -0
- package/anim/am-view-ab.scss +107 -0
- package/anim/am-view-ac.scss +114 -0
- package/anim/am-view-ad.scss +109 -0
- package/anim/am-view-ae.scss +109 -0
- package/anim/am-view-af.scss +104 -0
- package/anim/am-view-ag.scss +1789 -0
- package/anim/am-view-ah.scss +122 -0
- package/anim/am-view-ai.scss +116 -0
- package/anim/am-view-aj.scss +112 -0
- package/anim/am-view-ak.scss +102 -0
- package/anim/am-view-al.scss +98 -0
- package/anim/am-view-am.scss +97 -0
- package/anim/am-view-an.scss +109 -0
- package/anim/am-view-ao.scss +123 -0
- package/anim/am-view-ap.scss +108 -0
- package/anim/am-view-aq.scss +115 -0
- package/anim/am-view-ar.scss +113 -0
- package/anim/am-view-as.scss +99 -0
- package/anim/am-view-at.scss +103 -0
- package/anim/mcui@anim.scss +22 -0
- package/anim/package.json +16 -0
- package/badge/badge@theme=aa.scss +36 -0
- package/badge/package.json +22 -0
- package/btns/README.md +79 -0
- package/btns/base.scss +152 -0
- package/btns/btns@a.scss +469 -0
- package/btns/btns@b.scss +187 -0
- package/btns/btns@c.scss +169 -0
- package/btns/mcui@btns.scss +3 -0
- package/btns/package.json +16 -0
- package/card/card@a.scss +238 -0
- package/card/card@b.scss +75 -0
- package/card/mcui@card.scss +2 -0
- package/card/package.json +15 -0
- package/chat/chat@a.scss +139 -0
- package/chat/mcui@chat.scss +1 -0
- package/chat/package.json +11 -0
- package/cite/cite@a.scss +33 -0
- package/cite/package.json +11 -0
- package/core/README.md +142 -0
- package/core/base.scss +544 -0
- package/core/border.scss +307 -0
- package/core/color.scss +245 -0
- package/core/cols.scss +148 -0
- package/core/cover.scss +94 -0
- package/core/flex.scss +616 -0
- package/core/line.scss +4 -0
- package/core/margin.scss +0 -0
- package/core/mcui@core.scss +36 -0
- package/core/mcui@mobile.scss +37 -0
- package/core/media.scss +268 -0
- package/core/package.json +16 -0
- package/core/padding.scss +0 -0
- package/core/pos.scss +252 -0
- package/core/reset.scss +165 -0
- package/core/scale.scss +24 -0
- package/core/scroll.scss +178 -0
- package/core/shadow.scss +81 -0
- package/core/size.mobile.scss +105 -0
- package/core/size.scss +178 -0
- package/core/theme.scss +156 -0
- package/core/trim.mobile.scss +327 -0
- package/core/trim.scss +443 -0
- package/core/ux.scss +334 -0
- package/demo/demo@a.scss +34 -0
- package/demo/mcui@demo.scss +1 -0
- package/form/README.md +142 -0
- package/form/base.scss +425 -0
- package/form/form@a/base.scss +33 -0
- package/form/form@a/checkbox.scss +194 -0
- package/form/form@a/date.scss +86 -0
- package/form/form@a/index.scss +9 -0
- package/form/form@a/input.scss +156 -0
- package/form/form@a/radio.scss +99 -0
- package/form/form@a/select.scss +128 -0
- package/form/form@a/switch.scss +83 -0
- package/form/form@a/textarea.scss +105 -0
- package/form/form@a/upload.scss +162 -0
- package/form/form@b/base.scss +33 -0
- package/form/form@b/checkbox.scss +86 -0
- package/form/form@b/date.scss +107 -0
- package/form/form@b/index.scss +9 -0
- package/form/form@b/input.scss +163 -0
- package/form/form@b/radio.scss +90 -0
- package/form/form@b/select.scss +124 -0
- package/form/form@b/switch.scss +83 -0
- package/form/form@b/textarea.scss +105 -0
- package/form/form@b/upload.scss +160 -0
- package/form/form@c/base.scss +44 -0
- package/form/form@c/checkbox.scss +90 -0
- package/form/form@c/date.scss +125 -0
- package/form/form@c/index.scss +9 -0
- package/form/form@c/input.scss +169 -0
- package/form/form@c/radio.scss +84 -0
- package/form/form@c/select.scss +121 -0
- package/form/form@c/switch.scss +83 -0
- package/form/form@c/textarea.scss +85 -0
- package/form/form@c/upload.scss +159 -0
- package/form/form@d/base.scss +45 -0
- package/form/form@d/checkbox.scss +87 -0
- package/form/form@d/date.scss +125 -0
- package/form/form@d/index.scss +9 -0
- package/form/form@d/input.scss +346 -0
- package/form/form@d/radio.scss +81 -0
- package/form/form@d/select.scss +121 -0
- package/form/form@d/switch.scss +83 -0
- package/form/form@d/textarea.scss +104 -0
- package/form/form@d/upload.scss +160 -0
- package/form/mcui@form.scss +4 -0
- package/form/package.json +22 -0
- package/form/radio@theme=aa.scss +74 -0
- package/grid/grid@a.scss +54 -0
- package/grid/mcui@grid.scss +1 -0
- package/grid/package.json +16 -0
- package/icon/icon@add.scss +9 -0
- package/icon/icon@close.scss +12 -0
- package/icon/icon@down.scss +9 -0
- package/icon/icon@download.scss +26 -0
- package/icon/icon@drag.scss +9 -0
- package/icon/icon@except.scss +9 -0
- package/icon/icon@hook.scss +16 -0
- package/icon/icon@left.scss +9 -0
- package/icon/icon@link.scss +14 -0
- package/icon/icon@menu.scss +10 -0
- package/icon/icon@minus.scss +7 -0
- package/icon/icon@more.scss +8 -0
- package/icon/icon@omit.scss +8 -0
- package/icon/icon@quit.scss +11 -0
- package/icon/icon@refresh.scss +11 -0
- package/icon/icon@right.scss +9 -0
- package/icon/icon@search.scss +9 -0
- package/icon/icon@time.scss +12 -0
- package/icon/icon@top.scss +9 -0
- package/icon/icon@upload.scss +26 -0
- package/icon/icon@view.scss +20 -0
- package/icon/mcui@icon.scss +21 -0
- package/icon/package.json +15 -0
- package/imgs/README.md +78 -0
- package/imgs/base.scss +8 -0
- package/imgs/imgs@a.scss +171 -0
- package/imgs/imgs@b.scss +173 -0
- package/imgs/mcui@imgs.scss +1 -0
- package/imgs/package.json +16 -0
- package/index.js +28 -0
- package/line/line@a.scss +51 -0
- package/line/line@b.scss +63 -0
- package/line/mcui@line.scss +2 -0
- package/line/package.json +16 -0
- package/list/list@a.scss +62 -0
- package/list/list@b.scss +83 -0
- package/list/list@c.scss +89 -0
- package/list/mcui@list.scss +2 -0
- package/list/package.json +16 -0
- package/load/README.md +69 -0
- package/load/load@a.scss +44 -0
- package/load/load@b.scss +56 -0
- package/load/load@c.scss +270 -0
- package/load/load@d.scss +26 -0
- package/load/load@e.scss +24 -0
- package/load/load@f.scss +124 -0
- package/load/load@g.scss +35 -0
- package/load/load@h.scss +51 -0
- package/load/load@i.scss +51 -0
- package/load/mcui@load.scss +8 -0
- package/load/package.json +16 -0
- package/menu/mcui@menu.scss +1 -0
- package/menu/menu@b.scss +302 -0
- package/menu/menu@theme=ab.scss +282 -0
- package/menu/package.json +22 -0
- package/navs/README.md +30 -0
- package/navs/mcui@navs.scss +2 -0
- package/navs/navs@a.scss +113 -0
- package/navs/navs@b.scss +111 -0
- package/navs/package.json +16 -0
- package/note/mcui@note.scss +2 -0
- package/note/note@a.scss +26 -0
- package/note/note@b.scss +33 -0
- package/note/package.json +11 -0
- package/opts/mcui@opts.scss +1 -0
- package/opts/opts@a.scss +52 -0
- package/opts/package.json +11 -0
- package/package.json +26 -0
- package/paging/mc-paging-ui1503.scss +106 -0
- package/paging/mc-paging.scss +432 -0
- package/paging/paging@theme=aa.scss +45 -0
- package/path/README.md +142 -0
- package/path/mcui@path.scss +1 -0
- package/path/package.json +22 -0
- package/path/path@a.scss +38 -0
- package/side/mcui@side.scss +0 -0
- package/side/side.scss +2 -0
- package/steps/mcui@steps.scss +2 -0
- package/steps/package.json +17 -0
- package/steps/steps@a.scss +89 -0
- package/steps/steps@v.scss +122 -0
- package/table/base.scss +140 -0
- package/table/mcui@table.scss +3 -0
- package/table/package.json +22 -0
- package/table/table@a.scss +230 -0
- package/table/table@b.scss +78 -0
- package/table/table@c.scss +18 -0
- package/tabs/README.md +62 -0
- package/tabs/mcui@tabs.scss +1 -0
- package/tabs/package.json +22 -0
- package/tabs/tabs@a.scss +62 -0
- package/tags/README.md +71 -0
- package/tags/mcui@tags.scss +2 -0
- package/tags/package.json +22 -0
- package/tags/tags@a.scss +125 -0
- package/tags/tags@b.scss +131 -0
- package/tips/README.md +62 -0
- package/tips/base.scss +351 -0
- package/tips/mcui@tips.scss +1 -0
- package/tips/package.json +22 -0
- package/tips/tips@a.scss +52 -0
- package/title/mcui@title.scss +2 -0
- package/title/package.json +15 -0
- package/title/title@a.scss +18 -0
- package/title/title@b.scss +7 -0
- package/user/mcui@user.scss +0 -0
- package/user/user@a.scss +7 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
属性 描述
|
|
3
|
+
disabled 规定输入字段应该被禁用。
|
|
4
|
+
max 规定输入字段的最大值。
|
|
5
|
+
maxlength 规定输入字段的最大字符数。
|
|
6
|
+
min 规定输入字段的最小值。
|
|
7
|
+
pattern 规定通过其检查输入值的正则表达式。
|
|
8
|
+
readonly 规定输入字段为只读(无法修改)。
|
|
9
|
+
required 规定输入字段是必需的(必需填写)。
|
|
10
|
+
size 规定输入字段的宽度(以字符计)。
|
|
11
|
+
step 规定输入字段的合法数字间隔。
|
|
12
|
+
value 规定输入字段的默认值。
|
|
13
|
+
*/
|
|
14
|
+
@use 'sass:math';
|
|
15
|
+
$co: 'info', 'well', 'warn', 'risk';
|
|
16
|
+
|
|
17
|
+
[ui-form~='@d'] {
|
|
18
|
+
&[ui-form~='type:textarea'] {
|
|
19
|
+
position: relative;
|
|
20
|
+
min-width: 6em;
|
|
21
|
+
line-height: 1.5em;
|
|
22
|
+
padding: 0.5em;
|
|
23
|
+
border-radius: 0.1em;
|
|
24
|
+
transition: all 0.5s;
|
|
25
|
+
|
|
26
|
+
@include theme {
|
|
27
|
+
box-shadow: inset 0 0 0 1px co(case);
|
|
28
|
+
background-color: co(fore);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
@include theme {
|
|
33
|
+
box-shadow: inset 0 0 0 1px rgba(co(main), 0.5);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.form-focus,
|
|
38
|
+
&:focus {
|
|
39
|
+
@include theme {
|
|
40
|
+
box-shadow:
|
|
41
|
+
inset 0 0 0 1px rgba(co(main), 0.5),
|
|
42
|
+
0 0 0 2px rgba(co(main), 0.15);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 颜色
|
|
47
|
+
@each $c in $co {
|
|
48
|
+
&[ui-form~='co:#{$c}'] {
|
|
49
|
+
@include theme {
|
|
50
|
+
color: mix(co($c), co(text), 85%);
|
|
51
|
+
box-shadow:
|
|
52
|
+
inset 0 0 0 1px rgba(co($c), 0.6),
|
|
53
|
+
0 0 0 2px rgba(co($c), 0.15) !important;
|
|
54
|
+
background-color: rgba(co($c), 0.035);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[ui-form~='co:hover:#{$c}'] {
|
|
59
|
+
&:hover {
|
|
60
|
+
@include theme {
|
|
61
|
+
color: mix(co($c), co(text), 85%);
|
|
62
|
+
box-shadow:
|
|
63
|
+
inset 0 0 0 1px rgba(co($c), 0.6),
|
|
64
|
+
0 0 0 2px rgba(co($c), 0.15) !important;
|
|
65
|
+
background-color: rgba(co($c), 0.035);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&[ui-form~='co:focus:#{$c}'] {
|
|
71
|
+
&:focus-within {
|
|
72
|
+
@include theme {
|
|
73
|
+
color: mix(co($c), co(text), 85%);
|
|
74
|
+
box-shadow:
|
|
75
|
+
inset 0 0 0 1px rgba(co($c), 0.6),
|
|
76
|
+
0 0 0 2px rgba(co($c), 0.15) !important;
|
|
77
|
+
background-color: rgba(co($c), 0.035);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&,
|
|
84
|
+
textarea {
|
|
85
|
+
&:-webkit-autofill {
|
|
86
|
+
@include theme {
|
|
87
|
+
box-shadow: 0 0 0 1000px co(fore) inset;
|
|
88
|
+
color: co(read);
|
|
89
|
+
-webkit-text-fill-color: co(read);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&::-webkit-input-placeholder {
|
|
94
|
+
@include theme {
|
|
95
|
+
color: rgba(co(read), 0.5);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
textarea {
|
|
101
|
+
width: 100%;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
[ui-form~='@d'] {
|
|
4
|
+
&[ui-form~='type:upload'] {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
|
|
8
|
+
&[ui-form~=':block'] {
|
|
9
|
+
display: flex;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
%item {
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 10rem;
|
|
15
|
+
height: 10rem;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-items: center;
|
|
20
|
+
border-radius: 0.25em;
|
|
21
|
+
padding: 0.5em;
|
|
22
|
+
text-align: center;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
transition: all 0.5s;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
border-width: 1px;
|
|
27
|
+
@include theme {
|
|
28
|
+
border-color: co(line);
|
|
29
|
+
background-color: co(fore);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes am-file-add {
|
|
34
|
+
0% {
|
|
35
|
+
}
|
|
36
|
+
100% {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@keyframes am-file-del {
|
|
40
|
+
0% {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
30% {
|
|
44
|
+
margin: 0.5em 1.5em 1.5em 0.5em;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
100% {
|
|
48
|
+
width: 0;
|
|
49
|
+
height: 0;
|
|
50
|
+
margin: 0;
|
|
51
|
+
opacity: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[ui-form-files] {
|
|
57
|
+
position: relative;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: row;
|
|
60
|
+
flex-wrap: wrap;
|
|
61
|
+
|
|
62
|
+
& > * {
|
|
63
|
+
@extend %item;
|
|
64
|
+
|
|
65
|
+
&::after {
|
|
66
|
+
content: '';
|
|
67
|
+
position: absolute;
|
|
68
|
+
display: block;
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 0.5em;
|
|
71
|
+
top: 0;
|
|
72
|
+
left: 0;
|
|
73
|
+
|
|
74
|
+
@include theme {
|
|
75
|
+
background-color: co(fore);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
img,
|
|
80
|
+
video {
|
|
81
|
+
max-width: 100%;
|
|
82
|
+
max-height: 100%;
|
|
83
|
+
border-radius: 0.15em;
|
|
84
|
+
transform: translate3d(0, 0, 0);
|
|
85
|
+
transition: all 0.5s;
|
|
86
|
+
transform-origin: 50% 0%;
|
|
87
|
+
}
|
|
88
|
+
// 进度条
|
|
89
|
+
[ui-form-file-progress] {
|
|
90
|
+
position: absolute;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
@include theme {
|
|
94
|
+
background-color: rgba(co(fore), 0.85);
|
|
95
|
+
}
|
|
96
|
+
top: 0;
|
|
97
|
+
right: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// 工具栏
|
|
101
|
+
[ui-form-file-tools] {
|
|
102
|
+
position: absolute;
|
|
103
|
+
height: 1.5em;
|
|
104
|
+
width: 100%;
|
|
105
|
+
opacity: 0;
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
transition: all 0.5s;
|
|
108
|
+
bottom: 0em;
|
|
109
|
+
left: 0;
|
|
110
|
+
transform: translate3d(0, 2em, 0);
|
|
111
|
+
|
|
112
|
+
& > * {
|
|
113
|
+
width: 1.5em;
|
|
114
|
+
height: 1.5em;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
&:hover {
|
|
119
|
+
[ui-form-file-tools] {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
pointer-events: auto;
|
|
122
|
+
transform: translate3d(0, -0.5em, 0);
|
|
123
|
+
}
|
|
124
|
+
img,
|
|
125
|
+
video {
|
|
126
|
+
border-radius: 1em;
|
|
127
|
+
transform: translate3d(0, -2em, 0);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// 删除时
|
|
132
|
+
&.deling {
|
|
133
|
+
animation: am-file-del 0.35s forwards;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[ui-form-input] {
|
|
139
|
+
@extend %item;
|
|
140
|
+
border-style: dashed;
|
|
141
|
+
@include theme {
|
|
142
|
+
border-color: co(case);
|
|
143
|
+
}
|
|
144
|
+
input {
|
|
145
|
+
position: absolute;
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: 100%;
|
|
148
|
+
left: 0;
|
|
149
|
+
top: 0;
|
|
150
|
+
opacity: 0;
|
|
151
|
+
|
|
152
|
+
&:-webkit-autofill {
|
|
153
|
+
@include theme {
|
|
154
|
+
box-shadow: 0 0 0 1000px co(fore) inset;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@neatui/form",
|
|
3
|
+
"version": "1.3.63",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "mcui@form.scss",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://gitlab.com/mcui/mcui.desktop.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcui"
|
|
15
|
+
],
|
|
16
|
+
"author": "xiaojunbo",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://gitlab.com/mcui/mcui.desktop/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://gitlab.com/mcui/mcui.desktop#readme"
|
|
22
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.ui-radio {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
width: 1rem;
|
|
5
|
+
height: 1rem;
|
|
6
|
+
top: -1px;
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
.ui-radio + * {
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
}
|
|
13
|
+
.ui-radio > input {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
z-index: 2;
|
|
18
|
+
filter: alpha(opacity=0);
|
|
19
|
+
-moz-opacity: 0;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.ui-radio > input + * {
|
|
24
|
+
position: absolute;
|
|
25
|
+
display: inline-block;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
z-index: 1;
|
|
29
|
+
border: 1px solid #dfdfdf;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
}
|
|
32
|
+
.ui-radio > input:checked + * {
|
|
33
|
+
background: #40beff;
|
|
34
|
+
border: 1px solid #35b8fb;
|
|
35
|
+
}
|
|
36
|
+
.ui-radio > input:checked + *:before {
|
|
37
|
+
display: block;
|
|
38
|
+
content: '';
|
|
39
|
+
background: #fff;
|
|
40
|
+
width: 0.5rem;
|
|
41
|
+
height: 0.5rem;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
position: absolute;
|
|
44
|
+
left: 50%;
|
|
45
|
+
top: 50%;
|
|
46
|
+
margin: -0.25rem auto auto -0.25rem;
|
|
47
|
+
box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
|
|
48
|
+
}
|
|
49
|
+
.ui-radio > input + * {
|
|
50
|
+
-webkit-transition: all 0.3s;
|
|
51
|
+
-moz-transition: all 0.3s;
|
|
52
|
+
-o-transition: all 0.3s;
|
|
53
|
+
transition: all 0.3s;
|
|
54
|
+
}
|
|
55
|
+
.ui-radio[data-co='vice'] > input:checked + * {
|
|
56
|
+
background: #ffba46;
|
|
57
|
+
border: 1px solid #ffa81b;
|
|
58
|
+
}
|
|
59
|
+
.ui-radio[data-co='success'] > input:checked + * {
|
|
60
|
+
background: #7cd22b;
|
|
61
|
+
border: 1px solid #71c323;
|
|
62
|
+
}
|
|
63
|
+
.ui-radio[data-co='info'] > input:checked + * {
|
|
64
|
+
background: #bea3eb;
|
|
65
|
+
border: 1px solid #b395e7;
|
|
66
|
+
}
|
|
67
|
+
.ui-radio[data-co='warn'] > input:checked + * {
|
|
68
|
+
background: #ffba46;
|
|
69
|
+
border: 1px solid #ffa929;
|
|
70
|
+
}
|
|
71
|
+
.ui-radio[data-co='error'] > input:checked + * {
|
|
72
|
+
background: #ff8176;
|
|
73
|
+
border: 1px solid #ff897f;
|
|
74
|
+
}
|
package/grid/grid@a.scss
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[ui-grid~='@a'] {
|
|
2
|
+
& {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&[ui-grid~=':block'] {
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
& > * {
|
|
12
|
+
position: relative;
|
|
13
|
+
padding: 1.5em;
|
|
14
|
+
@include theme {
|
|
15
|
+
box-shadow:
|
|
16
|
+
inset -1px -1px 0 0 co(line),
|
|
17
|
+
-1px -1px 0 0 co(line);
|
|
18
|
+
background-color: co(fore);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
[ui-grid-select] {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[ui-grid-cover] {
|
|
29
|
+
position: relative;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 0;
|
|
32
|
+
box-sizing: content-box;
|
|
33
|
+
padding-top: 75%;
|
|
34
|
+
& > * {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
left: 0;
|
|
39
|
+
top: 0;
|
|
40
|
+
border-radius: 0.3em;
|
|
41
|
+
@include theme {
|
|
42
|
+
background-color: co(weak);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[ui-grid-select] {
|
|
48
|
+
position: absolute;
|
|
49
|
+
right: 0.2em;
|
|
50
|
+
top: 0.5em;
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transition: all 0.35s;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './grid@a.scss';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@neatui/grid",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "mcui@grid.scss",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "xiaojunbo",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"dependencies": {},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"mcui",
|
|
14
|
+
"ui"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 加号
|
|
2
|
+
%icon-add {
|
|
3
|
+
background:
|
|
4
|
+
linear-gradient(0deg, transparent 43%, currentColor 44%, currentColor 57%, transparent 58%) no-repeat center / 70% 70%,
|
|
5
|
+
linear-gradient(90deg, transparent 43%, currentColor 44%, currentColor 57%, transparent 58%) no-repeat center / 70% 70%;
|
|
6
|
+
}
|
|
7
|
+
[ui-icon~='add'] {
|
|
8
|
+
@extend %icon-add;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// 关闭
|
|
2
|
+
%icon-close {
|
|
3
|
+
background-image: linear-gradient(45deg, transparent 43%, currentColor 44%, currentColor 56%, transparent 57%),
|
|
4
|
+
linear-gradient(-45deg, transparent 43%, currentColor 44%, currentColor 56%, transparent 57%);
|
|
5
|
+
background-repeat: no-repeat;
|
|
6
|
+
background-size: 53% 53%;
|
|
7
|
+
background-position: center;
|
|
8
|
+
}
|
|
9
|
+
[ui-icon~='close'] {
|
|
10
|
+
border-radius: 30%;
|
|
11
|
+
@extend %icon-close;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 下载
|
|
2
|
+
%icon-down {
|
|
3
|
+
background:
|
|
4
|
+
linear-gradient(45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 23.5% 65% / 35% 50%,
|
|
5
|
+
linear-gradient(-45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 76.5% 65% / 35% 50%;
|
|
6
|
+
}
|
|
7
|
+
[ui-icon~='down'] {
|
|
8
|
+
@extend %icon-down;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// 下载
|
|
2
|
+
%icon-download {
|
|
3
|
+
background:
|
|
4
|
+
radial-gradient(circle at 50% 56%, currentColor 4%, transparent 5%),
|
|
5
|
+
radial-gradient(circle at 47% 54%, currentColor 4%, transparent 5%),
|
|
6
|
+
radial-gradient(circle at 53% 54%, currentColor 4%, transparent 5%),
|
|
7
|
+
radial-gradient(circle at 44% 52%, currentColor 3.7%, transparent 4.7%),
|
|
8
|
+
radial-gradient(circle at 56% 52%, currentColor 3.7%, transparent 4.7%),
|
|
9
|
+
radial-gradient(circle at 41% 50%, currentColor 3.5%, transparent 4.5%),
|
|
10
|
+
radial-gradient(circle at 59% 50%, currentColor 3.5%, transparent 4.5%),
|
|
11
|
+
radial-gradient(circle at 38% 48%, currentColor 3.3%, transparent 4.3%),
|
|
12
|
+
radial-gradient(circle at 62% 48%, currentColor 3.3%, transparent 4.3%),
|
|
13
|
+
radial-gradient(circle at 35% 46%, currentColor 3.1%, transparent 4.1%),
|
|
14
|
+
radial-gradient(circle at 65% 46%, currentColor 3.1%, transparent 4.1%),
|
|
15
|
+
radial-gradient(circle at 32% 44%, currentColor 2.9%, transparent 3.9%),
|
|
16
|
+
radial-gradient(circle at 68% 44%, currentColor 2.9%, transparent 3.9%),
|
|
17
|
+
radial-gradient(circle at 80% 82%, currentColor 3.5%, transparent 4.5%),
|
|
18
|
+
radial-gradient(circle at 20% 82%, currentColor 3.5%, transparent 4.5%),
|
|
19
|
+
linear-gradient(90deg, transparent 0%, currentColor 2%, currentColor 10%, transparent 13%, transparent 87%, currentColor 90%, currentColor 98%, transparent 100%) no-repeat 50%
|
|
20
|
+
75% / 70% 20%,
|
|
21
|
+
linear-gradient(0deg, transparent 42%, currentColor 45%, currentColor 55%, transparent 58%) no-repeat 50% 116% / 60% 50%,
|
|
22
|
+
linear-gradient(90deg, transparent 42%, currentColor 45%, currentColor 55%, transparent 58%) no-repeat 50% 30% / 50% 40%;
|
|
23
|
+
}
|
|
24
|
+
[ui-icon~='download'] {
|
|
25
|
+
@extend %icon-download;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 拖拽
|
|
2
|
+
%icon-drag {
|
|
3
|
+
background: radial-gradient(circle at 35% 15%, currentColor 8%, transparent 9%), radial-gradient(circle at 65% 15%, currentColor 8%, transparent 9%),
|
|
4
|
+
radial-gradient(circle at 35% 50%, currentColor 10.5%, transparent 11.5%), radial-gradient(circle at 65% 50%, currentColor 10.5%, transparent 11.5%),
|
|
5
|
+
radial-gradient(circle at 35% 85%, currentColor 8%, transparent 9%), radial-gradient(circle at 65% 85%, currentColor 8%, transparent 9%);
|
|
6
|
+
}
|
|
7
|
+
[ui-icon~='drag'] {
|
|
8
|
+
@extend %icon-drag;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 除以
|
|
2
|
+
%icon-except {
|
|
3
|
+
background: linear-gradient(0deg, transparent 42%, currentColor 0%, currentColor 57%, transparent 0%), radial-gradient(circle at 50% 18%, currentColor 12%, transparent 00%),
|
|
4
|
+
radial-gradient(circle at 50% 83%, currentColor 13%, transparent 00%);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[ui-icon~='except'] {
|
|
8
|
+
@extend %icon-except;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// 打勾
|
|
2
|
+
%icon-hook {
|
|
3
|
+
background-image: radial-gradient(circle at 26% 46%, currentColor 5.5%, transparent 6.5%), radial-gradient(circle at 29% 49%, currentColor 6%, transparent 7%),
|
|
4
|
+
radial-gradient(circle at 32% 51.5%, currentColor 6.5%, transparent 7.5%), radial-gradient(circle at 35% 54.4%, currentColor 7%, transparent 8%),
|
|
5
|
+
radial-gradient(circle at 38% 57.5%, currentColor 7.5%, transparent 8.5%), radial-gradient(circle at 42% 61%, currentColor 8%, transparent 9%),
|
|
6
|
+
radial-gradient(circle at 45% 63%, currentColor 9%, transparent 10%), radial-gradient(circle at 47% 69.8%, currentColor 5%, transparent 6%),
|
|
7
|
+
radial-gradient(circle at 50.8% 63.8%, currentColor 5%, transparent 6%), radial-gradient(circle at 52.5% 57%, currentColor 8%, transparent 9%),
|
|
8
|
+
radial-gradient(circle at 55.8% 52%, currentColor 7.5%, transparent 8.5%), radial-gradient(circle at 59% 47.5%, currentColor 7%, transparent 8%),
|
|
9
|
+
radial-gradient(circle at 62.8% 42%, currentColor 6%, transparent 7%), radial-gradient(circle at 66.8% 37%, currentColor 5%, transparent 6%),
|
|
10
|
+
radial-gradient(circle at 70% 32.5%, currentColor 4.5%, transparent 5.5%), radial-gradient(circle at 73.8% 28%, currentColor 3.9%, transparent 4.9%),
|
|
11
|
+
radial-gradient(circle at 77.5% 23.7%, currentColor 3.4%, transparent 4.4%);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[ui-icon~='hook'] {
|
|
15
|
+
@extend %icon-hook;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
%icon-left {
|
|
2
|
+
background:
|
|
3
|
+
linear-gradient(-225deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 30% 23.5% / 50% 35%,
|
|
4
|
+
linear-gradient(45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 30% 76.5% / 50% 35%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[ui-icon~='left'] {
|
|
8
|
+
@extend %icon-left;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
%icon-link {
|
|
2
|
+
background:
|
|
3
|
+
linear-gradient(-45deg, transparent 38%, currentColor 40%, currentColor 60%, transparent 62%) no-repeat 50% 50% / 30% 30%,
|
|
4
|
+
linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 19% 51% / 20% 20%,
|
|
5
|
+
linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 48% 81% / 20% 20%,
|
|
6
|
+
linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 51% 19% / 20% 20%,
|
|
7
|
+
linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 81% 48% / 20% 20%,
|
|
8
|
+
radial-gradient(circle at 75% 25%, transparent 37%, currentColor 39%, currentColor 60%, transparent 62%) no-repeat 15% 85% / 35% 35%,
|
|
9
|
+
radial-gradient(circle at 25% 75%, transparent 37%, currentColor 39%, currentColor 60%, transparent 62%) no-repeat 85% 15% / 35% 35%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[ui-icon~='link'] {
|
|
13
|
+
@extend %icon-link;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
%icon-menu {
|
|
2
|
+
background:
|
|
3
|
+
linear-gradient(0deg, transparent 42%, currentColor 0%, currentColor 57%, transparent 0%),
|
|
4
|
+
linear-gradient(0deg, transparent 8%, currentColor 10%, currentColor 20%, transparent 22%, transparent 78%, currentColor 80%, currentColor 90%, transparent 92%) no-repeat left /
|
|
5
|
+
80% 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[ui-icon~='menu'] {
|
|
9
|
+
@extend %icon-menu;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
%icon-more {
|
|
2
|
+
background: radial-gradient(circle at 50% 18%, currentColor 9%, transparent 11%), radial-gradient(circle at 50% 50%, currentColor 13%, transparent 15%),
|
|
3
|
+
radial-gradient(circle at 50% 82%, currentColor 9%, transparent 11%);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
[ui-icon~='more'] {
|
|
7
|
+
@extend %icon-more;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
%icon-omit {
|
|
2
|
+
background: radial-gradient(circle at 23% 50%, currentColor 9%, transparent 10%), radial-gradient(circle at 50% 50%, currentColor 12%, transparent 13%),
|
|
3
|
+
radial-gradient(circle at 78% 50%, currentColor 9%, transparent 10%);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
[ui-icon~='omit'] {
|
|
7
|
+
@extend %icon-omit;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// 添加
|
|
2
|
+
%icon-quit {
|
|
3
|
+
background:
|
|
4
|
+
linear-gradient(90deg, transparent 36%, currentColor 48%, currentColor 62%, transparent 72%) no-repeat 50% 5% / 30% 50%,
|
|
5
|
+
radial-gradient(circle at 50% -160%, transparent 68%, currentColor 75%, currentColor 81%, transparent 86%) no-repeat 50% 100% / 40% 22%,
|
|
6
|
+
radial-gradient(circle at -65% 50%, transparent 49%, currentColor 55%, currentColor 60%, transparent 66%) no-repeat 100% 50% / 30% 100%,
|
|
7
|
+
radial-gradient(circle at 165% 50%, transparent 49%, currentColor 55%, currentColor 60%, transparent 66%) no-repeat 0% 50% / 30% 100%;
|
|
8
|
+
}
|
|
9
|
+
[ui-icon~='quit'] {
|
|
10
|
+
@extend %icon-quit;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
%icon-refresh {
|
|
2
|
+
background:
|
|
3
|
+
linear-gradient(15deg, transparent 32%, currentColor 40%, currentColor 65%, transparent 73%) no-repeat 81% 28% / 23% 20%,
|
|
4
|
+
linear-gradient(15deg, transparent 38%, currentColor 48%, currentColor 73%, transparent 80%) no-repeat 17% 75% / 23% 20%,
|
|
5
|
+
radial-gradient(circle at 50% 125%, transparent 50%, currentColor 53%, currentColor 62%, transparent 65%) no-repeat 50% 0% / 100% 40%,
|
|
6
|
+
radial-gradient(circle at 50% -25%, transparent 50%, currentColor 53%, currentColor 62%, transparent 65%) no-repeat 50% 100% / 100% 40%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[ui-icon~='refresh'] {
|
|
10
|
+
@extend %icon-refresh;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
%icon-right {
|
|
2
|
+
background:
|
|
3
|
+
linear-gradient(225deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 70% 23.5% / 50% 35%,
|
|
4
|
+
linear-gradient(-45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 70% 76.5% / 50% 35%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[ui-icon~='right'] {
|
|
8
|
+
@extend %icon-right;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
%icon-search {
|
|
2
|
+
background: radial-gradient(circle at 50% 50%, transparent 50%, currentColor 53%, currentColor 62%, transparent 65%),
|
|
3
|
+
radial-gradient(circle at 84% 84%, currentColor 4%, transparent 6%), radial-gradient(circle at 87% 87%, currentColor 4%, transparent 6%),
|
|
4
|
+
radial-gradient(circle at 90% 90%, currentColor 4%, transparent 6%);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[ui-icon~='search'] {
|
|
8
|
+
@extend %icon-search;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
%icon-time {
|
|
2
|
+
background:
|
|
3
|
+
linear-gradient(90deg, transparent 40%, #000 41%, #000 50%, transparent 51%) no-repeat 100% 25% / 100% 40%,
|
|
4
|
+
radial-gradient(at 45.5% 30%, #000 6%, transparent 7%) no-repeat top / 100% 50%,
|
|
5
|
+
linear-gradient(0deg, transparent 40%, #000 41%, #000 50%, transparent 51%) no-repeat 85% 50% / 40% 100%,
|
|
6
|
+
radial-gradient(at 80% 54.7%, #000 6%, transparent 7%) no-repeat right / 50% 100%,
|
|
7
|
+
radial-gradient(circle at 47% 54%, #000 9%, transparent 10%);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[ui-icon~='time'] {
|
|
11
|
+
@extend %icon-time;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
%icon-top {
|
|
2
|
+
background:
|
|
3
|
+
linear-gradient(135deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 23.5% 40% / 35% 50%,
|
|
4
|
+
linear-gradient(-135deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 76.5% 40% / 35% 50%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[ui-icon~='top'] {
|
|
8
|
+
@extend %icon-top;
|
|
9
|
+
}
|