source: trunk/css/utilities.inc.css @ 456

Last change on this file since 456 was 456, checked in by anonymous, 10 years ago

Fixed css widths of input elements. v2

File size: 2.8 KB
Line 
1/**
2 * utilities.inc.css
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 ____________________*/
11
12input.sc-tiny, textarea.sc-tiny, select.sc-tiny,
13input.sc-small, textarea.sc-small, select.sc-small,
14input.sc-medium, textarea.sc-medium, select.sc-medium,
15input.sc-large, textarea.sc-large, select.sc-large,
16input.sc-full, textarea.sc-full, select.sc-full { margin: 0 0.5em 0 0; padding: 3px 0.25em; border-width: 1px; }
17
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.15em; }
26input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium  { width: 21.42em; }
27input.sc-large, textarea.sc-large, select.sc-large, label.sc-large      { width: 44em; }
28input.sc-full, textarea.sc-full, select.sc-full, label.sc-full          { width: 100%; }
29
30select.sc-small     { width: 10em; }
31select.sc-medium    { width: 20.5em; }
32
33textarea.sc-twolines, select.sc-twolines              { height: 3em; }
34textarea.sc-short, select.sc-short                    { height: 8em; }
35textarea.sc-tall, select.sc-tall                      { height: 25em; }
36textarea.sc-fullscreen, select.sc-fullscreen          { height: 40em; }
37
38/*_____________________ UTILITIES ____________________*/
39.sc-center { text-align: center; }
40.sc-clearboth { clear: both; }
41.sc-help { color: #999; font-weight: normal; }
42.sc-hidden { display: none; visibility: hidden; }
43.sc-monospaced { font-family: monospace; }
44.sc-padleft { padding-left: 10px; }
45.sc-padright { padding-right: 10px; }
46.sc-right { text-align: right; }
47.sc-normal { font-weight: normal; }
48.sc-nowrap { white-space: nowrap; }
49.sc-dim {
50    filter:alpha(opacity=25);
51    -moz-opacity:.25;
52    opacity:.25;
53}
54.sc-note:hover { cursor: help; }
55.sc-ellipsis {
56    overflow: hidden;
57    white-space: nowrap;
58    text-overflow: ellipsis;
59}
60
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; }
64/* no ie mac \*/
65* html .sc-pkg { height: 1%; }
66.sc-pkg { display: block; }
67/* */
Note: See TracBrowser for help on using the repository browser.