@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.
Files changed (226) hide show
  1. package/README.md +1 -0
  2. package/all.scss +22 -0
  3. package/anim/am-loading.scss +220 -0
  4. package/anim/am-rotate.scss +17 -0
  5. package/anim/am-view-aa.scss +91 -0
  6. package/anim/am-view-ab.scss +107 -0
  7. package/anim/am-view-ac.scss +114 -0
  8. package/anim/am-view-ad.scss +109 -0
  9. package/anim/am-view-ae.scss +109 -0
  10. package/anim/am-view-af.scss +104 -0
  11. package/anim/am-view-ag.scss +1789 -0
  12. package/anim/am-view-ah.scss +122 -0
  13. package/anim/am-view-ai.scss +116 -0
  14. package/anim/am-view-aj.scss +112 -0
  15. package/anim/am-view-ak.scss +102 -0
  16. package/anim/am-view-al.scss +98 -0
  17. package/anim/am-view-am.scss +97 -0
  18. package/anim/am-view-an.scss +109 -0
  19. package/anim/am-view-ao.scss +123 -0
  20. package/anim/am-view-ap.scss +108 -0
  21. package/anim/am-view-aq.scss +115 -0
  22. package/anim/am-view-ar.scss +113 -0
  23. package/anim/am-view-as.scss +99 -0
  24. package/anim/am-view-at.scss +103 -0
  25. package/anim/mcui@anim.scss +22 -0
  26. package/anim/package.json +16 -0
  27. package/badge/badge@theme=aa.scss +36 -0
  28. package/badge/package.json +22 -0
  29. package/btns/README.md +79 -0
  30. package/btns/base.scss +152 -0
  31. package/btns/btns@a.scss +469 -0
  32. package/btns/btns@b.scss +187 -0
  33. package/btns/btns@c.scss +169 -0
  34. package/btns/mcui@btns.scss +3 -0
  35. package/btns/package.json +16 -0
  36. package/card/card@a.scss +238 -0
  37. package/card/card@b.scss +75 -0
  38. package/card/mcui@card.scss +2 -0
  39. package/card/package.json +15 -0
  40. package/chat/chat@a.scss +139 -0
  41. package/chat/mcui@chat.scss +1 -0
  42. package/chat/package.json +11 -0
  43. package/cite/cite@a.scss +33 -0
  44. package/cite/package.json +11 -0
  45. package/core/README.md +142 -0
  46. package/core/base.scss +544 -0
  47. package/core/border.scss +307 -0
  48. package/core/color.scss +245 -0
  49. package/core/cols.scss +148 -0
  50. package/core/cover.scss +94 -0
  51. package/core/flex.scss +616 -0
  52. package/core/line.scss +4 -0
  53. package/core/margin.scss +0 -0
  54. package/core/mcui@core.scss +36 -0
  55. package/core/mcui@mobile.scss +37 -0
  56. package/core/media.scss +268 -0
  57. package/core/package.json +16 -0
  58. package/core/padding.scss +0 -0
  59. package/core/pos.scss +252 -0
  60. package/core/reset.scss +165 -0
  61. package/core/scale.scss +24 -0
  62. package/core/scroll.scss +178 -0
  63. package/core/shadow.scss +81 -0
  64. package/core/size.mobile.scss +105 -0
  65. package/core/size.scss +178 -0
  66. package/core/theme.scss +156 -0
  67. package/core/trim.mobile.scss +327 -0
  68. package/core/trim.scss +443 -0
  69. package/core/ux.scss +334 -0
  70. package/demo/demo@a.scss +34 -0
  71. package/demo/mcui@demo.scss +1 -0
  72. package/form/README.md +142 -0
  73. package/form/base.scss +425 -0
  74. package/form/form@a/base.scss +33 -0
  75. package/form/form@a/checkbox.scss +194 -0
  76. package/form/form@a/date.scss +86 -0
  77. package/form/form@a/index.scss +9 -0
  78. package/form/form@a/input.scss +156 -0
  79. package/form/form@a/radio.scss +99 -0
  80. package/form/form@a/select.scss +128 -0
  81. package/form/form@a/switch.scss +83 -0
  82. package/form/form@a/textarea.scss +105 -0
  83. package/form/form@a/upload.scss +162 -0
  84. package/form/form@b/base.scss +33 -0
  85. package/form/form@b/checkbox.scss +86 -0
  86. package/form/form@b/date.scss +107 -0
  87. package/form/form@b/index.scss +9 -0
  88. package/form/form@b/input.scss +163 -0
  89. package/form/form@b/radio.scss +90 -0
  90. package/form/form@b/select.scss +124 -0
  91. package/form/form@b/switch.scss +83 -0
  92. package/form/form@b/textarea.scss +105 -0
  93. package/form/form@b/upload.scss +160 -0
  94. package/form/form@c/base.scss +44 -0
  95. package/form/form@c/checkbox.scss +90 -0
  96. package/form/form@c/date.scss +125 -0
  97. package/form/form@c/index.scss +9 -0
  98. package/form/form@c/input.scss +169 -0
  99. package/form/form@c/radio.scss +84 -0
  100. package/form/form@c/select.scss +121 -0
  101. package/form/form@c/switch.scss +83 -0
  102. package/form/form@c/textarea.scss +85 -0
  103. package/form/form@c/upload.scss +159 -0
  104. package/form/form@d/base.scss +45 -0
  105. package/form/form@d/checkbox.scss +87 -0
  106. package/form/form@d/date.scss +125 -0
  107. package/form/form@d/index.scss +9 -0
  108. package/form/form@d/input.scss +346 -0
  109. package/form/form@d/radio.scss +81 -0
  110. package/form/form@d/select.scss +121 -0
  111. package/form/form@d/switch.scss +83 -0
  112. package/form/form@d/textarea.scss +104 -0
  113. package/form/form@d/upload.scss +160 -0
  114. package/form/mcui@form.scss +4 -0
  115. package/form/package.json +22 -0
  116. package/form/radio@theme=aa.scss +74 -0
  117. package/grid/grid@a.scss +54 -0
  118. package/grid/mcui@grid.scss +1 -0
  119. package/grid/package.json +16 -0
  120. package/icon/icon@add.scss +9 -0
  121. package/icon/icon@close.scss +12 -0
  122. package/icon/icon@down.scss +9 -0
  123. package/icon/icon@download.scss +26 -0
  124. package/icon/icon@drag.scss +9 -0
  125. package/icon/icon@except.scss +9 -0
  126. package/icon/icon@hook.scss +16 -0
  127. package/icon/icon@left.scss +9 -0
  128. package/icon/icon@link.scss +14 -0
  129. package/icon/icon@menu.scss +10 -0
  130. package/icon/icon@minus.scss +7 -0
  131. package/icon/icon@more.scss +8 -0
  132. package/icon/icon@omit.scss +8 -0
  133. package/icon/icon@quit.scss +11 -0
  134. package/icon/icon@refresh.scss +11 -0
  135. package/icon/icon@right.scss +9 -0
  136. package/icon/icon@search.scss +9 -0
  137. package/icon/icon@time.scss +12 -0
  138. package/icon/icon@top.scss +9 -0
  139. package/icon/icon@upload.scss +26 -0
  140. package/icon/icon@view.scss +20 -0
  141. package/icon/mcui@icon.scss +21 -0
  142. package/icon/package.json +15 -0
  143. package/imgs/README.md +78 -0
  144. package/imgs/base.scss +8 -0
  145. package/imgs/imgs@a.scss +171 -0
  146. package/imgs/imgs@b.scss +173 -0
  147. package/imgs/mcui@imgs.scss +1 -0
  148. package/imgs/package.json +16 -0
  149. package/index.js +28 -0
  150. package/line/line@a.scss +51 -0
  151. package/line/line@b.scss +63 -0
  152. package/line/mcui@line.scss +2 -0
  153. package/line/package.json +16 -0
  154. package/list/list@a.scss +62 -0
  155. package/list/list@b.scss +83 -0
  156. package/list/list@c.scss +89 -0
  157. package/list/mcui@list.scss +2 -0
  158. package/list/package.json +16 -0
  159. package/load/README.md +69 -0
  160. package/load/load@a.scss +44 -0
  161. package/load/load@b.scss +56 -0
  162. package/load/load@c.scss +270 -0
  163. package/load/load@d.scss +26 -0
  164. package/load/load@e.scss +24 -0
  165. package/load/load@f.scss +124 -0
  166. package/load/load@g.scss +35 -0
  167. package/load/load@h.scss +51 -0
  168. package/load/load@i.scss +51 -0
  169. package/load/mcui@load.scss +8 -0
  170. package/load/package.json +16 -0
  171. package/menu/mcui@menu.scss +1 -0
  172. package/menu/menu@b.scss +302 -0
  173. package/menu/menu@theme=ab.scss +282 -0
  174. package/menu/package.json +22 -0
  175. package/navs/README.md +30 -0
  176. package/navs/mcui@navs.scss +2 -0
  177. package/navs/navs@a.scss +113 -0
  178. package/navs/navs@b.scss +111 -0
  179. package/navs/package.json +16 -0
  180. package/note/mcui@note.scss +2 -0
  181. package/note/note@a.scss +26 -0
  182. package/note/note@b.scss +33 -0
  183. package/note/package.json +11 -0
  184. package/opts/mcui@opts.scss +1 -0
  185. package/opts/opts@a.scss +52 -0
  186. package/opts/package.json +11 -0
  187. package/package.json +26 -0
  188. package/paging/mc-paging-ui1503.scss +106 -0
  189. package/paging/mc-paging.scss +432 -0
  190. package/paging/paging@theme=aa.scss +45 -0
  191. package/path/README.md +142 -0
  192. package/path/mcui@path.scss +1 -0
  193. package/path/package.json +22 -0
  194. package/path/path@a.scss +38 -0
  195. package/side/mcui@side.scss +0 -0
  196. package/side/side.scss +2 -0
  197. package/steps/mcui@steps.scss +2 -0
  198. package/steps/package.json +17 -0
  199. package/steps/steps@a.scss +89 -0
  200. package/steps/steps@v.scss +122 -0
  201. package/table/base.scss +140 -0
  202. package/table/mcui@table.scss +3 -0
  203. package/table/package.json +22 -0
  204. package/table/table@a.scss +230 -0
  205. package/table/table@b.scss +78 -0
  206. package/table/table@c.scss +18 -0
  207. package/tabs/README.md +62 -0
  208. package/tabs/mcui@tabs.scss +1 -0
  209. package/tabs/package.json +22 -0
  210. package/tabs/tabs@a.scss +62 -0
  211. package/tags/README.md +71 -0
  212. package/tags/mcui@tags.scss +2 -0
  213. package/tags/package.json +22 -0
  214. package/tags/tags@a.scss +125 -0
  215. package/tags/tags@b.scss +131 -0
  216. package/tips/README.md +62 -0
  217. package/tips/base.scss +351 -0
  218. package/tips/mcui@tips.scss +1 -0
  219. package/tips/package.json +22 -0
  220. package/tips/tips@a.scss +52 -0
  221. package/title/mcui@title.scss +2 -0
  222. package/title/package.json +15 -0
  223. package/title/title@a.scss +18 -0
  224. package/title/title@b.scss +7 -0
  225. package/user/mcui@user.scss +0 -0
  226. package/user/user@a.scss +7 -0
package/core/ux.scss ADDED
@@ -0,0 +1,334 @@
1
+ // 交互
2
+ .ux-none {
3
+ &,
4
+ * {
5
+ cursor: pointer;
6
+ }
7
+ }
8
+
9
+ .ux-disable {
10
+ cursor: not-allowed;
11
+ }
12
+
13
+ // 移入效果
14
+ .ux-hover {
15
+ &,
16
+ * {
17
+ cursor: pointer;
18
+ }
19
+ &:hover {
20
+ @include theme {
21
+ box-shadow: inset 0 0 0 100em co(weak);
22
+ }
23
+ }
24
+ }
25
+
26
+ // 移入阴影
27
+ .ux-shadow:hover {
28
+ @include theme {
29
+ box-shadow: 0 0.1em 0.5em co(deep);
30
+ }
31
+ }
32
+
33
+ // 点击效果
34
+ .ux-click,
35
+ .hover-underline,
36
+ [ui-hover~=':underline'] {
37
+ &,
38
+ * {
39
+ cursor: pointer;
40
+ }
41
+ &:hover {
42
+ text-decoration: underline;
43
+ }
44
+ }
45
+
46
+ // 点击缩小
47
+ .ux-scale {
48
+ transition: all 0.1s;
49
+ transform: scale(1);
50
+ &,
51
+ * {
52
+ cursor: pointer;
53
+ }
54
+ &:active {
55
+ transform: scale(0.95);
56
+ }
57
+ }
58
+
59
+ // 移入显示
60
+ .parent-hover\:show {
61
+ opacity: 0;
62
+ pointer-events: none;
63
+ }
64
+ *:hover > .parent-hover\:show {
65
+ opacity: 1;
66
+ pointer-events: auto;
67
+ }
68
+
69
+ // 链接图标
70
+ [ui-link],
71
+ .ux-link {
72
+ transition: color 0.35s;
73
+ cursor: pointer;
74
+ &::before {
75
+ position: relative;
76
+ top: -0.1em;
77
+ content: '';
78
+ width: 1em;
79
+ height: 1em;
80
+ display: inline-block;
81
+ opacity: 0.3;
82
+ transition:
83
+ opacity 0.35s,
84
+ transform 0.35s;
85
+ color: currentColor;
86
+ vertical-align: middle;
87
+ background:
88
+ linear-gradient(-45deg, transparent 38%, currentColor 40%, currentColor 60%, transparent 62%) no-repeat 50% 50% / 30% 30%,
89
+ linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 19% 51% / 20% 20%,
90
+ linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 48% 81% / 20% 20%,
91
+ linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 51% 19% / 20% 20%,
92
+ linear-gradient(-45deg, transparent 32%, currentColor 34%, currentColor 63%, transparent 65%) no-repeat 81% 48% / 20% 20%,
93
+ radial-gradient(circle at 75% 25%, transparent 37%, currentColor 39%, currentColor 60%, transparent 62%) no-repeat 15% 85% / 35% 35%,
94
+ radial-gradient(circle at 25% 75%, transparent 37%, currentColor 39%, currentColor 60%, transparent 62%) no-repeat 85% 15% / 35% 35%;
95
+ }
96
+
97
+ &:hover {
98
+ transition: color 0.35s;
99
+ @include theme {
100
+ color: co(link);
101
+ }
102
+ }
103
+ }
104
+
105
+ @font-face {
106
+ font-family: 'ui-base-icon';
107
+ src: url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAASkAAsAAAAAB0AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA9M0nuY21hcAAAAYgAAABLAAABcOhGuQRnbHlmAAAB1AAAANwAAADwUnOKr2hlYWQAAAKwAAAALQAAADYhh3QoaGhlYQAAAuAAAAAcAAAAJAfeA4NobXR4AAAC/AAAAAgAAAAICAAAAGxvY2EAAAMEAAAABgAAAAYAeAAAbWF4cAAAAwwAAAAgAAAAIAERAGFuYW1lAAADLAAAAVcAAAKvNpuk+XBvc3QAAASEAAAAIAAAADHSt5V4eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFhYJzAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnss9l2Nu+N/AwMB8hwFIMjCiKGICAGmHDJ54nGNgYGBlYGBgBmIdIGZhYGAMYWBkAAE/oCgjWJyZgQsszsKgBFbDAhJ/Lvf/P4wE8lnAJAMjG8Mo4AGTMlAeOKwgmIERAHS8CeUAeJxjYGUAAuZcprcM/AziDFYMHgwhDAyqikpqpoImZsaKRmKigiJsjOyC4ormguqMykp6jEAJO0aQjCyjCJuykpoto7oiUN4YImAOpEXYtBmV1EzMrBlNERxjZpl/tUr6+kqMzYoGBv9iOFkYOzg5/75VEVUVF1UTY2xX0hfjExTm/FfJyakiICLyeAcvHy/nXm4BHq69vHx8vDu4BQS4RaDaFUFGMd7l/FfLycnYzPnvOsiEZhFVCQNFTV5xYUFNFpZ/FZxCvKx8goYCYgKCogJTgZhPkh8Ae/Mp4XicY2BkYGAA4i3nE0zj+W2+MnCzMIDAfZMZ8sg0CwPTWyDFwcAE4gEABesIWgAAAHicY2BkYGBu+N/AEMPCAAJAkpEBFTABAEcIAmsEAAAABAAAAAAAAAAAeAAAAAEAAAACAFUABQAAAAAAAgAAAAoACgAAAP8AAAAAAAB4nH2Py0rDQBiFz/SKLbhQcNXFiFAESXpZCHZbaZdCwe5cpOmkTUkyZTIt9A18Bx/Bp/BB9AV8CY/pKLSLJszPd85/mX8AXOALAvvvkmfPAudUey6hjmvHZfq3jivke8dVNPHouEb/yXEDd3hx3OTEV04QlTOqNt4cC7Tw4bjE3k/HZfrfjitoibrjKq7EjeMa/QfHDUzFs+Mm2uJ9aFRg1VzOdjIOdRbpzKbhJvZmQa68X2eiFpskMIfmoZoqk8c6kz2/e5gYq0yZv/H5dtG3NpKR0akc8R6VJFqujV6p0PpLa9eDTidyvh/qFEMYKASwjHNIzLBjjBFCI0NURIuUekPXYz5Azlrvv2ZCtWA2YcacrDyVm1IZenGhJHrw0T3ZMabKiq7j7XNsuVGfruULJI9hR0oaufcobpuQJdZFbkUnpO9jWXStMUCHf3RU7xd3pz+BB34eAHicY2BigAAuBuyAiZGJkZmBPVE3Ob+g0pCBAQARqgKX')
108
+ format('woff');
109
+ }
110
+ // 复制图标
111
+ [ui-copy],
112
+ .ux-copy {
113
+ transition: color 0.35s;
114
+ cursor: pointer;
115
+ &::before {
116
+ font-family: 'ui-base-icon' !important;
117
+ content: '\e71e';
118
+ font-style: normal;
119
+ color: currentColor;
120
+ margin-left: 0.1em;
121
+ opacity: 0.3;
122
+ }
123
+
124
+ &:hover {
125
+ transition: color 0.35s;
126
+ @include theme {
127
+ color: co(link);
128
+ }
129
+
130
+ &::before {
131
+ transform: scale(1);
132
+ opacity: 1;
133
+ }
134
+ }
135
+
136
+ // 复制成功
137
+ &[data-copy-status='1'] {
138
+ &::before {
139
+ content: '✓';
140
+ }
141
+ }
142
+ }
143
+
144
+ // 排序图标
145
+ [ui-sort],
146
+ .ux-sort {
147
+ position: relative;
148
+ cursor: pointer;
149
+ padding-right: 0.75em;
150
+ &::before,
151
+ &::after {
152
+ content: '';
153
+ position: absolute;
154
+ display: block;
155
+ width: 0;
156
+ height: 0;
157
+ right: 0;
158
+ top: 50%;
159
+ margin-top: -0.65em;
160
+ border: 0.35em solid transparent;
161
+ box-sizing: content-box;
162
+ }
163
+ &::before {
164
+ border-bottom-color: currentColor;
165
+ opacity: 0.3;
166
+ }
167
+ &::after {
168
+ border-top-color: currentColor;
169
+ transform: translateY(120%);
170
+ opacity: 0.6;
171
+ }
172
+
173
+ &[ui-sort~='0'] {
174
+ &::before {
175
+ opacity: 0.3;
176
+ }
177
+ &::after {
178
+ opacity: 0.6;
179
+ }
180
+ }
181
+ &[ui-sort~='1'] {
182
+ &::before {
183
+ opacity: 0.6;
184
+ }
185
+ &::after {
186
+ opacity: 0.3;
187
+ }
188
+ }
189
+ }
190
+
191
+ // 箭头图标
192
+ [ux-arrow],
193
+ .ux-arrow {
194
+ cursor: pointer;
195
+ position: relative;
196
+ display: inline-flex;
197
+ justify-content: flex-start;
198
+ align-items: center;
199
+ align-content: center;
200
+ transition: all 0.3s;
201
+
202
+ &::before {
203
+ content: ' ';
204
+ display: inline-block;
205
+ width: 0.8em;
206
+ height: 0.8em;
207
+ background:
208
+ linear-gradient(45deg, transparent 51%, currentColor 52%, currentColor 72%, transparent 73%) no-repeat 23.5% 65%/35% 50%,
209
+ linear-gradient(-45deg, transparent 51%, currentColor 52%, currentColor 72%, transparent 73%) no-repeat 76.5% 65%/35% 50%;
210
+ }
211
+
212
+ &[ux-arrow~='t'],
213
+ &.ux-arrow-t {
214
+ &::before {
215
+ transform: rotate(180deg);
216
+ }
217
+ }
218
+
219
+ &[ux-arrow~='r'],
220
+ &.ux-arrow-r {
221
+ &::before {
222
+ transform: rotate(-90deg);
223
+ }
224
+ }
225
+
226
+ &[ux-arrow~='l'],
227
+ &.ux-arrow-l {
228
+ &::before {
229
+ transform: rotate(90deg);
230
+ }
231
+ }
232
+ }
233
+
234
+ // 下拉框
235
+ .ux-downmenu-hover {
236
+ position: relative;
237
+ &:hover {
238
+ .downmenu {
239
+ opacity: 1;
240
+ transform: translate3d(0, 0, 0);
241
+ pointer-events: auto;
242
+
243
+ &.downmenu-c {
244
+ transform: translate3d(-50%, 0, 0);
245
+ }
246
+ }
247
+ }
248
+
249
+ .downmenu {
250
+ position: absolute;
251
+ top: 130%;
252
+ @include theme {
253
+ background: co(fore);
254
+ box-shadow: 0 1px 0.3em 1px co(deep);
255
+ }
256
+ padding: 1.5rem;
257
+ right: 0.15rem;
258
+ min-width: 10.5rem;
259
+ border-radius: 0.25rem;
260
+ transform: translate3d(0, 1rem, 0);
261
+ pointer-events: none;
262
+ opacity: 0;
263
+ transition: all 0.3s;
264
+
265
+ &.downmenu-top {
266
+ top: auto;
267
+ bottom: 130%;
268
+
269
+ &::before {
270
+ bottom: auto;
271
+ top: 100%;
272
+ }
273
+ }
274
+
275
+ &[ux-view='1'] {
276
+ opacity: 1;
277
+ transform: translate3d(0, 0, 0);
278
+ pointer-events: auto;
279
+ }
280
+
281
+ &::before {
282
+ content: '';
283
+ position: absolute;
284
+ width: 100%;
285
+ left: 0;
286
+ height: 1em;
287
+ bottom: 100%;
288
+ }
289
+
290
+ &::after {
291
+ content: '';
292
+ position: absolute;
293
+ box-sizing: content-box;
294
+ width: 0.5em;
295
+ height: 0.5em;
296
+ @include theme {
297
+ background: co(fore);
298
+ }
299
+ top: -0.25em;
300
+ left: 50%;
301
+ margin-left: -0.25em;
302
+ transform: rotate(45deg);
303
+ box-shadow: -1px -1px 0.15em 0 rgba(0, 0, 0, 0.07);
304
+ z-index: -1;
305
+ }
306
+
307
+ &.downmenu-l {
308
+ &::after {
309
+ left: 1em;
310
+ }
311
+ }
312
+
313
+ &.downmenu-r {
314
+ &::after {
315
+ left: auto;
316
+ right: 1em;
317
+ }
318
+ }
319
+
320
+ &.downmenu-c {
321
+ left: 50%;
322
+ right: auto;
323
+ transform: translate3d(-50%, -1rem, 0);
324
+ }
325
+
326
+ &.downmenu-top {
327
+ &::after {
328
+ top: auto;
329
+ bottom: -0.25em;
330
+ box-shadow: 1px 1px 0.15em 0 rgba(0, 0, 0, 0.07);
331
+ }
332
+ }
333
+ }
334
+ }
@@ -0,0 +1,34 @@
1
+ [ui-demo~='@a'] {
2
+ & {
3
+ border-radius: 0.25em;
4
+ @include theme {
5
+ border: 1px solid co(line);
6
+ }
7
+ }
8
+
9
+ [ui-demo-view] {
10
+ padding: 1.5em;
11
+ @include theme {
12
+ background: linear-gradient(-45deg, rgba(co(line), 0.5) 12.5%, co(fore) 0, co(fore) 50%, co(line) 0, co(line) 62.5%, co(fore) 0, co(fore)) repeat center / 3px 3px;
13
+ }
14
+ }
15
+
16
+ [ui-demo-tool] {
17
+ text-align: center;
18
+ padding: 0.25em;
19
+ @include theme {
20
+ border-top: 1px solid co(line);
21
+ border-bottom: 1px solid co(line);
22
+ background-color: rgba(co(weak), 0.5);
23
+ }
24
+ }
25
+
26
+ [ui-demo-code] {
27
+ padding: 0;
28
+
29
+ & > * {
30
+ margin: 0 !important;
31
+ border: 0 !important;
32
+ }
33
+ }
34
+ }
@@ -0,0 +1 @@
1
+ @import './demo@a.scss';
package/form/README.md ADDED
@@ -0,0 +1,142 @@
1
+ # @neatui/core
2
+
3
+ MCUI 核心组件,MCUI 全局架构性组件。官网 [https://mcui.fekit.cn/](https://mcui.fekit.cn/)
4
+
5
+ ## 安装
6
+
7
+ ### 安装核心
8
+
9
+ ```
10
+ npm i @neatui/core
11
+ ```
12
+
13
+ ### 安装组件
14
+
15
+ ```
16
+ npm i @neatui/btns
17
+ ```
18
+
19
+ ## 引用
20
+
21
+ ```scss
22
+ // main.scss
23
+
24
+ // 添加主题
25
+ $theme: (
26
+ light: (
27
+ main: #d52932,
28
+ // 主体
29
+ vice: #67337d,
30
+ // 辅助
31
+ text: #000000,
32
+ // 文本
33
+ back: #ffffff,
34
+ // 底色
35
+ link: #0d66d0,
36
+ // 链接
37
+ code: #e23861,
38
+ // 代码
39
+ well: #4bbc73,
40
+ // 提倡
41
+ warn: #fb9a2a,
42
+ // 警告
43
+ risk: #f95850,
44
+ // 风险
45
+ info: #0889e4 // 信息
46
+ ),
47
+ dark: (
48
+ main: #91cc48,
49
+ vice: #ffa60f,
50
+ text: rgba(255, 255, 255, 0.9),
51
+ back: #262629,
52
+ link: #00b9ff,
53
+ code: #e23861,
54
+ well: #49ca74,
55
+ warn: #fb9a2a,
56
+ risk: #fd7466,
57
+ info: #949af9
58
+ )
59
+ // 添加更多主题...
60
+ );
61
+
62
+ // 引用框架核心
63
+ @import '~@neatui/core';
64
+
65
+ // 引用业务组件
66
+ @import '~@neatui/btns';
67
+ // 引用更多组件...
68
+ ```
69
+
70
+ ## 使用
71
+
72
+ ### 颜色
73
+
74
+ ```scss
75
+ @import '~@neatui/core';
76
+
77
+ .header {
78
+ position: fixed;
79
+ width: 100%;
80
+ height: 4rem;
81
+ left: 0;
82
+ top: 0;
83
+
84
+ @include theme {
85
+ background-color: co(back);
86
+ color: co(text);
87
+ }
88
+ }
89
+ ```
90
+
91
+ ↓
92
+
93
+ ```css
94
+ /* 编译成css: */
95
+ .header {
96
+ position: fixed;
97
+ width: 100%;
98
+ height: 4rem;
99
+ left: 0;
100
+ top: 0;
101
+ }
102
+ [mcui~='light'] .header {
103
+ background-color: #ffffff;
104
+ color: #000000;
105
+ }
106
+ [mcui~='dark'] .header {
107
+ background-color: #262629;
108
+ color: rgba(255, 255, 255, 0.9);
109
+ }
110
+ ```
111
+
112
+ ### 响应三端
113
+
114
+ ```scss
115
+ @import '~@neatui/core';
116
+
117
+ body {
118
+ font-size: 14px;
119
+
120
+ @include mob {
121
+ font-size: 12px;
122
+ }
123
+ }
124
+ ```
125
+
126
+ ↓
127
+
128
+ ```css
129
+ /* 编译成css: */
130
+ body {
131
+ font-size: 14px;
132
+ }
133
+ @media screen and (max-width: 767px) {
134
+ body {
135
+ font-size: 12px;
136
+ }
137
+ }
138
+ ```
139
+
140
+ ## 更多
141
+
142
+ 详细文档请到MCUI官网 [https://mcui.fekit.cn](https://mcui.fekit.cn)