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

Last change on this file since 20 was 20, checked in by scdev, 19 years ago

Tons of little updates and bugfixes. CSS updates to templates and core css files. File upload ability to module_maker. Remade Upload interface to use setParam/getParam.

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 0.5em 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: 0.5em;
26}
27
28input
29{
30    margin: 0.5em 0.5em 0 0;
31}
32
33form table select, form table input
34{
35    margin-top: 0;
36}
37
38/*
39BEAU: 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.
40*/
41input.tiny, textarea.tiny
42{
43    width: 5em;
44}
45
46input.small, textarea.small
47{
48    width: 10em;
49}
50
51input.medium, textarea.medium
52{
53    width: 20.5em;
54}
55
56input.large, textarea.large
57{
58    width: 41.5em;
59}
60
61textarea
62{
63    height: 8em;
64}
65
66textarea.twolines
67{
68    height: 3em;
69}
70
71textarea.short
72{
73    height: 8em;
74}
75
76textarea.tall
77{
78    height: 25em;
79}
80
81textarea.fullscreen
82{
83    height: 40em;
84}
85
86/* 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? */
87select.small
88{
89    width: 10em;
90}
91
92select.medium
93{
94    width: 20.5em;
95}
96
97form label
98{
99    padding: 7px 0px 0px 0px;
100    font-weight: bold;
101}
102
103/* BEAU: We need a .formtext substitute...something like a label tag but not bold! */
104
105/*_____________________ COMMANDS ____________________*/
106#commandbox
107{
108    padding: 5px;
109    margin: 0 0 .5em 0;
110    border: black 1px dotted;
111    background-color: #DDD;
112}
113
114.commanditem
115{
116    margin: 0 10px 0 0;
117    white-space: nowrap;
118}
119
120.commandtext
121{
122    padding-right: 1em;
123}
124
125.command_left
126{
127    float:left; 
128    white-space: nowrap;
129}
130
131.command_right
132{
133    position: relative;
134    visibility: visible;
135    white-space: nowrap;
136    float:right; 
137}
138
139/*_____________________ UTILITIES ____________________*/
140.nowrap
141{
142    white-space: nowrap;
143}
144
145.clearboth
146{
147    clear: both;
148}
149
150.center
151{
152    text-align: center;
153}
154
155.right
156{
157    text-align: right;
158}
159
160.padright
161{
162    padding: 0 10px 0 0;
163}
164
165.padleft
166{
167    padding: 0 0 0 10px;
168}
169
170.help
171{
172    color: #999;
173    font-weight: normal;
174}
175
176.monospaced
177{
178    font-family: monaco, courier;
179    font-weight: normal;
180}
Note: See TracBrowser for help on using the repository browser.