Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Theme support #14

Closed
wants to merge 5 commits into from
Closed

Theme support #14

wants to merge 5 commits into from

Conversation

hermanbanken
Copy link

Hi Krewenki,

I've added theme support in my version of jquery-lightbox. To do this I only changed the js file in 2 places and added 1 directory with Themes. The js changes:

  • I removed the adding of button and loading images through javascript.
  • I removed the option to add images through javascript.

This way all images are referenced from CSS and users can quickly change the file by editing/swapping it in the Themes directory.

I compared your lightbox.css to mine and added all necessary things mine didn't include. I haven't yet looked at CSS markup. I noticed you add a tab before the closing curly-bracket?

I feel this branch could be usefull for many people, so please consider a pull.

Greetings from the Netherlands,

Herman

Added folder Themes containing lightbox.css files for every theme and a image folder for custom buttons (aka other colors). Removed the loading image and close button from the javascript code. These should be added through CSS since they are depending on the theme.
Signed-off-by: Herman <hermanbanken@gmail.com>
The Theme support comes from the Wordpress Stimuli Lightbox plugin. So in order to make the css work I had to remove all the stimuli_ prefixes and do some other little tweaking.

Signed-off-by: Herman <hermanbanken@gmail.com>
Patched White, Grey and Dark Grey

Signed-off-by: Herman <hermanbanken@gmail.com>
Signed-off-by: Herman <hermanbanken@gmail.com>
You can now choose a theme on the demo page, live.

Signed-off-by: Herman <hermanbanken@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant