Improve dropdown spacing in v2.

This commit is contained in:
Paulo Reis 2017-12-21 13:34:11 +00:00
parent f5751c34a9
commit baa57c56aa
4 changed files with 9 additions and 2 deletions

View file

@ -61,7 +61,7 @@
// Links and other items within the dropdown menu
> li > a,div {
display: block;
padding: 3px 20px;
padding: @dropdown-item-padding;
clear: both;
font-weight: normal;
line-height: @line-height-base;

View file

@ -824,6 +824,10 @@
@navbar-subdued-hover-bg : @gray-lightest;
@navbar-subdued-hover-color : @gray-dark;
@dropdown-divider-margin :((@line-height-computed / 2) - 1) 0;
@dropdown-item-padding : 3px 20px;
// Button colors and sizing
@btn-border-radius-large : @border-radius-large;
@btn-border-radius-base : @border-radius-base;

View file

@ -395,7 +395,7 @@
// Dividers (basically an hr) within dropdowns and nav lists
.nav-divider(@color: #e5e5e5) {
height: 1px;
margin: ((@line-height-computed / 2) - 1) 0;
margin: @dropdown-divider-margin;
overflow: hidden;
background-color: @color;
}

View file

@ -113,6 +113,9 @@
@navbar-subdued-hover-bg : #FFF;
@navbar-subdued-hover-color : @ol-green;
@dropdown-divider-margin : 6px;
@dropdown-item-padding : 4px 20px;
// Forms
@input-color : @ol-blue-gray-3;
@input-border-radius : unit(@line-height-base, em);