Ignore:
Timestamp:
Jan 7, 2014 2:35:40 AM (10 years ago)
Author:
anonymous
Message:

Fixed css widths of input elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/css/utilities.inc.css

    r454 r455  
    11/**
    2  * utilities.css
     2 * utilities.inc.css
    33 *
    44 * CSS used often in Strangecode applications. Do not arbitrarily
     
    1414input.sc-medium, textarea.sc-medium, select.sc-medium,
    1515input.sc-large, textarea.sc-large, select.sc-large,
    16 input.sc-full, textarea.sc-full, select.sc-full { margin: 0 0.5em 0 0; }
     16input.sc-full, textarea.sc-full, select.sc-full { margin: 0 0.5em 0 0; padding: 3px 0.25em; border-width: 1px; }
    1717
    18 input.sc-tiny, textarea.sc-tiny, select.sc-tiny, label.sc-tiny          { width: 4.75em; }
    19 input.sc-small, textarea.sc-small, select.sc-small, label.sc-small      { width: 10em; }
    20 input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium  { width: 20.5em; }
    21 input.sc-large, textarea.sc-large, select.sc-large, label.sc-large      { width: 41.5em; }
     18/*
     19The following widths are calculated using `width = (maxwidth - (1.2 * multiple)) / multiple`
     20where width is the saught value, maxwidth is the width of a sc-large, and multiple is the number
     21of times an element fits within maxwidth (i.e. sc-tiny has a multiple of 8).
     22The values are dependent on the margin, padding, and border set above.
     23*/
     24input.sc-tiny, textarea.sc-tiny, select.sc-tiny, label.sc-tiny          { width: 4.54em; }
     25input.sc-small, textarea.sc-small, select.sc-small, label.sc-small      { width: 10.17em; }
     26input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium  { width: 21.44em; }
     27input.sc-large, textarea.sc-large, select.sc-large, label.sc-large      { width: 44em; }
    2228input.sc-full, textarea.sc-full, select.sc-full, label.sc-full          { width: 100%; }
    2329
Note: See TracChangeset for help on using the changeset viewer.