Browse Source

Use real flex for vertical menu

pull/2347/head
jlukic 9 years ago
parent
commit
883bcbda5e
2 changed files with 9 additions and 7 deletions
  1. 5
      src/definitions/collections/menu.less
  2. 11
      src/themes/default/collections/menu.variables

5
src/definitions/collections/menu.less

@ -483,7 +483,8 @@ Floated Menu / Item
---------------*/
.ui.vertical.menu {
display: block;
display: flex;
flex-direction: column;
background: @verticalBackground;
box-shadow: @verticalBoxShadow;
}
@ -491,6 +492,8 @@ Floated Menu / Item
/*--- Item ---*/
.ui.vertical.menu .item {
display: block;
flex: 1 0 auto;
align-self: stretch !important;
background: @verticalItemBackground;
border-top: none;
border-right: none;

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

@ -334,10 +334,9 @@
/* Text */
@textMenuItemSpacing: 0.5em;
@textMenuMargin: @relativeLarge -@textMenuItemSpacing;
@textMenuItemSpacing: 1em;
@textMenuItemColor: rgba(0, 0, 0, 0.6);
@textMenuItemColor: @mutedTextColor;
@textMenuItemFontWeight: normal;
@textMenuItemMargin: 0em @textMenuItemSpacing;
@textMenuItemTransition: opacity @defaultDuration @defaultEasing;
@ -352,9 +351,9 @@
@textMenuHeaderFontWeight: bold;
@textMenuHeaderTextTransform: uppercase;
@textVerticalMenuMargin: @relativeSmall 0em;
@textVerticalMenuHeaderMargin: @relativeLarge 0em;
@textVerticalMenuItemMargin: @relativeLarge 0em;
@textVerticalMenuMargin: @relativeMedium 0em;
@textVerticalMenuHeaderMargin: 0.4285em 0em 0.5714em;
@textVerticalMenuItemMargin: 0.4285em 0em;
@textVerticalMenuIconFloat: none;
@textVerticalMenuIconMargin: @iconMargin;

Loading…
Cancel
Save