WordPress:Codex:Codex CSS

来自站长百科
Xxf3325讨论 | 贡献2008年9月20日 (六) 13:38的版本 (新页面: The purpose of this page is to document some useful styles for use in Codex to make the pages easier to read. The CSS must validate, and if accepted by the Wiki administrators, will be ad...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

The purpose of this page is to document some useful styles for use in Codex to make the pages easier to read. The CSS must validate, and if accepted by the Wiki administrators, will be adopted for general use.


class="basic"

.basic { background: #f7f7f7; border: 1px solid #000; margin: 0; padding: 5px; width: 100%; }


class="important"

.important { background: #f7f7f7; border: 2px dashed #f00; margin: 0; padding: 5px; text-align: center; width: 100%; }


class="code"

.code { background: #ccccff; border: 1px dashed #000; margin: 0; padding: 5px; text-align: left; width: 100%; }


Suggest that we have a distinct way of highlighting code examples here. It may make pages easier to follow in that the page gets broken up that bit more - it is very f7f7f7 around here. I realise that readability is also an issue though.


Thinking about code, there is php, css and possibly xhtml that could be posted here when showing how things are done for example. Would the same colour throughout be good ? Or would a colour each be better ? I don't think we need a colour-fest going on, so if it is more than one, they would need to be carefully chosen. (Take those last two words as meaning 'no involvement from podz :) )