Skip to content

Commit

Permalink
fix navbar on smaller displays
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Michonneau committed Feb 12, 2015
1 parent eec3544 commit 50e2d6e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions css/swc.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,43 @@ div.chapter h2 {
top: auto;
}

/* Collapse navbar */
@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;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.collapse.in{
display:block !important;
}
}

/* GitHub ribbon breaking point */
@media screen and (min-width: 600px) {
#github-ribbon {
Expand Down

0 comments on commit 50e2d6e

Please sign in to comment.