Do you think ?

73.7% 14
5.3% 1
21.1% 4

19 Datum 26. Februar 2009, 16:43

Foren / Cotonti / Core Labs / Archive / Umfrage: HTML in core - total css-ing

medar
#1 26. Februar 2009, 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

Dieser Beitrag wurde von medar (am 26. Februar 2009, 16:54, vor 15 Jahre) bearbeitet
musiconly
#2 26. Februar 2009, 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 26. Februar 2009, 18:38
Yes, it is. Standart Cotonti css classes.
rangjungyeshe.ru
musiconly
#4 27. Februar 2009, 02:55
In that case, I vote YES :-)
GHengeveld
#5 27. Februar 2009, 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 27. Februar 2009, 05:27
CSS is wonderful. Absolutely yes.
Kort
#7 8. März 2009, 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 - создание сайтов, разработка плагинов и тем для Котонти

Dieser Beitrag wurde von Kort (am 8. März 2009, 19:34, vor 15 Jahre) bearbeitet