From cea7a11a2e9b7c5d415369db51b677c2bcbd7ab9 Mon Sep 17 00:00:00 2001 From: connors Date: Sat, 19 Oct 2013 19:36:49 -0700 Subject: [PATCH] Adding correct support for bar footers. --- dist/ratchet.css | 10 +++++----- lib/sass/bars.scss | 13 ++++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/dist/ratchet.css b/dist/ratchet.css index 5f75ae0..bac6f0f 100644 --- a/dist/ratchet.css +++ b/dist/ratchet.css @@ -303,9 +303,11 @@ strong { [class*="bar-"].bar-footer { bottom: 0; } -[class*="bar-"].bar-footer.bar-standard, [class*="bar-"].bar-footer-secondary.bar-standard { - -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.85); - box-shadow: 0 0 1px rgba(0, 0, 0, 0.85); +[class*="bar-"].bar-footer-secondary { + bottom: 44px; +} +[class*="bar-"].bar-footer-secondary-tab { + bottom: 50px; } .bar-nav { @@ -346,8 +348,6 @@ strong { bottom: 0; height: 50px; padding: 0; - -webkit-box-shadow: 0 0px 1px rgba(0, 0, 0, 0.85); - box-shadow: 0 0px 1px rgba(0, 0, 0, 0.85); } .tab-inner { diff --git a/lib/sass/bars.scss b/lib/sass/bars.scss index 3794d20..641d37d 100644 --- a/lib/sass/bars.scss +++ b/lib/sass/bars.scss @@ -22,10 +22,14 @@ bottom: 0; } - // Flip border position to top for footer bars - &.bar-footer.bar-standard, - &.bar-footer-secondary.bar-standard { - @include box-shadow(0 0 1px rgba(0,0,0,.85)); + // Modifier class to dock any bar above a standard bar + &.bar-footer-secondary { + bottom: $bar-base-height; + } + + // Modifier class to dock any bar above a .bar-tab + &.bar-footer-secondary-tab { + bottom: $bar-tab-height; } } @@ -78,7 +82,6 @@ bottom: 0; height: $bar-tab-height; padding: 0; - @include box-shadow(0 0px 1px rgba(0,0,0,.85)); } // Wrapper for individual tab