Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
fbe2f381c9 | |||
3cb0aceaad | |||
6d6c92eee4 | |||
4385909677 | |||
2dc36d8170 | |||
ffbde62744 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-domtools",
|
"name": "@designestate/dees-domtools",
|
||||||
"version": "1.0.45",
|
"version": "1.0.48",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-domtools",
|
"name": "@designestate/dees-domtools",
|
||||||
"version": "1.0.45",
|
"version": "1.0.48",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "tools to simplify complex css structures",
|
"description": "tools to simplify complex css structures",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import { DomTools } from './domtools.classes.domtools';
|
import { DomTools } from './domtools.classes.domtools';
|
||||||
|
|
||||||
export const scrollBarStyles = `
|
/**
|
||||||
|
* changes scrollbar styles to be consistent across OS borders
|
||||||
|
*/
|
||||||
|
export const scrollBarStyles = (() => {
|
||||||
|
const returnStyles = navigator.userAgent.indexOf("Windows") !== -1 ? `
|
||||||
/* width */
|
/* width */
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 8px;
|
width: 8px;
|
||||||
@ -20,7 +24,8 @@ export const scrollBarStyles = `
|
|||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background: #777;
|
background: #777;
|
||||||
}
|
}
|
||||||
`;
|
` : ``;
|
||||||
|
})();
|
||||||
|
|
||||||
export const setupGlobalTheme = (domToolsInstance: DomTools) => {
|
export const setupGlobalTheme = (domToolsInstance: DomTools) => {
|
||||||
const styles = `
|
const styles = `
|
||||||
|
@ -7,7 +7,7 @@ import { html } from 'lit-element';
|
|||||||
/**
|
/**
|
||||||
* styles to be included in every webcomponent
|
* styles to be included in every webcomponent
|
||||||
*/
|
*/
|
||||||
export const styles = html`;
|
export const styles = html`
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
|
Reference in New Issue
Block a user