Bert Leunis pushed to branch feature/CMS-10840 at cms-community / hippo-cms
Commits: 6edd883f by Bert Leunis at 2018-02-22T10:54:31+01:00 CMS-10840 make mixin label clickable to set the checkbox Also made the distance between several lines of checkbox-label lines match that of the multi-select plugin of Selections. - - - - - 2 changed files: - api/src/main/styling/styles/_editor.scss - editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/mixin/MixinPlugin.html Changes: ===================================== api/src/main/styling/styles/_editor.scss ===================================== --- a/api/src/main/styling/styles/_editor.scss +++ b/api/src/main/styling/styles/_editor.scss @@ -121,8 +121,12 @@ width: auto; } - .hippo-editor-field-boolean > input[type="checkbox"] + label { + .hippo-editor-field-boolean { + margin-bottom: 4px; + + > input[type="checkbox"] + label { margin-left: 8px; + } } input[type="submit"] { ===================================== editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/mixin/MixinPlugin.html ===================================== --- a/editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/mixin/MixinPlugin.html +++ b/editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/mixin/MixinPlugin.html @@ -1,5 +1,5 @@ <!-- - * Copyright 2008-2017 Hippo B.V. (http://www.onehippo.com) + * Copyright 2008-2018 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ </h3> <div class="hippo-editor-field"> <div class="hippo-editor-field-boolean" wicket:id="mixins"> - <input type="checkbox" wicket:id="mixin"/><label wicket:id="label">[ mixin ]</label> + <input type="checkbox" wicket:id="mixin"/><label wicket:for="mixin"><span wicket:id="label">[ mixin ]</span></label> </div> </div> </wicket:panel> View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/commit/6edd883fce6eb6d5777851f9eafc902bea3cfcdc --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/commit/6edd883fce6eb6d5777851f9eafc902bea3cfcdc You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn