@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;
|
}
|