commit | author | age
|
efef1c
|
1 |
/** |
Z |
2 |
* uni-app内置的常用样式变量 |
|
3 |
*/ |
|
4 |
|
|
5 |
/* 行为相关颜色 */ |
|
6 |
$uni-color-primary: #007aff; |
|
7 |
$uni-color-success: #4cd964; |
|
8 |
$uni-color-warning: #f0ad4e; |
|
9 |
$uni-color-error: #dd524d; |
|
10 |
|
|
11 |
/* 文字基本颜色 */ |
|
12 |
$uni-text-color:#333;//基本色 |
|
13 |
$uni-text-color-inverse:#fff;//反色 |
|
14 |
$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息 |
|
15 |
$uni-text-color-placeholder: #808080; |
|
16 |
$uni-text-color-disable:#c0c0c0; |
|
17 |
|
|
18 |
/* 背景颜色 */ |
|
19 |
$uni-bg-color:#ffffff; |
|
20 |
$uni-bg-color-grey:#f8f8f8; |
|
21 |
$uni-bg-color-hover:#f1f1f1;//点击状态颜色 |
|
22 |
$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色 |
|
23 |
|
|
24 |
/* 边框颜色 */ |
|
25 |
$uni-border-color:#e5e5e5; |
|
26 |
|
|
27 |
/* 尺寸变量 */ |
|
28 |
|
|
29 |
/* 文字尺寸 */ |
|
30 |
$uni-font-size-sm:12px; |
|
31 |
$uni-font-size-base:14px; |
|
32 |
$uni-font-size-lg:16px; |
|
33 |
|
|
34 |
/* 图片尺寸 */ |
|
35 |
$uni-img-size-sm:20px; |
|
36 |
$uni-img-size-base:26px; |
|
37 |
$uni-img-size-lg:40px; |
|
38 |
|
|
39 |
/* Border Radius */ |
|
40 |
$uni-border-radius-sm: 2px; |
|
41 |
$uni-border-radius-base: 3px; |
|
42 |
$uni-border-radius-lg: 6px; |
|
43 |
$uni-border-radius-circle: 50%; |
|
44 |
|
|
45 |
/* 水平间距 */ |
|
46 |
$uni-spacing-row-sm: 5px; |
|
47 |
$uni-spacing-row-base: 10px; |
|
48 |
$uni-spacing-row-lg: 15px; |
|
49 |
|
|
50 |
/* 垂直间距 */ |
|
51 |
$uni-spacing-col-sm: 4px; |
|
52 |
$uni-spacing-col-base: 8px; |
|
53 |
$uni-spacing-col-lg: 12px; |
|
54 |
|
|
55 |
/* 透明度 */ |
|
56 |
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度 |
|
57 |
|
|
58 |
/* 文章场景相关 */ |
|
59 |
$uni-color-title: #2C405A; // 文章标题颜色 |
|
60 |
$uni-font-size-title:20px; |
|
61 |
$uni-color-subtitle: #555555; // 二级标题颜色 |
|
62 |
$uni-font-size-subtitle:26px; |
|
63 |
$uni-color-paragraph: #3F536E; // 文章段落颜色 |
|
64 |
$uni-font-size-paragraph:15px; |