Skip to content

Commit

Permalink
renable navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Aug 26, 2016
1 parent 3abf1fa commit fe41fae
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
9 changes: 7 additions & 2 deletions public/static/css/menu2.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ body .row {
width: calc(100% - 250px);
}
#tour-content {
height: 100vh;
height: calc(100vh - 52px);
overflow-y: auto;
}

#tour-code {
height: 100vh;
height: calc(100vh - 52px);
overflow-y: auto;
}
}
Expand All @@ -75,3 +75,8 @@ body .row {
margin: 0.15em;
}
}

.navbar .h1 {
margin-top: 0px;
margin-bottom: 0px;
}
30 changes: 16 additions & 14 deletions views/tour.dt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ block head

block content
.row(ng-controller="DlangTourAppCtrl as ctrl", ng-init="init('#{language}', '#{githubRepo}', '#{chapterId}', '#{section}', #{hasSourceCode}, '#{previousSection.link}', '#{nextSection.link}')")

div#tour-content(ng-show="showContent", ng-class="{'col-md-12': !showSourceCode, 'col-md-6 col-sm-12': showSourceCode}")
div(ng-hide="showProgramOutput")
.content-command-box
Expand Down Expand Up @@ -40,20 +41,21 @@ block content
span Reset
ui-codemirror(ui-codemirror-opts="editorOptions", ui-codemirror="{ onLoad : codemirrorLoaded }", ng-model="sourceCode")

//-nav.navbar.navbar-bottom
//-.container.text-center.h1
//-a(href="#{previousSection.link}", ng-show="'' != '#{previousSection.link}'")
//-| <
//-span.h4 #{previousSection.title}
//-| #{sectionId + 1} /
//-span.small #{sectionCount}
//-a(href="#{nextSection.link}", ng-show="'' != '#{nextSection.link}'")
//-span.h4 #{nextSection.title}
//-| >
// .container.hidden-xs.hidden-sm
//-p.text-muted.text-center
//-kbd ?
//-| Keyboard shortcuts
nav.navbar.navbar-bottom
.container.text-center.h1
a(href="#{previousSection.link}", ng-show="'' != '#{previousSection.link}'")
| <
span.h4 #{previousSection.title}
//-| #{sectionId + 1} /
//-span.small #{sectionCount}
span /
a(href="#{nextSection.link}", ng-show="'' != '#{nextSection.link}'")
span.h4 #{nextSection.title}
| >
//-.container.hidden-xs.hidden-sm
//-p.text-muted.text-center
//-kbd ?
| Keyboard shortcuts

block js
script(src="/static/js/tour-controller.js")
Expand Down

0 comments on commit fe41fae

Please sign in to comment.