From 5a9be53435fcd8168aa7f4ddbec085a135f7b98a Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Fri, 8 Jun 2012 14:02:26 -0700 Subject: Overriding scrollbar styles on the template so the scroll track is not white. This has the side benefit of fixing some of the zoom issues with the scrollbar too. Signed-off-by: Nivesh Rajbhandari --- js/document/templates/banner/index.html | 23 +++++++++++++++++++++++ js/document/templates/html/index.html | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/js/document/templates/banner/index.html b/js/document/templates/banner/index.html index 08a998e5..626dc0bc 100755 --- a/js/document/templates/banner/index.html +++ b/js/document/templates/banner/index.html @@ -71,6 +71,29 @@ -webkit-transform-style: preserve-3d; -webkit-transform: perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } + + ::-webkit-scrollbar { width: 11px; height: 11px; } + ::-webkit-scrollbar-button:start:decrement, ::-webkit-scrollbar-button:end:increment { display: none; } + ::-webkit-scrollbar-button:vertical:start:increment, body::-webkit-scrollbar-button:vertical:end:decrement { display: none; } + ::-webkit-scrollbar-button:horizontal:start:increment, body::-webkit-scrollbar-button:horizontal:end:decrement { display: none; } + ::-webkit-scrollbar-track:vertical { background-color: black; } + ::-webkit-scrollbar-track:horizontal { background-color: black; } + ::-webkit-scrollbar-track-piece:vertical:start { background-color: transparent; } + ::-webkit-scrollbar-track-piece:horizontal:start { background-color: transparent; } + ::-webkit-scrollbar-track-piece:vertical:end { background-color: transparent; } + ::-webkit-scrollbar-track-piece:horizontal:end { background-color: transparent; } + ::-webkit-scrollbar-thumb:vertical { border-color: black; border-style: solid; border-width: 2px; -webkit-border-radius: 6px; background: -webkit-gradient(linear, left top, right top, color-stop(0.16, #8c8c8c), color-stop(0.49, #adadad), color-stop(0.82, #8c8c8c)); } + ::-webkit-scrollbar-thumb:vertical:hover { border-color: black; border-style: solid; border-width: 2px; -webkit-border-radius: 6px; background: -webkit-gradient(linear, left top, right top, color-stop(0.1, #bebebe), color-stop(0.5, white), color-stop(0.9, #bebebe)); } + ::-webkit-scrollbar-thumb:horizontal { border-color: black; border-style: solid; border-width: 2px; -webkit-border-radius: 6px; background: -webkit-gradient(linear, left top, left bottom, color-stop(0.1, #8c8c8c), color-stop(0.5, #adadad), color-stop(0.9, #8c8c8c)); } + ::-webkit-scrollbar-thumb:horizontal:hover { border-color: black; border-style: solid; border-width: 2px; -webkit-border-radius: 6px; background: -webkit-gradient(linear, left top, left bottom, color-stop(0.16, #bebebe), color-stop(0.49, white), color-stop(0.82, #bebebe)); } + ::-webkit-scrollbar-corner { background-color: black; } + ::-webkit-scrollbar-corner:window-inactive { background-color: black; } + ::-webkit-scrollbar-track:vertical:disabled { display: block; } + ::-webkit-scrollbar-track:horizontal:disabled { display: block; } + ::-webkit-scrollbar-track-piece:disabled { display: block; } + ::-webkit-scrollbar-corner:disabled { display: block; } + ::-webkit-resizer:disabled { display: block; } +