Compare commits

...

2 commits

Author SHA1 Message Date
fayazara
f2bbb4aef7 Revert indentation changes 2022-11-14 14:46:39 +05:30
fayazara
28ea1a154f Add custom scrollbars 2022-11-13 19:48:47 +05:30
5 changed files with 47 additions and 4 deletions

View file

@ -129,11 +129,17 @@ $spinner-before-border-color: rgba(255, 255, 255, 0.7);
}
@mixin scroll-on-hover() {
overflow: hidden;
&:hover {
overflow-y: auto;
// Because firefox foes not support overflow: overlay
@-moz-document url-prefix() {
& {
overflow: hidden;
&:hover {
overflow-y: auto;
}
}
}
overflow-y: overlay;
overflow-y: auto;
}

View file

@ -1 +1,35 @@
@import 'woot';
* {
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
scrollbar-width: 6px;
scrollbar-color: transparent;
}
*::-webkit-scrollbar {
display: none;
}
*:hover::-webkit-scrollbar {
display: block;
}
::-webkit-scrollbar {
height: 6px;
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(128, 128, 128, 0.2);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:active {
background: rgba(128, 128, 128, 0.5);
border-radius: 3px;
}

View file

@ -119,6 +119,7 @@
flex-direction: column;
height: 100%;
margin: 0;
overflow-y: overlay;
overflow-y: auto;
padding-bottom: var(--space-normal);
position: relative;

View file

@ -238,6 +238,7 @@ export default {
}
.secondary-sidebar {
overflow-y: overlay;
overflow-y: auto;
height: 100%;
}

View file

@ -242,6 +242,7 @@ export default {
background: white;
border-left: 1px solid var(--color-border);
font-size: $font-size-small;
overflow-y: overlay;
overflow-y: auto;
overflow: auto;
position: relative;