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