jackmoore/colorbox — Issue #151: Feature request: move constant CSS rules from script to stylesheet
Author: checat
Created: 2011-12-23 11:51:26+00:00
State: open

colorbox JS code has many .css() calls here and there. Part of them are really needed. Some of them can be replaced by class change. Most of them are constant within one instance of colorbox, so they are better placed in stylesheet.

Practical examples.
1. Currently one cannot always have visible next/prev buttons with 3 states "enabled/hover/disabled", because "disable" is done explicitly with hide(). Also, control buttons cannot be clearly hidden forever with simple display:none and need some magic like left:-9999px
2. Currently cursor:pointer is set on overlay background when overlayClose option is true, so one cannot simply have overlayClose:true, with default cursor.