From 1998811678e68e67b7eb3699ba80fa628e4a53cb Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Wed, 2 Jan 2019 11:17:48 +0200 Subject: [PATCH] scroll-bar-width css variable attached to global --- src/app/styles.less | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/styles.less b/src/app/styles.less index d53f5f081..054ae2fce 100644 --- a/src/app/styles.less +++ b/src/app/styles.less @@ -42,6 +42,10 @@ font-style: normal; } +:root { + --scroll-bar-width: 8px; +} + :global { * { margin: 0px; @@ -64,7 +68,7 @@ line-height: 1; ::-webkit-scrollbar { - width: 8px; + width: var(--scroll-bar-width); } ::-webkit-scrollbar-thumb {