[improvement] DropdownMenu: add less vars

This commit is contained in:
陈嘉涵 2019-05-10 16:16:22 +08:00
parent ed4d0aa656
commit 8558c931c8
2 changed files with 8 additions and 3 deletions

View File

@ -2,8 +2,8 @@
.van-dropdown-menu { .van-dropdown-menu {
display: flex; display: flex;
height: 50px; height: @dropdown-menu-height;
background-color: @white; background-color: @dropdown-menu-background-color;
user-select: none; user-select: none;
&__item { &__item {
@ -19,7 +19,7 @@
&__title { &__title {
position: relative; position: relative;
font-size: 15px; font-size: @dropdown-menu-title-font-size;
&::after { &::after {
position: absolute; position: absolute;

View File

@ -149,6 +149,11 @@
@dialog-has-title-message-padding-top: 12px; @dialog-has-title-message-padding-top: 12px;
@dialog-confirm-button-text-color: @blue; @dialog-confirm-button-text-color: @blue;
// DropdownMenu
@dropdown-menu-height: 50px;
@dropdown-menu-background-color: @white;
@dropdown-menu-title-font-size: 15px;
// Field // Field
@field-label-width: 90px; @field-label-width: 90px;
@field-input-text-color: @text-color; @field-input-text-color: @text-color;