From b075b9eedd21bc95c5fe22cf80d864231faa8f58 Mon Sep 17 00:00:00 2001 From: "Alexander.Kosov" Date: Thu, 6 Jun 2019 12:39:34 +0300 Subject: [PATCH] added three variables to allow customization of the dropdown list --- components/dropdown/style/index.less | 6 +++--- components/style/themes/default.less | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/dropdown/style/index.less b/components/dropdown/style/index.less index ffba8cd93904..2c249ea90c6a 100644 --- a/components/dropdown/style/index.less +++ b/components/dropdown/style/index.less @@ -78,11 +78,11 @@ &-submenu-title { clear: both; margin: 0; - padding: 5px @control-padding-horizontal; + padding: @dropdown-vertical-padding @control-padding-horizontal; color: @text-color; font-weight: normal; - font-size: @font-size-base; - line-height: 22px; + font-size: @dropdown-font-size; + line-height: @dropdown-line-height; white-space: nowrap; cursor: pointer; transition: all 0.3s; diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 1b92d9114105..05f632f60d80 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -277,6 +277,11 @@ @animation-duration-base: 0.2s; @animation-duration-fast: 0.1s; // Tooltip +//Dropdown +@dropdown-vertical-padding: 5px; +@dropdown-font-size: @font-size-base; +@dropdown-line-height: 22px; + // Form // --- @label-required-color: @highlight-color;