[3711] | 1 | input[type=text], |
---|
| 2 | input[type=color], |
---|
| 3 | input[type=email], |
---|
| 4 | input[type=url], |
---|
| 5 | input[type=datetime], |
---|
| 6 | input[type=date], |
---|
| 7 | input[type=time], |
---|
| 8 | input[type=file], |
---|
| 9 | input[type=number], |
---|
| 10 | input[type=password], |
---|
| 11 | input[type=submit], |
---|
| 12 | input[type=button], |
---|
| 13 | input[type=reset], |
---|
| 14 | a.button, button, textarea, select, legend { |
---|
[3690] | 15 | max-width: 100%; |
---|
| 16 | } |
---|
[3711] | 17 | input[type=text], |
---|
| 18 | input[type=color], |
---|
| 19 | input[type=email], |
---|
| 20 | input[type=url], |
---|
| 21 | input[type=datetime], |
---|
| 22 | input[type=date], |
---|
| 23 | input[type=time], |
---|
| 24 | input[type=file], |
---|
| 25 | input[type=number], |
---|
| 26 | input[type=password], |
---|
| 27 | input[type=submit], |
---|
| 28 | input[type=button], |
---|
| 29 | input[type=reset], |
---|
| 30 | a.button, button, textarea, legend { |
---|
[3690] | 31 | border-radius: 3px; |
---|
| 32 | } |
---|
| 33 | form { |
---|
| 34 | display: block; |
---|
| 35 | margin: 0; |
---|
| 36 | padding: 0; |
---|
| 37 | } |
---|
| 38 | fieldset { |
---|
| 39 | display: block; |
---|
| 40 | margin: 1em 0; |
---|
| 41 | padding: 1em 0.5em; |
---|
| 42 | border-width: 1px 0; |
---|
| 43 | border-style: solid; |
---|
| 44 | border-color: #ccc; |
---|
| 45 | background: #f7f7f7; |
---|
| 46 | &:focus-within { |
---|
| 47 | background-color: #eee; |
---|
| 48 | } |
---|
| 49 | } |
---|
[3711] | 50 | input[type=text], |
---|
| 51 | input[type=color], |
---|
| 52 | input[type=email], |
---|
| 53 | input[type=url], |
---|
| 54 | input[type=datetime], |
---|
| 55 | input[type=date], |
---|
| 56 | input[type=time], |
---|
| 57 | input[type=file], |
---|
| 58 | input[type=number], |
---|
| 59 | textarea { |
---|
[3690] | 60 | font-family: $sans-serif-input; |
---|
| 61 | font-size: 100%; |
---|
| 62 | } |
---|
[3355] | 63 | legend { |
---|
[3690] | 64 | padding: 0.2em 0.6em; |
---|
| 65 | border-width: 1px; |
---|
| 66 | border-style: solid; |
---|
| 67 | border-color: #676e78; |
---|
| 68 | background: #fff; |
---|
| 69 | margin-bottom: 0.5em; |
---|
[3602] | 70 | } |
---|
[3690] | 71 | label .maximal, textarea.maximal, input.maximal, select.maximal { |
---|
| 72 | width: 99%; |
---|
[3355] | 73 | } |
---|
[3690] | 74 | input.invalid, textarea.invalid, select.invalid, input:not([type=file]):invalid:not(:focus) { |
---|
| 75 | color: #900; |
---|
| 76 | box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); |
---|
[3355] | 77 | } |
---|
[3690] | 78 | input.invalid, textarea.invalid, input:not([type=file]):invalid:not(:focus) { |
---|
| 79 | border: 1px solid red; |
---|
| 80 | background: #FFBABA; |
---|
[3355] | 81 | } |
---|
[3711] | 82 | input[type=text], |
---|
| 83 | input[type=password], |
---|
| 84 | input[type=color], |
---|
| 85 | input[type=email], |
---|
| 86 | input[type=url], |
---|
| 87 | input[type=datetime], |
---|
| 88 | input[type=date], |
---|
| 89 | input[type=time], |
---|
| 90 | input[type=file], |
---|
| 91 | input[type=number], |
---|
| 92 | textarea, select, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown { |
---|
[3690] | 93 | color: #000; |
---|
| 94 | box-shadow: 1px 1px 2px #f3f3f3 inset; |
---|
| 95 | padding: 3px; |
---|
| 96 | vertical-align: top; |
---|
| 97 | } |
---|
[3711] | 98 | input[type=text], |
---|
| 99 | input[type=password], |
---|
| 100 | input[type=color], |
---|
| 101 | input[type=email], |
---|
| 102 | input[type=url], |
---|
| 103 | input[type=datetime], |
---|
| 104 | input[type=date], |
---|
| 105 | input[type=time], |
---|
| 106 | input[type=file], |
---|
| 107 | input[type=number], |
---|
| 108 | textarea, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown { |
---|
[3690] | 109 | background: #fcfcfc; |
---|
| 110 | border-width: 1px; |
---|
| 111 | border-style: solid; |
---|
| 112 | border-color: #dfdfdf; |
---|
| 113 | } |
---|
| 114 | input:focus, textarea:focus { |
---|
| 115 | border-color: #9bca1c; |
---|
| 116 | } |
---|
[3355] | 117 | textarea { |
---|
[3690] | 118 | padding: 2px 0; |
---|
| 119 | &.maximal { |
---|
| 120 | resize: vertical; |
---|
| 121 | } |
---|
| 122 | .area & { |
---|
| 123 | display: block; |
---|
| 124 | width: 100%; |
---|
| 125 | resize: vertical; |
---|
| 126 | } |
---|
[3355] | 127 | } |
---|
[3690] | 128 | select { |
---|
| 129 | padding: 2px 0; |
---|
| 130 | vertical-align: middle; |
---|
[3355] | 131 | } |
---|
[3690] | 132 | @media not all and (min-resolution:.001dpcm) { |
---|
| 133 | @supports (-webkit-appearance: none) { |
---|
| 134 | /* Safari 10.1+ only (https://browserstrangeness.bitbucket.io/css_hacks.html#webkit) */ |
---|
| 135 | select { |
---|
| 136 | font-size: initial; |
---|
| 137 | } |
---|
| 138 | } |
---|
[3355] | 139 | } |
---|
[3690] | 140 | select.l10n option { |
---|
| 141 | padding-left: 16px; |
---|
[3639] | 142 | } |
---|
[3690] | 143 | option.avail10n { |
---|
| 144 | background: transparent url(../images/check-on.png) no-repeat 0 50%; |
---|
[3639] | 145 | } |
---|
[3711] | 146 | input[type=text], |
---|
| 147 | input[type=color], |
---|
| 148 | input[type=email], |
---|
| 149 | input[type=url], |
---|
| 150 | input[type=datetime], |
---|
| 151 | input[type=date], |
---|
| 152 | input[type=time], |
---|
| 153 | input[type=number], |
---|
| 154 | input[type=password], |
---|
| 155 | textarea { |
---|
[3690] | 156 | margin-right: .3em; |
---|
[3355] | 157 | } |
---|
[3690] | 158 | input[type=checkbox], input[type=radio], input[type=file] { |
---|
| 159 | border: none; |
---|
| 160 | margin: 0 .33em 0 0; |
---|
| 161 | padding: 0; |
---|
| 162 | background: transparent; |
---|
[3602] | 163 | } |
---|
[3690] | 164 | input+input[type=checkbox] { |
---|
| 165 | // Used for js expand/hide (lists, options, ...) |
---|
| 166 | margin-left: .33em; |
---|
[3517] | 167 | } |
---|
| 168 | a input { |
---|
[3690] | 169 | // Used for js expand/hide (lists, options, ...) |
---|
| 170 | margin-right: .33em; |
---|
[3517] | 171 | } |
---|
[3355] | 172 | input[type=file] { |
---|
[3690] | 173 | margin-top: .3em; |
---|
| 174 | margin-bottom: .3em; |
---|
[3355] | 175 | } |
---|
| 176 | optgroup { |
---|
[3690] | 177 | font-weight: bold; |
---|
| 178 | font-style: normal; |
---|
[3355] | 179 | } |
---|
| 180 | option { |
---|
[3690] | 181 | font-weight: normal; |
---|
[3355] | 182 | } |
---|
[3690] | 183 | label, label span { |
---|
| 184 | display: block; |
---|
[3355] | 185 | } |
---|
[3690] | 186 | label.ib, input.ib { |
---|
| 187 | display: inline-block; |
---|
[3355] | 188 | } |
---|
| 189 | label.classic { |
---|
[3690] | 190 | display: inline; |
---|
[3355] | 191 | } |
---|
[3690] | 192 | label.classic input, label span input, label.classic select, label span select { |
---|
| 193 | display: inline; |
---|
[3355] | 194 | } |
---|
| 195 | label.required { |
---|
[3690] | 196 | font-weight: bold; |
---|
[3355] | 197 | } |
---|
| 198 | label.required abbr { |
---|
[3690] | 199 | color: #900; |
---|
| 200 | font-size: 1.3em; |
---|
[3355] | 201 | } |
---|
| 202 | label.bold { |
---|
[3690] | 203 | text-transform: uppercase; |
---|
| 204 | font-weight: bold; |
---|
| 205 | margin-top: 2em; |
---|
[3355] | 206 | } |
---|
[3690] | 207 | label.area, p.area { |
---|
| 208 | width: inherit !important; |
---|
[3355] | 209 | } |
---|
| 210 | p.field { |
---|
[3690] | 211 | position: relative; |
---|
| 212 | label { |
---|
| 213 | display: inline-block; |
---|
| 214 | width: 14em; |
---|
| 215 | } |
---|
| 216 | &.wide label { |
---|
| 217 | width: 21em; |
---|
| 218 | } |
---|
| 219 | input, select { |
---|
| 220 | display: inline-block; |
---|
| 221 | } |
---|
[3355] | 222 | } |
---|
[3633] | 223 | .form-note, .form-stats { |
---|
[3690] | 224 | font-style: italic; |
---|
| 225 | font-weight: normal; |
---|
| 226 | color: #676e78; |
---|
[3355] | 227 | } |
---|
[3633] | 228 | p.form-note, p.form-stats { |
---|
[3690] | 229 | margin-top: -.7em; |
---|
[3355] | 230 | } |
---|
[3633] | 231 | span.form-note, span.form-stats { |
---|
[3690] | 232 | text-transform: none; |
---|
[3355] | 233 | } |
---|
[3685] | 234 | .missing { |
---|
| 235 | background-color: inherit; |
---|
| 236 | animation-name: kf-missing; |
---|
| 237 | animation-duration: 1s; |
---|
| 238 | } |
---|
| 239 | @keyframes kf-missing { |
---|
| 240 | 0% { |
---|
| 241 | background-color: inherit; |
---|
| 242 | } |
---|
| 243 | 50% { |
---|
| 244 | background-color: #ffbaba; |
---|
| 245 | } |
---|
| 246 | 100% { |
---|
| 247 | background-color: inherit; |
---|
| 248 | } |
---|
| 249 | } |
---|
[3690] | 250 | .focus { |
---|
| 251 | background-color: inherit; |
---|
| 252 | animation-name: kf-focus; |
---|
| 253 | animation-duration: 1s; |
---|
| 254 | } |
---|
| 255 | @keyframes kf-focus { |
---|
| 256 | 0% { |
---|
| 257 | background-color: inherit; |
---|
| 258 | } |
---|
| 259 | 50% { |
---|
| 260 | background-color: #ccff00; |
---|
| 261 | } |
---|
| 262 | 100% { |
---|
| 263 | background-color: inherit; |
---|
| 264 | } |
---|
| 265 | } |
---|
[3398] | 266 | // .more-info Additional information on fieldset, field, … (may be hide from user-prefs) |
---|
[3439] | 267 | .more-info {} |
---|
| 268 | .no-more-info { |
---|
[3690] | 269 | display: none; |
---|
[3398] | 270 | } |
---|