Skip to content

Commit

Permalink
Adds flickr style gradient.
Browse files Browse the repository at this point in the history
  • Loading branch information
raghunayyar committed Oct 29, 2015
1 parent 0039356 commit be343a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ div.crumb.last a {

#gallery .item-container .album-label,
#gallery .item-container .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 .item-container .image-label .title {
Expand All @@ -143,6 +148,8 @@ div.crumb.last a {
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
bottom: 10px;
position: absolute;
}

#gallery .item-container .image-label .title:hover {
Expand Down
2 changes: 1 addition & 1 deletion js/galleryimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
* @private
*/
_addLabel: function (container) {
var imageLabel = $('<span/>')
var imageLabel = $('<div/>')
.addClass('image-label');
var imageTitle = $('<span/>')
.addClass('title').text(
Expand Down

0 comments on commit be343a1

Please sign in to comment.