[1] | 1 | /** |
---|
[455] | 2 | * utilities.inc.css |
---|
[1] | 3 | * |
---|
| 4 | * CSS used often in Strangecode applications. Do not arbitrarily |
---|
| 5 | * edit this code! This file is used between many sites and modifying it may result |
---|
| 6 | * in something breaking. Instead, overwrite these values in a specific site by |
---|
| 7 | * adding new definitions to a screen.css file. |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | /*_____________________ FORMS ____________________*/ |
---|
[25] | 11 | |
---|
[121] | 12 | input.sc-tiny, textarea.sc-tiny, select.sc-tiny, |
---|
| 13 | input.sc-small, textarea.sc-small, select.sc-small, |
---|
| 14 | input.sc-medium, textarea.sc-medium, select.sc-medium, |
---|
[168] | 15 | input.sc-large, textarea.sc-large, select.sc-large, |
---|
[455] | 16 | input.sc-full, textarea.sc-full, select.sc-full { margin: 0 0.5em 0 0; padding: 3px 0.25em; border-width: 1px; } |
---|
[25] | 17 | |
---|
[455] | 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; } |
---|
[456] | 25 | input.sc-small, textarea.sc-small, select.sc-small, label.sc-small { width: 10.15em; } |
---|
| 26 | input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium { width: 21.42em; } |
---|
[455] | 27 | input.sc-large, textarea.sc-large, select.sc-large, label.sc-large { width: 44em; } |
---|
[160] | 28 | input.sc-full, textarea.sc-full, select.sc-full, label.sc-full { width: 100%; } |
---|
[1] | 29 | |
---|
[160] | 30 | select.sc-small { width: 10em; } |
---|
| 31 | select.sc-medium { width: 20.5em; } |
---|
| 32 | |
---|
[121] | 33 | textarea.sc-twolines, select.sc-twolines { height: 3em; } |
---|
| 34 | textarea.sc-short, select.sc-short { height: 8em; } |
---|
| 35 | textarea.sc-tall, select.sc-tall { height: 25em; } |
---|
| 36 | textarea.sc-fullscreen, select.sc-fullscreen { height: 40em; } |
---|
[1] | 37 | |
---|
| 38 | /*_____________________ UTILITIES ____________________*/ |
---|
[160] | 39 | .sc-center { text-align: center; } |
---|
[121] | 40 | .sc-clearboth { clear: both; } |
---|
| 41 | .sc-help { color: #999; font-weight: normal; } |
---|
[160] | 42 | .sc-hidden { display: none; visibility: hidden; } |
---|
[267] | 43 | .sc-monospaced { font-family: monospace; } |
---|
[259] | 44 | .sc-padleft { padding-left: 10px; } |
---|
| 45 | .sc-padright { padding-right: 10px; } |
---|
[160] | 46 | .sc-right { text-align: right; } |
---|
[254] | 47 | .sc-normal { font-weight: normal; } |
---|
[269] | 48 | .sc-nowrap { white-space: nowrap; } |
---|
[270] | 49 | .sc-dim { |
---|
| 50 | filter:alpha(opacity=25); |
---|
| 51 | -moz-opacity:.25; |
---|
| 52 | opacity:.25; |
---|
| 53 | } |
---|
[406] | 54 | .sc-note:hover { cursor: help; } |
---|
[454] | 55 | .sc-ellipsis { |
---|
| 56 | overflow: hidden; |
---|
| 57 | white-space: nowrap; |
---|
| 58 | text-overflow: ellipsis; |
---|
| 59 | } |
---|
[1] | 60 | |
---|
[121] | 61 | /* .sc-pkg class wraps enclosing block element around inner floated elements */ |
---|
| 62 | .sc-pkg:after { content: " "; display: block; visibility: hidden; clear: both; height: 0.1px; font-size: 0.1em; line-height: 0.0; } |
---|
| 63 | * html .sc-pkg { display: block; } |
---|
[51] | 64 | /* no ie mac \*/ |
---|
[121] | 65 | * html .sc-pkg { height: 1%; } |
---|
| 66 | .sc-pkg { display: block; } |
---|
[51] | 67 | /* */ |
---|