]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #80 - pretty scrollbars for lucky webkit users
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 19:39:30 +0000 (21:39 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 19:39:30 +0000 (21:39 +0200)
app/assets/stylesheets/application.scss

index 8c90eb065aa2b136d37cb1c5b0ab6dae9c946bb8..ddaece8d898f18fb065c8f34f8637abab0e16714 100644 (file)
@@ -57,6 +57,43 @@ table {
   border-spacing: 0;
 }
 
+::-webkit-scrollbar {
+  width: 8px;
+  height: 8px;
+}
+
+::-webkit-scrollbar-thumb {
+  background: #42495b;
+  border: 0px none #ffffff;
+  border-radius: 50px;
+}
+
+::-webkit-scrollbar-thumb:hover {
+  background: #525a70;
+}
+
+::-webkit-scrollbar-thumb:active {
+  background: #42495b;
+}
+
+::-webkit-scrollbar-track {
+  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
+  border: 0px none #ffffff;
+  border-radius: 50px;
+}
+
+::-webkit-scrollbar-track:hover {
+  background: #282c37;
+}
+
+::-webkit-scrollbar-track:active {
+  background: #282c37;
+}
+
+::-webkit-scrollbar-corner {
+  background: transparent;
+}
+
 body {
   font-family: 'Roboto', sans-serif;
   background: #282c37 image-url('background-photo.jpeg');