1 # <a name="Appendix C: TWiki CSS"></a> Appendix C: TWiki CSS
3 _Listing of CSS class names emitted from TWiki core code and standard plugins, for the Dakar release._
7 <li><a href="#Appendix C: TWiki CSS"> Appendix C: TWiki CSS</a><ul>
8 <li><a href="#Who should read this document?"> Who should read this document?</a></li>
9 <li><a href="#Naming conventions"> Naming conventions</a><ul>
10 <li><a href="#TWiki styles in core code"> TWiki styles in core code</a></li>
11 <li><a href="#TWiki Styles in Plugins"> TWiki Styles in Plugins</a><ul>
12 <li><a href="#TablePlugin"> TablePlugin</a></li>
15 <li><a href="#TWiki Styles in Templates"> TWiki Styles in Templates</a></li>
16 <li><a href="#TWiki Styles used in =configure="> TWiki Styles used in configure</a></li>
17 <li><a href="#TWiki Styles in topics"> TWiki Styles in topics</a></li>
18 <li><a href="#TWiki Styles in Skins"> TWiki Styles in Skins</a></li>
19 <li><a href="#Reserved Styles"> Reserved Styles</a></li>
22 <li><a href="#Tips"> Tips</a></li>
28 ## <a name="Who should read this document?"></a> Who should read this document?
30 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.
32 ## <a name="Naming conventions"></a> Naming conventions
34 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`.
35 2. If you define your own CSS classes, it is preferable that you do not use the `twiki` prefix to prevent undesired overriding effects.
37 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!)
39 ### <a name="TWiki styles in core code"></a> TWiki styles in core code
41 <table border="1" cellpadding="0" cellspacing="0">
43 <td> .twikiAlert </td>
44 <td> Client.pm, Form.pm, Statistics.pm </td>
47 <td> .twikiFirstCol </td>
56 <td> Changes.pm, Search.pm </td>
63 <td> .twikiTopRow </td>
67 <td> .twikiSummary </td>
71 <td> .twikiGrayText </td>
75 <td> .twikiCheckBox </td>
83 <td> .twikiNewLink </td>
87 <td> .twikiAnchorLink </td>
91 <td> .twikiCurrentWebHomeLink </td>
95 <td> .twikiCurrentTopicLink </td>
99 <td> .twikiEmulatedLink </td>
100 <td> Preview.pm </td>
103 <td> .twikiWebIndent </td>
108 <table border="1" cellpadding="0" cellspacing="0">
110 <td> .twikiEditFormDateField </td>
114 <td> .twikiEditFormTextField </td>
118 <td> .twikiEditFormLabelField </td>
122 <td> .twikiEditFormTextAreaField </td>
126 <td> .twikiEditFormCheckboxButton </td>
130 <td> .twikiEditFormCheckboxField </td>
134 <td> .twikiRadioButton </td>
138 <td> .twikiEditFormRadioField </td>
142 <td> .twikiEditFormError </td>
147 <table border="1" cellpadding="0" cellspacing="0">
149 <td> .twikiDiffTable </td>
153 <td> .twikiDiffDeletedHeader </td>
157 <td> .twikiDiffDeletedMarker </td>
161 <td> .twikiDiffDeletedText </td>
165 <td> .twikiDiffAddedHeader </td>
169 <td> .twikiDiffAddedMarker </td>
173 <td> .twikiDiffAddedText </td>
177 <td> .twikiDiffChangedHeader </td>
181 <td> .twikiDiffChangedText </td>
185 <td> .twikiDiffUnchangedText </td>
189 <td> .twikiDiffUnchangedTextContents </td>
193 <td> .twikiDiffLineNumberHeader </td>
197 <td> .twikiDiffDebug </td>
201 <td> .twikiDiffDebugRight </td>
205 <td> .twikiDiffDebugLeft </td>
210 <table border="1" cellpadding="0" cellspacing="0">
216 <td> .twikiTocTitle </td>
221 ### <a name="TWiki Styles in Plugins"></a> TWiki Styles in Plugins
223 #### <a name="TablePlugin"></a> [[TablePlugin]]
225 <table border="1" cellpadding="0" cellspacing="0">
227 <td><code>.twikiTable</code></td>
231 <td><code>.twikiSortedCol</code></td>
232 <td> A sorted column </td>
235 <td><code>.twikiSortedAscendingCol</code></td>
236 <td> Sorted column, ascending </td>
239 <td><code>.twikiSortedDescendingCol</code></td>
240 <td> Sorted column, descending </td>
243 <td><code>.tableSortIcon</code></td>
244 <td> The sort icon holder (span) </td>
247 <td><code>.twikiFirstCol</code></td>
248 <td> The first column </td>
251 <td><code>.twikiTableEven</code></td>
252 <td> Even numbered rows </td>
255 <td><code>.twikiTableOdd</code></td>
256 <td> Odd numbered rows </td>
259 <td><code>.twikiTableCol</code> + column number </td>
260 <td> Unique column identifier, for instance: <code>twikiTableCol0</code></td>
263 <td><code>.twikiTableRow</code> + type + row number </td>
264 <td> Unique row identifier, for instance: <code>twikiTableRowdataBg0</code></td>
268 ### <a name="TWiki Styles in Templates"></a> TWiki Styles in Templates
270 <table border="1" cellpadding="0" cellspacing="0">
272 <td> .twikiPage </td>
273 <td> twiki.tmpl </td>
276 <td> .twikiMiddleContainer </td>
277 <td> twiki.tmpl </td>
280 <td> .twikiMain </td>
281 <td> twiki.tmpl </td>
284 <td> .twikiFormTable </td>
285 <td> formtables.tmpl, form.tmpl </td>
288 <td> .twikiFormTableHRow </td>
289 <td> formtables.tmpl, form.tmpl </td>
292 <td> .twikiFormTableRow </td>
293 <td> formtables.tmpl </td>
296 <td> .twikiFormTableFooter </td>
297 <td> formtables.tmpl </td>
300 <td> .twikiAttachments </td>
301 <td> attachtables.tmpl </td>
304 <td> .twikiEditForm </td>
308 <td> .twikiSubmit </td>
309 <td> Submit button </td>
312 <td> .twikiSubmitDisabled </td>
313 <td> Disabled submit button </td>
316 <td> .twikiInputField </td>
320 <td> .twikiInputFieldDisabled </td>
324 <td> .twikiInputFieldReadOnly </td>
328 <td> .twikiInputFieldFocus </td>
329 <td> For Internet Explorer that does not recognize the <code>:focus</code> pseudo class selector </td>
332 <td> .twikiInputFieldBeforeFocus </td>
333 <td> for use with Javascript: the color of the input text when not clicked in the field </td>
336 <td> .twikiSelect </td>
337 <td> Select dropdown menu </td>
340 <td> .twikiTextarea </td>
344 <td> .twikiTextareaRawView </td>
348 <td> .twikiButton </td>
352 <td> .twikiFocus </td>
353 <td> Behaviour marker so a field can be given input focus </td>
356 <td> .twikiLeft </td>
360 <td> .twikiRight </td>
364 <td> .twikiClear </td>
368 <td> .twikiHidden </td>
372 <td> .twikiSmall </td>
376 <td> .twikiBottomRow </td>
380 <td> .twikiSRAuthor </td>
384 <td> .twikiSRRev </td>
388 <td> .twikiPageForm </td>
392 <td> .twikiSeparator </td>
396 <td> .twikiAccessKey </td>
400 <td> .twikiLinkLabel </td>
404 <td> .twikiFormSteps </td>
405 <td> container around a form, such as the attach form: attach.tmpl </td>
408 <td> .twikiFormStep </td>
412 <td> .twikiNoBreak </td>
413 <td> no break on whitespace </td>
416 <td> .twikiMakeVisible </td>
417 <td> For elements that should only be visible with javascript on: default set to hidden, is made visible by javascript. Defaults to inline. </td>
420 <td> .twikiMakeVisibleInline </td>
421 <td> For <code>span</code> elements that should only be visible with javascript on: default set to hidden, is made visible by javascript. </td>
424 <td> .twikiMakeVisibleBlock </td>
425 <td> For <code>div</code> elements that should only be visible with javascript on: default set to hidden, is made visible by javascript. </td>
428 <td> .twikiMakeHidden </td>
429 <td> For elements that should be <strong>hidden</strong> with javascript on: no default style, is made hidden by javascript. </td>
432 <td> .twikiFooterNote </td>
436 <td> .twikiPopUp </td>
437 <td> Behaviour marker so a popup-window can be invoked </td>
440 <td> .twikiContentHeader </td>
441 <td> container around optional html placed before topic text </td>
444 <td> .twikiContentFooter </td>
445 <td> container around optional html placed after topic text </td>
449 ### <a name="TWiki Styles used in <code>configure="></a> TWiki Styles used in =configure
451 <table border="1" cellpadding="0" cellspacing="0">
453 <td> #twikiLogin </td>
457 <td> .twikiFormSteps </td>
461 <td> .twikiFormStep </td>
466 ### <a name="TWiki Styles in topics"></a> TWiki Styles in topics
468 <table border="1" cellpadding="0" cellspacing="0">
470 <td> .twikiBroadcastMessage </td>
471 <td> %SYSTEMWEB%.TWikiPreferences </td>
474 <td> #twikiSearchTable </td>
475 <td> %SYSTEMWEB%.WebSearch, %SYSTEMWEB%.WebSearchAdvanced </td>
479 ### <a name="TWiki Styles in Skins"></a> TWiki Styles in Skins
481 <table border="1" cellpadding="0" cellspacing="0">
483 <td> #twikiLogin </td>
484 <td> login.pattern.tmpl </td>
489 ### <a name="Reserved Styles"></a> Reserved Styles
491 <table border="1" cellpadding="0" cellspacing="0">
493 <td> .twikiImage </td>
494 <td> defined in [[Main/PatternSkin]]</td>
495 <td> div creates border around enclosed image </td>
498 <td> .twikiNotification </td>
499 <td> defined in [[Main/PatternSkin]]</td>
500 <td> temporary alert, lighter than broadcast message </td>
503 <td> .twikiUnvisited </td>
504 <td> defined in [[Main/PatternSkin]]</td>
505 <td> link style that ignores the visited link state; useful for form links </td>
509 ## <a name="Tips"></a> Tips
511 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.
513 Practical introduction to CSS: <http://www.w3.org/Style/LieBos2e/enter/>
515 **_Related Topics:_** [[TWikiSkins]], [[PatternSkin]], [[DeveloperDocumentationCategory]], [[AdminDocumentationCategory]]