mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-10-09 10:19:58 +08:00
update css variables (#2026)
This commit is contained in:
parent
17d9e27305
commit
eb766e9660
@ -8,7 +8,7 @@
|
|||||||
&__label {
|
&__label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
line-height: @van-checkbox-size;
|
line-height: @checkbox-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
@ -18,8 +18,8 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
border: 1px solid @gray-light;
|
border: 1px solid @gray-light;
|
||||||
width: @van-checkbox-size;
|
width: @checkbox-size;
|
||||||
height: @van-checkbox-size;
|
height: @checkbox-size;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
transition: .2s;
|
transition: .2s;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 25%;
|
width: 25%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: @van-number-keyboard-key-height * 4;
|
height: @number-keyboard-key-height * 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--custom {
|
&--custom {
|
||||||
@ -56,8 +56,8 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
height: @van-number-keyboard-key-height;
|
height: @number-keyboard-key-height;
|
||||||
line-height: @van-number-keyboard-key-height;
|
line-height: @number-keyboard-key-height;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
border-width: 1px 1px 0 0;
|
border-width: 1px 1px 0 0;
|
||||||
@ -69,8 +69,8 @@
|
|||||||
|
|
||||||
&--big {
|
&--big {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: @van-number-keyboard-key-height * 2;
|
height: @number-keyboard-key-height * 2;
|
||||||
line-height: @van-number-keyboard-key-height * 2;
|
line-height: @number-keyboard-key-height * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--blue {
|
&--blue {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
&__input {
|
&__input {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: @van-radio-size;
|
font-size: @radio-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__control {
|
&__control {
|
||||||
@ -27,7 +27,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__label {
|
&__label {
|
||||||
line-height: @van-radio-size;
|
line-height: @radio-size;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
||||||
&--left {
|
&--left {
|
||||||
|
@ -38,17 +38,17 @@
|
|||||||
@button-bottom-action-primary-background-color: @red;
|
@button-bottom-action-primary-background-color: @red;
|
||||||
|
|
||||||
// checkbox
|
// checkbox
|
||||||
@van-checkbox-size: 20px;
|
@checkbox-size: 20px;
|
||||||
|
|
||||||
// radio
|
// radio
|
||||||
@van-radio-size: 20px;
|
@radio-size: 20px;
|
||||||
|
|
||||||
// swipe
|
// swipe
|
||||||
@van-swipe-indicator: 6px;
|
@swipe-indicator: 6px;
|
||||||
|
|
||||||
// tab
|
// tab
|
||||||
@van-tabs-line-height: 44px;
|
@tabs-line-height: 44px;
|
||||||
@van-tabs-card-height: 30px;
|
@tabs-card-height: 30px;
|
||||||
|
|
||||||
// number keyboard
|
// number keyboard
|
||||||
@van-number-keyboard-key-height: 54px;
|
@number-keyboard-key-height: 54px;
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
|
||||||
.van-swipe__indicator:not(:last-child) {
|
.van-swipe__indicator:not(:last-child) {
|
||||||
margin-bottom: @van-swipe-indicator;
|
margin-bottom: @swipe-indicator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -32,11 +32,11 @@
|
|||||||
&__indicator {
|
&__indicator {
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
background-color: @gray-dark;
|
background-color: @gray-dark;
|
||||||
width: @van-swipe-indicator;
|
width: @swipe-indicator;
|
||||||
height: @van-swipe-indicator;
|
height: @swipe-indicator;
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-right: @van-swipe-indicator;
|
margin-right: @swipe-indicator;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--active {
|
&--active {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
line-height: @van-tabs-line-height;
|
line-height: @tabs-line-height;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: @white;
|
background-color: @white;
|
||||||
|
@ -54,12 +54,12 @@
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: 1px solid @red;
|
border: 1px solid @red;
|
||||||
height: @van-tabs-card-height;
|
height: @tabs-card-height;
|
||||||
|
|
||||||
.van-tab {
|
.van-tab {
|
||||||
color: @red;
|
color: @red;
|
||||||
border-right: 1px solid @red;
|
border-right: 1px solid @red;
|
||||||
line-height: @van-tabs-card-height - 2px;
|
line-height: @tabs-card-height - 2px;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-right: none;
|
border-right: none;
|
||||||
@ -88,18 +88,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&--line {
|
&--line {
|
||||||
padding-top: @van-tabs-line-height;
|
padding-top: @tabs-line-height;
|
||||||
|
|
||||||
.van-tabs__wrap {
|
.van-tabs__wrap {
|
||||||
height: @van-tabs-line-height;
|
height: @tabs-line-height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--card {
|
&--card {
|
||||||
padding-top: @van-tabs-card-height;
|
padding-top: @tabs-card-height;
|
||||||
|
|
||||||
.van-tabs__wrap {
|
.van-tabs__wrap {
|
||||||
height: @van-tabs-card-height;
|
height: @tabs-card-height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user