source: branches/1.1dev/css/utilities.inc.css @ 289

Last change on this file since 289 was 289, checked in by quinn, 17 years ago

Modifications made for tilecity site.

File size: 3.0 KB
Line 
1/**
2 * utilities.css
3 * code by strangecode :: www.strangecode.com :: this document contains copyrighted information
4 *
5 * CSS used often in Strangecode applications. Do not arbitrarily
6 * edit this code! This file is used between many sites and modifying it may result
7 * in something breaking. Instead, overwrite these values in a specific site by
8 * adding new definitions to a screen.css file.
9 */
10
11/* BEAU: I format my CSS using BBEdit's Markup->CSS->Format command. Would you like to use that as well so our code looks consistant? */
12
13/*_____________________ FORMS ____________________*/
14input, select, input.submit
15{
16    color: #000;
17    margin: 0 4px 0 0;
18    padding: 0;
19}
20
21/* BEAU: I changed this to input.submit, since it is an <input> tag. Is that correct? It definition doesn't seem to do anything regardless of how it's set. */
22input.submit
23{
24    font-weight: bold;
25    margin: 1px;
26}
27
28/* BEAU: Should be in EMs? Also, sometimes it is nice to have the select menu be only the width as its contents. How to override this? */
29select
30{
31    width: 250px;
32    margin: 4px 4px 0 0;
33}
34
35input
36{
37    margin: 4px 4px 0 0;
38}
39
40form table select, form table input
41{
42    margin-top: 0;
43}
44
45/*
46BEAU: I want more text box widths! I find need for boxes that fit 5em, 10em, 20em, and 40em widths. These should be in EMs so text can resize and still fit. Since it is useful to apply a width to other form elements to have them similar sizes (not always a text box, such as <select multiple>) I propose renaming them to "input.tiny", "input.small", "input.medium", "input.large", and "input.half" (not sure how you would do "half" in EMs however.
47*/
48input.text, textarea.text
49{
50    width: 250px;
51}
52
53input.textsmall, textarea.textsmall
54{
55    width: 150px;
56}
57
58input.texthalf, textarea.texthalf
59{
60    width: 121px;
61    /*  125 minus 4 to account for the 4px padding on the right  */
62}
63
64/*textarea
65{
66    height: 8em;
67}*/
68
69/* BEAU: Again, here, "small", "medium", "large" denominations make sense. But how to diferentiate width from height? */
70textarea.twoliner
71{
72    height: 3em;
73}
74
75textarea.paragraphs
76{
77    height: 20em;
78}
79
80form label
81{
82    font-weight: bold;
83}
84
85/* BEAU: We need a .formtext substitute...something like a label tag but not bold! */
86
87/*_____________________ COMMANDS ____________________*/
88#commandbox
89{
90    padding: 5px;
91    margin: 0 0 .5em 0;
92    border: black 1px dotted;
93    background-color: #DDD;
94}
95
96.commanditem
97{
98    margin: 0 10px 0 0;
99    white-space: nowrap;
100}
101
102.commandtext
103{
104    padding-right: 1em;
105}
106
107.command_left
108{
109    float:left; 
110    white-space: nowrap;
111}
112
113.command_right
114{
115    position: relative;
116    visibility: visible;
117    white-space: nowrap;
118    float:right; 
119}
120
121/*_____________________ UTILITIES ____________________*/
122.nowrap
123{
124    white-space: nowrap;
125}
126
127.clearboth
128{
129    clear: both;
130}
131
132.center
133{
134    text-align: center;
135}
136
137.right
138{
139    text-align: right;
140}
141
142.padright
143{
144    padding: 0 10px 0 0;
145}
146
147.padleft
148{
149    padding: 0 0 0 10px;
150}
151
152.help
153{
154    color: #999;
155    font-weight: normal;
156}
157
158.monospaced
159{
160    font-family: monaco, courier;
161    font-weight: normal;
162}
Note: See TracBrowser for help on using the repository browser.