summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 08:38:15 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 08:38:15 -0400
commitb16b6eee02e17787178c93b08844658a22f5c817 (patch)
tree0c33dba14e10ee3f75f07019483f4dae3f29a4b7
parentDo 800 too. (diff)
downloadPhotoFloat-b16b6eee02e17787178c93b08844658a22f5c817.tar.xz
PhotoFloat-b16b6eee02e17787178c93b08844658a22f5c817.zip
Better centering. Fix album sorted bug.
-rw-r--r--scanner/PhotoAlbum.py2
-rw-r--r--web/css/000-controls.css20
2 files changed, 12 insertions, 10 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py
index 514cf23..ec227f9 100644
--- a/scanner/PhotoAlbum.py
+++ b/scanner/PhotoAlbum.py
@@ -44,7 +44,7 @@ class Album(object):
self._photos_sorted = False
def add_album(self, album):
self._albums.append(album)
- self._photos_sorted = False
+ self._albums_sorted = False
def _sort(self):
if not self._photos_sorted:
self._photos.sort()
diff --git a/web/css/000-controls.css b/web/css/000-controls.css
index e43818e..3dd796c 100644
--- a/web/css/000-controls.css
+++ b/web/css/000-controls.css
@@ -43,11 +43,9 @@ a:hover {
.album-button {
float: left;
display: block;
- width: 150px;
- height: 150px;
- margin-right: 10px;
- margin-bottom: 5px;
- margin-top: 5px;
+ width: 138px;
+ height: 138px;
+ margin: 6px;
text-align: center;
font-style: italic;
border: 1px #86A1B6 dotted;
@@ -59,13 +57,13 @@ a:hover {
width: auto;
font-size: 2.5em;
line-height: 0;
- padding-top: 0.3em;
+ top: 40%;
}
#back {
- left: 0;
+ left: .5em;
}
#next {
- right: 0;
+ right: .5em;
}
#photo {
border: 0;
@@ -74,7 +72,11 @@ a:hover {
position: absolute;
bottom: 150px;
top: 2.5em;
- margin: 0 auto;
+ overflow: hidden;
+ margin-bottom: 0.5em;
+ left: 0;
+ right: 0;
+ text-align: center;
}
.photo-view-container {
position: absolute;