Fixed-position navigation menu for web client user/kmlussier/lp1474455-web-client-fixed-navigation
authorKathy Lussier <klussier@masslnc.org>
Tue, 14 Jul 2015 16:26:24 +0000 (12:26 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 14 Jul 2015 16:26:24 +0000 (12:26 -0400)
Changes the class for top-navbar so that it stays fixed at the top of the
screen. This is useful for staff who will need to quickly jump to another
area of the client after they have scrolled down a page.

Initially, changing the class shifted some of the content higher so that the
navbar was covering some elements. I addressed this by adding some padding to

Many thanks to Jason Etheridge for pointing me in the right direction to get
started.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/css/style.css.tt2
Open-ILS/src/templates/staff/navbar.tt2

index 300668c..b7dc3f0 100644 (file)
@@ -60,6 +60,7 @@
      * narrower than the default Bootstrapp container gutters.
      */
     width: 95%;
+    padding-top: 70px;
 }
 
 
index 84c9e33..12bef5c 100644 (file)
@@ -10,7 +10,7 @@
 -->
 
 <div id="top-navbar" role="navigation"
-  class="navbar navbar-default navbar-static-top" role="navigation">
+  class="navbar navbar-default navbar-fixed-top" role="navigation">
 
   <!-- navbar-header here needed for supporting angular-ui-bootstrap -->
   <div class="navbar-header">