Skip to content

Commit

Permalink
Basic mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Oct 4, 2015
1 parent 522a7f7 commit e4cd7f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/layout.jade
Expand Up @@ -16,8 +16,8 @@ html
link(rel='stylesheet' href=(base + 'assets/style.css'))
body
.doc-layout
.menu.toc-menu
+menu(toc, 0)
.body
.markdown-body
!= contents
.menu.toc-menu
+menu(toc, 0)
11 changes: 9 additions & 2 deletions data/style.sass
Expand Up @@ -5,23 +5,30 @@ html, body
height: 100%

.doc-layout
display: flex
width: 100%
height: 100%

@media (min-width: 769px)
.body
padding: 16px

@media (min-width: 960px)
html, body
overflow: hidden

.doc-layout
&
display: flex

.menu
flex: 0 0 300px
overflow-y: auto
order: 1

.body
flex: 1
overflow-y: auto
padding-top: 32px
order: 2

.toc-menu
$pad: 32px
Expand Down

0 comments on commit e4cd7f7

Please sign in to comment.