Compare commits

...

3 Commits

Author SHA1 Message Date
7bde843e43 1.0.45 2020-09-13 14:57:31 +00:00
faa7adcffe fix(core): update 2020-09-13 14:57:30 +00:00
7977538c05 1.0.44 2020-09-12 14:00:12 +00:00
4 changed files with 33 additions and 22 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.43",
"version": "1.0.45",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.43",
"version": "1.0.45",
"private": false,
"description": "tools to simplify complex css structures",
"main": "dist_ts/index.js",

View File

@ -1,26 +1,30 @@
import { DomTools } from './domtools.classes.domtools';
export const scrollBarStyles = `
/* width */
::-webkit-scrollbar {
width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
background: #111;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #666;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #777;
}
`;
export const setupGlobalTheme = (domToolsInstance: DomTools) => {
const styles = `
/* width */
::-webkit-scrollbar {
width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
background: #111;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #666;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #777;
}
${scrollBarStyles}
`;
domToolsInstance.setGlobalStyles(styles);

View File

@ -1,13 +1,20 @@
import * as plugins from './domtools.plugins';
import { DomTools } from './domtools.classes.domtools';
import { scrollBarStyles } from './domtools.css.theme';
import { html } from 'lit-element';
export const styles = html`
/**
* styles to be included in every webcomponent
*/
export const styles = html`;
<style>
* {
font-family: 'Roboto', sans-serif;
box-sizing: border-box;
}
${scrollBarStyles}
</style>
`;