Browse Source

Fix popup in menu, add min-height

pull/2034/head
jlukic 9 years ago
parent
commit
e1499e61d6
2 changed files with 6 additions and 4 deletions
  1. 9
      src/definitions/collections/menu.less
  2. 1
      src/themes/default/collections/menu.variables

9
src/definitions/collections/menu.less

@ -35,6 +35,7 @@
font-weight: @fontWeight; font-weight: @fontWeight;
box-shadow: @boxShadow; box-shadow: @boxShadow;
border-radius: @borderRadius; border-radius: @borderRadius;
min-height: @minHeight;
} }
.ui.menu:after { .ui.menu:after {
@ -203,10 +204,10 @@
Popup Popup
---------------*/ ---------------*/
.ui.menu .popup {
.ui.menu .ui.popup {
display: none; display: none;
} }
.ui.menu .visible.popup {
.ui.menu .ui.visible.popup {
display: block; display: block;
} }
@ -813,6 +814,7 @@ Floated Menu / Item
box-shadow: none; box-shadow: none;
background: @secondaryActiveItemBackground; background: @secondaryActiveItemBackground;
color: @secondaryActiveItemColor; color: @secondaryActiveItemColor;
border-radius: @secondaryItemBorderRadius;
} }
/* Active Hover */ /* Active Hover */
@ -1691,8 +1693,7 @@ Floated Menu / Item
.ui.menu.attached { .ui.menu.attached {
margin: 0rem; margin: 0rem;
border-radius: 0px; border-radius: 0px;
/* avoid rgba multiplying */
box-shadow: @attachedBoxShadow;
box-shadow: @attachedBoxShadow; /* avoid rgba multiplying */
} }
.ui.top.attached.menu { .ui.top.attached.menu {
border-radius: @borderRadius @borderRadius 0em 0em; border-radius: @borderRadius @borderRadius 0em 0em;

1
src/themes/default/collections/menu.variables

@ -27,6 +27,7 @@
@subtleShadow @subtleShadow
; ;
@borderRadius: @defaultBorderRadius; @borderRadius: @defaultBorderRadius;
@minHeight: (@itemVerticalPadding * 2) + 1em;
/* Menu Item */ /* Menu Item */
@itemVerticalPadding: @relativeSmall; @itemVerticalPadding: @relativeSmall;

Loading…
Cancel
Save