From e5056a7be31413def380d7043892df0737d8ef21 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 1 May 2022 16:42:37 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 8 +++++++ ts/domtools.css.basestyles.ts | 40 +++++++++++++++++------------------ 2 files changed, 27 insertions(+), 21 deletions(-) create mode 100644 ts/00_commitinfo_data.ts diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts new file mode 100644 index 0000000..35c5212 --- /dev/null +++ b/ts/00_commitinfo_data.ts @@ -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' +} diff --git a/ts/domtools.css.basestyles.ts b/ts/domtools.css.basestyles.ts index 26bfb72..2a85947 100644 --- a/ts/domtools.css.basestyles.ts +++ b/ts/domtools.css.basestyles.ts @@ -6,30 +6,28 @@ import { css, unsafeCSS } from 'lit'; * changes scrollbar styles to be consistent across OS borders */ export const scrollBarStyles: string = (() => { - const returnStyles = - navigator.userAgent.indexOf('Mac OS X') === -1 - ? css` - /* width */ - ::-webkit-scrollbar { - width: 6px; - } + const returnStylesOld = navigator.userAgent.indexOf('Mac OS X') === -1 ? css``.cssText : ``; + const returnStyles = css` + /* width */ + ::-webkit-scrollbar { + width: 0px; + } - /* Track */ - ::-webkit-scrollbar-track { - background: #111; - } + /* Track */ + ::-webkit-scrollbar-track { + background: #111; + } - /* Handle */ - ::-webkit-scrollbar-thumb { - background: #666; - } + /* Handle */ + ::-webkit-scrollbar-thumb { + background: #666; + } - /* Handle on hover */ - ::-webkit-scrollbar-thumb:hover { - background: #777; - } - `.cssText - : ``; + /* Handle on hover */ + ::-webkit-scrollbar-thumb:hover { + background: #777; + } + `.cssText; return returnStyles; })();