Last active
August 29, 2015 14:26
-
-
Save mnishiguchi/730565d3ea5540f5bcba to your computer and use it in GitHub Desktop.
Bootstrap - checkboxとlabelを水平に一直線にするCSS ref: http://qiita.com/mnishiguchi/items/590d9d17d1c2004bf391
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .form-inline | |
| .checkbox | |
| %label | |
| = f.check_box :rooms, options, checked_value, unchecked_value | |
| = room_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Deviseのフォーム | |
| - if devise_mapping.rememberable? | |
| .field.form-group | |
| .form-inline | |
| .checkbox | |
| = f.check_box :remember_me | |
| = f.label :remember_me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @media (min-width: 768px) { | |
| .form-inline .radio input[type="radio"], | |
| .form-inline .checkbox input[type="checkbox"] { | |
| float: left; | |
| margin-right: 5px; | |
| label { | |
| font-weight: normal; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment