batpad / jquery-rbox

Responsive lightbox jQuery plugin
Other
0 stars 3 forks source link

Namespace CSS Selectors #5

Open moahmed opened 10 years ago

moahmed commented 10 years ago

Confine the css with the elements inside the rbox.

For example: .nextLightBox, .prevLightBox, .closeLightBox { color: #777; } Should ideally apply this only to elements in the scope for rbox .container .nextLightBox, .container .prevLightBox, .container .closeLightBox { color: #777; } So if by chance anyboy has a selector by this name on his page it will not be affected.

Also applying css of global selectors is not needed. For example:

Not sure why we want to change the color of body element also body { color: #222; }

batpad commented 10 years ago

@imohkay , could you take a look at this?