Browse Source

reponsive breakpoint for navbar

master
David Beltra 1 year ago
parent
commit
aac237a970
2 changed files with 38 additions and 2 deletions
  1. +38
    -1
      apps/pep_theme/static/css/extra.css
  2. +0
    -1
      apps/pep_theme/templates/base.html

+ 38
- 1
apps/pep_theme/static/css/extra.css View File

@@ -44,4 +44,41 @@ body {

footer {
box-shadow: 0 50vh 0 50vh #f8f8f8
}
}

@media (max-width: 1200px) {
.navbar-header {
float: none;
}
.navbar-left,.navbar-right {
float: none !important;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
float: none!important;
margin-top: 7.5px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.collapse.in{
display:block !important;
}
}

+ 0
- 1
apps/pep_theme/templates/base.html View File

@@ -18,7 +18,6 @@
{% compress css %}
<link rel="stylesheet" href="{% static "css/bootstrap.css" %}">
<link rel="stylesheet" href="{% static "css/mezzanine.css" %}">
<link rel="stylesheet" href="{% static "css/bootstrap.css" %}">
<link rel="stylesheet" href="{% static "css/extra.css" %}">

{% if LANGUAGE_BIDI %}


Loading…
Cancel
Save