From dc5a29a976ed741ab84f222c7b690f54001ccd8b Mon Sep 17 00:00:00 2001 From: yanas Date: Tue, 23 May 2017 15:06:45 -0500 Subject: [PATCH] Re-styles scrollbars --- css/_base.scss | 25 +++++++++++++++++++++++++ css/_chat.scss | 44 ++++++++++++++++++++++---------------------- 2 files changed, 47 insertions(+), 22 deletions(-) diff --git a/css/_base.scss b/css/_base.scss index 5774cbc54..68d855f4b 100644 --- a/css/_base.scss +++ b/css/_base.scss @@ -150,3 +150,28 @@ form { -webkit-user-select: text; user-select: text; } + +/** + * Re-style default OS scrollbar. + */ +::-webkit-scrollbar { + background: transparent; + width: 7px; +} + +::-webkit-scrollbar-button { + display: none; +} + +::-webkit-scrollbar-track { + background: transparent; +} + +::-webkit-scrollbar-track-piece { + background: transparent; +} + +::-webkit-scrollbar-thumb { + background: rgba(0, 0, 0, .5); + border-radius: 4px; +} diff --git a/css/_chat.scss b/css/_chat.scss index a6114db4f..ade29ecd1 100644 --- a/css/_chat.scss +++ b/css/_chat.scss @@ -31,6 +31,28 @@ a:active { color: black; } + + &::-webkit-scrollbar { + background: #06a5df; + width: 7px; + } + + &::-webkit-scrollbar-button { + display: none; + } + + &::-webkit-scrollbar-track { + background: black; + } + + &::-webkit-scrollbar-track-piece { + background: black; + } + + &::-webkit-scrollbar-thumb { + background: #06a5df; + border-radius: 4px; + } } #chat_container.is-conversation-mode #chatconversation { @@ -212,28 +234,6 @@ line-height: 30px; } -:not(.default-scrollbar)::-webkit-scrollbar { - background: #06a5df; - width: 7px; -} - -:not(.default-scrollbar)::-webkit-scrollbar-button { - display: none; -} - -:not(.default-scrollbar)::-webkit-scrollbar-track { - background: black; -} - -:not(.default-scrollbar)::-webkit-scrollbar-track-piece { - background: black; -} - -:not(.default-scrollbar)::-webkit-scrollbar-thumb { - background: #06a5df; - border-radius: 4px; -} - #usermsg::-webkit-scrollbar-track-piece { background: #3a3a3a; }