Kris-B / nanoGALLERY

image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
https://nanogallery2.nanostudio.org/
436 stars 100 forks source link

Light color scheme and labelAppear. #34

Closed grief-of-these-days closed 10 years ago

grief-of-these-days commented 10 years ago

Hey! In version 5.0.1, if I use

colorScheme: 'light',

and labelAppear or labelOpacity50 hover effect, the label container is not hidden in the initial state (tested in Chrome and Firefox). Here's the fiddle: http://jsfiddle.net/mooncat/jrpc4kpo/

I noticed it had something to do with the !important property on its initial background, but I'm not sure about the proper way to fix that.

Kris-B commented 10 years ago

Hi!

Actually I've noticed that it was not possible to change the background color of the thumbnail label with a colorScheme, so I've corrected this by adding an !important, but this broke animations...

Quick fix: in function SetColorScheme( element ) remove !important in line s+=s1+'.nanoGalleryContainer .nanoGalleryThumbnailContainer .labelImage { background:'+cs.thumbnail.labelBackground+' !important; }'+'\n';

I need to find a solution to allow both features...

Kris-B commented 10 years ago

Hi, This issue should be resolved with v5.0.2

grief-of-these-days commented 10 years ago

Resolved indeed, yay!

Kris-B commented 10 years ago

thanks for the feedback!