Commit 3d3ee02e by Tom Giannattasio

started textbook nav styles

parent e82582e3
...@@ -9,6 +9,12 @@ div.book-wrapper { ...@@ -9,6 +9,12 @@ div.book-wrapper {
ul#booknav { ul#booknav {
font-size: em(14); font-size: em(14);
.page-number {
float: right;
font-size: .8em;
color: #9a9a9a;
}
li { li {
background: none; background: none;
border-bottom: 0; border-bottom: 0;
......
...@@ -135,6 +135,18 @@ ...@@ -135,6 +135,18 @@
font-weight: 700; font-weight: 700;
margin-bottom: 15px; margin-bottom: 15px;
} }
ul {
padding-left: 50px;
}
li {
font-family: $serif;
font-size: 1em;
line-height: 1.6em;
color: #3c3c3c;
margin-bottom: 0.2em;
}
} }
} }
} }
......
...@@ -75,7 +75,11 @@ $("#open_close_accordion a").click(function(){ ...@@ -75,7 +75,11 @@ $("#open_close_accordion a").click(function(){
<%def name="print_entry(entry)"> <%def name="print_entry(entry)">
<li> <li>
<a href="javascript:goto_page(${entry.get('page')})"> <a href="javascript:goto_page(${entry.get('page')})">
${' '.join(entry.get(attribute, '') for attribute in ['chapter', 'name', 'page_label'])} <!--${' '.join(entry.get(attribute, '') for attribute in ['chapter', 'name', 'page_label'])}-->
%if entry.get('chapter'):
<span class="chapter-number">${entry.get('chapter')}</span>
%endif
<span class="chapter-name">${entry.get('name')}</span> <span class="page-number">${entry.get('page_label')}</span>
</a> </a>
% if len(entry) > 0: % if len(entry) > 0:
<ul> <ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment