{"id":59,"date":"2014-10-06T20:52:29","date_gmt":"2014-10-06T20:52:29","guid":{"rendered":"http:\/\/jamesdowen.com\/blog\/?p=59"},"modified":"2014-10-06T21:07:33","modified_gmt":"2014-10-06T21:07:33","slug":"google-style-css-scrollbar","status":"publish","type":"post","link":"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/","title":{"rendered":"Google-style CSS scrollbar"},"content":{"rendered":"<p>On every website I build (including this very one you are reading this from now), I also add what I like to think is my signature element &#8211; a thin, <strong>custom CSS<\/strong>, &#8220;Google-style&#8221; scrollbar. It&#8217;s not a massive change to the website, but I certainly think it beats the default scrollbar that is rendered by most browsers today. I call it the <strong>Google-style scrollbar<\/strong> simply because they seem to adopt a similar method on Google+ (although there&#8217;s is generally wider than mine). I think it&#8217;s a sleek touch that can easily be added to any website simply by placing the following CSS onto the website:<\/p>\n<pre class=\"theme:solarized-dark lang:css decode:true\">        ::-webkit-scrollbar {\r\n            width: 5px;\r\n        }\r\n        ::-webkit-scrollbar-track {\r\n            background: #FFF;\r\n            -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);\r\n        }\r\n        ::-webkit-scrollbar-thumb {\r\n            background: #CCC;\r\n            -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);\r\n        }\r\n        ::-webkit-scrollbar-thumb:hover {\r\n            background: #AAA;\r\n        }\r\n        ::-webkit-scrollbar-thumb:active {\r\n            background: #888;\r\n            -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);\r\n        }<\/pre>\n<p>This scrollbar is currently compatible with the latest versions of Opera, Google Chrome, Safari, Android, and iOS.<\/p>\n<p style=\"font-size:11px;\">By all means this isn&#8217;t something I&#8217;ve invented. And by all means this isn&#8217;t anything new. I just don&#8217;t think that a lot of designers and developers are aware of it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On every website I build (including this very one you are reading this from now), I also add what I like to think is my signature element &#8211; a thin, custom CSS, &#8220;Google-style&#8221; scrollbar. It&#8217;s not a massive change to the website, but I certainly think it beats the default scrollbar that is rendered by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[19,47,46],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google-style CSS scrollbar | James Dowen<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google-style CSS scrollbar | James Dowen\" \/>\n<meta property=\"og:description\" content=\"On every website I build (including this very one you are reading this from now), I also add what I like to think is my signature element &#8211; a thin, custom CSS, &#8220;Google-style&#8221; scrollbar. It&#8217;s not a massive change to the website, but I certainly think it beats the default scrollbar that is rendered by [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/\" \/>\n<meta property=\"og:site_name\" content=\"James Dowen\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-06T20:52:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-06T21:07:33+00:00\" \/>\n<meta name=\"author\" content=\"James\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/\",\"url\":\"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/\",\"name\":\"Google-style CSS scrollbar | James Dowen\",\"isPartOf\":{\"@id\":\"https:\/\/jamesdowen.com\/blog\/#website\"},\"datePublished\":\"2014-10-06T20:52:29+00:00\",\"dateModified\":\"2014-10-06T21:07:33+00:00\",\"author\":{\"@id\":\"https:\/\/jamesdowen.com\/blog\/#\/schema\/person\/51179280d7d76166490e1c27be360931\"},\"breadcrumb\":{\"@id\":\"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jamesdowen.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google-style CSS scrollbar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jamesdowen.com\/blog\/#website\",\"url\":\"https:\/\/jamesdowen.com\/blog\/\",\"name\":\"James Dowen\",\"description\":\"A blog about web development.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jamesdowen.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jamesdowen.com\/blog\/#\/schema\/person\/51179280d7d76166490e1c27be360931\",\"name\":\"James\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jamesdowen.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e4d7008d9ebb77f8de729f655e30d11f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e4d7008d9ebb77f8de729f655e30d11f?s=96&d=mm&r=g\",\"caption\":\"James\"},\"sameAs\":[\"http:\/\/jamesdowen.com\"],\"url\":\"https:\/\/jamesdowen.com\/blog\/author\/jdowen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google-style CSS scrollbar | James Dowen","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/","og_locale":"en_US","og_type":"article","og_title":"Google-style CSS scrollbar | James Dowen","og_description":"On every website I build (including this very one you are reading this from now), I also add what I like to think is my signature element &#8211; a thin, custom CSS, &#8220;Google-style&#8221; scrollbar. It&#8217;s not a massive change to the website, but I certainly think it beats the default scrollbar that is rendered by [&hellip;]","og_url":"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/","og_site_name":"James Dowen","article_published_time":"2014-10-06T20:52:29+00:00","article_modified_time":"2014-10-06T21:07:33+00:00","author":"James","twitter_misc":{"Written by":"James","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/","url":"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/","name":"Google-style CSS scrollbar | James Dowen","isPartOf":{"@id":"https:\/\/jamesdowen.com\/blog\/#website"},"datePublished":"2014-10-06T20:52:29+00:00","dateModified":"2014-10-06T21:07:33+00:00","author":{"@id":"https:\/\/jamesdowen.com\/blog\/#\/schema\/person\/51179280d7d76166490e1c27be360931"},"breadcrumb":{"@id":"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jamesdowen.com\/blog\/google-style-css-scrollbar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jamesdowen.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Google-style CSS scrollbar"}]},{"@type":"WebSite","@id":"https:\/\/jamesdowen.com\/blog\/#website","url":"https:\/\/jamesdowen.com\/blog\/","name":"James Dowen","description":"A blog about web development.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jamesdowen.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/jamesdowen.com\/blog\/#\/schema\/person\/51179280d7d76166490e1c27be360931","name":"James","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jamesdowen.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e4d7008d9ebb77f8de729f655e30d11f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e4d7008d9ebb77f8de729f655e30d11f?s=96&d=mm&r=g","caption":"James"},"sameAs":["http:\/\/jamesdowen.com"],"url":"https:\/\/jamesdowen.com\/blog\/author\/jdowen\/"}]}},"_links":{"self":[{"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/posts\/59"}],"collection":[{"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":5,"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jamesdowen.com\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}