2020-05-25 15:57:47 +00:00
|
|
|
import * as plugins from './domtools.plugins';
|
|
|
|
import { DomTools } from './domtools.classes.domtools';
|
2020-09-13 14:57:30 +00:00
|
|
|
import { scrollBarStyles } from './domtools.css.theme';
|
2020-05-25 15:57:47 +00:00
|
|
|
|
|
|
|
import { html } from 'lit-element';
|
2020-09-13 14:57:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* styles to be included in every webcomponent
|
|
|
|
*/
|
|
|
|
export const styles = html`;
|
2020-05-25 15:57:47 +00:00
|
|
|
<style>
|
|
|
|
* {
|
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2020-09-13 14:57:30 +00:00
|
|
|
|
|
|
|
${scrollBarStyles}
|
2020-05-25 15:57:47 +00:00
|
|
|
</style>
|
|
|
|
`;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* a basic setup for elements
|
|
|
|
* makes sure everything is in check
|
|
|
|
*/
|
|
|
|
export const setup = async () => {
|
|
|
|
const domTools = await DomTools.setupDomTools();
|
|
|
|
domTools.runOnce('elementBasicSetup', async () => {
|
|
|
|
// bodyStyles
|
|
|
|
domTools.setGlobalStyles(`
|
|
|
|
body {
|
|
|
|
margin: 0px;
|
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
`);
|
|
|
|
|
|
|
|
// material font
|
|
|
|
domTools.setGlobalStyles(`
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Material Icons';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
|
|
|
src: url(https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format('woff2');
|
|
|
|
}
|
|
|
|
`);
|
|
|
|
|
|
|
|
// Roboto Font
|
|
|
|
domTools.setGlobalStyles(`
|
|
|
|
@import url('https://fonts.googleapis.com/css?family=Roboto');
|
|
|
|
`);
|
|
|
|
});
|
|
|
|
};
|