mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:23:59 +00:00
Improve dropdown spacing in v2.
This commit is contained in:
parent
f5751c34a9
commit
baa57c56aa
4 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue