From: Geoff Kimball Date: Wed, 13 Jan 2016 05:32:51 +0000 (-0800) Subject: Add flexbox mode to title bar X-Git-Tag: v6.2.0-rc.1~72^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7862%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Add flexbox mode to title bar --- diff --git a/scss/components/_title-bar.scss b/scss/components/_title-bar.scss index 341cea968..60e89c6f6 100644 --- a/scss/components/_title-bar.scss +++ b/scss/components/_title-bar.scss @@ -36,24 +36,44 @@ $titlebar-icon-spacing: 0.25rem !default; @mixin foundation-title-bar { .title-bar { - @include clearfix; background: $titlebar-background; color: $titlebar-color; padding: $titlebar-padding; + @if $global-flexbox { + display: flex; + align-items: center; + justify-content: space-between; + } + @else { + @include clearfix; + } + .menu-icon { margin-#{$global-left}: $titlebar-icon-spacing; margin-#{$global-right}: $titlebar-padding; } } - .title-bar-left { - float: left; + @if $global-flexbox { + .title-bar-left, + .title-bar-right { + flex: 1 1 0px; + } + + .title-bar-right { + text-align: right; + } } + @else { + .title-bar-left { + float: left; + } - .title-bar-right { - float: right; - text-align: right; + .title-bar-right { + float: right; + text-align: right; + } } .title-bar-title {