diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2014-07-12 18:44:16 +0400 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2014-07-12 20:23:39 +0400 |
commit | 43a76e57c9e3d8c53603ef0956b80e9dfcb24931 (patch) | |
tree | 574c4c47cdc67ff2b3d623cec533b9ac12ed2aee /assets/stylesheets/bootstrap/_navbar.scss | |
parent | d5625c907168b6311be122b99d89614e02448475 (diff) |
rake convert
Diffstat (limited to 'assets/stylesheets/bootstrap/_navbar.scss')
-rw-r--r-- | assets/stylesheets/bootstrap/_navbar.scss | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/assets/stylesheets/bootstrap/_navbar.scss b/assets/stylesheets/bootstrap/_navbar.scss index 3b94d6f..907610c 100644 --- a/assets/stylesheets/bootstrap/_navbar.scss +++ b/assets/stylesheets/bootstrap/_navbar.scss @@ -92,7 +92,7 @@ .navbar-collapse { max-height: $navbar-collapse-max-height; - @media (max-width: $screen-xs-min) and (orientation: landscape) { + @media (max-device-width: $screen-xs-min) and (orientation: landscape) { max-height: 200px; } } @@ -173,6 +173,10 @@ text-decoration: none; } + > img { + display: block; + } + @media (min-width: $grid-float-breakpoint) { .navbar > .container &, .navbar > .container-fluid & { @@ -271,26 +275,6 @@ padding-bottom: $navbar-padding-vertical; } } - - &.navbar-right:last-child { - margin-right: -$navbar-padding-horizontal; - } - } -} - - -// Component alignment -// -// Repurpose the pull utilities as their own navbar utilities to avoid specificity -// issues with parents and chaining. Only do this when the navbar is uncollapsed -// though so that navbar contents properly stack and align in mobile. - -@media (min-width: $grid-float-breakpoint) { - .navbar-left { - float: left !important; - } - .navbar-right { - float: right !important; } } @@ -330,11 +314,6 @@ padding-top: 0; padding-bottom: 0; @include box-shadow(none); - - // Outdent the form if last child to line up with content down the page - &.navbar-right:last-child { - margin-right: -$navbar-padding-horizontal; - } } } @@ -379,14 +358,33 @@ float: left; margin-left: $navbar-padding-horizontal; margin-right: $navbar-padding-horizontal; + } +} + - // Outdent the form if last child to line up with content down the page - &.navbar-right:last-child { +// Component alignment +// +// Repurpose the pull utilities as their own navbar utilities to avoid specificity +// issues with parents and chaining. Only do this when the navbar is uncollapsed +// though so that navbar contents properly stack and align in mobile. +// +// Declared after the navbar components to ensure more specificity on the margins. + +@media (min-width: $grid-float-breakpoint) { + .navbar-left { + float: left !important; + } + .navbar-right { + float: right !important; + margin-right: -$navbar-padding-horizontal; + + ~ .navbar-right { margin-right: 0; } } } + // Alternate navbars // -------------------------------------------------- |