give directories a different css class so they can be styled differently

This commit is contained in:
Erik Forkalsrud 2014-08-27 22:27:28 -07:00
parent 3ca4c65c85
commit 55ce28ba2f
2 changed files with 7 additions and 2 deletions

View file

@ -59,11 +59,16 @@
max-width: 275px;
overflow: hidden;
}
img.picture {
img.imagepic {
box-shadow: 5px 5px 5px #777;
-webkit-box-shadow: 5px 5px 5px #777;
-moz-box-shadow: 5px 5px 5px #777;
}
img.dirpic {
box-shadow: 5px 5px 2px #aa4;
-webkit-box-shadow: 5px 5px 2px #aa4;
-moz-box-shadow: 5px 5px 2px #aa4;
}
div.imgborder {
margin: 10px;
}

View file

@ -43,7 +43,7 @@ $(function() {
var gridDiv = $("<div class=\"grid\">\n"
+ " <span class=\"name\">" + entry.name + "</span><br/>\n"
+ " <div class=\"imgborder\"><a class=\"ss\" id=\"ent" + idx + "\" href=\"/photo/album" + entry.path + "?size=" + picSize + "\" title=\"" + entry.name + "\">"
+ "<img class=\"picture\" src=\"/photo/album" + (entry.thumbtype == "movie" ? entry.path + ".frame" : entry.path) + "?size=" + thmb + "\" border=\"0\" width=\"" + dim.w + "\" height=\"" + dim.h + "\"/></a></div>\n"
+ "<img class=\"" + entry.type + "pic\" src=\"/photo/album" + (entry.thumbtype == "movie" ? entry.path + ".frame" : entry.path) + "?size=" + thmb + "\" border=\"0\" width=\"" + dim.w + "\" height=\"" + dim.h + "\"/></a></div>\n"
+ "</div>\n");
var captionP = $("<p id=\"" + entry.name + "\" class=\"caption\"></p>\n");