Alex Rivera | Logout

How are scrollbars in new Google Docs UI styled (esp. the arrow buttons)?

Asked 2011-10-12T15:00:11.213
25

The new Google Docs UI features cool gray scrollbars.

Screenshot of the Google Docs UI

These appear to be regular scrollbars styled with selectors like ::-webkit-scrollbar-thumb. Which is nice and accessible.

However, I can't get arrow buttons to appear (circled on the screenshot). Inspector shows no corresponding DOM elements or any special CSS. So the question is, how these custom scrollbars are made, including the arrow buttons?

Please check out this fiddle.

Edit:

So it seems that just not all css rules appear in the Inspector.

In particular, you'd need ::-webkit-scrollbar-button:vertical:decrement and ::-webkit-scrollbar-button:vertical:increment, and their horizontal equivalents.

Please see new fiddle (updated 27 Apr. 2012).

Edit
Report

1 Answer

0

A quick, easy, cross browser solution would be to use a jQuery plugin like jScrollPane

answered 2011-10-13T11:09:43.983

Your Answer