Commit 0da1e1e4 by Clinton Blackburn

Merge pull request #85 from edx/navbar-update

Navbar Updates
parents 9f99cd3b 2acd8c5a
...@@ -55,6 +55,11 @@ hr.has-emphasis { ...@@ -55,6 +55,11 @@ hr.has-emphasis {
// nav + header // nav + header
// -------------------- // --------------------
.navbar {
margin-bottom: 0; // Get rid of Bootstrap's default margin. Many of our pages have a secondary navbar
// that needs to sit right below the main navbar.
}
.navbar-brand { .navbar-brand {
padding: 25px 50px; // needed for edX logo to render properly padding: 25px 50px; // needed for edX logo to render properly
...@@ -328,8 +333,6 @@ hr.has-emphasis { ...@@ -328,8 +333,6 @@ hr.has-emphasis {
// view: dashboard // view: dashboard
// -------------------- // --------------------
.view-dashboard { .view-dashboard {
padding-top: $navbar-height; // move down content because we have a fixed navbar
.main { .main {
padding: ($padding-large-vertical*2) ($padding-large-horizontal*3); padding: ($padding-large-vertical*2) ($padding-large-horizontal*3);
} }
......
...@@ -72,9 +72,11 @@ ...@@ -72,9 +72,11 @@
<script type="text/javascript" src="{% url 'django.views.i18n.javascript_catalog' %}"></script> <script type="text/javascript" src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
{# Initial page data passed from view to JS initializer #} {# Initial page data passed from view to JS initializer #}
{% if page_data %}
<script type="text/javascript"> <script type="text/javascript">
var initModelData = {{ page_data|safe }}; var initModelData = {{ page_data|safe }};
</script> </script>
{% endif %}
{% compress js %} {% compress js %}
<script src="{% static 'js/common.js' %}"></script> <script src="{% static 'js/common.js' %}"></script>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Partial: App-wide header element Partial: App-wide header element
{% endcomment %} {% endcomment %}
<nav class="navbar navbar-default navbar-fixed-top" role="navigation" id="nav"> <nav class="navbar navbar-default" role="navigation" id="nav">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-nav"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-nav">
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
Partial for displaying the lens navigation and the sections within the lenses. Partial for displaying the lens navigation and the sections within the lenses.
{% endcomment %} {% endcomment %}
{% if primary_nav_items %}
<nav class="navbar navbar-default lens-nav" role="navigation"> <nav class="navbar navbar-default lens-nav" role="navigation">
<div class="container "> <div class="container ">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
...@@ -34,3 +35,4 @@ Partial for displaying the lens navigation and the sections within the lenses. ...@@ -34,3 +35,4 @@ Partial for displaying the lens navigation and the sections within the lenses.
</ul> </ul>
</div> </div>
</nav> </nav>
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment