diff --git a/src/components/popover/popover.component.scss b/src/components/popover/popover.component.scss new file mode 100644 index 00000000..8f6d6783 --- /dev/null +++ b/src/components/popover/popover.component.scss @@ -0,0 +1,30 @@ +:host { + display: flex; + flex-direction: column; + min-width: 577px; + padding: 0; +} + +.popover-action { + padding: 8px 14px; + margin: 0; + font-size: 14px; + background-color: #f7f7f7; + border-top: 1px solid #ebebeb; + border-radius: 0 0 5px 5px; + text-align: right; +} + +.popover-title.menu-tabs { + padding: .5rem .5rem 0; + display: block; +} + +.popover-title.menu-tabs .nav-tabs { + position: relative; + top: 1px; +} + +.popover-content { + padding: 10px 24px; +} \ No newline at end of file diff --git a/src/components/popover/popover.component.ts b/src/components/popover/popover.component.ts index 8e43c0b2..2946debb 100644 --- a/src/components/popover/popover.component.ts +++ b/src/components/popover/popover.component.ts @@ -86,39 +86,7 @@ import {NoneTabComponent} from './tab/none-tab.component'; `, - styles: - [` - :host { - display: flex; - flex-direction: column; - min-width: 577px; - padding: 0; - } - - .popover-action { - padding: 8px 14px; - margin: 0; - font-size: 14px; - background-color: #f7f7f7; - border-top: 1px solid #ebebeb; - border-radius: 0 0 5px 5px; - text-align: right; - } - - .popover-title.menu-tabs { - padding: .5rem .5rem 0; - display: block; - } - - .popover-title.menu-tabs .nav-tabs { - position: relative; - top: 1px; - } - - .popover-content { - padding: 10px 24px; - } - `], + styles: [ require('./popover.component.scss') ], host: { 'class': 'popover' }, directives: [ diff --git a/src/components/popover/tab/mouse-tab.component.scss b/src/components/popover/tab/mouse-tab.component.scss new file mode 100644 index 00000000..dec7d231 --- /dev/null +++ b/src/components/popover/tab/mouse-tab.component.scss @@ -0,0 +1,12 @@ +:host { + display: flex; +} + +.mouse-action { + flex: 1; + border-right: 1px solid black; +} + +.details { + flex: 2; +} \ No newline at end of file diff --git a/src/components/popover/tab/mouse-tab.component.ts b/src/components/popover/tab/mouse-tab.component.ts index 40f5bcfb..af8e996c 100644 --- a/src/components/popover/tab/mouse-tab.component.ts +++ b/src/components/popover/tab/mouse-tab.component.ts @@ -16,21 +16,7 @@ import { Component, OnInit } from '@angular/core';