Adding box shadow around the photo.
This commit is contained in:
parent
b0b7e7c625
commit
d6e2f6c947
1 changed files with 12 additions and 6 deletions
|
|
@ -34,6 +34,7 @@
|
|||
div.photo {
|
||||
align: center;
|
||||
height: 200px;
|
||||
margin 8px;
|
||||
}
|
||||
div.grid {
|
||||
float: left;
|
||||
|
|
@ -44,8 +45,13 @@
|
|||
max-width: ${divwidth}px;
|
||||
overflow: hidden;
|
||||
}
|
||||
img {
|
||||
padding: 5px;
|
||||
img.picture {
|
||||
box-shadow: 5px 5px 5px #777;
|
||||
-webkit-box-shadow: 5px 5px 5px #777;
|
||||
-moz-box-shadow: 5px 5px 5px #777;
|
||||
}
|
||||
div.imgborder {
|
||||
margin: 10px;
|
||||
}
|
||||
.nav {
|
||||
border: 0 none;
|
||||
|
|
@ -66,7 +72,7 @@
|
|||
#set($thpath = $mapper.map(${entry.thumbnail.getPath()}))
|
||||
#set($enpath = $mapper.map(${entry.getPath()}))
|
||||
<div class="photo">
|
||||
<img src="${base}${thpath}?size=$thmb" border="0" width="$dim.width" height="$dim.height"/><br/>
|
||||
<div class="imgborder"><img class="picture" src="${base}${thpath}?size=$thmb" border="0" width="$dim.width" height="$dim.height"/></div>
|
||||
<p class="caption">$!entry.caption</p>
|
||||
</div>
|
||||
#else
|
||||
|
|
@ -83,7 +89,7 @@
|
|||
#end
|
||||
<div class="grid">
|
||||
<span class="name">$en.name</span><br/>
|
||||
<a href="#navlink($en)"><img src="${base}${thpath}?size=${thmb}" border="0" width="${dim.width}" height="${dim.height}"/></a><br/>
|
||||
<div class="imgborder"><a href="#navlink($en)"><img class="picture" src="${base}${thpath}?size=${thmb}" border="0" width="${dim.width}" height="${dim.height}"/></a></div>
|
||||
<p class="caption">$!en.caption</p>
|
||||
</div>
|
||||
#end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue