medar |
|
---|---|
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"> </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
|
|
Отредактировано: medar (26.02.2009 16:54, 16 лет назад) |
musiconly |
|
---|---|
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 |
|
---|---|
Yes, it is. Standart Cotonti css classes.
rangjungyeshe.ru
|
musiconly |
|
---|---|
In that case, I vote YES
![]() |
GHengeveld |
|
---|---|
You could ofcourse give the images a class, so users can use
.someimgclass { display:none; }(or visibility:hidden, whatever is preferred). |
jslowik |
|
---|---|
CSS is wonderful. Absolutely yes.
|
Kort |
|
---|---|
Using
<span class="arrow-up"> </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 - создание сайтов, разработка плагинов и тем для Котонти
|
|
Отредактировано: Kort (08.03.2009 19:34, 16 лет назад) |