diff options
| author | Alban Peignier | 2015-05-22 09:56:11 +0200 |
|---|---|---|
| committer | Alban Peignier | 2015-05-22 09:56:11 +0200 |
| commit | 51f9a0871396e0a2177db86e049399e3d0e92cae (patch) | |
| tree | 7b835525ce49574915630190e7f97e9bc5a8d5df | |
| parent | cf631225e96227395cc0f852e73ad83bc7aaf06b (diff) | |
| download | chouette-core-51f9a0871396e0a2177db86e049399e3d0e92cae.tar.bz2 | |
Revert "Add customized Formtastic BooleanInput to align label like other inputs"
This reverts commit 8dc301b503ae261c788f6d0109ed54fc3b71dc58.
| -rw-r--r-- | app/assets/stylesheets/vendor/formtastic_changes.css.scss | 28 | ||||
| -rw-r--r-- | app/inputs/boolean_input.rb | 9 |
2 files changed, 8 insertions, 29 deletions
diff --git a/app/assets/stylesheets/vendor/formtastic_changes.css.scss b/app/assets/stylesheets/vendor/formtastic_changes.css.scss index 8eab55de1..7eb6b10c5 100644 --- a/app/assets/stylesheets/vendor/formtastic_changes.css.scss +++ b/app/assets/stylesheets/vendor/formtastic_changes.css.scss @@ -5,31 +5,19 @@ text-align: right; } - .boolean { - // to align horizontally boolean label with other labels - // (with the help of customized BooleanInput) - label { - padding-left: inherit; - } - // to align vertically checkbox with align text - input[type="checkbox"] { - margin-top: 0.3em; - } - } - .stringish input{ width: auto; } - + fieldset.inputs { - - a.action { float: right; } + + a.action { float: right; } } - + .choices .label, .formtastic .fragments .label { width: 25%; border: 0px; - + label { position: relative; font-size: 14px; @@ -40,13 +28,13 @@ @extend .label; font-size: 14px !important; width: 100% !important; - } - + } + .token-input-list { display: inline-block; } - /* Hack to remove!!!! */ + /* Hack to remove!!!! */ .inputs input[type="file"] { display: initial; } diff --git a/app/inputs/boolean_input.rb b/app/inputs/boolean_input.rb deleted file mode 100644 index a2b9b92ca..000000000 --- a/app/inputs/boolean_input.rb +++ /dev/null @@ -1,9 +0,0 @@ -class BooleanInput < Formtastic::Inputs::BooleanInput - def label_with_nested_checkbox - builder.label( - method, - label_text, - label_html_options.merge(class: "label") - ) << "" << check_box_html - end -end |
