From a4e16ea0a9756be9b6ece32d434319709e21bb6e Mon Sep 17 00:00:00 2001 From: Sebastian Kellgren Date: Fri, 9 Jan 2015 13:30:05 +0100 Subject: [PATCH] Add /deep/ combinator To style scrollbars through shadow boundaries because there's bound to be components that don't bend over backwards to inherit this styling. --- stylesheets/atom.less | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/stylesheets/atom.less b/stylesheets/atom.less index d5f4c5b..5510af4 100644 --- a/stylesheets/atom.less +++ b/stylesheets/atom.less @@ -7,3 +7,20 @@ .workspace { background-color: @app-background-color; } + +.scrollbars-visible-always { + /deep/ ::-webkit-scrollbar { + width: 10px; + height: 10px; + } + + /deep/ ::-webkit-scrollbar-track, + /deep/ ::-webkit-scrollbar-corner { + background: @scroll-background; + } + + /deep/ ::-webkit-scrollbar-thumb { + background: @scroll-thumb; + box-shadow: 0 0 1px black inset; + } +}