@nutui/nutui-react 2.1.0 → 2.2.0-beta.0
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/CHANGELOG.md +24 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/BackTop.js +3 -7
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/CalendarCard/style/style.css +1 -1
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cell/style/style.css +1 -1
- package/dist/esm/CellGroup/style/style.css +1 -1
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/CircleProgress/style/style.css +1 -1
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Elevator/style/style.css +1 -1
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/FixedNav/style/style.css +1 -1
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/Image.js +2 -2
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/Indicator/style/style.css +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -1
- package/dist/esm/InfiniteLoading.js +2 -6
- package/dist/esm/Input/style/style.css +1 -1
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/Notify/style/style.css +1 -1
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/Range/style/style.css +1 -1
- package/dist/esm/Rate/style/style.css +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Step/style/style.css +1 -1
- package/dist/esm/Steps/style/style.css +1 -1
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +0 -3
- package/dist/esm/Switch/style/style.css +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +4 -2
- package/dist/esm/badge2.js +19 -6
- package/dist/esm/configprovider2.js +1 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.taro.d.ts +1 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +219 -212
- package/dist/nutui.react.umd.js +223 -216
- package/dist/packages/address/address.scss +2 -2
- package/dist/packages/badge/badge.scss +21 -4
- package/dist/packages/calendar/calendar.scss +4 -4
- package/dist/packages/calendarcard/calendarcard.scss +2 -2
- package/dist/packages/card/card.scss +1 -1
- package/dist/packages/checkbox/checkbox.scss +2 -2
- package/dist/packages/dialog/dialog.scss +14 -29
- package/dist/packages/divider/divider.scss +6 -6
- package/dist/packages/elevator/elevator.scss +38 -25
- package/dist/packages/fixednav/fixednav.scss +1 -1
- package/dist/packages/menuitem/menuitem.scss +1 -1
- package/dist/packages/price/price.scss +2 -2
- package/dist/packages/range/range.scss +2 -2
- package/dist/packages/shortpassword/shortpassword.scss +11 -11
- package/dist/packages/step/step.scss +1 -1
- package/dist/packages/switch/switch.scss +3 -3
- package/dist/packages/table/table.scss +1 -1
- package/dist/packages/tour/tour.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -5
- package/dist/styles/theme-dark.scss +118 -12
- package/dist/styles/theme-default.scss +117 -13
- package/dist/styles/theme-jmapp.scss +161 -12
- package/dist/styles/variables-jmapp.scss +321 -173
- package/dist/styles/variables.scss +370 -294
- package/dist/types/packages/animate/animate.d.ts +2 -2
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +1 -0
- package/dist/types/packages/dialog/content.d.ts +1 -0
- package/dist/types/packages/swiper/swiper.d.ts +2 -2
- package/package.json +1 -1
package/dist/style.mjs
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.
|
|
2
|
+
* @nutui/nutui-react v2.2.0 Fri Nov 24 2023 15:05:19 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
const t = "";
|
|
7
|
-
export {
|
|
8
|
-
t as default
|
|
9
|
-
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
:root,
|
|
2
2
|
page {
|
|
3
|
-
--nutui-brand-color: #fa2c19;
|
|
4
|
-
--nutui-brand-color-start: #ff404f;
|
|
5
|
-
--nutui-brand-color-end: #fa2c19;
|
|
6
|
-
--nutui-brand-link-color: #396acc;
|
|
7
|
-
--nutui-brand-text-color: #ffffff;
|
|
8
|
-
--nutui-brand-info-color: #2a91fa;
|
|
9
3
|
--nutui-gray-0: #000000;
|
|
10
4
|
--nutui-gray-1: #e6e6e6;
|
|
11
5
|
--nutui-gray-2: #828282;
|
|
@@ -17,11 +11,123 @@ page {
|
|
|
17
11
|
--nutui-gray-8: rgba(0, 0, 0, 0.4);
|
|
18
12
|
--nutui-gray-9: rgba(0, 0, 0, 0.08);
|
|
19
13
|
--nutui-gray-10: rgba(0, 0, 0, 0.02);
|
|
20
|
-
|
|
21
|
-
--nutui-
|
|
22
|
-
--nutui-
|
|
23
|
-
--nutui-
|
|
24
|
-
--nutui-
|
|
25
|
-
--nutui-
|
|
14
|
+
|
|
15
|
+
--nutui-brand-1: #403635; // 梯度1
|
|
16
|
+
--nutui-brand-2: #665452; // 梯度2
|
|
17
|
+
--nutui-brand-3: #99706b; // 梯度3
|
|
18
|
+
--nutui-brand-4: #cc5f52; // 梯度4
|
|
19
|
+
--nutui-brand-5: #f2503d; // 梯度5
|
|
20
|
+
--nutui-brand-6: #fa3725; // 梯度6
|
|
21
|
+
--nutui-brand-7: #f24130; // 梯度7
|
|
22
|
+
--nutui-brand-8: #e55446; // 梯度8
|
|
23
|
+
--nutui-brand-9: #f26e61; // 梯度9
|
|
24
|
+
--nutui-brand-10: #e5928a; // 梯度10
|
|
25
|
+
|
|
26
|
+
--nutui-brand-stop-1: #f54958; // 梯度100
|
|
27
|
+
--nutui-brand-stop-2: #fa3725; // 渐变色止
|
|
28
|
+
|
|
29
|
+
--nutui-secondary-1: #1bbf30; // 辅助色
|
|
30
|
+
|
|
31
|
+
--nutui-color-primary: var(--nutui-brand-6);
|
|
32
|
+
--nutui-color-primary-stop-1: var(--nutui-brand-stop-1);
|
|
33
|
+
--nutui-color-primary-stop-2: var(--nutui-brand-stop-2);
|
|
34
|
+
--nutui-color-primary-pressed: var(--nutui-brand-7);
|
|
35
|
+
--nutui-color-primary-disabled: var(--nutui-brand-3);
|
|
36
|
+
--nutui-color-primary-text: #ffffff;
|
|
37
|
+
--nutui-color-primary-light: var(--nutui-brand-1);
|
|
38
|
+
--nutui-color-primary-light-pressed: var(--nutui-brand-2);
|
|
39
|
+
--nutui-color-text-link: #040608;
|
|
40
|
+
|
|
41
|
+
// // 背景色
|
|
42
|
+
// // 卡片背景色
|
|
43
|
+
// --nutui-gray-1: #1f1f1f;
|
|
44
|
+
// // 卡片内嵌背景色,用于卡片内部的信息包裹,感知较弱。
|
|
45
|
+
// --nutui-gray-2: #141414;
|
|
46
|
+
// // 页面基底色,用于卡片式页面的兜底,永远置于页面最底层。
|
|
47
|
+
// --nutui-gray-3: #0a0a0a;
|
|
48
|
+
// // 文字色
|
|
49
|
+
// // 四级文字色,不可操作内容色,用于预置内容、无效内容、特殊不可点击按钮、组件边框线等。
|
|
50
|
+
// --nutui-gray-4: #666666;
|
|
51
|
+
// // 三级文字色(次要)
|
|
52
|
+
// --nutui-gray-5: #818181;
|
|
53
|
+
// // 二级文字色(常规),用于次级标题、属性标示、非主要信息引导等。
|
|
54
|
+
// --nutui-gray-6: #999999;
|
|
55
|
+
// // 一级文字色(重要)主要内容用色,常用语常规标题内容、细文浏览、常规按钮文字以及图表引导。
|
|
56
|
+
// --nutui-gray-7: #cccccc;
|
|
57
|
+
|
|
58
|
+
--nutui-black-1: rgba(255, 255, 255, 0);
|
|
59
|
+
// 蒙层色
|
|
60
|
+
// 容错蒙层
|
|
61
|
+
--nutui-black-2: rgba(255, 255, 255, 0.2);
|
|
62
|
+
// 线条色
|
|
63
|
+
// 间隔线/容错线,用于结构或信息分割
|
|
64
|
+
--nutui-black-3: rgba(255, 255, 255, 0.06);
|
|
65
|
+
// --nutui-black-4: rgba(0, 0, 0, 0.1);
|
|
66
|
+
// --nutui-black-5: rgba(0, 0, 0, 0.2);
|
|
67
|
+
// --nutui-black-6: rgba(0, 0, 0, 0.3);
|
|
68
|
+
// --nutui-black-7: rgba(0, 0, 0, 0.4);
|
|
69
|
+
// --nutui-black-8: rgba(0, 0, 0, 0.5);
|
|
70
|
+
// --nutui-black-9: rgba(0, 0, 0, 0.6);
|
|
71
|
+
// 蒙层色
|
|
72
|
+
// 全局蒙层,用于弹出层、弹窗、新功能引导出现的整页遮罩
|
|
73
|
+
--nutui-black-10: rgba(0, 0, 0, 0.7);
|
|
74
|
+
// --nutui-black-11: rgba(0, 0, 0, 0.8);
|
|
75
|
+
// --nutui-black-12: rgba(0, 0, 0, 0.9);
|
|
76
|
+
// --nutui-black-13: rgba(0, 0, 0, 1);
|
|
77
|
+
|
|
78
|
+
--nutui-white-1: rgba(31, 31, 31, 0);
|
|
79
|
+
// --nutui-white-2: rgba(255, 255, 255, 0.02);
|
|
80
|
+
// --nutui-white-3: rgba(255, 255, 255, 0.06);
|
|
81
|
+
// --nutui-white-4: rgba(255, 255, 255, 0.1);
|
|
82
|
+
// --nutui-white-5: rgba(255, 255, 255, 0.2);
|
|
83
|
+
// --nutui-white-6: rgba(255, 255, 255, 0.3);
|
|
84
|
+
--nutui-white-7: rgba(31, 31, 31, 0.4);
|
|
85
|
+
--nutui-white-8: rgba(31, 31, 31, 0.5);
|
|
86
|
+
// --nutui-white-9: rgba(255, 255, 255, 0.6);
|
|
87
|
+
// --nutui-white-10: rgba(255, 255, 255, 0.7);
|
|
88
|
+
// --nutui-white-11: rgba(255, 255, 255, 0.8);
|
|
89
|
+
--nutui-white-12: rgba(31, 31, 31, 0.9);
|
|
90
|
+
// --nutui-white-13: rgba(255, 255, 255, 1);
|
|
91
|
+
|
|
92
|
+
--nutui-color-info: #1988fa;
|
|
93
|
+
--nutui-color-text-disabled: var(--nutui-gray-4);
|
|
94
|
+
// 字体
|
|
95
|
+
--nutui-font-size-1: 10px;
|
|
96
|
+
--nutui-font-size-2: 12px;
|
|
97
|
+
--nutui-font-size-3: 14px;
|
|
98
|
+
--nutui-font-size-4: 16px;
|
|
99
|
+
--nutui-font-size-5: 18px;
|
|
100
|
+
--nutui-font-size-6: 20px;
|
|
101
|
+
--nutui-font-size-7: 22px;
|
|
102
|
+
--nutui-font-size-8: 24px;
|
|
103
|
+
--nutui-font-size-9: 26px;
|
|
104
|
+
--nutui-font-size-10: 28px;
|
|
105
|
+
// 字重
|
|
106
|
+
--nutui-font-weight: 400;
|
|
107
|
+
// 行高
|
|
26
108
|
--nutui-line-height-base: 1.5;
|
|
109
|
+
|
|
110
|
+
// space
|
|
111
|
+
--nutui-spacing-1: 2px;
|
|
112
|
+
--nutui-spacing-2: 4px;
|
|
113
|
+
--nutui-spacing-3: 6px;
|
|
114
|
+
--nutui-spacing-4: 8px;
|
|
115
|
+
--nutui-spacing-5: 10px;
|
|
116
|
+
--nutui-spacing-6: 12px;
|
|
117
|
+
--nutui-spacing-7: 14px;
|
|
118
|
+
--nutui-spacing-8: 16px;
|
|
119
|
+
--nutui-spacing-9: 18px;
|
|
120
|
+
--nutui-spacing-10: 20px;
|
|
121
|
+
|
|
122
|
+
// radius
|
|
123
|
+
--nutui-radius-1: 0px;
|
|
124
|
+
--nutui-radius-2: 2px;
|
|
125
|
+
--nutui-radius-3: 4px;
|
|
126
|
+
--nutui-radius-4: 6px;
|
|
127
|
+
--nutui-radius-5: 8px;
|
|
128
|
+
--nutui-radius-6: 10px;
|
|
129
|
+
--nutui-radius-7: 12px;
|
|
130
|
+
--nutui-radius-8: 14px;
|
|
131
|
+
--nutui-radius-9: 16px;
|
|
132
|
+
--nutui-radius-10: 18px;
|
|
27
133
|
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
:root,
|
|
2
2
|
page {
|
|
3
|
-
--nutui-brand-color: #fa2c19;
|
|
4
|
-
--nutui-brand-color-start: #ff404f;
|
|
5
|
-
--nutui-brand-color-end: #fa2c19;
|
|
6
|
-
--nutui-brand-link-color: #396acc;
|
|
7
|
-
--nutui-brand-color-opacity: rgba(250, 44, 25, 0.5);
|
|
8
|
-
--nutui-brand-text-color: #ffffff;
|
|
9
|
-
--nutui-brand-info-color: #1988fa;
|
|
10
3
|
--nutui-gray-0: #000000;
|
|
11
4
|
// 主要内容用色,常用语常规标题内容、细文浏览、常规按钮文字以及图表引导。
|
|
12
5
|
--nutui-gray-1: #1a1a1a;
|
|
@@ -29,14 +22,125 @@ page {
|
|
|
29
22
|
// 图片容错蒙层
|
|
30
23
|
--nutui-gray-10: rgba(0, 0, 0, 0.02);
|
|
31
24
|
|
|
25
|
+
--nutui-brand-1: #ffeae8; // 梯度1
|
|
26
|
+
--nutui-brand-2: #fec3be; // 梯度2
|
|
27
|
+
--nutui-brand-3: #fd9d94; // 梯度3
|
|
28
|
+
--nutui-brand-4: #fc776b; // 梯度4
|
|
29
|
+
--nutui-brand-5: #fb5142; // 梯度5
|
|
30
|
+
--nutui-brand-6: #fa2c19; // 梯度6
|
|
31
|
+
--nutui-brand-7: #cf1f0f; // 梯度7
|
|
32
|
+
--nutui-brand-8: #a31508; // 梯度8
|
|
33
|
+
--nutui-brand-9: #780d03; // 梯度9
|
|
34
|
+
--nutui-brand-10: #4d0004; // 梯度10
|
|
35
|
+
|
|
36
|
+
--nutui-brand-stop-1: #f53d4d; // 渐变色起
|
|
37
|
+
--nutui-brand-stop-2: #fa2c19; // 渐变色止
|
|
38
|
+
|
|
39
|
+
--nutui-secondary-1: #14cc33; // 辅助色
|
|
40
|
+
|
|
41
|
+
--nutui-color-primary: var(--nutui-brand-6);
|
|
42
|
+
--nutui-color-primary-stop-1: var(--nutui-brand-stop-1);
|
|
43
|
+
--nutui-color-primary-stop-2: var(--nutui-brand-stop-2);
|
|
44
|
+
--nutui-color-primary-pressed: var(--nutui-brand-7);
|
|
45
|
+
--nutui-color-primary-disabled: var(--nutui-brand-3);
|
|
46
|
+
--nutui-color-primary-text: #ffffff;
|
|
47
|
+
--nutui-color-primary-light: var(--nutui-brand-1);
|
|
48
|
+
--nutui-color-primary-light-pressed: var(--nutui-brand-2);
|
|
49
|
+
|
|
50
|
+
--nutui-color-text-link: #396acc;
|
|
51
|
+
|
|
52
|
+
// 背景色
|
|
53
|
+
// // 卡片背景色
|
|
54
|
+
// --nutui-gray-1: #ffffff;
|
|
55
|
+
// // 卡片内嵌背景色,用于卡片内部的信息包裹,感知较弱。
|
|
56
|
+
// --nutui-gray-2: #f8f8f8;
|
|
57
|
+
// // 页面基底色,用于卡片式页面的兜底,永远置于页面最底层。
|
|
58
|
+
// --nutui-gray-3: #f6f6f6;
|
|
59
|
+
// // 文字色
|
|
60
|
+
// // 四级文字色,不可操作内容色,用于预置内容、无效内容、特殊不可点击按钮、组件边框线等。
|
|
61
|
+
// --nutui-gray-4: #bfbfbf;
|
|
62
|
+
// // 三级文字色(次要)
|
|
63
|
+
// --nutui-gray-5: #8c8c8c;
|
|
64
|
+
// // 二级文字色(常规),用于次级标题、属性标示、非主要信息引导等。
|
|
65
|
+
// --nutui-gray-6: #595959;
|
|
66
|
+
// // 一级文字色(重要)主要内容用色,常用语常规标题内容、细文浏览、常规按钮文字以及图表引导。
|
|
67
|
+
// --nutui-gray-7: #1a1a1a;
|
|
68
|
+
|
|
69
|
+
--nutui-black-1: rgba(0, 0, 0, 0);
|
|
70
|
+
// 蒙层色
|
|
71
|
+
// 容错蒙层
|
|
72
|
+
--nutui-black-2: rgba(0, 0, 0, 0.02);
|
|
73
|
+
// 线条色
|
|
74
|
+
// 间隔线/容错线,用于结构或信息分割
|
|
75
|
+
--nutui-black-3: rgba(0, 0, 0, 0.06);
|
|
76
|
+
--nutui-black-4: rgba(0, 0, 0, 0.1);
|
|
77
|
+
--nutui-black-5: rgba(0, 0, 0, 0.2);
|
|
78
|
+
--nutui-black-6: rgba(0, 0, 0, 0.3);
|
|
79
|
+
--nutui-black-7: rgba(0, 0, 0, 0.4);
|
|
80
|
+
--nutui-black-8: rgba(0, 0, 0, 0.5);
|
|
81
|
+
--nutui-black-9: rgba(0, 0, 0, 0.6);
|
|
82
|
+
// 蒙层色
|
|
83
|
+
// 全局蒙层,用于弹出层、弹窗、新功能引导出现的整页遮罩
|
|
84
|
+
--nutui-black-10: rgba(0, 0, 0, 0.7);
|
|
85
|
+
--nutui-black-11: rgba(0, 0, 0, 0.8);
|
|
86
|
+
--nutui-black-12: rgba(0, 0, 0, 0.9);
|
|
87
|
+
--nutui-black-13: rgba(0, 0, 0, 1);
|
|
88
|
+
|
|
89
|
+
--nutui-white-1: rgba(255, 255, 255, 0);
|
|
90
|
+
--nutui-white-2: rgba(255, 255, 255, 0.02);
|
|
91
|
+
--nutui-white-3: rgba(255, 255, 255, 0.06);
|
|
92
|
+
--nutui-white-4: rgba(255, 255, 255, 0.1);
|
|
93
|
+
--nutui-white-5: rgba(255, 255, 255, 0.2);
|
|
94
|
+
--nutui-white-6: rgba(255, 255, 255, 0.3);
|
|
95
|
+
--nutui-white-7: rgba(255, 255, 255, 0.4);
|
|
96
|
+
--nutui-white-8: rgba(255, 255, 255, 0.5);
|
|
97
|
+
--nutui-white-9: rgba(255, 255, 255, 0.6);
|
|
98
|
+
--nutui-white-10: rgba(255, 255, 255, 0.7);
|
|
99
|
+
--nutui-white-11: rgba(255, 255, 255, 0.8);
|
|
100
|
+
--nutui-white-12: rgba(255, 255, 255, 0.9);
|
|
101
|
+
--nutui-white-13: rgba(255, 255, 255, 1);
|
|
102
|
+
|
|
103
|
+
--nutui-color-info: #1988fa;
|
|
104
|
+
--nutui-color-text-disabled: var(--nutui-gray-4);
|
|
105
|
+
|
|
32
106
|
// 字体
|
|
33
|
-
--nutui-font-size-
|
|
34
|
-
--nutui-font-size-
|
|
35
|
-
--nutui-font-size-
|
|
36
|
-
--nutui-font-size-
|
|
37
|
-
--nutui-font-size-
|
|
107
|
+
--nutui-font-size-1: 10px;
|
|
108
|
+
--nutui-font-size-2: 12px;
|
|
109
|
+
--nutui-font-size-3: 14px;
|
|
110
|
+
--nutui-font-size-4: 16px;
|
|
111
|
+
--nutui-font-size-5: 18px;
|
|
112
|
+
--nutui-font-size-6: 20px;
|
|
113
|
+
--nutui-font-size-7: 22px;
|
|
114
|
+
--nutui-font-size-8: 24px;
|
|
115
|
+
--nutui-font-size-9: 26px;
|
|
116
|
+
--nutui-font-size-10: 28px;
|
|
38
117
|
// 字重
|
|
39
|
-
--nutui-font-weight
|
|
118
|
+
--nutui-font-weight: 400;
|
|
119
|
+
--nutui-font-weight-bold: 500;
|
|
40
120
|
// 行高
|
|
41
121
|
--nutui-line-height-base: 1.5;
|
|
122
|
+
|
|
123
|
+
// space
|
|
124
|
+
--nutui-spacing-1: 2px;
|
|
125
|
+
--nutui-spacing-2: 4px;
|
|
126
|
+
--nutui-spacing-3: 6px;
|
|
127
|
+
--nutui-spacing-4: 8px;
|
|
128
|
+
--nutui-spacing-5: 10px;
|
|
129
|
+
--nutui-spacing-6: 12px;
|
|
130
|
+
--nutui-spacing-7: 14px;
|
|
131
|
+
--nutui-spacing-8: 16px;
|
|
132
|
+
--nutui-spacing-9: 18px;
|
|
133
|
+
--nutui-spacing-10: 20px;
|
|
134
|
+
|
|
135
|
+
// radius
|
|
136
|
+
--nutui-radius-1: 0px;
|
|
137
|
+
--nutui-radius-2: 2px;
|
|
138
|
+
--nutui-radius-3: 4px;
|
|
139
|
+
--nutui-radius-4: 6px;
|
|
140
|
+
--nutui-radius-5: 8px;
|
|
141
|
+
--nutui-radius-6: 10px;
|
|
142
|
+
--nutui-radius-7: 12px;
|
|
143
|
+
--nutui-radius-8: 14px;
|
|
144
|
+
--nutui-radius-9: 16px;
|
|
145
|
+
--nutui-radius-10: 18px;
|
|
42
146
|
}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
:root,
|
|
2
2
|
page {
|
|
3
|
-
--nutui-brand-color: #3768fa;
|
|
4
|
-
--nutui-brand-color-start: #3768fa;
|
|
5
|
-
--nutui-brand-color-end: #2c53c8;
|
|
6
|
-
--nutui-brand-link-color: #396acc;
|
|
7
|
-
--nutui-brand-color-opacity: rgba(55, 104, 250, 0.4);
|
|
8
|
-
--nutui-brand-text-color: #ffffff;
|
|
9
3
|
--nutui-gray-0: #000000;
|
|
10
4
|
// 主要内容用色,常用语常规标题内容、细文浏览、常规按钮文字以及图表引导。
|
|
11
5
|
--nutui-gray-1: #1a1a1a;
|
|
@@ -28,14 +22,169 @@ page {
|
|
|
28
22
|
// 图片容错蒙层
|
|
29
23
|
--nutui-gray-10: rgba(0, 0, 0, 0.02);
|
|
30
24
|
|
|
25
|
+
--nutui-brand-1: #edf4ff; // 梯度1
|
|
26
|
+
--nutui-brand-2: #dce9ff; // 梯度2
|
|
27
|
+
--nutui-brand-3: #ccdefb; // 梯度3
|
|
28
|
+
--nutui-brand-4: #a6c8ff; // 梯度4
|
|
29
|
+
--nutui-brand-5: #82b1ff; // 梯度5
|
|
30
|
+
--nutui-brand-6: #5c99ff; // 梯度6
|
|
31
|
+
--nutui-brand-7: #317fff; // 梯度7
|
|
32
|
+
--nutui-brand-8: #3768fa; // 梯度8 * 主题色 primary brand
|
|
33
|
+
--nutui-brand-9: #1b58ba; // 梯度9
|
|
34
|
+
--nutui-brand-10: #244986; // 梯度10
|
|
35
|
+
--nutui-brand-11: #193666; // 梯度11
|
|
36
|
+
--nutui-brand-12: #16243e; // 梯度12
|
|
37
|
+
|
|
38
|
+
--nutui-brand-stop-1: var(--nutui-brand-8); // 渐变色起
|
|
39
|
+
--nutui-brand-stop-2: var(--nutui-brand-8); // 渐变色止
|
|
40
|
+
|
|
41
|
+
--nutui-color-primary: var(--nutui-brand-8);
|
|
42
|
+
--nutui-color-primary-stop-1: var(--nutui-brand-stop-1);
|
|
43
|
+
--nutui-color-primary-stop-2: var(--nutui-brand-stop-2);
|
|
44
|
+
--nutui-color-primary-pressed: var(--nutui-brand-9);
|
|
45
|
+
--nutui-color-primary-disabled: var(--nutui-brand-3);
|
|
46
|
+
--nutui-color-primary-text: #ffffff;
|
|
47
|
+
--nutui-color-primary-light: var(--nutui-brand-1);
|
|
48
|
+
--nutui-color-primary-light-pressed: var(--nutui-brand-2);
|
|
49
|
+
--nutui-color-text-link: var(--nutui-brand-8);
|
|
50
|
+
|
|
51
|
+
// --nutui-gray-0: #f4f4f4; // color-background
|
|
52
|
+
// // 卡片背景色
|
|
53
|
+
// --nutui-gray-1: #f7f7f7; // color-border-tint
|
|
54
|
+
// // 通用背景色、轮廓描边色
|
|
55
|
+
// --nutui-gray-2: #f0f0f0; // color-border-base
|
|
56
|
+
// // 轮廓描边色(适中)
|
|
57
|
+
// --nutui-gray-3: #ebebeb; // color-border-shade
|
|
58
|
+
// // 轮廓描边色(深)
|
|
59
|
+
// --nutui-gray-4: #e6e6e6;
|
|
60
|
+
// --nutui-gray-5: ##d9d9d9;
|
|
61
|
+
// --nutui-gray-6: #cccccc;
|
|
62
|
+
// --nutui-gray-7: #b5b5b5;
|
|
63
|
+
// --nutui-gray-8: #8c8c8c;
|
|
64
|
+
// --nutui-gray-9: #666666;
|
|
65
|
+
// --nutui-gray-10: #595959;
|
|
66
|
+
// --nutui-gray-11: #333333;
|
|
67
|
+
// --nutui-gray-12: #262626;
|
|
68
|
+
|
|
69
|
+
--nutui-black-1: rgba(0, 0, 0, 0.02);
|
|
70
|
+
--nutui-black-2: rgba(0, 0, 0, 0.05);
|
|
71
|
+
--nutui-black-3: rgba(0, 0, 0, 0.1);
|
|
72
|
+
--nutui-black-4: rgba(0, 0, 0, 0.2);
|
|
73
|
+
--nutui-black-5: rgba(0, 0, 0, 0.3); // color-text-disabled
|
|
74
|
+
// 四级文本色,禁用文本色,用于表达禁用状态,占位符等需弱化呈现的文本
|
|
75
|
+
--nutui-black-6: rgba(0, 0, 0, 0.4);
|
|
76
|
+
--nutui-black-7: rgba(0, 0, 0, 0.5); // color-text-description
|
|
77
|
+
// 三级文本色,描述文本色,用于对正文级标题做注释说明
|
|
78
|
+
--nutui-black-8: rgba(0, 0, 0, 0.6); //
|
|
79
|
+
// 全局蒙层,用于弹出层、弹窗、新功能引导出现的整页遮罩
|
|
80
|
+
--nutui-black-9: rgba(0, 0, 0, 0.7); // color-text-regular
|
|
81
|
+
// 二级文本色,正文文本色,用于次级标题,属性标示、非主要信息引导等
|
|
82
|
+
--nutui-black-10: rgba(0, 0, 0, 0.8); //
|
|
83
|
+
--nutui-black-11: rgba(0, 0, 0, 0.9); // color-text-title
|
|
84
|
+
// 一级文字色,标题文本色,主要内容用色,常用语常规标题内容等
|
|
85
|
+
--nutui-black-12: rgba(0, 0, 0, 1); //
|
|
86
|
+
|
|
87
|
+
--nutui-white-1: rgba(255, 255, 255, 0.02);
|
|
88
|
+
--nutui-white-2: rgba(255, 255, 255, 0.05);
|
|
89
|
+
--nutui-white-3: rgba(255, 255, 255, 0.1);
|
|
90
|
+
--nutui-white-4: rgba(255, 255, 255, 0.2);
|
|
91
|
+
--nutui-white-5: rgba(255, 255, 255, 0.3);
|
|
92
|
+
--nutui-white-6: rgba(255, 255, 255, 0.4);
|
|
93
|
+
--nutui-white-7: rgba(255, 255, 255, 0.5);
|
|
94
|
+
--nutui-white-8: rgba(255, 255, 255, 0.6);
|
|
95
|
+
--nutui-white-9: rgba(255, 255, 255, 0.7);
|
|
96
|
+
--nutui-white-10: rgba(255, 255, 255, 0.8);
|
|
97
|
+
--nutui-white-11: rgba(255, 255, 255, 0.9);
|
|
98
|
+
--nutui-white-12: rgba(255, 255, 255, 1);
|
|
99
|
+
|
|
100
|
+
--nutui-green-1: #eaf9e8;
|
|
101
|
+
--nutui-green-2: #cdf5c9;
|
|
102
|
+
--nutui-green-3: #b2f0ae;
|
|
103
|
+
--nutui-green-4: #7de279;
|
|
104
|
+
--nutui-green-5: #51d04f;
|
|
105
|
+
--nutui-green-6: #00bc14; // * 成功色 success
|
|
106
|
+
--nutui-green-7: #12a300;
|
|
107
|
+
--nutui-green-8: #2b8e23;
|
|
108
|
+
--nutui-green-9: #007308;
|
|
109
|
+
--nutui-green-10: #005c05;
|
|
110
|
+
--nutui-green-11: #243f23;
|
|
111
|
+
--nutui-green-12: #192a18;
|
|
112
|
+
|
|
113
|
+
--nutui-orange-1: #fdf1ea;
|
|
114
|
+
--nutui-orange-2: #fee2d1;
|
|
115
|
+
--nutui-orange-3: #f5d6c3;
|
|
116
|
+
--nutui-orange-4: #fdd3b9;
|
|
117
|
+
--nutui-orange-5: #fcb487;
|
|
118
|
+
--nutui-orange-6: #ec7600; // * 警告色 warning
|
|
119
|
+
--nutui-orange-7: #cd6600;
|
|
120
|
+
--nutui-orange-8: #ae5604;
|
|
121
|
+
--nutui-orange-9: #914600;
|
|
122
|
+
--nutui-orange-10: #743702;
|
|
123
|
+
--nutui-orange-11: #562a09;
|
|
124
|
+
--nutui-orange-12: #351f11;
|
|
125
|
+
|
|
126
|
+
--nutui-red-1: #fff0ed;
|
|
127
|
+
--nutui-red-2: #fee1da;
|
|
128
|
+
--nutui-red-3: #fdd1ca;
|
|
129
|
+
--nutui-red-4: #fbb1a5;
|
|
130
|
+
--nutui-red-5: #ff8b79;
|
|
131
|
+
--nutui-red-6: #ff5e4a;
|
|
132
|
+
--nutui-red-7: #ea3f2d;
|
|
133
|
+
--nutui-red-8: #d82515; // * 危险色 danger
|
|
134
|
+
--nutui-red-9: #b7180a;
|
|
135
|
+
--nutui-red-10: #960800;
|
|
136
|
+
--nutui-red-11: #611d15;
|
|
137
|
+
--nutui-red-12: #3a1a16;
|
|
138
|
+
|
|
139
|
+
--nutui-info-1: #e5f8fa;
|
|
140
|
+
--nutui-info-2: #c4f0f7;
|
|
141
|
+
--nutui-info-3: #a3e8f2;
|
|
142
|
+
--nutui-info-4: #73d6ed;
|
|
143
|
+
--nutui-info-5: #00c2e3;
|
|
144
|
+
--nutui-info-6: #00abcc; // * 说明色 info
|
|
145
|
+
--nutui-info-7: #0094b5;
|
|
146
|
+
--nutui-info-8: #007d9e;
|
|
147
|
+
--nutui-info-9: #006985;
|
|
148
|
+
--nutui-info-10: #00526e;
|
|
149
|
+
--nutui-info-11: #003d59;
|
|
150
|
+
--nutui-info-12: #00324a;
|
|
151
|
+
|
|
152
|
+
--nutui-color-info: var(--nutui-info-6);
|
|
153
|
+
--nutui-color-text-disabled: var(--nutui-black-6);
|
|
154
|
+
|
|
31
155
|
// 字体
|
|
32
|
-
--nutui-font-size-
|
|
33
|
-
--nutui-font-size-
|
|
34
|
-
--nutui-font-size-
|
|
35
|
-
--nutui-font-size-
|
|
36
|
-
--nutui-font-size-
|
|
156
|
+
--nutui-font-size-1: 10px; // font-text-mini
|
|
157
|
+
--nutui-font-size-2: 11px;
|
|
158
|
+
--nutui-font-size-3: 12px; // font-text-small
|
|
159
|
+
--nutui-font-size-4: 14px; // font-text、font-h3
|
|
160
|
+
--nutui-font-size-5: 16px; // font-text-large、font-h2
|
|
161
|
+
--nutui-font-size-6: 18px;
|
|
162
|
+
--nutui-font-size-7: 20px; // font-h1
|
|
163
|
+
--nutui-font-size-8: 24px; // 板块标题,指标数值、价格金额
|
|
164
|
+
--nutui-font-size-9: 32px; // 运营小标题
|
|
165
|
+
--nutui-font-size-10: 40px; // 运营大标题
|
|
37
166
|
// 字重
|
|
38
|
-
--nutui-font-weight
|
|
167
|
+
--nutui-font-weight: 400;
|
|
39
168
|
// 行高
|
|
40
169
|
--nutui-line-height-base: 1.5;
|
|
170
|
+
|
|
171
|
+
// space
|
|
172
|
+
--nutui-spacing-1: 2px; // spacing-xxs
|
|
173
|
+
--nutui-spacing-2: 4px; // spacing-xs
|
|
174
|
+
--nutui-spacing-3: 6px; // spacing-s
|
|
175
|
+
--nutui-spacing-4: 8px; // spacing-base
|
|
176
|
+
--nutui-spacing-5: 10px; // spacing-l
|
|
177
|
+
--nutui-spacing-6: 12px; // spacing-xl
|
|
178
|
+
--nutui-spacing-7: 14px; // spacing-xxl
|
|
179
|
+
--nutui-spacing-8: 16px; // spacing-xxxl
|
|
180
|
+
--nutui-spacing-9: 18px;
|
|
181
|
+
--nutui-spacing-10: 20px;
|
|
182
|
+
|
|
183
|
+
// radius
|
|
184
|
+
--nutui-radius-1: 2px; // radius-xxs
|
|
185
|
+
--nutui-radius-2: 4px; // radius-xs
|
|
186
|
+
--nutui-radius-3: 6px; // radius-s
|
|
187
|
+
--nutui-radius-4: 8px; // radius-base
|
|
188
|
+
--nutui-radius-5: 12px; // radius-l
|
|
189
|
+
--nutui-radius-6: 16px; // radius-xl
|
|
41
190
|
}
|