diff options
| author | Jacob Thornton <[email protected]> | 2012-01-08 11:24:16 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-08 11:24:16 -0800 |
| commit | c78016e3acaa84adbdde9297c1082825b165f77c (patch) | |
| tree | 8fa8d6725bd712de193629f274e81af4a12deb0d /lib | |
| parent | f1cbd22b99c3fec54d18341c31cfb1c237db44f2 (diff) | |
| parent | cb5245869869d6ee46b47ec75ceee07013acdda0 (diff) | |
| download | bootstrap-c78016e3acaa84adbdde9297c1082825b165f77c.tar.xz bootstrap-c78016e3acaa84adbdde9297c1082825b165f77c.zip | |
Merge branch '2.0-wip' of https://github.com/twitter/bootstrap into 2.0-wip
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/navbar.less | 4 | ||||
| -rw-r--r-- | lib/navs.less | 22 | ||||
| -rw-r--r-- | lib/responsive.less | 114 | ||||
| -rw-r--r-- | lib/type.less | 4 |
4 files changed, 87 insertions, 57 deletions
diff --git a/lib/navbar.less b/lib/navbar.less index 8ee203307..dbad9dcd8 100644 --- a/lib/navbar.less +++ b/lib/navbar.less @@ -10,7 +10,7 @@ .navbar { overflow: visible; } -// gradient is applied to it's own element because overflow visible is not honored by ie when filter is present +// gradient is applied to it's own element because overflow visible is not honored by IE when filter is present .navbar-inner { background-color: @navBarBgEnd; #gradient > .vertical(@navBarBgStart, @navBarBgEnd); @@ -21,7 +21,7 @@ .navbar { // Hover and active states .brand:hover, - ul .active > a { + .nav .active > a { color: @white; text-decoration: none; background-color: @navBarBgStart; diff --git a/lib/navs.less b/lib/navs.less index 743d772f3..dee482aea 100644 --- a/lib/navs.less +++ b/lib/navs.less @@ -175,29 +175,35 @@ // --------- // Position the menu -.tabs .dropdown-menu, -.pills .dropdown-menu { +.nav .dropdown-menu { top: 33px; border-width: 1px; } .pills .dropdown-menu { .border-radius(4px); } -.tabs .dropdown-toggle .caret, -.pills .dropdown-toggle .caret { +.nav .dropdown-toggle .caret { + border-top-color: @linkColor; margin-top: 6px; } -.tabs .open .dropdown-toggle, -.pills .open .dropdown-toggle { +.nav .dropdown-toggle:hover .caret { + border-top-color: @linkColorHover; +} +.nav .open .dropdown-toggle { background-color: #999; border-color: #999; } -.tabs .open .caret, -.pills .open .caret { +.nav .open .caret, +.nav .open a:hover .caret { border-top-color: #fff; .opacity(100); } +// Dropdowns in stacked tabs +.tabs.stacked .open > a:hover { + border-color: #999; +} + // TABBABLE diff --git a/lib/responsive.less b/lib/responsive.less index 7856121be..e87b8495f 100644 --- a/lib/responsive.less +++ b/lib/responsive.less @@ -18,6 +18,64 @@ // --------------------- @media (max-width: 480px) { + + // Make the nav work for small devices + .navbar { + .nav { + position: absolute; + top: 0; + left: 0; + width: 180px; + padding-top: 40px; + list-style: none; + } + .nav, + .nav > li:last-child a { + .border-radius(0 0 4px 0); + } + .nav > li { + float: none; + display: none; + } + .nav > li > a { + float: none; + background-color: #222; + } + .nav > .active { + display: block; + position: absolute; + top: 0; + left: 0; + } + .nav > .active > a { + background-color: transparent; + } + .nav > .active > a:hover { + background-color: #333; + } + .nav > .active > a:after { + display: inline-block; + width: 0; + height: 0; + margin-top: 8px; + margin-left: 6px; + text-indent: -99999px; + vertical-align: top; + border-left: 4px solid transparent; + border-right: 4px solid transparent; + border-top: 4px solid @white; + .opacity(100); + content: "↓"; + } + + .nav:hover > li { + display: block; + } + .nav:hover > li > a:hover { + background-color: #333; + } + } + // Resize modals .modal { width: auto; @@ -63,6 +121,15 @@ // -------------------------------------------------- @media (max-width: 768px) { + + // Unfix the navbar + .navbar-fixed { + position: absolute; + } + .navbar-fixed .nav { + float: none; + } + // Remove width from containers .container { width: auto; @@ -80,53 +147,6 @@ margin: 0; } - // Make the nav work for small devices - .nav { - position: absolute; - top: 0; - left: 0; - width: 180px; - padding-top: 40px; - list-style: none; - } - .nav, - .nav > li:last-child a { - .border-radius(0 0 4px 0); - } - .nav > li { - float: none; - display: none; - } - .nav > li > a { - float: none; - background-color: #222; - } - .nav > .active { - display: block; - position: absolute; - top: 0; - left: 0; - } - .navbar ul .active > a { - background-color: transparent; - } - .nav > .active a:after { - display: inline-block; - width: 0; - height: 0; - margin-top: 8px; - margin-left: 6px; - text-indent: -99999px; - vertical-align: top; - border-left: 4px solid transparent; - border-right: 4px solid transparent; - border-top: 4px solid @white; - .opacity(100); - content: "↓"; - } - .nav > .active a:hover { - background-color: rgba(255,255,255,.05); - } } diff --git a/lib/type.less b/lib/type.less index 7e2c4a7a8..84130f3fa 100644 --- a/lib/type.less +++ b/lib/type.less @@ -165,6 +165,10 @@ blockquote { // Float right with text-align: right &.pull-right { float: right; + padding-left: 0; + padding-right: 15px; + border-left: 0; + border-right: 5px solid #eee; p, small { text-align: right; |
