doortts doortts 2019-01-09
sidebar: Add scrollbar to sidebar area
@315e65b191f58bf0bed5b1b323378a835f3905fa
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -11,7 +11,20 @@
     top: 0;
     left: 0;
     bottom: 0;
-    min-height: 100vh;
+    height: 100vh;
+    overflow-y: auto;
+    overflow-x: hidden;
+    -ms-overflow-style: -ms-autohiding-scrollbar;
+
+    &::-webkit-scrollbar {
+        height: 10px;
+        width: 5px;
+        background: lightgray;
+    }
+
+    &::-webkit-scrollbar-thumb {
+        background: #2788ba;
+    }
 
     .nav {
         width: 270px;
Add a comment
List