zhoudw
2022-01-11 907cecf432e285305cd84fd5f7d12e8ca262e1a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
@navbar_height: 46px;
@tabs_wrap_height: 44px;
 
// 颜色
@primary_color: #1CA2FF;
@info_color: #2672FF;
@simple_color: #00B07A;
@disabled_color: #AAAAAA;
@error_color: #F84343;
 
@price_color: #ff8616;
 
@bg_color: #f4f4f4;
 
// 主要字体
@primary_font_color: #333333;
@primary_font_weight: 600;
 
@button_radius: 4px;
 
@mask: rgba(51, 51, 51, .45);
 
@sticky_shadow: 0px 3px 6px 0px rgba(51,51,51,0.10);
 
html,
body,
#app {
  height: 100%;
  overflow: auto;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  background-color: #f8f8f8;
}
 
* {
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-sizing: border-box;
}
 
input,
textarea {
  -webkit-user-select: auto;
  -khtml-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  -o-user-select: auto;
  user-select: auto;
}
 
// 弹窗
.van-overlay {
  background-color: @mask;
}
 
.van-dialog {
  border-radius: 10px;
}
 
.van-dialog__content {
  height: 100%;
}
 
.van-dialog__confirm {
  color: @info_color;
}
 
.van-sticky {
  box-shadow: @sticky_shadow;
}
 
// NavBar
.van-nav-bar {
  .van-icon {
    color: @primary_font_color;
  }
}
.van-nav-bar--fixed {
  box-shadow: @sticky_shadow;
}
.van-nav-bar__title {
  font-weight: @primary_font_weight;
}
.van-nav-bar__content {
  height: @navbar_height;
}
 
// Tab
.van-nav-bar+.van-tabs {
  top: @navbar_height;
 
  .van-sticky {
    position: fixed;
    top: @navbar_height;
    left: 0;
    right: 0;
    z-index: 99;
  }
 
  .van-tabs__content {
    margin-top: @tabs_wrap_height;
  }
}
 
.van-tab {
  font-weight: 400;
}
 
.van-tab--active {
  color: @primary_color;
  font-weight: 600;
}
 
.van-tabs__line {
  background-color: @primary_color;
  width: 20px;
  bottom: 22px;
  height: 2px;
}
 
// button
.van-button {
  border-radius: @button_radius;
}
.van-button--primary {
  background-color: @primary_color !important;
  border-color: @primary_color !important;
}
 
// field
.van-field__error-message {
  position: absolute;
  bottom: 0;
}
 
.van-field--error .van-field__control::placeholder {
  color: #cccccc !important;
}
 
.van-field__control{
  color: #323233 !important;
  font-weight: 500 !important;
}
#__vconsole .vc-switch{
  bottom: unset !important;
  top: 0 !important;
}