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

Last change on this file since 559 was 559, checked in by anonymous, 8 years ago

Minor fixes

File size: 2.9 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 {
17    margin: 0 0.5rem 0 0;
18    padding: 3px 0.25rem;
19    border-width: 1px;
20}
21
22/*
23The following widths are calculated using `width = (maxwidth - (1.2 * multiple)) / multiple`
24where width is the sought value, maxwidth is the width of a sc-large, and multiple is the number
25of times an element fits within maxwidth (i.e. sc-tiny has a multiple of 8).
26The values are dependent on the margin, padding, and border set above.
27*/
28input.sc-micro, textarea.sc-micro, select.sc-micro, label.sc-micro      { width: 1.55rem; }
29input.sc-tiny, textarea.sc-tiny, select.sc-tiny, label.sc-tiny          { width: 4.54rem; }
30input.sc-small, textarea.sc-small, select.sc-small, label.sc-small      { width: 10.15rem; }
31input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium  { width: 21.42rem; }
32input.sc-large, textarea.sc-large, select.sc-large, label.sc-large      { width: 44rem; }
33input.sc-full, textarea.sc-full, select.sc-full, label.sc-full          { width: 100%; }
34
35select.sc-small     { width: 10rem; }
36select.sc-medium    { width: 20.5rem; }
37
38textarea.sc-twolines, select.sc-twolines              { height: 3rem; }
39textarea.sc-short, select.sc-short                    { height: 8rem; }
40textarea.sc-tall, select.sc-tall                      { height: 25rem; }
41textarea.sc-fullscreen, select.sc-fullscreen          { height: 40rem; }
42
43/*_____________________ UTILITIES ____________________*/
44.sc-center { text-align: center; }
45.sc-clearboth { clear: both; }
46.sc-help { color: #999; font-weight: normal; }
47.sc-hidden { display: none; }
48.sc-monospaced { font-family: monospace; }
49.sc-padleft { padding-left: 10px; }
50.sc-padright { padding-right: 10px; }
51.sc-marginleft { margin-left: 10px; }
52.sc-marginright { margin-right: 10px; }
53.sc-right { text-align: right; }
54.sc-normal { font-weight: normal; }
55.sc-nowrap { white-space: nowrap; }
56.sc-dim {
57    filter:alpha(opacity=33);
58    -moz-opacity:.33;
59    opacity:.33;
60}
61.sc-note:hover { cursor: help; }
62.sc-ellipsis {
63    overflow: hidden;
64    white-space: nowrap;
65    text-overflow: ellipsis;
66}
67
68/* .sc-pkg class wraps enclosing block element around inner floated elements */
69.sc-pkg:after { content: " "; display: block; visibility: hidden; clear: both; height: 0.1px; font-size: 0.1em; line-height: 0.0; }
70* html .sc-pkg { display: block; }
71/* no ie mac \*/
72* html .sc-pkg { height: 1%; }
73.sc-pkg { display: block; }
74/* */
Note: See TracBrowser for help on using the repository browser.