diff --git a/src/core/components/components.module.ts b/src/core/components/components.module.ts index e6f72957f..33596bb6b 100644 --- a/src/core/components/components.module.ts +++ b/src/core/components/components.module.ts @@ -54,6 +54,7 @@ import { CoreLocalFileComponent } from './local-file/local-file'; import { CoreBSTooltipComponent } from './bs-tooltip/bs-tooltip'; import { CoreSitePickerComponent } from './site-picker/site-picker'; import { CoreChartComponent } from './chart/chart'; +import { CoreStyleComponent } from './style/style'; @NgModule({ declarations: [ @@ -69,6 +70,7 @@ import { CoreChartComponent } from './chart/chart'; CoreRecaptchaModalComponent, CoreShowPasswordComponent, CoreSplitViewComponent, + CoreStyleComponent, CoreEmptyBoxComponent, CoreTabsComponent, CoreTabComponent, @@ -112,6 +114,7 @@ import { CoreChartComponent } from './chart/chart'; CoreRecaptchaModalComponent, CoreShowPasswordComponent, CoreSplitViewComponent, + CoreStyleComponent, CoreEmptyBoxComponent, CoreTabsComponent, CoreTabComponent, diff --git a/src/core/components/style/style.ts b/src/core/components/style/style.ts new file mode 100644 index 000000000..da497ffdd --- /dev/null +++ b/src/core/components/style/style.ts @@ -0,0 +1,77 @@ +// (C) Copyright 2015 Moodle Pty Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import { Component, ElementRef, Input, OnChanges } from '@angular/core'; + +/** + * Component to add a