CSS classes for forms
nav_first.pngFirst: thread:379
Feedback from naive user
Edited: 26 Oct 2011 12:41 by: Sheepdog
Comments: 3
Tags:
nav_prev.pngPrevious: thread:305
Attribute for page-title
Edited: 24 Feb 2010 13:56 by: Steven Heynderickx
Comments: 0
Tags:
Last: thread:141
Which aspects of this design do people want first?
Edited: 11 Nov 2009 12:44 by: leiger
Comments: 14
Tags:
nav_last.png
Next: thread:286
The "image" data type
Edited: 12 Feb 2010 01:45 by: leiger
Comments: 1
Tags:
nav_next.png

pieterhpieterh wrote on 05 Feb 2010 15:31

Proposed CSS classes (somewhat simpler than today's names):

CSS Styling

You can modify the look and feel of your data forms using CSS (either per-site, or per page using the CSS module. This is the CSS model for data forms:

  • table
    class: form-table
    • tr
      class: form-row
      • td
        class: form-labels
        • span
          class: form-label
      • td
        class: form-values
        • span
          class: form-value field-{name}
          class': form-error (added to field while save when there is matching error)
          • {field}
            class: form-{type}
            class': form-hinted (added to field with hint inside)
          • span
            class: form-message

Symbols:

{name} - name of the field
{type} - type of the field (text, select, pagepath etc.)


Start a new sub-thread

Will the use of tables as a layout change? By Steven Heynderickx 2 Comments 06 Feb 2010 22:55

Comments: 1

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License