| Line | |
|---|
| 1 | input[type=text], |
|---|
| 2 | input[type=password], |
|---|
| 3 | input[type=submit], |
|---|
| 4 | input[type=button], |
|---|
| 5 | input[type=reset], |
|---|
| 6 | a.button, |
|---|
| 7 | button, |
|---|
| 8 | textarea, |
|---|
| 9 | select, |
|---|
| 10 | legend { |
|---|
| 11 | border-radius: 3px; |
|---|
| 12 | max-width: 100%; |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | form { |
|---|
| 16 | display: block; |
|---|
| 17 | margin: 0; |
|---|
| 18 | padding: 0; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | fieldset { |
|---|
| 22 | display: block; |
|---|
| 23 | margin: 1em 0; |
|---|
| 24 | padding: 1em 0.5em; |
|---|
| 25 | border-width: 1px 0; |
|---|
| 26 | border-style: solid; |
|---|
| 27 | border-color: #ccc; |
|---|
| 28 | background: #f7f7f7; |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | input[type=text], |
|---|
| 32 | textarea { |
|---|
| 33 | font-family: $sans-serif-input; |
|---|
| 34 | font-size: 100%; |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | legend { |
|---|
| 38 | padding: 0.2em 0.6em; |
|---|
| 39 | border-width: 1px; |
|---|
| 40 | border-style: solid; |
|---|
| 41 | border-color: #676e78; |
|---|
| 42 | background: #fff; |
|---|
| 43 | margin-bottom: 0.5em; |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | label .maximal, |
|---|
| 47 | textarea.maximal, |
|---|
| 48 | input.maximal, |
|---|
| 49 | select.maximal { |
|---|
| 50 | width: 99%; |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | input[type=text], |
|---|
| 54 | input[type=password], |
|---|
| 55 | textarea, |
|---|
| 56 | select { |
|---|
| 57 | background: #fcfcfc; |
|---|
| 58 | color: #000; |
|---|
| 59 | border-width: 1px; |
|---|
| 60 | border-style: solid; |
|---|
| 61 | border-color: #dfdfdf; |
|---|
| 62 | box-shadow: 1px 1px 2px #f3f3f3 inset; |
|---|
| 63 | padding: 3px; |
|---|
| 64 | vertical-align: top; |
|---|
| 65 | } |
|---|
| 66 | |
|---|
| 67 | input:focus, |
|---|
| 68 | textarea:focus, |
|---|
| 69 | select:focus { |
|---|
| 70 | border-color: #9bca1c; |
|---|
| 71 | } |
|---|
| 72 | |
|---|
| 73 | textarea { |
|---|
| 74 | padding: 2px 0; |
|---|
| 75 | &.maximal { |
|---|
| 76 | resize: vertical; |
|---|
| 77 | } |
|---|
| 78 | .area & { |
|---|
| 79 | display: block; |
|---|
| 80 | width: 100%; |
|---|
| 81 | resize: vertical; |
|---|
| 82 | } |
|---|
| 83 | } |
|---|
| 84 | |
|---|
| 85 | select { |
|---|
| 86 | padding: 2px 0; |
|---|
| 87 | vertical-align: middle; |
|---|
| 88 | } |
|---|
| 89 | |
|---|
| 90 | select.l10n option { |
|---|
| 91 | padding-left: 16px; |
|---|
| 92 | } |
|---|
| 93 | |
|---|
| 94 | option.avail10n { |
|---|
| 95 | background: transparent url(../images/check-on.png) no-repeat 0 50%; |
|---|
| 96 | } |
|---|
| 97 | |
|---|
| 98 | input.invalid, |
|---|
| 99 | textarea.invalid, |
|---|
| 100 | select.invalid { |
|---|
| 101 | border: 1px solid red; |
|---|
| 102 | background: #FFBABA; |
|---|
| 103 | color: #900; |
|---|
| 104 | box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); |
|---|
| 105 | } |
|---|
| 106 | |
|---|
| 107 | input[type=text], |
|---|
| 108 | input[type=password], |
|---|
| 109 | textarea { |
|---|
| 110 | margin-right: .3em; |
|---|
| 111 | } |
|---|
| 112 | |
|---|
| 113 | input[type=checkbox], |
|---|
| 114 | input[type=radio], |
|---|
| 115 | input[type=file] { |
|---|
| 116 | border: none; |
|---|
| 117 | margin: 0 .33em 0 0; |
|---|
| 118 | padding: 0; |
|---|
| 119 | background: transparent; |
|---|
| 120 | } |
|---|
| 121 | input + input[type=checkbox] { |
|---|
| 122 | // Used for js expand/hide (lists, options, ...) |
|---|
| 123 | margin-left: .33em; |
|---|
| 124 | } |
|---|
| 125 | a input { |
|---|
| 126 | // Used for js expand/hide (lists, options, ...) |
|---|
| 127 | margin-right: .33em; |
|---|
| 128 | } |
|---|
| 129 | |
|---|
| 130 | input[type=file] { |
|---|
| 131 | margin-top: .3em; |
|---|
| 132 | margin-bottom: .3em; |
|---|
| 133 | } |
|---|
| 134 | |
|---|
| 135 | optgroup { |
|---|
| 136 | font-weight: bold; |
|---|
| 137 | font-style: normal; |
|---|
| 138 | } |
|---|
| 139 | |
|---|
| 140 | option { |
|---|
| 141 | font-weight: normal; |
|---|
| 142 | } |
|---|
| 143 | |
|---|
| 144 | label, |
|---|
| 145 | label span { |
|---|
| 146 | display: block; |
|---|
| 147 | } |
|---|
| 148 | |
|---|
| 149 | label.ib, |
|---|
| 150 | input.ib { |
|---|
| 151 | display: inline-block; |
|---|
| 152 | } |
|---|
| 153 | |
|---|
| 154 | label.classic { |
|---|
| 155 | display: inline; |
|---|
| 156 | } |
|---|
| 157 | |
|---|
| 158 | label.classic input, |
|---|
| 159 | label span input, |
|---|
| 160 | label.classic select, |
|---|
| 161 | label span select { |
|---|
| 162 | display: inline; |
|---|
| 163 | } |
|---|
| 164 | |
|---|
| 165 | label.required { |
|---|
| 166 | font-weight: bold; |
|---|
| 167 | } |
|---|
| 168 | |
|---|
| 169 | label.required abbr { |
|---|
| 170 | color: #900; |
|---|
| 171 | font-size: 1.3em; |
|---|
| 172 | } |
|---|
| 173 | |
|---|
| 174 | label.bold { |
|---|
| 175 | text-transform: uppercase; |
|---|
| 176 | font-weight: bold; |
|---|
| 177 | margin-top: 2em; |
|---|
| 178 | } |
|---|
| 179 | |
|---|
| 180 | label.area, |
|---|
| 181 | p.area { |
|---|
| 182 | width: inherit !important; |
|---|
| 183 | } |
|---|
| 184 | |
|---|
| 185 | p.field { |
|---|
| 186 | position: relative; |
|---|
| 187 | label { |
|---|
| 188 | display: inline-block; |
|---|
| 189 | width: 14em; |
|---|
| 190 | } |
|---|
| 191 | &.wide label { |
|---|
| 192 | width: 21em; |
|---|
| 193 | } |
|---|
| 194 | input, |
|---|
| 195 | select { |
|---|
| 196 | display: inline-block; |
|---|
| 197 | } |
|---|
| 198 | } |
|---|
| 199 | |
|---|
| 200 | .form-note { |
|---|
| 201 | font-style: italic; |
|---|
| 202 | font-weight: normal; |
|---|
| 203 | color: #676e78; |
|---|
| 204 | } |
|---|
| 205 | |
|---|
| 206 | p.form-note { |
|---|
| 207 | margin-top: -.7em; |
|---|
| 208 | } |
|---|
| 209 | |
|---|
| 210 | span.form-note { |
|---|
| 211 | text-transform: none; |
|---|
| 212 | } |
|---|
| 213 | |
|---|
| 214 | // .more-info Additional information on fieldset, field, … (may be hide from user-prefs) |
|---|
| 215 | .more-info {} |
|---|
| 216 | |
|---|
| 217 | .no-more-info { |
|---|
| 218 | display: none; |
|---|
| 219 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.