Skip to content

Commit 385843c

Browse files
committed
on the homepage, don't show a toggle for left nav
Closes #745 Squashed commit of the following: commit 1bb1c45 Author: Seth Ladd <[email protected]> Date: Wed Jul 29 15:43:03 2015 -0700 on the homepage, don't show a toggle for left nav
1 parent 497b4b0 commit 385843c

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

lib/resources/styles.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -534,17 +534,6 @@ button {
534534
padding: 0;
535535
}
536536

537-
#sidenav-right-toggle {
538-
display: inline;
539-
background: no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='#FFFFFF' d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/></svg>");
540-
background-position: center;
541-
width: 24px;
542-
height: 24px;
543-
border: none;
544-
display: none;
545-
vertical-align: text-bottom;
546-
}
547-
548537
/* left-nav disappears, and can transition in from the left */
549538
@media screen and (max-width:768px) {
550539
.main-content {

lib/templates/_head.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
<header class="container-fluid" id="title">
2828
<nav class="navbar navbar-fixed-top">
2929
<div class="container">
30+
{{^navLinks.isEmpty}}
3031
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
32+
{{/navLinks.isEmpty}}
3133
<ol class="breadcrumbs gt-separated hidden-xs">
3234
{{#navLinks}}
3335
<li><a href="{{href}}">{{name}}</a></li>
@@ -42,7 +44,9 @@
4244
{{#navLinks}}
4345
<li><a href="{{href}}">{{name}}</a></li>
4446
{{/navLinks}}
47+
{{^navLinks.isEmpty}}
4548
<li class="self-crumb">{{self.name}}</li>
49+
{{/navLinks.isEmpty}}
4650
</ol>
4751
<div class="title-description">
4852
<h1 class="title">

0 commit comments

Comments
 (0)