|
17 | 17 |
|
18 | 18 | <script>
|
19 | 19 | import Vue from "vue";
|
20 |
| - //import Joi from "joi"; |
21 | 20 | import {each, isFunction, isNil, isArray, isString} from "lodash";
|
22 | 21 |
|
23 | 22 | // Load all fields from '../fields' folder
|
|
161 | 160 |
|
162 | 161 | <style lang="sass">
|
163 | 162 |
|
164 |
| - $errorColor: lighten(#F00, 0%); |
| 163 | + $errorColor: #F00; |
165 | 164 |
|
166 | 165 | fieldset.vue-form-generator {
|
167 | 166 |
|
|
183 | 182 | border-radius: 4px;
|
184 | 183 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
185 | 184 | transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
186 |
| - } |
| 185 | +
|
| 186 | + } // .form-control |
187 | 187 |
|
188 | 188 | span.help {
|
189 | 189 | margin-left: 0.3em;
|
|
196 | 196 | background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA+UlEQVQ4ja3TS0oDQRAG4C8+lq7ceICICoLGK7iXuNBbeAMJuPVOIm7cqmDiIncIggg+cMZFaqCnZyYKWtB0df31V1VXdfNH6S2wD9CP8xT3KH8T9BiTcE7XBMOfyBcogvCFO9ziLWwFRosyV+QxthNsA9dJkEYlvazsQdi3sBv6Ol6TBLX+HWT3fcQZ3vGM5fBLk+ynAU41m1biCXvhs4OPBDuBpa6GxF0P8YAj3GA1d1qJfdoS4DOIcIm1DK9x8iaWeDF/SP3QU6zRROpjLDFLsFlibx1jJaMkSIGrWKntvItcyTBKzCcybsvc9ZmYz3kz9Ooz/b98A8yvW13B3ch6AAAAAElFTkSuQmCC');
|
197 | 197 | background-repeat: no-repeat;
|
198 | 198 | background-position: center center;
|
199 |
| - } |
| 199 | +
|
| 200 | + } // .icon |
200 | 201 |
|
201 | 202 | .helpText {
|
202 | 203 | background-color: #444;
|
|
219 | 220 | a {
|
220 | 221 | font-weight: bold;
|
221 | 222 | text-decoration: underline;
|
222 |
| - } |
223 |
| - } |
| 223 | + } // a |
| 224 | +
|
| 225 | + } // .helpText |
224 | 226 |
|
225 | 227 | /* This bridges the gap so you can mouse into the tooltip without it disappearing */
|
226 | 228 | .helpText:before {
|
|
237 | 239 | opacity: 1;
|
238 | 240 | pointer-events: auto;
|
239 | 241 | transform: translateY(0px);
|
240 |
| - } |
| 242 | + } |
| 243 | +
|
241 | 244 | } // span.help
|
242 | 245 |
|
243 | 246 | .field-wrap {
|
@@ -284,14 +287,16 @@ div
|
284 | 287 | outline: 0;
|
285 | 288 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
286 | 289 | }
|
287 |
| - } |
288 |
| - } |
| 290 | +
|
| 291 | + } // button, input[submit] |
| 292 | +
|
| 293 | + } // .field-wrap |
289 | 294 |
|
290 | 295 | .hint {
|
291 | 296 | font-style: italic;
|
292 | 297 | font-size: 0.8em;
|
293 |
| - } |
294 | 298 |
|
| 299 | + } // .hint |
295 | 300 |
|
296 | 301 | .form-group {
|
297 | 302 | display: inline-block;
|
|
330 | 335 |
|
331 | 336 | &.error {
|
332 | 337 |
|
333 |
| - label { |
334 |
| - //color: $errorColor; |
335 |
| - } |
336 |
| -
|
337 | 338 | input:not([type="checkbox"]), textarea, select {
|
338 | 339 | border: 1px solid $errorColor;
|
339 | 340 | background-color: rgba($errorColor, 0.15);
|
|
0 commit comments