Elements and CSS Classes used in Site Pages

Site content

Tables

For tabular data.

Note: we're phasing out the use of tables that are purely for layout, but we still have some inherited from old code that are lying around, so those are still included here.

Caption
Col 1Col 2Col 3
entire row is striped oddodd (row)odd (row)
entire row is striped eveneven (row)even(row)
only one cell is striped oddblahblah
only one cell is striped evenblahblah

(Like in /manage/tags -- but is this a table, or is it just layout?)

Category 11
Category 22
Category 33

table.grid

Col 1Col 2
1-12-1
2-12-2

Tabbed content

Used in, e.g., the settings pages

Brief information about tab 1

tab 1 contents

Brief information about tab 2

tab 2 contents

Forms

simple-form

Group 1
  • A, B, or C?
  • Checkboxes
  • Not ideal; CSS demo only

Group 2

table-form

Table Caption
Col 1 Col 2 Col 3 Col 4
foo apple 100%
bar banana 1.35%
baz cream cheese cupcake 125,000

choice-list

highlighted simple-form

Buttons / Actions

action-bar extends across the whole page:

action-box displays a box surrounding the list (ul) of elements it contains:

Note: probably will be removed in favor of a consistently styled fieldset containing the submit button once we have all the markup fixed

(consider merging the two into one consistent display?)

collapsible subheader

collapse
Section Header 2

Highlights

highlight-box: small boxes of content important enough to give focus to, but not warnings or errors. May also contain form elements that should be the focus of the page. Link Visited Link
Inset in a highlighted area

info-box/message-box (title v1)

info-box/message-box (title v2)

notes/tips? Link Visited Link

warning-box/message-box (title v1)

warning-box/message-box (title v2)

warning for what the user is viewing, such as adult content interstitials, or protected content pages. Link Visited Link

error-box/message-box (title v1)

error-box/message-box (title v2)

error message for user input. Link Visited Link

  • item 1
  • item 2
  • item 3

.searchhighlight

Some search results with highlighted text. A highlighted link

Other Basic HTML Elements

h1: automatically inserted as a page title on every page

h2

h3

h4

h5
h6
  • item 1
  • item 2
  1. item 1
  2. item 2
term 1
definition 1
term 2
definition 2
small large del ins sub sup quoted text cite
blockquoted text
code Link Visited Link
Col 1Col 2
row 1row 1
row 2row 2
row 3row 3
row 4row 4

Misc / accents

.preview-image:

comment table

cmtbar oddcmtbar odd screenedcmtbar odd highlight
cmtbar evencmtbar even screenedcmtbar even highlight

.column-table: very rarely used (only in managing tags)

labeletc
labelmore etc

.disabled

disabled link or control

.read

read text, probably faded

.detail

detail

.note (merge with detail?)

note

.status-hint (for noting current status, and hint of actions to take)

status-hint

User content

Col 1Col 2
row 1row 1
row 2row 2
row 3row 3
row 4row 4

Things that are lacking:

  • Some kind of consistent appearance for landing pages when viewing a security filter you're not allowed to see, or a tag that doesn't exist
  • Need to figure out what to do for pages like change password, where the highlight box looks awkward extending across the entire page