Mercurial > hg > montage
changeset 30:5a3945882d04
improvements in background.html template
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 11 Jan 2012 16:28:16 -0800 |
parents | b61fe6b0ebe1 |
children | d98c9e7415c3 |
files | montage/templates/background.html setup.py |
diffstat | 2 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/montage/templates/background.html Thu Dec 29 23:20:12 2011 -0800 +++ b/montage/templates/background.html Wed Jan 11 16:28:16 2012 -0800 @@ -7,10 +7,12 @@ <head py:with="background = request.GET.get('image', files[0]['link'])"> <xi:include href="head.html"/> <style type="text/css"> - body { background-image: url('${background}'); - background-repeat:no-repeat; - background-position: right; - background-attachment: fixed; + body { + background-image: url('${background}'); + background-repeat:no-repeat; + background-position: right; + background-attachment: fixed; + background-size: 100% 100%; } </style> </head> @@ -20,7 +22,8 @@ <div class="strip"> <py:for each="index, image in enumerate(files)"> <div class="image"> - <a href="${'?image=' + image['link']}"> + <a name="${image['name']}"></a> + <a href="${'?image=' + image['name']}#${image['name']}"> <img src="${image['path']}" width="${width or None}" height="${height or None}"/> </a> <br/>