Merge branch '7.2.0' of https://github.com/umbraco/Umbraco-CMS into 7.2.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
<div ng-controller="Umbraco.canvasdesigner.color">
|
||||
|
||||
<div class="box-slider">
|
||||
<spectrum colorselected="item.values.color"></spectrum>
|
||||
|
||||
@@ -10,12 +10,25 @@
|
||||
@fonttype-ALIAS-:'';
|
||||
/***end-lessParam--ALIAS-***/
|
||||
|
||||
/***start-gridStyle--ALIAS-***/
|
||||
-SCHEMA- {
|
||||
font-family:@fontfamily-ALIAS-;
|
||||
/***start-fontfamilystyle--ALIAS-***/
|
||||
|
||||
.fontfamily-ALIAS- () when not (@fontfamily-ALIAS- = '') {
|
||||
font-family:@fontfamily-ALIAS-;
|
||||
}
|
||||
|
||||
.fontweight-ALIAS- () when not (@fontweight-ALIAS- = '') {
|
||||
font-weight:@fontweight-ALIAS-;
|
||||
}
|
||||
|
||||
.fontstyle-ALIAS- () when not (@fontstyle-ALIAS- = '') {
|
||||
font-style:@fontstyle-ALIAS-;
|
||||
}
|
||||
/***end-gridStyle--ALIAS-***/
|
||||
|
||||
-SCHEMA- {
|
||||
.fontfamily-ALIAS-;
|
||||
.fontweight-ALIAS-;
|
||||
.fontstyle-ALIAS-;
|
||||
}
|
||||
/***end-fontfamilystyle--ALIAS-***/
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/************************************************************************/
|
||||
|
||||
/***start-lessParam--ALIAS-***/
|
||||
@layout-ALIAS-:box;
|
||||
@layout-ALIAS-:'';
|
||||
/***end-lessParam--ALIAS-***/
|
||||
|
||||
/***start-lessStyle--ALIAS-***/
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
<div ng-controller="Umbraco.canvasdesigner.shadow">
|
||||
|
||||
<div class="box-slider">
|
||||
<div ui-slider min="0" max="100" step="1" ng-model="item.values.shadow"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
/*********************************************************************************************************/
|
||||
/* shadow editor */
|
||||
/*********************************************************************************************************/
|
||||
|
||||
angular.module("Umbraco.canvasdesigner")
|
||||
|
||||
.controller("Umbraco.canvasdesigner.shadow", function ($scope) {
|
||||
|
||||
if (!$scope.item.values) {
|
||||
$scope.item.values = {
|
||||
shadow: ''
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
/************************************************************************/
|
||||
/* shadow -ALIAS- -CSS- */
|
||||
/************************************************************************/
|
||||
|
||||
/***start-lessParam--ALIAS-***/
|
||||
@shadow-ALIAS-:'';
|
||||
/***end-lessParam--ALIAS-***/
|
||||
|
||||
/***start-lessStyle--ALIAS-***/
|
||||
|
||||
.valueshadow-ALIAS- () when (isnumber(@shadow-ALIAS-)) {
|
||||
-webkit-box-shadow: 0 0 @shadow-ALIAS- + 0px rgba(0, 0, 0, 0.5);
|
||||
-moz-box-shadow: 0 0 @shadow-ALIAS- + 0px rgba(0, 0, 0, 0.5);
|
||||
box-shadow: 0 0 @shadow-ALIAS- + 0px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
-SCHEMA- {
|
||||
.valueshadow-ALIAS-
|
||||
}
|
||||
/***end-lessStyle--ALIAS-***/
|
||||
@@ -207,13 +207,18 @@ angular.module("umbraco")
|
||||
};
|
||||
|
||||
$scope.addRow = function (section, layout) {
|
||||
|
||||
//copy the selected layout into the rows collection
|
||||
var row = angular.copy(layout);
|
||||
|
||||
// Init row value
|
||||
row = $scope.initRow(row);
|
||||
|
||||
// Push the new row
|
||||
if(row){
|
||||
section.rows.push(row);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
$scope.removeRow = function (section, $index) {
|
||||
@@ -460,6 +465,10 @@ angular.module("umbraco")
|
||||
|
||||
//set a disposable unique ID
|
||||
original.$uniqueId = $scope.setUniqueId();
|
||||
|
||||
//set a no disposable unique ID (util for row styling)
|
||||
original.id = !row.id ? $scope.setUniqueId() : row.id;
|
||||
|
||||
return original;
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div ng-if="overlayMenu.show && overlayMenu.key == area.$uniqueId" ng-include="'views/propertyeditors/grid/dialogs/additem.html'"></div>
|
||||
<div ng-if="overlayMenu.show && overlayMenu.key == area.$uniqueId" ng-include="'views/propertyeditors/canvas/dialogs/additem.html'"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -193,7 +193,7 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div ng-if="overlayMenu.show && overlayMenu.key == control.$uniqueId" ng-include="'views/propertyeditors/grid/dialogs/additem.html'"></div>
|
||||
<div ng-if="overlayMenu.show && overlayMenu.key == control.$uniqueId" ng-include="'views/propertyeditors/canvas/additem.html'"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1344,7 +1344,7 @@ namespace Umbraco.Web
|
||||
if (UmbracoContext.Current.InPreviewMode)
|
||||
{
|
||||
canvasdesignerConfigPath = !string.IsNullOrEmpty(canvasdesignerConfigPath) ? canvasdesignerConfigPath : "/umbraco/js/canvasdesigner.config.js";
|
||||
canvasdesignerPalettesPath = !string.IsNullOrEmpty(canvasdesignerPalettesPath) ? canvasdesignerConfigPath : "/umbraco/js/canvasdesigner.palettes.js";
|
||||
canvasdesignerPalettesPath = !string.IsNullOrEmpty(canvasdesignerPalettesPath) ? canvasdesignerPalettesPath : "/umbraco/js/canvasdesigner.palettes.js";
|
||||
|
||||
if (!string.IsNullOrEmpty(cssPath))
|
||||
result = string.Format(noPreviewLinks, cssPath) + Environment.NewLine;
|
||||
|
||||
Reference in New Issue
Block a user