fix(core): update

This commit is contained in:
Philipp Kunz 2022-05-01 16:42:37 +02:00
parent 989d4d35d2
commit e5056a7be3
2 changed files with 27 additions and 21 deletions

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@designestate/dees-domtools',
version: '2.0.20',
description: 'tools to simplify complex css structures'
}

View File

@ -6,30 +6,28 @@ import { css, unsafeCSS } from 'lit';
* changes scrollbar styles to be consistent across OS borders * changes scrollbar styles to be consistent across OS borders
*/ */
export const scrollBarStyles: string = (() => { export const scrollBarStyles: string = (() => {
const returnStyles = const returnStylesOld = navigator.userAgent.indexOf('Mac OS X') === -1 ? css``.cssText : ``;
navigator.userAgent.indexOf('Mac OS X') === -1 const returnStyles = css`
? css` /* width */
/* width */ ::-webkit-scrollbar {
::-webkit-scrollbar { width: 0px;
width: 6px; }
}
/* Track */ /* Track */
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: #111; background: #111;
} }
/* Handle */ /* Handle */
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: #666; background: #666;
} }
/* Handle on hover */ /* Handle on hover */
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: #777; background: #777;
} }
`.cssText `.cssText;
: ``;
return returnStyles; return returnStyles;
})(); })();