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

Last change on this file was 754, checked in by anonymous, 2 years ago

Minor backporting

File size: 3.3 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.textwide, textarea.textwide
49{
50    width: 500px;
51}
52
53input.text, textarea.text
54{
55    width: 250px;
56}
57
58input.textsmall, textarea.textsmall
59{
60    width: 150px;
61}
62
63input.texthalf, textarea.texthalf
64{
65    width: 121px;
66    /*  125 minus 4 to account for the 4px padding on the right  */
67}
68
69input.texttiny, textarea.texttiny
70{
71    width: 71px;
72    /*  75 minus 4 to account for the 4px padding on the right  */
73}
74
75/*textarea
76{
77    height: 8em;
78}*/
79
80/* BEAU: Again, here, "small", "medium", "large" denominations make sense. But how to diferentiate width from height? */
81textarea.twoliner
82{
83    height: 3em;
84}
85
86textarea.paragraphs
87{
88    height: 20em;
89}
90
91textarea.tall
92{
93    height: 40em;
94}
95
96form label
97{
98    font-weight: bold;
99}
100
101/* BEAU: We need a .formtext substitute...something like a label tag but not bold! */
102
103/*_____________________ COMMANDS ____________________*/
104#commandbox, .commandbox
105{
106    padding: 5px;
107    margin: 0 0 .5em 0;
108    border: black 1px dotted;
109    background-color: #DDD;
110}
111
112.commanditem
113{
114    margin: 0 10px 0 0;
115    white-space: nowrap;
116}
117
118.commandtext
119{
120    padding-right: 1em;
121}
122
123.command_left
124{
125    float:left;
126    white-space: nowrap;
127}
128
129.command_right
130{
131    position: relative;
132    visibility: visible;
133    white-space: nowrap;
134    float:right;
135}
136
137/*_____________________ UTILITIES ____________________*/
138.nowrap
139{
140    white-space: nowrap;
141}
142
143.clearboth
144{
145    clear: both;
146}
147
148.center
149{
150    text-align: center;
151}
152
153.right
154{
155    text-align: right;
156}
157
158.padright
159{
160    padding: 0 10px 0 0;
161}
162
163.padleft
164{
165    padding: 0 0 0 10px;
166}
167
168.help
169{
170    color: #999;
171    font-weight: normal;
172}
173
174.monospaced
175{
176    font-family: monaco, courier;
177    font-weight: normal;
178}
179
180.normal { font-weight: normal; }
Note: See TracBrowser for help on using the repository browser.