variables.scss 5.6 KB
Newer Older
Z
zhuzhida 已提交
1 2 3 4 5 6 7 8 9
// color

// 主色调
$primary-color: #fa2c19 !default;
$primary-color-end: #fa6419 !default;
// 辅助色
$help-color: #f5f5f5 !default;
// 标题常规文字
$title-color: #1a1a1a !default;
richard_1015's avatar
richard_1015 已提交
10 11
// 副标题
$title-color2: #666666 !default;
Z
zhuzhida 已提交
12 13 14 15 16
// 次内容
$text-color: #808080 !default;
// 特殊禁用色
$disable-color: #cccccc !default;
$white: #fff;
Z
zy19940510 已提交
17 18 19
$black: #000;

// padding
richard_1015's avatar
richard_1015 已提交
20
$padding-xs: 12px;
Z
zhuzhida 已提交
21

richard_1015's avatar
richard_1015 已提交
22 23
$font-family: PingFang SC, Microsoft YaHei, Helvetica, Hiragino Sans GB, SimSun,
  sans-serif !default;
24

richard_1015's avatar
richard_1015 已提交
25 26 27 28
// ---- Animation ----
$animation-duration: 0.25s !default;
$animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;

Z
zhuzhida 已提交
29
// Font
30
$font-size-0: 10px;
Z
zhuzhida 已提交
31 32 33 34 35 36
$font-size-1: 12px;
$font-size-2: 14px;
$font-size-3: 16px;
$font-size-4: 18px;
$font-weight-bold: 400;

37 38 39 40
$font-size-small: $font-size-1;
$font-size-base: $font-size-2;
$font-size-large: $font-size-3;
$line-height-base: 1.5 !default;
Z
zhuzhida 已提交
41 42
// button
$button-border-radius: 25px;
Z
zy19940510 已提交
43
$button-border-width: 1px;
Z
zy19940510 已提交
44
$button-default-bg-color: $white;
Z
zy19940510 已提交
45 46 47 48 49
$button-default-border-color: rgba(204, 204, 204, 1);
$button-default-color: rgba(102, 102, 102, 1);
$button-small-height: 28px;
$button-default-height: 38px;
$button-large-height: 48px;
Z
zy19940510 已提交
50 51
$button-large-line-height: 46px;
$button-small-line-height: 26px;
Z
zy19940510 已提交
52 53 54 55 56
$button-block-height: 48px;
$button-default-line-height: 36px;
$button-block-line-height: 46px;
$button-default-font-size: $font-size-2;
$button-disabled-opacity: 0.68;
Z
zy19940510 已提交
57
$button-primary-color: $white;
richard_1015's avatar
richard_1015 已提交
58
$button-primary-border-color: $primary-color;
Z
zy19940510 已提交
59 60
$button-primary-background-color: linear-gradient(
  135deg,
richard_1015's avatar
richard_1015 已提交
61
  $primary-color 0%,
richard_1015's avatar
richard_1015 已提交
62
  $primary-color-end 100%
Z
zy19940510 已提交
63
);
Z
zy19940510 已提交
64 65
$button-info-color: $white;
$button-info-border-color: rgba(73, 106, 242, 1);
S
suzigang 已提交
66 67 68 69 70
$button-info-background-color: linear-gradient(
  315deg,
  rgba(73, 143, 242, 1) 0%,
  rgba(73, 101, 242, 1) 100%
);
Z
zy19940510 已提交
71 72
$button-success-color: $white;
$button-success-border-color: rgba(38, 191, 38, 1);
Z
zy19940510 已提交
73 74 75 76 77 78 79 80
$button-success-background-color: linear-gradient(
  135deg,
  rgba(38, 191, 38, 1) 0%,
  rgba(39, 197, 48, 1) 45%,
  rgba(40, 207, 63, 1) 83%,
  rgba(41, 212, 70, 1) 100%
);

Z
zy19940510 已提交
81
$button-danger-color: $white;
richard_1015's avatar
richard_1015 已提交
82 83
$button-danger-border-color: rgba(250, 44, 25, 1);
$button-danger-background-color: rgba(250, 44, 25, 1);
Z
zy19940510 已提交
84 85
$button-warning-color: $white;
$button-warning-border-color: rgba(255, 158, 13, 1);
Z
zy19940510 已提交
86 87 88 89 90 91 92 93
$button-warning-background-color: linear-gradient(
  135deg,
  rgba(255, 158, 13, 1) 0%,
  rgba(255, 167, 13, 1) 45%,
  rgba(255, 182, 13, 1) 83%,
  rgba(255, 190, 13, 1) 100%
);
$button-plain-background-color: #fff;
Z
zy19940510 已提交
94
$button-plain-background-color: $white;
xiaozhumaopao's avatar
xiaozhumaopao 已提交
95

richard_1015's avatar
richard_1015 已提交
96 97 98 99 100 101 102
// cell

$cell-color: $title-color2;
$cell-title-font: $font-size-2;
$cell-title-desc-font: $font-size-1;
$cell-desc-font: $font-size-2;
$cell-desc-color: $disable-color;
richard_1015's avatar
richard_1015 已提交
103 104 105 106 107 108

// icon

$icon-height: 20px;
$icon-width: 20px;
$icon-line-height: 20px;
richard_1015's avatar
richard_1015 已提交
109 110 111 112 113

// uploader

$uploader-width: 100px;
$uploader-height: 100px;
richard_1015's avatar
richard_1015 已提交
114
$uploader-background: #f7f8fa;
S
suzigang 已提交
115

S
suzigang 已提交
116 117 118 119
//input
$input-border-bottom: #eaf0fb;
$input-disabled-color: #c8c9cc;

S
suzigang 已提交
120 121
// inputnumber

richard_1015's avatar
richard_1015 已提交
122 123
$inputnumber-icon-color: $title-color;
$inputnumber-icon-void-color: $disable-color;
S
suzigang 已提交
124
$inputnumber-input-background-color: $help-color;
richard_1015's avatar
richard_1015 已提交
125
$inputnumber-input-border-radius: 4px;
S
suzigang 已提交
126
$inputnumber-input-width: 40px;
richard_1015's avatar
richard_1015 已提交
127
$inputnumber-icon-size: 20px;
Z
zhangyufei1 已提交
128 129 130 131 132

// actionsheet
$zindex-actionsheet: 10001 !default;
$body-background: #f6f6f6 !default;
$light-color: #f6f6f6 !default;
133 134
$font-size-base: $font-size-2;
$font-size-small: $font-size-1;
S
suzigang 已提交
135 136 137 138 139 140 141

//shortpassword
$shortpsd-background-color: rgba(245, 245, 245, 1);
$shortpsd-border-color: #ddd;
$shortpsd-error: rgba(242, 39, 12, 1);
$shortpsd-forget: rgba(128, 128, 128, 1);

S
suzigang 已提交
142 143 144
//price
$price-big-size: 24px;

S
suzigang 已提交
145 146 147 148 149 150 151 152 153
//avatar
$avatar-square: 5px;
$avatar-large-width: 60px;
$avatar-large-height: 60px;
$avatar-small-width: 32px;
$avatar-small-height: 32px;
$avatar-normal-width: 40px;
$avatar-normal-height: 40px;

S
suzigang 已提交
154 155 156 157
//switch
$switch-close-bg-color: #ebebeb;
$switch-close--cline-bg-color: #f0f0f0;

S
suzigang 已提交
158 159 160
//backtop
$backtop-border-color: #e0e0e0;

S
songchenglin3 已提交
161 162 163 164 165 166 167 168 169
// calendar
$calendar-primary-color: $primary-color;
$calendar-choose-color: #fef6f6;
$calendar-base-color: #333333;
$calendar-disable-color: #d1d0d0;
$calendar-title-font: $font-size-4;
$calendar-base-font: $font-size-3;
$calendar-text-font: $font-size-1;
$calendar-day-font: 18px;
S
suzigang 已提交
170

S
suzigang 已提交
171 172 173 174
//overlay
$overlay-bg-color: rgba(0, 0, 0, 0.7);

//popup
S
suzigang 已提交
175 176
$popup-close-icon-margin: 16px;
$popup-border-radius: 20px;
weixin_42047461's avatar
weixin_42047461 已提交
177 178

// Notify
179
$notify-text-color: $white;
weixin_42047461's avatar
weixin_42047461 已提交
180 181 182
$notify-padding: 12px 0;
$notify-font-size: 14px;
$notify-height: 44px;
weixin_42047461's avatar
weixin_42047461 已提交
183 184 185

$notify-base-background-color: linear-gradient(
  135deg,
richard_1015's avatar
richard_1015 已提交
186
  rgba(250, 44, 25, 1) 0%,
weixin_42047461's avatar
weixin_42047461 已提交
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
  rgba(250, 63, 25, 1) 45%,
  rgba(250, 89, 25, 1) 83%,
  rgba(250, 100, 25, 1) 100%
);
$notify-primary-background-color: linear-gradient(
  315deg,
  rgba(73, 143, 242, 1) 0%,
  rgba(73, 101, 242, 1) 100%
);
$notify-success-background-color: linear-gradient(
  135deg,
  rgba(38, 191, 38, 1) 0%,
  rgba(39, 197, 48, 1) 45%,
  rgba(40, 207, 63, 1) 83%,
  rgba(41, 212, 70, 1) 100%
);
$notify-danger-background-color: rgba(250, 50, 25, 1);
$notify-warning-background-color: linear-gradient(
  135deg,
  rgba(255, 93, 13, 1) 0%,
  rgba(255, 154, 13, 1) 100%
);
richard_1015's avatar
richard_1015 已提交
209

210 211 212 213 214
// rate

$rate-icon-color: $primary-color;
$rate-icon-void-color: $disable-color;

richard_1015's avatar
richard_1015 已提交
215 216 217
// tabbar

$tabbar-active-color: $primary-color;
218
$tabbar-border-color: #eee;
richard_1015's avatar
richard_1015 已提交
219

S
suzigang 已提交
220 221 222
//infiniteloading
$infinite-bottom-color: #c8c8c8;

S
suzigang 已提交
223 224
//range
$range-max: #333333;
richard_1015's avatar
richard_1015 已提交
225
$rang-bg-color: rgba($primary-color, 0.5);
S
suzigang 已提交
226 227
$rang-bar-bg-color: linear-gradient(
  135deg,
richard_1015's avatar
richard_1015 已提交
228 229
  $primary-color 0%,
  $primary-color-end 100%
S
suzigang 已提交
230 231
);

S
suzigang 已提交
232 233 234 235 236 237 238
//address
$address-region-tab-line: linear-gradient(
  90deg,
  $primary-color 0%,
  $primary-color-end 100%
);

richard_1015's avatar
richard_1015 已提交
239 240 241
// dialog
$dialog-width: 296px;

richard_1015's avatar
richard_1015 已提交
242 243 244
view-block {
  display: block;
}
richard_1015's avatar
richard_1015 已提交
245 246 247

@import './mixins/index';
@import './animation/index';