diff options
| author | Mark Otto <[email protected]> | 2013-08-16 14:01:32 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-16 14:01:32 -0700 |
| commit | e6f185acad5741fcbe0b3305e0660e5e6ea4f41c (patch) | |
| tree | ea0fef195545a18c14d5c4bc7832391bb9f9b0a1 /examples | |
| parent | af7b072a74f187f3c5f57a363ac9e1b19f7a35f5 (diff) | |
| download | bootstrap-e6f185acad5741fcbe0b3305e0660e5e6ea4f41c.tar.xz bootstrap-e6f185acad5741fcbe0b3305e0660e5e6ea4f41c.zip | |
Justified nav now responsive; example updated accordingly (fixes #9708)
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/justified-nav/justified-nav.css | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/examples/justified-nav/justified-nav.css b/examples/justified-nav/justified-nav.css index cabd36d16..be983ba6b 100644 --- a/examples/justified-nav/justified-nav.css +++ b/examples/justified-nav/justified-nav.css @@ -27,8 +27,8 @@ body { } /* Customize the nav-justified links to be fill the entire space of the .navbar */ + .nav-justified { - max-height: 52px; background-color: #eee; border-radius: 5px; border: 1px solid #ccc; @@ -39,8 +39,7 @@ body { color: #777; font-weight: bold; text-align: center; - border-left: 1px solid rgba(255,255,255,.75); - border-right: 1px solid rgba(0,0,0,.1); + border-bottom: 1px solid #d5d5d5; background-color: #e5e5e5; /* Old browsers */ background-repeat: repeat-x; /* Repeat the gradient */ background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%); /* FF3.6+ */ @@ -59,17 +58,33 @@ body { box-shadow: inset 0 3px 7px rgba(0,0,0,.15); } .nav-justified > li:first-child > a { - border-left: 0; - border-top-left-radius: 5px; - border-bottom-left-radius: 5px; + border-radius: 5px 5px 0 0; } .nav-justified > li:last-child > a { - border-right: 0; - border-top-right-radius: 5px; - border-bottom-right-radius: 5px; + border-bottom: 0; + border-radius: 0 0 5px 5px; +} + +@media (min-width: 768px) { + .nav-justified { + max-height: 52px; + } + .nav-justified > li > a { + border-left: 1px solid #fff; + border-right: 1px solid #d5d5d5; + } + .nav-justified > li:first-child > a { + border-left: 0; + border-radius: 5px 0 0 5px; + } + .nav-justified > li:last-child > a { + border-radius: 0 5px 5px 0; + border-right: 0; + } } + /* Responsive: Portrait tablets and up */ @media screen and (min-width: 768px) { /* Remove the padding we set earlier */ |
