.rails_blog_engine_post.simple_form, .rails_blog_engine_post .simple_form { // Copied from // https://github.com/plataformatec/simple_form/wiki/CSS-for-simple_form, // tweaked to remove .simple_form, and nested inside our namespace. div.input { margin-bottom: 10px; } label { float: left; width: 100px; text-align: right; margin: 2px 10px; } div.boolean, input[type='submit'] { margin-left: 120px; } div.boolean label, label.collection_radio { float: none; margin: 0; } label.collection_radio { margin-right: 10px; vertical-align: -2px; margin-left: 2px; } .field_with_errors { background-color: #ff3333; } .error { clear: left; color: black; display: block; margin-left: 120px; font-size: 12px; } .hint { clear: left; margin-left: 120px; font-size: 12px; color: #555; display: block; font-style: italic; } input.radio { margin-right: 5px; vertical-align: -3px; } input.check_boxes { margin-left: 3px; vertical-align: -3px; } label.collection_check_boxes { float: none; margin: 0; vertical-align: -2px; margin-left: 2px; } }