Do you think ?

73.7% 14
5.3% 1
21.1% 4

19 Datum 2009-02-26 16:43

Forums / Cotonti / Core Labs / Archive / Poll: HTML in core - total css-ing

medar
#1 2009-02-26 16:43
Now our core output many html which not customizable. Often this elements no need on some sites. Example - arrows and forum pictograms. Now they are displayed as follows:
<img src="skins/$skin/img/system/arrow-up.gif" />

I propose replace it by this:
<span class="arrow-up">&nbsp;</span>

In which case we will be able to flexibly adjust the display by css. For example for arrow up:
.arrow-up { background: url(img/system/up.png) no-repeat; padding-right: 13px; text-decoration: none; }


I also propose set unique css-class for each html-element in core output. This will set the display in skin (width of input fields etc) more flexible and helps solve many "html-in-core" problems, without many small tpl-files.
rangjungyeshe.ru

Dit bericht is bewerkt door medar (2009-02-26 16:54, 15 jaren ago)
musiconly
#2 2009-02-26 17:38
I think I've seen this in Joomla.

You have like standard CSS file with every CSS class which is used for everything in system.
Basically, it looks something like this :

/*Joomla Stuff*/
.com_heading {}
.com_subhead {}
.prev_bt {}
.next_bt {}

If this is what you're trying to say, I vote yes :-)
medar
#3 2009-02-26 18:38
Yes, it is. Standart Cotonti css classes.
rangjungyeshe.ru
musiconly
#4 2009-02-27 02:55
In that case, I vote YES :-)
GHengeveld
#5 2009-02-27 05:18
You could ofcourse give the images a class, so users can use
.someimgclass { display:none; }
(or visibility:hidden, whatever is preferred).
jslowik
#6 2009-02-27 05:27
CSS is wonderful. Absolutely yes.
Kort
#7 2009-03-08 17:42
Using
<span class="arrow-up">&nbsp;</span>
would cause a lot of redundant HTML-code. This post is about lists mostly, and it would be more logical to simply assign a class to a list (ul) in a skin. This way skinmaker will have much more flexibility and the code will be cleaner.
SED.by - создание сайтов, разработка плагинов и тем для Котонти

Dit bericht is bewerkt door Kort (2009-03-08 19:34, 15 jaren ago)