Updated Branches: refs/heads/ui-restyle f6de5ca46 -> 7b6be2d7b
createForm: Fix checkbox alignment Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7b6be2d7 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7b6be2d7 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7b6be2d7 Branch: refs/heads/ui-restyle Commit: 7b6be2d7b10c3d817abb5d331b41c99413c5d113 Parents: f6de5ca Author: Brian Federle <[email protected]> Authored: Tue Oct 1 14:33:31 2013 -0700 Committer: Brian Federle <[email protected]> Committed: Tue Oct 1 14:33:31 2013 -0700 ---------------------------------------------------------------------- ui/stylesheets/csui/_form.scss | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7b6be2d7/ui/stylesheets/csui/_form.scss ---------------------------------------------------------------------- diff --git a/ui/stylesheets/csui/_form.scss b/ui/stylesheets/csui/_form.scss index a7fd0ca..a73417a 100644 --- a/ui/stylesheets/csui/_form.scss +++ b/ui/stylesheets/csui/_form.scss @@ -82,7 +82,7 @@ .message { @include row; } - + form { margin-top: 20px; margin-bottom: 20px; @@ -93,7 +93,7 @@ .form-item { @include row; @include span-columns(12); - + display: inline-block; // Needed for legacy code in JS margin-top: 5px; margin-bottom: 5px; @@ -108,7 +108,14 @@ } input, select, .dynamic-input { - @include span-columns(7); + &:not([type=checkbox]) { + @include span-columns(7); + } + + &[type=checkbox], [type=radio] { + @include span-columns(1); + } + @include shift(0.2); } } @@ -121,7 +128,7 @@ .form-item { margin: 0; - + label { @include span-columns(4); }
