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