3 <li><a href="#Appendix C: TWiki CSS"> Appendix C: TWiki CSS</a><ul>
4 <li><a href="#Who should read this document?"> Who should read this document?</a></li>
5 <li><a href="#Naming conventions"> Naming conventions</a><ul>
6 <li><a href="#TWiki styles in core code"> TWiki styles in core code</a></li>
7 <li><a href="#TWiki Styles in Plugins"> TWiki Styles in Plugins</a></li>
8 <li><a href="#TWiki Styles in Templates"> TWiki Styles in Templates</a></li>
9 <li><a href="#TWiki Styles used in =configure="> TWiki Styles used in configure</a></li>
10 <li><a href="#TWiki Styles in topics"> TWiki Styles in topics</a></li>
11 <li><a href="#TWiki Styles in Skins"> TWiki Styles in Skins</a></li>
14 <li><a href="#Tips"> Tips</a></li>
20 # <a name="Appendix C: TWiki CSS"></a> Appendix C: TWiki CSS
22 _Listing of CSS class names emitted from TWiki core code and standard plugins, for the Dakar release._
24 ## <a name="Who should read this document?"></a> Who should read this document?
26 Most html elements generated by TWiki core code now have Cascading Style Sheet (CSS) tags. **_Skin builders_** and others who want to change the appearance of the default TWiki installation or any of the skins can use this document to see what styles can be created for these html elements.
28 ## <a name="Naming conventions"></a> Naming conventions
30 1. All TWiki class names have the prefix `twiki`. So: twikiAlert, twikiToc, etcetera. Remember that CSS class names are case sensitive - TWiki CSS uses lowercase `tw`.
31 2. If you define your own CSS classes, it is preferable that you do not use the `twiki` prefix to prevent undesired overriding effects.
33 A wide range of standard styles are used in the TWiki core code and topics, and more are used in plugins. The following is an exhaustive list of all styles defined by the Pattern skin. For the most part, the names are the only documentation of the purpose of the style. For more information on how these styles are used, read the code (sorry!)
35 ### <a name="TWiki styles in core code"></a> TWiki styles in core code
37 <table border="1" cellpadding="0" cellspacing="0">
39 <td> .twikiAlert </td>
40 <td> Client.pm, Form.pm, Statistics.pm </td>
43 <td> .twikiFirstCol </td>
52 <td> Changes.pm, Search.pm </td>
59 <td> .twikiTopRow </td>
63 <td> .twikiSummary </td>
67 <td> .twikiGrayText </td>
71 <td> .twikiCheckBox </td>
79 <td> .twikiNewLink </td>
83 <td> .twikiAnchorLink </td>
87 <td> .twikiCurrentWebHomeLink </td>
91 <td> .twikiCurrentTopicLink </td>
95 <td> .twikiEmulatedLink </td>
99 <td> .twikiWebIndent </td>
104 <table border="1" cellpadding="0" cellspacing="0">
106 <td> .twikiEditFormDateField </td>
110 <td> .twikiEditFormTextField </td>
114 <td> .twikiEditFormLabelField </td>
118 <td> .twikiEditFormTextAreaField </td>
122 <td> .twikiEditFormCheckboxButton </td>
126 <td> .twikiEditFormCheckboxField </td>
130 <td> .twikiRadioButton </td>
134 <td> .twikiEditFormRadioField </td>
138 <td> .twikiEditFormError </td>
143 <table border="1" cellpadding="0" cellspacing="0">
145 <td> .twikiDiffTable </td>
149 <td> .twikiDiffDeletedHeader </td>
153 <td> .twikiDiffDeletedMarker </td>
157 <td> .twikiDiffDeletedText </td>
161 <td> .twikiDiffAddedHeader </td>
165 <td> .twikiDiffAddedMarker </td>
169 <td> .twikiDiffAddedText </td>
173 <td> .twikiDiffChangedHeader </td>
177 <td> .twikiDiffChangedText </td>
181 <td> .twikiDiffUnchangedText </td>
185 <td> .twikiDiffUnchangedTextContents </td>
189 <td> .twikiDiffLineNumberHeader </td>
194 <table border="1" cellpadding="0" cellspacing="0">
200 <td> .twikiTocTitle </td>
205 ### <a name="TWiki Styles in Plugins"></a> TWiki Styles in Plugins
207 <table border="1" cellpadding="0" cellspacing="0">
209 <td> .twikiTable </td>
210 <td>[[Main/TablePlugin]]</td>
213 <td> .twikiSortedAscendingCol </td>
214 <td>[[Main/TablePlugin]]</td>
217 <td> .twikiSortedDescendingCol </td>
218 <td>[[Main/TablePlugin]]</td>
221 <td> .twikiFirstCol </td>
222 <td>[[Main/TablePlugin]]</td>
225 <td> .twikiTableEven </td>
226 <td>[[Main/TablePlugin]]</td>
229 <td> .twikiTableOdd </td>
230 <td>[[Main/TablePlugin]]</td>
234 ### <a name="TWiki Styles in Templates"></a> TWiki Styles in Templates
236 <table border="1" cellpadding="0" cellspacing="0">
238 <td> .twikiFormTable </td>
239 <td> formtables.tmpl, form.tmpl </td>
242 <td> .twikiFormTableHRow </td>
243 <td> formtables.tmpl, form.tmpl </td>
246 <td> .twikiFormTableRow </td>
247 <td> formtables.tmpl </td>
250 <td> .twikiFormTableFooter </td>
251 <td> formtables.tmpl </td>
254 <td> .twikiAttachments </td>
255 <td> attachtables.tmpl </td>
258 <td> .twikiEditForm </td>
262 <td> .twikiSubmit </td>
266 <td> .twikiSubmitDisabled </td>
270 <td> .twikiInputField </td>
274 <td> .twikiInputFieldDisabled </td>
278 <td> .twikiButton </td>
282 <td> .twikiLeft </td>
286 <td> .twikiRight </td>
290 <td> .twikiClear </td>
294 <td> .twikiHidden </td>
298 <td> .twikiSmall </td>
302 <td> .twikiBottomRow </td>
306 <td> .twikiSRAuthor </td>
310 <td> .twikiSRRev </td>
314 <td> .twikiPageForm </td>
318 <td> .twikiSeparator </td>
322 <td> .twikiAccessKey </td>
326 <td> .twikiLinkLabel </td>
330 <td> .twikiFormSteps </td>
331 <td> container around a form, such as the attach form: attach.tmpl </td>
334 <td> .twikiFormStep </td>
339 ### <a name="TWiki Styles used in <code>configure="></a> TWiki Styles used in =configure
341 <table border="1" cellpadding="0" cellspacing="0">
343 <td> #twikiLogin </td>
347 <td> .twikiFormSteps </td>
351 <td> .twikiFormStep </td>
356 ### <a name="TWiki Styles in topics"></a> TWiki Styles in topics
358 <table border="1" cellpadding="0" cellspacing="0">
360 <td> .twikiBroadcastMessage </td>
361 <td>[[TWiki/TWikiPreferences]]</td>
364 <td> #twikiSearchTable </td>
365 <td>[[TWiki/WebSearch]], [[TWiki/WebSearchAdvanced]]</td>
369 ### <a name="TWiki Styles in Skins"></a> TWiki Styles in Skins
371 <table border="1" cellpadding="0" cellspacing="0">
373 <td> #twikiLogin </td>
374 <td> login.pattern.tmpl </td>
379 ## <a name="Tips"></a> Tips
381 PatternSkin makes extensive use of CSS in its templates. Read the [[PatternSkin]] topic and [[PatternSkinCss]] to learn more about creating your own CSS-based skin.
383 Practical introduction to CSS: <http://www.w3.org/Style/LieBos2e/enter/>
385 **_Related Topics:_** [[TWikiSkins]], [[PatternSkin]], [[DeveloperDocumentationCategory]], [[AdminDocumentationCategory]]