Better centering. Fix album sorted bug.

master
Jason A. Donenfeld 2011-05-06 08:38:15 -04:00
parent 40fbd49442
commit b16b6eee02
2 changed files with 12 additions and 10 deletions

View File

@ -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()

View File

@ -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;