jackmoore / colorbox

A light-weight, customizable lightbox plugin for jQuery
http://www.jacklmoore.com/colorbox/
MIT License
4.75k stars 1.14k forks source link

Colorbox css is missing. Or actually, not clear where to retrieve it from. #856

Open ericnewton76 opened 6 years ago

ericnewton76 commented 6 years ago

Yeah I see colorbox.css in example1,2,3,4,5, however this should be declared with your bower.json main

Sometimes its easiest to create a dist/ folder and slap the .js min.js and .css in there, and declare bower.json main to point to dist/*

Also whomever submitted this to cdnjs is missing the colorbox.css altogether.

ericnewton76 commented 6 years ago

So, are you cool with restructuring the files a little?

$ cp ./jquery.colorbox.js ./dist/jquery.colorbox.js
$ uglify-js ./dist/jquery.colorbox.js
$ uglify-js ./i18n/*.js ./dist/i18n/*.js
$ mv the core css classes from exampleN/colorbox.css into ./dist/jquery.colorbox.css
$ mv Each exampleN/colorbox.css and `*.png` moved to themeN/jquery.colorbox.css and dist/themeN/*.png

After we're done, dist folder would look like this:

./dist/jquery.colorbox.js
./dist/jquery.colorbox.min.js
./dist/jquery.colorbox-core.css
./dist/i18n/*
./dist/themeN/jquery.colorbox.css
./dist/themeN/*.png

Lastly, the following: