Some slight improvements to the components docs page; still don't know how to get it to be full-height with independently scrolling columsn, though.

This commit is contained in:
Nick Winter 2014-07-09 15:32:57 -07:00
parent 4b16e2fc57
commit bcf3c19f81
2 changed files with 31 additions and 43 deletions
app
styles/docs
templates/docs

View file

@ -1,30 +1,18 @@
#docs-components-view
color: saddlebrown
.main
position : relative
.row
.left
bottom: 10em
left: 10em
overflow-y: scroll
overflow-x: hidden
position: fixed
top: 5em
white-space: nowrap
width: 20%
-webkit-overflow-scrolling: touch
.index-column, .documentation-column
overflow-y: scroll
overflow-x: hidden
min-height: 600px
.right
left: 28em
bottom: 10em
position: fixed
overflow-y: scroll
overflow-x: hidden
right: 10em
top: 5em
//width: 80%
-webkit-overflow-scrolling: touch
> ul
padding: 0px 20px 20px 20px
.specialList
list-style-type: none
.documentation-column
.specialList
list-style-type: none

View file

@ -2,22 +2,22 @@ extends /templates/base
block content
div.main
div.left
ul
for component in components
li= component.get('name')
ul
each doc in component.attributes.propertyDocumentation
a(href="##{component.get('name')}#{doc.name}")
li
| #{doc.name}
div.right
ul
for component in components
each doc in component.attributes.propertyDocumentation
li(id="#{component.get('name')}#{doc.name}")
| #{doc.name}
ul.specialList
li=doc.description
.row
.col-xs-3.index-column.nano
ul.nav.nav-list.list-group.nano-content
for component in components
li= component.get('name')
ul
each doc in component.attributes.propertyDocumentation
a(href="##{component.get('name')}#{doc.name}")
li
| #{doc.name}
.col-xs-9.documentation-column.nano
ul.nano-content
for component in components
each doc in component.attributes.propertyDocumentation
li(id="#{component.get('name')}#{doc.name}")
| #{doc.name}
ul.specialList
li=doc.description