Merge pull request #3136 from rabuzarus/20170130_vier_photo_album
style the photo album page of the vier theme
This commit is contained in:
commit
b6f64182a8
2 changed files with 28 additions and 5 deletions
|
@ -9,9 +9,9 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{foreach $photos as $photo}}
|
{{foreach $photos as $photo}}
|
||||||
<div class="photo-album-image-wrapper" id="photo-album-image-wrapper-{{$id}}">
|
<div class="photo-album-image-wrapper" id="photo-album-image-wrapper-{{$photo.id}}">
|
||||||
<a href="{{$photo.link}}" class="photo-album-photo-link" id="photo-album-photo-link-{{$id}}" title="{{$photo.title}}">
|
<a href="{{$photo.link}}" class="photo-album-photo-link" id="photo-album-photo-link-{{$photo.id}}" title="{{$photo.title}}">
|
||||||
<img src="{{$photo.src}}" alt="{{if $photo.album.name}}{{$photo.album.name}}{{elseif $photo.desc}}{{$photo.desc}}{{elseif $photo.alt}}{{$photo.alt}}{{else}}{{$photo.unknown}}{{/if}}" title="{{$photo.title}}" class="photo-album-photo lframe resize{{$twist}}" id="photo-album-photo-{{$id}}" />
|
<img src="{{$photo.src}}" alt="{{if $photo.album.name}}{{$photo.album.name}}{{elseif $photo.desc}}{{$photo.desc}}{{elseif $photo.alt}}{{$photo.alt}}{{else}}{{$photo.unknown}}{{/if}}" title="{{$photo.title}}" class="photo-album-photo lframe resize{{$photo.twist}}" id="photo-album-photo-{{$photo.id}}" />
|
||||||
<p class='caption'>{{$photo.desc}}</p>
|
<p class='caption'>{{$photo.desc}}</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3024,7 +3024,8 @@ a.btn#contact-edit-actions-button {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* photo album page */
|
/* photo album page */
|
||||||
.photo-top-image-wrapper {
|
.photo-top-image-wrapper,
|
||||||
|
.photo-album-image-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
|
@ -3054,11 +3055,33 @@ a.btn#contact-edit-actions-button {
|
||||||
float: left;
|
float: left;
|
||||||
width: 175px;
|
width: 175px;
|
||||||
}
|
}
|
||||||
img.photo-top-photo {
|
img.photo-top-photo,
|
||||||
|
img.photo-album-photo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
.photo-album-photo {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.photo-album-image-wrapper .caption {
|
||||||
|
opacity: 0;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0px;
|
||||||
|
padding: 3px 5px;
|
||||||
|
background-color: rgb(255, 255, 255);
|
||||||
|
margin: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
-webkit-transition: all 0.5s ease-in-out;
|
||||||
|
-moz-transition: all 0.5s ease-in-out;
|
||||||
|
-o-transition: all 0.5s ease-in-out;
|
||||||
|
-ms-transition: all 0.5s ease-in-out;
|
||||||
|
transition: all 0.5s ease-in-out;
|
||||||
|
}
|
||||||
|
.photo-album-image-wrapper:hover .caption {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.menu-profile-list{
|
.menu-profile-list{
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
Loading…
Reference in a new issue