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