style: extract juci-list-simple-editor styles to juci-list-editor.less
authorReidar Cederqvist <reidar.cederqvist@gmail.com>
Mon, 26 Feb 2018 12:10:52 +0000 (13:10 +0100)
committerReidar Cederqvist <reidar.cederqvist@gmail.com>
Wed, 21 Mar 2018 12:13:34 +0000 (13:13 +0100)
juci/src/css/juci-list-editor.less
juci/src/widgets/juci-list-simple-editor.html

index 88f109f..4b132c5 100644 (file)
                margin-bottom: 5px;
        }
 }
+
+.juci-list-simple-editor .content {
+       float: right;
+       padding-right:10px;
+       max-width:84%;
+}
+
+.juci-list-simple-editor-spacer {
+       clear: both;
+       margin-top: 10px;
+}
index b2e7a17..8f21584 100644 (file)
@@ -1,5 +1,5 @@
 <div>
-       <div
+       <div class="juci-list-simple-editor">
                <i class="fa fa-spinner fa-spin fa-2x" ng-show="!items"></i>
                <ul class="list-group">
                        <li class="list-group-item" ng-repeat="i in items track by $index">
                </ul>
                <div ng-hide="hideButtons == 'true'">
                        <button class="btn btn-default pull-right" ng-click="onListAddItem()"><i class="fa fa-plus"></i></button>
-                       <ng-transclude style="float: right; padding-right:10px;max-width:84%"></ng-transclude>
+                       <ng-transclude class="content"></ng-transclude>
                </div>
        </div>
-       <div style="clear: both; margin-top: 10px;"></div>
+       <div class="juci-list-simple-editor-spacer"></div>
        <div ng-show="item">
        </div>
 </div>