From 73003167803e4a034f80b3034acc28766b5cfe2d Mon Sep 17 00:00:00 2001 From: antoine Date: Wed, 12 Nov 2014 13:58:12 +0100 Subject: [PATCH] grid add button always centered --- .../src/less/gridview.less | 8 +- .../src/views/propertyeditors/grid/grid.html | 426 +++++++++--------- 2 files changed, 217 insertions(+), 217 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/less/gridview.less b/src/Umbraco.Web.UI.Client/src/less/gridview.less index eeb763ba8a..a221c0aa5a 100644 --- a/src/Umbraco.Web.UI.Client/src/less/gridview.less +++ b/src/Umbraco.Web.UI.Client/src/less/gridview.less @@ -11,6 +11,7 @@ // Sortabel // ------------------------- .usky-grid .ui-sortable-helper { + position:absolute; border: dashed 1px #000 !important; background: #ccc; opacity: 0.4; @@ -162,14 +163,17 @@ bottom: 0px; left: 0; right: 0; - margin: 0 20px 1px 0; + margin: 0 45px 1px 0; + + &.emptyArea{ + margin: 0 0 1px 0; + } } .usky-grid .usky-control:hover .cell-tools-add{ opacity: 1; } - .usky-grid .cell-tools-remove { display:inline-block; position: absolute; diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html index 5740608fb3..636dbf2ef6 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html @@ -1,257 +1,253 @@ -
+
-
- - +
-
- -
- -
- -
- -
-
- -
- -
+ -
-
+
- {{layout.name}} +
-
+
-

Add rows to your layout

- - -
- - - - -
-
- - -
- -
- - -
- - -
- - -
-
- - - Are you sure? - Yes - - - -
-
- -
- - - -
- -
- - - -
+
+
- -
+
-
-
-
+
- -
+
+ + {{layout.name}} + +
+ +

Add rows to your layout

+ + +
+ + +
+
+ + +
+ +
+ + +
+ + +
+ + +
+
+ + + Are you sure? + Yes + + + +
+
+ +
+ + + +
+ +
+ + + +
+ +
+ + +
+ +
+
+
+ + +
+ ng-repeat="area in row.areas" ui-sortable="sortableOptionsCell" ng-model="area.controls"> - -
- - -
+
+ class="usky-control"> - -
-
+ +
- - Are you sure? - Yes - + +
+
- + + Are you sure? + Yes + + + +
+ + +
+ + + +
+ + +
+ + + +
+
- -
- - - -
- - -
- - - -
- -
- -
- -
+ +
+
-
- - -
-
- To start, click the - below and add your first element -

-
+ + +
+
+ To start, click the + below and add your first element +

+
-
+
+ + + + + +
+
- - - - -
- +
-
+ +
- +
- + + + +
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{layout.name}} + +
+ + +

+ Add rows to your layout +

+ + +
+
- - - - - -
- -
- -
- -
- -
-
- -
- -
- -
-
- - {{layout.name}} - -
- - -

- Add rows to your layout -

- - -
- - - +
-
-
\ No newline at end of file