Changeset 455 for trunk/css/utilities.inc.css
- Timestamp:
- Jan 7, 2014 2:35:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/css/utilities.inc.css
r454 r455 1 1 /** 2 * utilities. css2 * utilities.inc.css 3 3 * 4 4 * CSS used often in Strangecode applications. Do not arbitrarily … … 14 14 input.sc-medium, textarea.sc-medium, select.sc-medium, 15 15 input.sc-large, textarea.sc-large, select.sc-large, 16 input.sc-full, textarea.sc-full, select.sc-full { margin: 0 0.5em 0 0; }16 input.sc-full, textarea.sc-full, select.sc-full { margin: 0 0.5em 0 0; padding: 3px 0.25em; border-width: 1px; } 17 17 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 /* 19 The following widths are calculated using `width = (maxwidth - (1.2 * multiple)) / multiple` 20 where width is the saught value, maxwidth is the width of a sc-large, and multiple is the number 21 of times an element fits within maxwidth (i.e. sc-tiny has a multiple of 8). 22 The values are dependent on the margin, padding, and border set above. 23 */ 24 input.sc-tiny, textarea.sc-tiny, select.sc-tiny, label.sc-tiny { width: 4.54em; } 25 input.sc-small, textarea.sc-small, select.sc-small, label.sc-small { width: 10.17em; } 26 input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium { width: 21.44em; } 27 input.sc-large, textarea.sc-large, select.sc-large, label.sc-large { width: 44em; } 22 28 input.sc-full, textarea.sc-full, select.sc-full, label.sc-full { width: 100%; } 23 29
Note: See TracChangeset
for help on using the changeset viewer.