diff --git a/lib/components/LoadingBar/loading-bar.scss b/lib/components/LoadingBar/loading-bar.scss new file mode 100644 index 00000000..421e7dfb --- /dev/null +++ b/lib/components/LoadingBar/loading-bar.scss @@ -0,0 +1,21 @@ +:host { + position: fixed; + top: 0; + left: 0; + right: 0; + display: block; + + height: 5px; + z-index: 100; +} + +span { + display: block; + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: attr(progress percentage); + background-color: #5f7fc3; + transition: right 0.2s linear; +} diff --git a/lib/components/LoadingBar/loading-bar.ts b/lib/components/LoadingBar/loading-bar.ts index 55702822..7b90a4bf 100644 --- a/lib/components/LoadingBar/loading-bar.ts +++ b/lib/components/LoadingBar/loading-bar.ts @@ -6,29 +6,7 @@ import { Input, HostBinding, Component, OnChanges } from '@angular/core'; template: ` `, - styles: [` - :host { - position: fixed; - top: 0; - left: 0; - right: 0; - display: block; - - height: 5px; - z-index: 100; - } - - span { - display: block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: attr(progress percentage); - background-color: #5f7fc3; - transition: right 0.2s linear; - } - `] + styleUrls: ['loading-bar.scss'] }) export class LoadingBar implements OnChanges { @Input() progress:number = 0; diff --git a/lib/shared/components/DropDown/drop-down.html b/lib/shared/components/DropDown/drop-down.html new file mode 100644 index 00000000..e8f62bef --- /dev/null +++ b/lib/shared/components/DropDown/drop-down.html @@ -0,0 +1,3 @@ + diff --git a/lib/shared/components/DropDown/drop-down.ts b/lib/shared/components/DropDown/drop-down.ts index 71ee4494..5e3e920b 100644 --- a/lib/shared/components/DropDown/drop-down.ts +++ b/lib/shared/components/DropDown/drop-down.ts @@ -5,11 +5,7 @@ import * as DropKick from 'dropkickjs'; @Component({ selector: 'drop-down', - template: ` - - `, + templateUrl: 'drop-down.html', styleUrls: ['./drop-down.css'] }) export class DropDown implements AfterContentInit { diff --git a/lib/shared/components/Tabs/tab.html b/lib/shared/components/Tabs/tab.html new file mode 100644 index 00000000..3b0afa5c --- /dev/null +++ b/lib/shared/components/Tabs/tab.html @@ -0,0 +1,3 @@ +