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