[yt-svn] commit/yt: ngoldbaum: Customize navbar to collapse at 1200 px, preventing overflowing search box.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jul 30 13:48:52 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/0a2aeff69c6a/
Changeset:   0a2aeff69c6a
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-07-30 21:56:31
Summary:     Customize navbar to collapse at 1200 px, preventing overflowing search box.
Affected #:  1 file

diff -r dc039dac15eab3e343f2a448c176630d1299f3af -r 0a2aeff69c6a8e35860deeac6c65439598d9ec20 doc/source/_static/custom.css
--- a/doc/source/_static/custom.css
+++ b/doc/source/_static/custom.css
@@ -5,4 +5,31 @@
 
 dd {
     margin-left: 30px;
+}
+
+ at media (max-width: 1200px) {
+    .navbar-header {
+        float: none;
+    }
+    .navbar-toggle {
+        display: block;
+    }
+    .navbar-collapse {
+        border-top: 1px solid transparent;
+        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
+    }
+    .navbar-collapse.collapse {
+        display: none!important;
+    }
+    .navbar-nav {
+        float: none!important;
+        margin: 7.5px -15px;
+    }
+    .navbar-nav>li {
+        float: none;
+    }
+    .navbar-nav>li>a {
+        padding-top: 10px;
+        padding-bottom: 10px;
+    }
 }
\ No newline at end of file

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list