Commit 5398c7a1 authored by akiraohgaki's avatar akiraohgaki

Fix for shared style

parent 4c23b0bf
......@@ -31,7 +31,7 @@ export default class AboutdialogComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
div[slot="content"] {
......
......@@ -22,7 +22,7 @@ export default class CollectiondialogComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<app-dialog data-width="80%" data-height="80%" data-header data-auto-close>
<h3 slot="header">My Collection</h3>
......
......@@ -23,7 +23,7 @@ export default class CollectiondownloadComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
ul[data-container] {
......
......@@ -20,7 +20,7 @@ export default class CollectioninstalledComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
ul[data-container] {
......
......@@ -26,7 +26,7 @@ export default class CollectionsidebarComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
:host {
......
......@@ -21,7 +21,7 @@ export default class CollectionupdateComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
ul[data-container] {
......
......@@ -38,7 +38,7 @@ export default class OmniboxComponent extends BaseComponent {
const autoCloseAction = (autoCloseStatus === 'active') ? 'omnibox_autoClose' : '';
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
@import url(styles/material-icons.css);
......
......@@ -26,7 +26,7 @@ export default class RootComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
app-page {
......
......@@ -18,7 +18,7 @@ export default class SplashscreenComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
@import url(images/icon.css);
......
......@@ -26,7 +26,7 @@ export default class ToolbarComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
:host {
......
......@@ -31,7 +31,7 @@ export default class WebviewComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
:host {
......
......@@ -20,10 +20,8 @@ export default class BaseComponent extends Chirit.Component {
get sharedStyle() {
return `
<style>
@import url(styles/reset.css);
@import url(styles/component.css);
</style>
`;
}
......
......@@ -31,7 +31,7 @@ export default class DialogComponent extends BaseComponent {
const autoCloseAction = (autoCloseStatus === 'active') ? 'dialog_autoClose' : '';
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
div[data-container] {
......
......@@ -25,7 +25,7 @@ export default class IconbuttonComponent extends BaseComponent {
const disabled = (status === 'inactive') ? 'disabled' : '';
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
@import url(styles/material-icons.css);
......
......@@ -10,7 +10,7 @@ export default class IndicatorComponent extends BaseComponent {
const status = this.getAttribute('data-status') || 'inactive';
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
:host {
......
......@@ -33,7 +33,7 @@ export default class MenuComponent extends BaseComponent {
const autoCloseAction = (autoCloseStatus === 'active') ? 'menu_autoClose' : '';
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
:host {
......
......@@ -4,7 +4,7 @@ export default class PageComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<style>
:host {
......
......@@ -4,7 +4,7 @@ export default class SwitchviewComponent extends BaseComponent {
render() {
return `
${this.sharedStyle}
<style>${this.sharedStyle}</style>
<slot name="content"></slot>
`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment