BBC icons using gifs as backgrounds?

Started by Biology Forums, October 22, 2014, 02:37:05 PM

Previous topic - Next topic

Biology Forums

I'm surprised to see how the BBC icons haven't been replaced with CSS in SMF 2.x. Is this something being implemented? For example:

<img id="BBCBox_message_button_1_15" src="http://media.simplemachinesweb.com/smf/default/images/bbc/code.gif" align="bottom" width="23" height="22" alt="Insert Code" title="Insert Code" style="cursor: pointer; background-image: url(http://media.simplemachinesweb.com/smf/default/images/bbc/bbc_bg.gif);">

The width, height, and style can be placed into one simple CSS class

div.bbcode img {width: 23px; height: 22px; cursor: pointer; background-image: url(http://media.simplemachinesweb.com/smf/default/images/bbc/bbc_bg.gif);}

div.bbcode img:hover {background-image: url(http://media.simplemachinesweb.com/smf/default/images/bbc/bbc_hoverbg.gif);}


This would free up so much code and use NO Javascript.

Kindred

nothing further will be done with this in 2.0...   have you looked at 2.1?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


Kindred

there are several... or you can set up your own...

I have one at test2.turtleshellprod.com
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ARG01

Any and/or all images could be given their own css attributes. Sure this would make things easier for individual placement/positioning, especially for customizers but who has the time?  ;D
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Illori

a lot of the images in 2.1 are using sprites/css [a lot if not almost all of them]

ARG01

Quote from: Illori on October 22, 2014, 02:57:07 PM
a lot of the images in 2.1 are using sprites/css [a lot if not almost all of them]

Excellent. That just makes things even easier.  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Biology Forums

Quote from: Kindred on October 22, 2014, 02:54:09 PM
there are several... or you can set up your own...

I have one at test2.turtleshellprod.com


This thing is BEAUTIFUL, wow, so impressed with what has been done! This puts 2.0.x to s%&$, pardon my language.

Gwenwyfar

I admit I found it strange it doesn't use sprites already, as the rest of smf does make a good use of sprites. Great that its already going to be added :)
"It is impossible to communicate with one that does not wish to communicate"

Advertisement: