Skip to content

Commit

Permalink
styling form
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-lenne committed Nov 28, 2016
1 parent 4eee066 commit 978b91b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/javascripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ $('#add').click(function() {
}, {
title: 'Generate the bot',
html:
'<input id="bot_name" name="bot_name" class="swal2-input" autofocus placeholder="Bot name" required />' +
'<input id="nb_driver" name="nb_driver" class="swal2-input" type="number" min="0" max="50" placeholder="Number of generated bot" required />' +
'<input id="accuracy" name="accuracy" class="swal2-input" type="number" min="10" max="100" step="10" placeholder="Accuracy" required />',
'<p><input id="bot_name" name="bot_name" class="swal2-input" autofocus placeholder="Bot name" required /></p>' +
'<p><input id="nb_driver" name="nb_driver" class="swal2-input" type="number" min="0" max="50" placeholder="Number of generated bot" required /></p>' +
'<p><input id="accuracy" name="accuracy" class="swal2-input" type="number" min="10" max="100" step="10" placeholder="Accuracy" required /></p>',
confirmButtonText: 'Generate',
showCancelButton: true,
preConfirm: function() {
Expand Down
12 changes: 12 additions & 0 deletions public/stylesheets/base/_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,15 @@
.cover-container
margin-right: auto
margin-left: auto

::-webkit-input-placeholder
color: #333

:-moz-placeholder
color: #333

::-moz-placeholder
color: #333

:-ms-input-placeholder
color: #333
3 changes: 3 additions & 0 deletions public/stylesheets/components/_swal2.sass
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
.swal2-modal input[placeholder], .swal2-modal [placeholder], .swal2-modal *[placeholder]
color: #333

.swal2-modal .swal2-input
padding: 0 0px;
margin: 10px auto;

0 comments on commit 978b91b

Please sign in to comment.