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

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

css testing

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    color: inherit;
121}
122
123.commanditem
124{
125    margin: 0 10px 0 0;
126    white-space: nowrap;
127}
128
129.commandtext
130{
131    padding-right: 1em;
132}
133
134.command_left
135{
136    float: left;
137    white-space: nowrap;
138}
139
140.command_right
141{
142    position: relative;
143    visibility: visible;
144    white-space: nowrap;
145    float: right;
146}
147
148/*_____________________ UTILITIES ____________________*/
149.nowrap
150{
151    white-space: nowrap;
152}
153
154.clearboth
155{
156    clear: both;
157}
158
159.center
160{
161    text-align: center;
162}
163
164.right
165{
166    text-align: right;
167}
168
169.padright
170{
171    padding: 0 10px 0 0;
172}
173
174.padleft
175{
176    padding: 0 0 0 10px;
177}
178
179.help
180{
181    color: #666;
182    font-weight: normal;
183}
184
185.monospaced
186{
187    font-family: monaco, courier;
188    font-weight: normal;
189}
190
191/* .pkg class wraps enclosing block element around inner floated elements */
192.pkg:after
193{
194    content: " ";
195    display: block;
196    visibility: hidden;
197    clear: both;
198    height: 0.1px;
199    font-size: 0.1em;
200    line-height: 0.0;
201}
202* html .pkg { display: block; }
203/* no ie mac \*/
204* html .pkg { height: 1%; }
205.pkg { display: block; }
206/* */
Note: See TracBrowser for help on using the repository browser.