Merge pull request #17613 from alxkosov/menu_customize_icon_size

feat: create variable for customize size of icon on menu
This commit is contained in:
偏右 2019-07-17 23:06:46 +08:00 committed by GitHub
commit 8a166cde15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -160,7 +160,7 @@
.@{iconfont-css-prefix} {
min-width: 14px;
margin-right: 10px;
font-size: @font-size-base;
font-size: @menu-icon-size;
transition: font-size 0.15s @ease-out, margin 0.3s @ease-in-out;
+ span {
opacity: 1;
@ -418,7 +418,7 @@
}
.@{iconfont-css-prefix} {
margin: 0;
font-size: 16px;
font-size: @menu-icon-size-lg;
line-height: @menu-item-height;
+ span {
display: inline-block;

View File

@ -383,6 +383,8 @@
@menu-item-active-bg: @item-active-bg;
@menu-item-active-border-width: 3px;
@menu-item-group-title-color: @text-color-secondary;
@menu-icon-size: @font-size-base;
@menu-icon-size-lg: @font-size-lg;
// dark theme
@menu-dark-color: @text-color-secondary-dark;