@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,159 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
[ui-form~='@c'] {
|
|
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: mix(co(weak), co(fore), 50%);
|
|
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: mix(co(weak), co(fore), 50%);
|
|
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
|
+
[ui-form-file-tools] {
|
|
101
|
+
position: absolute;
|
|
102
|
+
height: 1.5em;
|
|
103
|
+
width: 100%;
|
|
104
|
+
opacity: 0;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
transition: all 0.5s;
|
|
107
|
+
bottom: 0em;
|
|
108
|
+
left: 0;
|
|
109
|
+
transform: translate3d(0, 2em, 0);
|
|
110
|
+
|
|
111
|
+
& > * {
|
|
112
|
+
width: 1.5em;
|
|
113
|
+
height: 1.5em;
|
|
114
|
+
border-radius: 50%;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
&:hover {
|
|
118
|
+
[ui-form-file-tools] {
|
|
119
|
+
opacity: 1;
|
|
120
|
+
pointer-events: auto;
|
|
121
|
+
transform: translate3d(0, -0.5em, 0);
|
|
122
|
+
}
|
|
123
|
+
img,
|
|
124
|
+
video {
|
|
125
|
+
border-radius: 1em;
|
|
126
|
+
transform: translate3d(0, -2em, 0);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// 删除时
|
|
131
|
+
&.deling {
|
|
132
|
+
animation: am-file-del 0.35s forwards;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[ui-form-input] {
|
|
138
|
+
@extend %item;
|
|
139
|
+
border-style: dashed;
|
|
140
|
+
@include theme {
|
|
141
|
+
border-color: co(case);
|
|
142
|
+
}
|
|
143
|
+
input {
|
|
144
|
+
position: absolute;
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
left: 0;
|
|
148
|
+
top: 0;
|
|
149
|
+
opacity: 0;
|
|
150
|
+
|
|
151
|
+
&:-webkit-autofill {
|
|
152
|
+
@include theme {
|
|
153
|
+
box-shadow: 0 0 0 1000px mix(co(weak), co(fore), 50%) inset;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
// 全局共用
|
|
3
|
+
@import '../base.scss';
|
|
4
|
+
|
|
5
|
+
// 主题共用
|
|
6
|
+
[ui-form~='@d'] {
|
|
7
|
+
// 禁用
|
|
8
|
+
&[ui-form~='disabled'] {
|
|
9
|
+
cursor: not-allowed;
|
|
10
|
+
opacity: 0.5;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// 撑满
|
|
14
|
+
&[ui-form~=':block'] {
|
|
15
|
+
display: flex;
|
|
16
|
+
width: 100%;
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
flex-shrink: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// 圆弧
|
|
22
|
+
// &[ui-form~=':round'] {
|
|
23
|
+
// border-radius: 50em;
|
|
24
|
+
// }
|
|
25
|
+
|
|
26
|
+
// 清理
|
|
27
|
+
[ui-form-clean] {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
@include theme {
|
|
30
|
+
color: co(case);
|
|
31
|
+
background:
|
|
32
|
+
linear-gradient(45deg, transparent 40%, co(fore) 45%, co(fore) 55%, transparent 60%) no-repeat center / 38% 38%,
|
|
33
|
+
linear-gradient(-45deg, transparent 40%, co(fore) 45%, co(fore) 55%, transparent 60%) no-repeat center / 38% 38%,
|
|
34
|
+
radial-gradient(circle at 50% 50%, currentColor 53%, transparent 58%);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input:-webkit-autofill {
|
|
39
|
+
@include theme {
|
|
40
|
+
box-shadow: 0 0 0 1000px co(fore) inset;
|
|
41
|
+
color: co(read);
|
|
42
|
+
-webkit-text-fill-color: co(read);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
@keyframes am-checked {
|
|
18
|
+
0% {
|
|
19
|
+
transform: scale3d(0.9, 0.9, 1);
|
|
20
|
+
}
|
|
21
|
+
50% {
|
|
22
|
+
transform: scale3d(1, 1, 1);
|
|
23
|
+
}
|
|
24
|
+
100% {
|
|
25
|
+
transform: scale3d(0.9, 0.9, 1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[ui-form~='@d'] {
|
|
30
|
+
// 复选框
|
|
31
|
+
&[ui-form~='type:checkbox'] {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
align-content: center;
|
|
36
|
+
flex-wrap: nowrap;
|
|
37
|
+
|
|
38
|
+
&[ui-form~='lt'] {
|
|
39
|
+
align-items: baseline;
|
|
40
|
+
[type='checkbox'] {
|
|
41
|
+
position: relative;
|
|
42
|
+
top: 0.15em;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[ui-form~=':block'] {
|
|
47
|
+
display: flex;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[type='checkbox'] {
|
|
51
|
+
appearance: none;
|
|
52
|
+
font-size: inherit;
|
|
53
|
+
width: 1em;
|
|
54
|
+
height: 1em;
|
|
55
|
+
border: 0;
|
|
56
|
+
margin: 0;
|
|
57
|
+
padding: 0;
|
|
58
|
+
background: transparent;
|
|
59
|
+
box-shadow: inset 0 0 0 1px currentColor;
|
|
60
|
+
border-radius: 25%;
|
|
61
|
+
transform: scale3d(0.9, 0.9, 1);
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
|
|
64
|
+
&:checked {
|
|
65
|
+
background:
|
|
66
|
+
linear-gradient(0deg, transparent 29%, currentColor 31%) no-repeat 39.5% 0% / 5% 79%,
|
|
67
|
+
linear-gradient(47deg, currentColor 33%, transparent 34%) no-repeat,
|
|
68
|
+
linear-gradient(-50deg, currentColor 42%, transparent 43%) no-repeat,
|
|
69
|
+
linear-gradient(-50deg, transparent 73%, currentColor 74%) no-repeat,
|
|
70
|
+
linear-gradient(43deg, transparent 59%, currentColor 60%) no-repeat -32% 18% / 55% 80%,
|
|
71
|
+
linear-gradient(-45deg, transparent 59%, currentColor 60%) no-repeat 133% -20% / 70% 80%,
|
|
72
|
+
linear-gradient(45deg, transparent 65%, currentColor 66%) no-repeat 125% 0% / 50% 80%;
|
|
73
|
+
animation: am-checked 0.3s;
|
|
74
|
+
&,
|
|
75
|
+
& + * {
|
|
76
|
+
@include theme {
|
|
77
|
+
color: co(main);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
& + * {
|
|
83
|
+
margin-left: 0.2em;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
$sz: 'xs', 's', 'm', 'l', 'xl';
|
|
3
|
+
|
|
4
|
+
[ui-form~='@d'] {
|
|
5
|
+
&[ui-form~='type:date'] {
|
|
6
|
+
position: relative;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
min-width: 6em;
|
|
9
|
+
height: 2.5em;
|
|
10
|
+
line-height: 1.5em;
|
|
11
|
+
transition: all 0.5s;
|
|
12
|
+
|
|
13
|
+
// 日历
|
|
14
|
+
[ui-form-date] {
|
|
15
|
+
background:
|
|
16
|
+
linear-gradient(
|
|
17
|
+
180deg,
|
|
18
|
+
transparent 6%,
|
|
19
|
+
currentColor 8%,
|
|
20
|
+
currentColor 15%,
|
|
21
|
+
transparent 17%,
|
|
22
|
+
transparent 37%,
|
|
23
|
+
currentColor 39%,
|
|
24
|
+
currentColor 45%,
|
|
25
|
+
transparent 47%,
|
|
26
|
+
transparent 88%,
|
|
27
|
+
currentColor 90%
|
|
28
|
+
)
|
|
29
|
+
no-repeat center / 70% 70%,
|
|
30
|
+
linear-gradient(90deg, currentColor 10%, transparent 11%, transparent 89%, currentColor 90%) no-repeat center 55% / 70% 58%,
|
|
31
|
+
linear-gradient(90deg, currentColor 23%, transparent 25%, transparent 75%, currentColor 77%) no-repeat center 16% / 30% 22%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// 下拉菜单
|
|
35
|
+
[ui-form-dropdown] {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 100%;
|
|
38
|
+
@include theme {
|
|
39
|
+
background: co(fore);
|
|
40
|
+
}
|
|
41
|
+
min-width: 100%;
|
|
42
|
+
max-height: 20rem;
|
|
43
|
+
left: 0;
|
|
44
|
+
margin-top: 0.5em;
|
|
45
|
+
padding: 0.5em;
|
|
46
|
+
border-radius: 0.25em;
|
|
47
|
+
box-shadow: 0 1px 0.3em 1px rgba(0, 0, 0, 0.1);
|
|
48
|
+
transform: translate3d(0, 1rem, 0);
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
opacity: 0;
|
|
51
|
+
transition: all 0.35s;
|
|
52
|
+
z-index: 1;
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
content: '';
|
|
56
|
+
position: absolute;
|
|
57
|
+
width: 100%;
|
|
58
|
+
left: 0;
|
|
59
|
+
height: 1em;
|
|
60
|
+
bottom: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::after {
|
|
64
|
+
content: '';
|
|
65
|
+
position: absolute;
|
|
66
|
+
box-sizing: content-box;
|
|
67
|
+
width: 0.5em;
|
|
68
|
+
height: 0.5em;
|
|
69
|
+
@include theme {
|
|
70
|
+
background: co(fore);
|
|
71
|
+
}
|
|
72
|
+
top: -0.25em;
|
|
73
|
+
left: 50%;
|
|
74
|
+
margin-left: -0.25em;
|
|
75
|
+
transform: rotate(45deg);
|
|
76
|
+
box-shadow: -1px -1px 0.15em 0 rgba(0, 0, 0, 0.07);
|
|
77
|
+
z-index: -1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// &[ui-form-dropdown~='show'] {
|
|
81
|
+
// opacity: 1;
|
|
82
|
+
// transform: translate3d(0, 0, 0);
|
|
83
|
+
// pointer-events: auto;
|
|
84
|
+
// }
|
|
85
|
+
|
|
86
|
+
& > * {
|
|
87
|
+
padding: 0.5em;
|
|
88
|
+
transition: all 0.35s;
|
|
89
|
+
border-radius: 0.2em;
|
|
90
|
+
&:hover {
|
|
91
|
+
@include theme {
|
|
92
|
+
background: co(weak);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// 下拉菜单活动
|
|
98
|
+
&[ui-form-open~='show'],
|
|
99
|
+
&[ui-form~='ux:hover']:hover {
|
|
100
|
+
[ui-form-select] {
|
|
101
|
+
transform: rotate(180deg);
|
|
102
|
+
}
|
|
103
|
+
[ui-form-dropdown] {
|
|
104
|
+
opacity: 1;
|
|
105
|
+
transform: translate3d(0, 0, 0);
|
|
106
|
+
pointer-events: auto;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// 尺寸
|
|
111
|
+
$sz_base: 1.5em;
|
|
112
|
+
@each $s in $sz {
|
|
113
|
+
&[ui-form~='sz:#{$s}'] {
|
|
114
|
+
height: $sz_base;
|
|
115
|
+
}
|
|
116
|
+
$sz_base: $sz_base + 0.5;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[ui-form~='type:input'] {
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 100%;
|
|
122
|
+
min-width: auto;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|