attempt to center input

This commit is contained in:
Andreas N 2015-01-14 15:44:27 +01:00
parent 050d94e8d7
commit 1497f97395
2 changed files with 13 additions and 2 deletions

View File

@ -75,6 +75,17 @@ body {
display: inline-block;
}
.j2-table {
display: table;
}
.input--center {
display: table-cell;
vertical-align: middle;
margin-left: auto;
margin-right: auto;
}
.sweet-overlay {
z-index: 1031;
}

View File

@ -10,8 +10,8 @@
- current_user.groups.each do |group|
%li.list-group-item
.media
.pull-left
%input{type: :checkbox, name: 'gm-group-check', data: { group_name: group.name }, checked: @user.member_of?(group)}
.pull-left.j2-table
%input.input--center{type: :checkbox, name: 'gm-group-check', data: { group_name: group.name }, checked: @user.member_of?(group)}
.media-body
.list-group-item-heading= group.display_name
.list-group-item-text.text-muted.j2-up