changed inline-styling into a appearance property

This commit is contained in:
Niels Lyngsø
2019-04-10 13:40:06 +02:00
parent 1ff67df9df
commit ed8ba3ddcf
4 changed files with 9 additions and 2 deletions

View File

@@ -47,6 +47,9 @@ The sub header is sticky and will follow along down the page when scrolling.
transclude: true,
restrict: 'E',
replace: true,
scope: {
"appearance": "@?"
},
templateUrl: 'views/components/editor/subheader/umb-editor-sub-header.html'
};

View File

@@ -19,6 +19,10 @@
background: @brownGrayLight;
}
}
.umb-editor-sub-header--white {
background-color: white;
border-color: white;
}
.umb-editor-sub-header.--state-selection {
padding-left: 10px;

View File

@@ -1,5 +1,5 @@
<div
class="umb-editor-sub-header"
class="umb-editor-sub-header umb-editor-sub-header--{{appearance}}"
umb-sticky-bar
scrollable-container=".umb-editor-container"
ng-transclude>

View File

@@ -1,6 +1,6 @@
<div ng-controller="Umbraco.PropertyEditors.GridController" class="umb-grid umb-property-editor clearfix" id="umb-grid">
<umb-editor-sub-header ng-if="showReorderButton()" style="background-color: white; border-color: white;">
<umb-editor-sub-header ng-if="showReorderButton()" appearance="white">
<umb-editor-sub-header-content-right>
<umb-button