Skip to content

Commit

Permalink
Add flickr style gradients.
Browse files Browse the repository at this point in the history
(cherry picked from commit b87aaf1)
  • Loading branch information
raghunayyar authored and oparoz committed Feb 25, 2016
1 parent 4c2a374 commit ec94b9f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 13 additions & 3 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,16 @@ div.crumb.last a {

#gallery .row > a > .album-label,
#gallery .row > a > .image-label {
background: rgba(0, 0, 0, 0.4);
position: absolute;
width: 100%;
height: 100%;
transition: opacity 200ms linear;
opacity: 1;
background-image: linear-gradient(rgba(0,0,0,0) 65%,rgba(0,0,0,0.35));
}

#gallery .row > a > .image-label .title {
#gallery .row > a > .image-label .title,
#gallery .row > a > .album-label .title {
display: inline-block;
color: #fff;
text-align: center;
Expand All @@ -159,9 +165,13 @@ div.crumb.last a {
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
left: 0;
bottom: 10px;
position: absolute;
}

#gallery .row > a > .image-label .title:hover {
#gallery .row > a > .image-label .title:hover,
#gallery .row > a > .album-label .title:hover {
overflow: visible;
white-space: normal;
}
Expand Down
4 changes: 3 additions & 1 deletion js/galleryalbum.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
'data-width="{{targetWidth}}" data-height="{{targetHeight}}"' +
'href="{{targetPath}}">' +
' <div class="album-loader loading"></div>' +
' <span class="album-label">{{label}}</span>' +
' <span class="album-label">' +
' <span class="title">{{label}}</span>' +
' </span>' +
' <div class="album container" style="width: {{targetWidth}}px; height: {{targetHeight}}px;" >' +
' </div>' +
'</a>';
Expand Down

0 comments on commit ec94b9f

Please sign in to comment.