diff options
author | Mark Otto <otto@github.com> | 2014-07-14 10:33:54 +0400 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2014-07-14 10:33:54 +0400 |
commit | 3e896193abb3e529abd9260ebfc60d284071c4f3 (patch) | |
tree | 37f588a3e503ba97471f7d32c4a1848956e9173a /less/navbar.less | |
parent | b831dc06afdc65930436d4fb4e47307d01a1ef3e (diff) |
new navbar ideas
Diffstat (limited to 'less/navbar.less')
-rw-r--r-- | less/navbar.less | 59 |
1 files changed, 53 insertions, 6 deletions
diff --git a/less/navbar.less b/less/navbar.less index 65e780e68b..988c618042 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -10,9 +10,10 @@ .navbar { position: relative; - min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode) + padding: @spacer; + /*min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)*/ margin-bottom: @navbar-margin-bottom; - border: 1px solid transparent; + /*border: 1px solid transparent;*/ // Prevent floats from breaking the navbar &:extend(.clearfix all); @@ -163,13 +164,15 @@ .navbar-brand { float: left; - padding: @navbar-padding-vertical @navbar-padding-horizontal; + padding: .55rem .75rem; + margin-right: @spacer; + margin-bottom: 0; // For headings font-size: @font-size-large; line-height: @line-height-computed; - height: @navbar-height; + /*height: @navbar-height;*/ - &:hover, - &:focus { + > a:hover, + > a:focus { text-decoration: none; } @@ -177,14 +180,34 @@ display: block; } +/* @media (min-width: @grid-float-breakpoint) { .navbar > .container &, .navbar > .container-fluid & { margin-left: -@navbar-padding-horizontal; } } +*/ } +// New hotness +.navbar-toggler { + float: left; + padding: .55rem .75rem; + margin-right: @spacer; + margin-bottom: 0; // For headings + font-size: @font-size-large; + line-height: @line-height-computed; + background: none; + border: 0; + + &:hover, + &:focus { + text-decoration: none; + } +} + + // Navbar toggle // @@ -225,6 +248,7 @@ } + // Navbar nav links // // Builds on top of the `.nav` components with its own modifier class to make @@ -524,6 +548,29 @@ background-color: @navbar-inverse-bg; border-color: @navbar-inverse-border; + .navbar-brand > a, + .nav-pills > .nav-item > .nav-link { + color: @navbar-inverse-link-color; + + &:hover, + &:focus { + color: @navbar-inverse-link-hover-color; + } + } + .nav-pills > .nav-item > .nav-link { + &:hover, + &:focus { + color: @navbar-inverse-link-active-color; + background-color: @navbar-inverse-link-active-bg; + } + } + .nav-pills > .active > .nav-link, + .nav-pills > .nav-link.active { + color: @navbar-inverse-link-active-color; + background-color: @navbar-inverse-link-active-bg; + } + + .navbar-brand { color: @navbar-inverse-brand-color; &:hover, |