colorbox icon indicating copy to clipboard operation
colorbox copied to clipboard

Cleanup HTML DOM

Open boulox opened this issue 13 years ago • 4 comments

It's look like you are making some work on the plugin right now. Would you consider a rework of the cbox style to make the lightbox more modern coding? What i mean is mostly to get out most of the img use for styling the border. I know that will break backward compatibility, but that would make colorbox way more awesome.

I am whiling to spend some time to rework on the css for default theme.

boulox avatar Feb 04 '13 17:02 boulox

Absolutely. I hate the grid of floated elements that currently make up the structure and am eliminating all of that in a separate branch that is going to drop IE6 & 7 and legacy jQuery support.

jackmoore avatar Feb 04 '13 17:02 jackmoore

That good news. I believe your are talking about 2.x branch, it look like it's pretty early refactoring for now.

I just push online a custom theme of colorbox i use as starting point on project which didn't use any of the border container div, leave away all the overflow mess... https://github.com/Boulox/colorbox-custom-theme

I am sucks at javascript but again i would definitely spend some time on css if this can help you to push 2.0 out

boulox avatar Feb 04 '13 21:02 boulox

@Boulox nice skin i modified it for my use. you could improve using sprites or a icon font to replace the separate images

quasiperfect avatar Feb 12 '13 14:02 quasiperfect

Thanks. it's mostly a starting point i use in project. Like this it have a lot of issue.

Some features are really hard to realise due to some inline style from the JS. mostly from Overflow and display: block. It's create annoying limitation to make skin. This especially if you wanna make arrow, close btn... out of the colorbox div.

I can provide more details if you interesting at looking at it

boulox avatar Feb 12 '13 21:02 boulox