From 883bcbda5ef0c5137bdf0bf4702f4b47b714b68e Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 1 Jun 2015 15:50:21 -0400 Subject: [PATCH] Use real flex for vertical menu --- src/definitions/collections/menu.less | 5 ++++- src/themes/default/collections/menu.variables | 11 +++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/definitions/collections/menu.less b/src/definitions/collections/menu.less index eaa6eecc1..5b939b751 100755 --- a/src/definitions/collections/menu.less +++ b/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; diff --git a/src/themes/default/collections/menu.variables b/src/themes/default/collections/menu.variables index 75f4178b6..3ef795baa 100644 --- a/src/themes/default/collections/menu.variables +++ b/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;