@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
@@ -0,0 +1,103 @@
1
+ // 显示动画
2
+ @keyframes am-show-at {
3
+ 0% {
4
+ opacity: 0;
5
+ transform: scale(0.9);
6
+ }
7
+ 25% {
8
+ transform: scale(0.9);
9
+ }
10
+ 100% {
11
+ transform: scale(1);
12
+ opacity: 1;
13
+ }
14
+ }
15
+
16
+ // 隐藏动画
17
+ @keyframes am-hide-at {
18
+ 0% {
19
+ transform: scale(1);
20
+ opacity: 1;
21
+ }
22
+ 50% {
23
+ transform: scale(0.9);
24
+ }
25
+ 100% {
26
+ opacity: 0;
27
+ }
28
+ }
29
+
30
+ // 引用显示
31
+ %am-show-at {
32
+ transform: translateY(-15px);
33
+ opacity: 0;
34
+ transform-style: preserve-3d;
35
+ }
36
+
37
+ // 引用隐藏
38
+ %am-hide-at {
39
+ transform: translateY(0);
40
+ opacity: 1;
41
+ transform-style: preserve-3d;
42
+ }
43
+
44
+ // 传参调用
45
+ @mixin am-view-at($time: 250ms, $delay: 100ms) {
46
+ &.show,
47
+ &[view='2'] {
48
+ & > * {
49
+ @extend %am-show-at;
50
+ animation: am-show-at $time cubic-bezier(0.25, 0.1, 0.25, 1) $delay 1 both;
51
+ }
52
+ }
53
+
54
+ &.hide,
55
+ &[view='1'] {
56
+ opacity: 0;
57
+ transition: ($time + $delay) * (5/10) ($time + $delay) * (5/10);
58
+ // transition: $delay $time;
59
+ pointer-events: none;
60
+
61
+ & > * {
62
+ @extend %am-hide-at;
63
+ animation: am-hide-at $time $delay both;
64
+ }
65
+ }
66
+
67
+ &.none,
68
+ &[view='0'] {
69
+ display: none;
70
+ }
71
+ }
72
+
73
+ // 动画时间
74
+ $time: 250ms;
75
+ $delay: 100ms;
76
+
77
+ // 全套引用
78
+ [am-view='at'] {
79
+ &.show,
80
+ &[view='2'] {
81
+ & > * {
82
+ @extend %am-show-at;
83
+ animation: am-show-at $time cubic-bezier(0.25, 0.1, 0.25, 1) $delay 1 both;
84
+ }
85
+ }
86
+
87
+ &.hide,
88
+ &[view='1'] {
89
+ opacity: 0;
90
+ transition: ($time + $delay) * (4 * 0.1) ($time + $delay) * (6 * 0.1);
91
+ pointer-events: none;
92
+
93
+ & > * {
94
+ @extend %am-hide-at;
95
+ animation: am-hide-at $time $delay both;
96
+ }
97
+ }
98
+
99
+ &.none,
100
+ &[view='0'] {
101
+ display: none;
102
+ }
103
+ }
@@ -0,0 +1,22 @@
1
+ @import './am-loading.scss';
2
+ @import './am-rotate.scss';
3
+ @import './am-view-aa.scss';
4
+ @import './am-view-ab.scss';
5
+ @import './am-view-ac.scss';
6
+ @import './am-view-ad.scss';
7
+ @import './am-view-ae.scss';
8
+ @import './am-view-af.scss';
9
+ @import './am-view-ag.scss';
10
+ @import './am-view-ah.scss';
11
+ @import './am-view-ai.scss';
12
+ @import './am-view-aj.scss';
13
+ @import './am-view-ak.scss';
14
+ @import './am-view-al.scss';
15
+ @import './am-view-am.scss';
16
+ @import './am-view-an.scss';
17
+ @import './am-view-ao.scss';
18
+ @import './am-view-ap.scss';
19
+ @import './am-view-aq.scss';
20
+ @import './am-view-ar.scss';
21
+ @import './am-view-as.scss';
22
+ @import './am-view-at.scss';
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@neatui/anim",
3
+ "version": "1.0.0",
4
+ "description": "MCUI 核心组件,MCUI 全局架构性组件。官网 https://mcui.fekit.cn",
5
+ "main": "mcui@anim.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,36 @@
1
+ /*
2
+ * 组件:气泡
3
+ * 组件注册编号:02-0002
4
+ * 标准结构1级
5
+ * 属性:
6
+ * sz 规格(默认:m s | m | l)
7
+ * co 颜色 (默认:read read | back | main | vice | info | success | warn | error)
8
+ * 示例:
9
+ * <span class="xui-btn" mc="02-0002"></span> 默认的这样就行了
10
+ * <div class="xui-btn" mc="02-0002" btn-sz="s"></div> 小号的这样写
11
+ * 关联:html+css
12
+ */
13
+
14
+ .xui-bubble[theme="default"]{
15
+ font-style: normal;
16
+ display: inline-block;
17
+ width: 1em;
18
+ height: 1em;
19
+ line-height: 1em;
20
+ // background: $bg-main;
21
+ border-radius: 3px;
22
+ color:#fff;
23
+ margin-right:3px;
24
+ box-sizing: content-box;
25
+ -webkit-box-sizing: content-box;
26
+ padding: 2px;
27
+ transform: scale(.8);
28
+ -webkit-transform: scale(.8);
29
+ }
30
+
31
+ // .xui-bubble[theme="default"][co="main"]{background: $bg-main;}
32
+ // .xui-bubble[theme="default"][co="vice"]{background: $bg-vice;}
33
+ // .xui-bubble[theme="default"][co="info"]{background: $bg-info;}
34
+ // .xui-bubble[theme="default"][co="success"]{background: $bg-success;}
35
+ // .xui-bubble[theme="default"][co="warn"]{background: $bg-warn;}
36
+ // .xui-bubble[theme="default"][co="danger"]{background: $bg-danger;}
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@neatui/mcui",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "mcui.esm.js",
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
+ }
package/btns/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # @neatui/btns
2
+
3
+ MCUI按钮组件,依赖@neatui/core核心,文档详见官网 https://mcui.fekit.cn/
4
+
5
+ ## 安装组件
6
+
7
+ ```
8
+ npm i @neatui/btns
9
+ ```
10
+
11
+ 或
12
+
13
+ ```
14
+ yarn add @neatui/btns
15
+ ```
16
+
17
+ ## 可选主题
18
+
19
+ - btns@a.scss
20
+ - btns@b.scss
21
+ 使用示例:
22
+
23
+ ```html
24
+ <button ui-btn="@a">按钮</button>
25
+ ```
26
+
27
+ ## 指定语义
28
+
29
+ | 语议 | 属性 | 备注 |
30
+ | ---- | ---- | -------------------------------------------------------- |
31
+ | 主体 | main | 跟随主题风格主体色 |
32
+ | 主体 | vice | 跟随主题风格辅助色 |
33
+ | 提倡 | well | 代表提倡的,安全的,推荐的,成功的,建议用户点击的 |
34
+ | 警告 | warn | 代表警告的,需再次确认的,并非绝对安全的,需要用户慎重的 |
35
+ | 风险 | risk | 代表失败的,危险的,错误的,有风险的,不建议用户操作的 |
36
+ | 信息 | info | 代表只读的,上面三个状态之外使用 |
37
+
38
+ 使用示例:
39
+
40
+ ```html
41
+ <button ui-btn="@a well"></button>
42
+ ```
43
+
44
+ ## 指定大小
45
+
46
+ | 大小 | 属性 |
47
+ | ---- | ---- |
48
+ | 小 | s |
49
+ | 中 | m |
50
+ | 大 | l |
51
+ | 特大 | x |
52
+
53
+ 使用示例:
54
+
55
+ ```html
56
+ <button ui-btn="@a s"></button>
57
+ ```
58
+
59
+ ## 线形按钮
60
+
61
+ ```html
62
+ <button ui-btn="@a :line"></button>
63
+ ```
64
+
65
+ ## 圆角按钮
66
+
67
+ ```html
68
+ <button ui-btn="@a round"></button>
69
+ ```
70
+
71
+ ## 按钮群组
72
+
73
+ ```html
74
+ <div ui-btns="@a line :border">
75
+ <button>Button1</button>
76
+ <button>Button2</button>
77
+ <button>Button3</button>
78
+ </div>
79
+ ```
package/btns/base.scss ADDED
@@ -0,0 +1,152 @@
1
+ @use 'sass:math';
2
+ $size: 'xs', 's', 'm', 'l', 'xl';
3
+
4
+ [ui-btn] {
5
+ & {
6
+ position: relative;
7
+ display: inline-flex;
8
+ flex-direction: row;
9
+ justify-content: center;
10
+ align-items: center;
11
+ align-content: center;
12
+ flex-wrap: wrap;
13
+
14
+ height: 2.5em;
15
+ padding: 0 1em;
16
+ border-radius: 0.25em;
17
+ cursor: pointer;
18
+ transition: all 50ms;
19
+ text-align: center;
20
+ vertical-align: middle;
21
+ border: 0;
22
+ user-select: none;
23
+ white-space: nowrap;
24
+ color: inherit;
25
+ border: 1px solid currentColor;
26
+ @include theme {
27
+ background: co(weak);
28
+ }
29
+ }
30
+
31
+ // 按钮尺寸
32
+ $base: 1.5;
33
+ @each $i in $size {
34
+ &[ui-btn~='sz:#{$i}'] {
35
+ height: #{$base}em;
36
+ padding: 0 #{calc(($base - 0.5) / 2)}em;
37
+
38
+ // 方形按钮
39
+ &[ui-btn~=':square'] {
40
+ width: #{$base}em;
41
+ padding: 0;
42
+ }
43
+
44
+ &[ui-btn~=':abs'] {
45
+ height: #{$base}rem;
46
+ padding: 0 #{calc(($base - 0.5) / 2)}rem;
47
+ }
48
+ }
49
+
50
+ @include med('=mob') {
51
+ &[ui-btn~='mob-#{$i}'] {
52
+ height: #{$base}em;
53
+ padding: 0 #{calc(($base - 0.5) / 2)}em;
54
+
55
+ // 方形按钮
56
+ &[ui-btn~=':square'] {
57
+ width: #{$base}em;
58
+ padding: 0;
59
+ }
60
+
61
+ &[ui-btn~=':abs'] {
62
+ height: #{$base}rem;
63
+ padding: 0 #{calc(($base - 0.5) / 2)}rem;
64
+ }
65
+ }
66
+ }
67
+ @include med('=pad') {
68
+ &[ui-btn~='pad-#{$i}'] {
69
+ height: #{$base}em;
70
+ padding: 0 #{calc(($base - 0.5) / 2)}em;
71
+
72
+ // 方形按钮
73
+ &[ui-btn~=':square'] {
74
+ width: #{$base}em;
75
+ padding: 0;
76
+ }
77
+
78
+ &[ui-btn~=':abs'] {
79
+ height: #{$base}rem;
80
+ padding: 0 #{calc(($base - 0.5) / 2)}rem;
81
+ }
82
+ }
83
+ }
84
+
85
+ $base: $base + 0.5;
86
+ }
87
+ }
88
+
89
+ [ui-btns] {
90
+ // 按钮尺寸
91
+ $base: 1.5;
92
+ @each $i in $size {
93
+ &[ui-btns~='sz:#{$i}'] {
94
+ & > * {
95
+ height: #{$base}em;
96
+ padding: 0 #{calc(($base - 0.5) / 2)}em;
97
+ }
98
+
99
+ // 方形按钮
100
+ &[ui-btns~=':square'] > * {
101
+ width: #{$base}em;
102
+ padding: 0;
103
+ }
104
+
105
+ &[ui-btns~=':abs'] > * {
106
+ height: #{$base}rem;
107
+ padding: 0 #{calc(($base - 0.5) / 2)}rem;
108
+ }
109
+ }
110
+
111
+ @include med('=mob') {
112
+ &[ui-btns~='mob-#{$i}'] {
113
+ & > * {
114
+ height: #{$base}em;
115
+ padding: 0 #{calc(($base - 0.5) / 2)}em;
116
+ }
117
+
118
+ // 方形按钮
119
+ &[ui-btns~=':square'] > * {
120
+ width: #{$base}em;
121
+ padding: 0;
122
+ }
123
+
124
+ &[ui-btns~=':abs'] > * {
125
+ height: #{$base}rem;
126
+ padding: 0 #{calc(($base - 0.5) / 2)}rem;
127
+ }
128
+ }
129
+ }
130
+ @include med('=pad') {
131
+ &[ui-btns~='pad-#{$i}'] {
132
+ & > * {
133
+ height: #{$base}em;
134
+ padding: 0 #{calc(($base - 0.5) / 2)}em;
135
+ }
136
+
137
+ // 方形按钮
138
+ &[ui-btns~=':square'] > * {
139
+ width: #{$base}em;
140
+ padding: 0;
141
+ }
142
+
143
+ &[ui-btns~=':abs'] > * {
144
+ height: #{$base}rem;
145
+ padding: 0 #{calc(($base - 0.5) / 2)}rem;
146
+ }
147
+ }
148
+ }
149
+
150
+ $base: $base + 0.5;
151
+ }
152
+ }