diff --git a/Gruntfile.js b/Gruntfile.js index f9dc58647..6310bb816 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -207,8 +207,8 @@ module.exports = function(grunt) { time: time, title: "Validation", desc: "Use public isValidNumber method (utilising Google's libphonenumber) to validate the telephone number on the change event.", - stylesheet: '', - markup: grunt.file.read('examples/partials/simpleInput.html'), + stylesheet: 'validation.css', + markup: grunt.file.read('examples/partials/validation.html'), code: grunt.file.read('examples/js/validation.js'), script: "validation.js" } diff --git a/build/css/demo.css b/build/css/demo.css index 4e9deae9c..bd32a4b6f 100644 --- a/build/css/demo.css +++ b/build/css/demo.css @@ -8,6 +8,9 @@ body { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; color: #555; } +.hide { + display: none; } + pre { margin: 0 !important; display: inline-block; } @@ -35,10 +38,6 @@ input, select { border: 1px solid #CCC; width: 250px; } -input.error { - background-color: #FFE7E7; - border: 1px solid #FF7C7C; } - button { color: #FFF; background-color: #428BCA; diff --git a/examples/css/validation.css b/examples/css/validation.css new file mode 100644 index 000000000..ab3dff6bd --- /dev/null +++ b/examples/css/validation.css @@ -0,0 +1,9 @@ +#error-msg { + color: red; +} +#valid-msg { + color: #00C900; +} +input.error { + border: 1px solid #FF7C7C; +} \ No newline at end of file diff --git a/examples/gen/country-sync.html b/examples/gen/country-sync.html index 769be86e9..ecc1cb94a 100644 --- a/examples/gen/country-sync.html +++ b/examples/gen/country-sync.html @@ -4,10 +4,10 @@