Difference between revisions of "Styling cheatsheet"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 75: Line 75:
!id
!id
!content
!content
!template
|-
|-


Line 81: Line 82:
|
|
|Container for a single field
|Container for a single field
|
|-
|-


Line 87: Line 89:
|NB_[system fieldname]
|NB_[system fieldname]
|Label for field
|Label for field
|{default_name}
|-
|-


Line 93: Line 96:
|VB_[system fieldname]
|VB_[system fieldname]
|Value of field / Input for field
|Value of field / Input for field
|{default_value}
|-
|-


Line 99: Line 103:
|HB_[system fieldname]
|HB_[system fieldname]
|Optional help text for the field
|Optional help text for the field
|{default_help}
|-
|-



Revision as of 11:57, 6 March 2013

Shared page styling

All pages are structured in the following CSS class structure

  • .TempusServaPage (root)
    • .menuList
      • .menuItem
    • ... content ...

Content can easily be wrapped around the "TempusServaPage" by use of wrappers

Command bases styling

Menu mode

Simple / Standard

Advanced / Accordion

List mode

  • .TempusServaPage
    • .tableListHeader
    • .viewList
      • .tableList
        • tr
          • td (field names)
        • tr [repeat]
          • td (field values)
      • .pager
        • .pagerLink
        • .pagerPagesize


type class content
tr customStyle_[item status name] Container for a single record line


Variant views

Most list related operations will have a structure like this.

  • .TempusServaPage
    • .tableListHeader
    • [ .viewHeat | .tableStatistics | ... ]
      • .tableList

Note the inner table "tableList", that is present in all list operations. Specific dialogue styling should use the outer tag - example: "tableStatistics".

Item mode

  • .TempusServaPage
    • .tableForm
      • .PAGE_[field PageID]
        • .fieldLabel
        • .fieldValue
        • .fieldNotes

Allthough the ".tableForm" is persent in the default template, there is no guarantee taht the element can be found within the page.

type class id content template
tbody PAGE_[field PageID] Container for a single field
div FieldLabel NB_[system fieldname] Label for field {default_name}
div FieldValue VB_[system fieldname] Value of field / Input for field {default_value}
div FieldNotes HB_[system fieldname] Optional help text for the field {default_help}


The tags in the HTML template are

  • {tablename}
  • {pageselector}
  • {default_start}
    • {default_name}
    • {default_value}
    • {default_help}
  • {default_end}

Other element styling

ITEM page selector

The page selctor may be placed anywhere within the template

  • formpageselector
    • tablePageSelector
      • <node>
        • tablePageSelectorElementLeftActive
        • tablePageSelectorElementActive
        • tablePageSelectorElementRightActive
      • <node>
        • tablePageSelectorElementLeft
        • tablePageSelectorElement
        • tablePageSelectorElementRight