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