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

Last change on this file since 51 was 51, checked in by scdev, 18 years ago

${1}

File size: 3.7 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/*_____________________ FORMS ____________________*/
13
14/* BEAU: Had to comment-out all generic definitions... They fucked golbon. I guess the only things to have that are safe are custom class identifiers. Maybe we should standardize on classes we define in the codebase so they never conflict with other people's css, like: codebase_small, or cb_small? */
15/*
16input, select, submit
17{
18    color: #000;
19    margin: 0 0.5em 0 0;
20    padding: 0;
21}
22
23submit
24{
25    font-weight: bold;
26    margin: 0.5em;
27}
28*/
29
30/*
31form table select, form table input
32{
33    margin-top: 0;
34}
35*/
36
37/*
38BEAU: 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. DONE.
39*/
40
41input.tiny, textarea.tiny, select.tiny,
42input.small, textarea.small, select.small,
43input.medium, textarea.medium, select.medium,
44input.large, textarea.large, select.large
45{
46    margin: 0 0.5em 0 0;
47}
48
49input.tiny, textarea.tiny, select.tiny
50{
51    width: 4.75em;
52}
53
54input.small, textarea.small, select.small
55{
56    width: 10em;
57}
58
59input.medium, textarea.medium, select.medium
60{
61    width: 20.5em;
62}
63
64input.large, textarea.large, select.large
65{
66    width: 41.5em;
67}
68
69textarea.twolines, select.twolines
70{
71    height: 3em;
72}
73
74textarea.short, select.short
75{
76    height: 8em;
77}
78
79textarea.tall, select.tall
80{
81    height: 25em;
82}
83
84textarea.fullscreen, select.fullscreen
85{
86    height: 40em;
87}
88
89/* 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? */
90select.small
91{
92    width: 10em;
93}
94
95select.medium
96{
97    width: 20.5em;
98}
99
100/*
101form label
102{
103    padding: 7px 0px 0px 0px;
104    font-weight: bold;
105}
106*/
107
108/* BEAU: We need a .formtext substitute...something like a label tag but not bold! Maybe use "form p { }"? */
109
110
111/*_____________________ COMMANDS ____________________*/
112
113/* Should this be an ID??? */
114#commandbox
115{
116    padding: 5px;
117    margin: 0 0 .5em 0;
118    border: black 1px dotted;
119    background-color: #DDD;
120}
121
122.commanditem
123{
124    margin: 0 10px 0 0;
125    white-space: nowrap;
126}
127
128.commandtext
129{
130    padding-right: 1em;
131}
132
133.command_left
134{
135    float: left;
136    white-space: nowrap;
137}
138
139.command_right
140{
141    position: relative;
142    visibility: visible;
143    white-space: nowrap;
144    float: right;
145}
146
147/*_____________________ UTILITIES ____________________*/
148.nowrap
149{
150    white-space: nowrap;
151}
152
153.clearboth
154{
155    clear: both;
156}
157
158.center
159{
160    text-align: center;
161}
162
163.right
164{
165    text-align: right;
166}
167
168.padright
169{
170    padding: 0 10px 0 0;
171}
172
173.padleft
174{
175    padding: 0 0 0 10px;
176}
177
178.help
179{
180    color: #666;
181    font-weight: normal;
182}
183
184.monospaced
185{
186    font-family: monaco, courier;
187    font-weight: normal;
188}
189
190/* .pkg class wraps enclosing block element around inner floated elements */
191.pkg:after
192{
193    content: " ";
194    display: block;
195    visibility: hidden;
196    clear: both;
197    height: 0.1px;
198    font-size: 0.1em;
199    line-height: 0.0;
200}
201* html .pkg { display: block; }
202/* no ie mac \*/
203* html .pkg { height: 1%; }
204.pkg { display: block; }
205/* */
Note: See TracBrowser for help on using the repository browser.