Project

General

Profile

« Previous | Next » 

Revision b6cd587c

Added by dsorber about 11 years ago

Updated layout to remove tables; the result is much cleaner.

View differences:

software/bookmark_library/bmklib/web/htdocs/css/bmk_list.css
table {
border: 1px solid #000000;
@font-face {
font-family: Roboto;
src: url(/htdocs/Roboto-Regular.ttf);
}
div#bmk_list {
font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
font-size: 16px;
border-spacing: 0px;
width: 100%;
}
table a:link {
div.row {
padding: 1em 0em;
border-left: solid 1px #CCC;
border-right: solid 1px #CCC;
border-bottom: solid 1px #CCC;
}
div#first {
border-top: solid 1px #CCC;
}
div.row a:link {
color: #000000;
text-decoration: none;
}
table a:visited {
div.row a:visited {
color: #000000;
text-decoration: none;
}
table a:hover {
div.row a:hover {
color: #000000;
text-decoration: underline;
}
tr.even {
background-color: #FFFFFF;
}
tr.odd {
background-color: #EEEEEE;
}
th {
padding: 10px;
border-spacing: 2px;
}
td {
padding: 4px 5px;
span.bmk_index {
display: inline-block;
width: 3em;
text-align: right;
margin-right: 3em;
}
.tag {
......
vertical-align: middle;
}
.detail_link {
font-size: 10px;
div#pagination_nav_bottom {
width: 100%;
height: 1em;
margin-top: 1.2em;
}
div#pagination_nav_top {
width: 100%;
height: 1em;
margin-bottom: 0.4em;
}
div#previous {
float: left;
}
div#next {
float: right;
}
software/bookmark_library/bmklib/web/htdocs/css/bmk_main.css
@font-face {
font-family: Roboto;
src: url(htdocs/Roboto-Regular.ttf);
src: url(/htdocs/Roboto-Regular.ttf);
}
body {
font-family: Roboto, sans-serif, Arial;
font-family: sans-serif, Arial;
font-size: 16px;
margin-left: 0px;
margin-right: 0px;
software/bookmark_library/bmklib/web/templates/all_bookmarks.html
<body>
<h3>All Bookmarks</h3>
<p>${page_idx} of ${max_page_idx}</p>
<table>
<tr py:for="idx, bookmark in enumerate(bookmarks)" class="${idx % 2 == 1 and 'odd' or 'even'}">
<td>${idx + ((page_idx - 1) * len(bookmarks)) + 1} <a class="detail_link" href="${update_link}/${bookmark.id}">+</a></td>
<td><a href="${bookmark.url}">${bookmark.title and bookmark.title or 'no title'}</a><py:for each="tag in bookmark.category_tags"><span class="tag">${tag.value}</span></py:for></td>
<div id="pagination_nav_top">
<py:if test="previous is not None"><div id="previous"><a href="${previous}">Previous</a></div></py:if>
<py:if test="next is not None"><div id="next"><a href="${next}">Next</a></div></py:if>
</div>
<div id="bmk_list">
<div py:for="idx, bookmark in enumerate(bookmarks)" id="${idx == 0 and 'first' or ''}" class="${idx % 2 == 1 and 'odd' or 'even'} row">
<span class="bmk_index"><a href="${update_link}/${bookmark.id}">${idx + ((page_idx - 1) * len(bookmarks)) + 1}</a></span>
<span><a href="${bookmark.url}">${bookmark.title and bookmark.title or 'no title'}</a><py:for each="tag in bookmark.category_tags"><span class="tag">${tag.value}</span></py:for></span>
<!--
<td><py:for each="tag in bookmark.description_tags"><span class="tag">${tag.value}</span></py:for></td>
-->
</tr>
</table>
<py:if test="previous is not None"><a href="${previous}">Previous</a></py:if>
</div>
</div>
<py:if test="next is not None"><a href="${next}">Next</a></py:if>
<div id="pagination_nav_bottom">
<py:if test="previous is not None"><div id="previous"><a href="${previous}">Previous</a></div></py:if>
<py:if test="next is not None"><div id="next"><a href="${next}">Next</a></div></py:if>
</div>
</body>
</html>

Also available in: Unified diff