add directives to left and right side content in editor footer

This commit is contained in:
Mads Rasmussen
2015-09-01 10:21:00 +02:00
parent 9f7c577192
commit f9577cbe2a
5 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
(function() {
'use strict';
function EditorFooterContentLeftDirective() {
var directive = {
transclude: true,
restrict: 'E',
replace: true,
templateUrl: 'views/components/editor/umb-editor-footer-content-left.html'
};
return directive;
}
angular.module('umbraco.directives').directive('umbEditorFooterContentLeft', EditorFooterContentLeftDirective);
})();

View File

@@ -0,0 +1,18 @@
(function() {
'use strict';
function EditorFooterContentRightDirective() {
var directive = {
transclude: true,
restrict: 'E',
replace: true,
templateUrl: 'views/components/editor/umb-editor-footer-content-right.html'
};
return directive;
}
angular.module('umbraco.directives').directive('umbEditorFooterContentRight', EditorFooterContentRightDirective);
})();

View File

@@ -453,5 +453,13 @@ input.umb-panel-header-description {
.umb-editor-drawer-content {
display: flex;
align-items: center;
justify-content: space-between;
//justify-content: space-between;
}
.umb-editor-drawer-content__right-side {
margin-left: auto;
}
.umb-editor-drawer-content__left-side {
margin-right: auto;
}

View File

@@ -0,0 +1 @@
<div class="umb-editor-drawer-content__left-side" ng-transclude></div>

View File

@@ -0,0 +1 @@
<div class="umb-editor-drawer-content__right-side" ng-transclude></div>