seyhunak / twitter-bootstrap-rails

Twitter Bootstrap for Rails 6.0, Rails 5 - Rails 4.x Asset Pipeline
https://github.com/seyhunak/twitter-bootstrap-rails
4.5k stars 998 forks source link

default rails form makes submit button flush with previous element #814

Closed rcanand closed 9 years ago

rcanand commented 9 years ago

When I use twitter-bootstrap-rails and call rails g bootstrap:themed Posts, the default form partial generated has the submit button flush with the previous control group (when viewed in chrome on mac):

image

Can some padding be added by default? Something like the suggestion in http://goo.gl/i6XP2g

toadkicker commented 9 years ago

I would do this:

@media (max-width:@screen-xs-max) { .row > [class*="col-"] { margin-bottom:3%; }

form .row > [class*="col-"] { margin-bottom:2%; }

.form-group {margin-bottom:1%!important;}

.form-inline .form-control {margin-bottom:2%;}

}