Skip to content

Instantly share code, notes, and snippets.

@alunux
Last active August 30, 2016 22:59
Show Gist options
  • Save alunux/75935b097e4c5c1d186700ecd526953e to your computer and use it in GitHub Desktop.
Save alunux/75935b097e4c5c1d186700ecd526953e to your computer and use it in GitHub Desktop.
.scrollbars-visible-always {
// blok kode berikut untuk pengaturan scrollbar pada editor //
/deep/::-webkit-scrollbar {
width: 0.6rem;
height: 0.6rem;
z-index: 99999;
display: none; // baris ini yang membuat scrollbar menjadi tersembunyi secara default
}
/deep/:hover::-webkit-scrollbar {
display: block; // baris ini yang membuat scrollbar terlihat saat cursor mengarah kepadanya
}
//////////////////////////////////////////////////////////////////////////
/deep/::-webkit-scrollbar-track,
/deep/::-webkit-scrollbar-corner {
background: transparent;
}
/deep/::-webkit-scrollbar-thumb {
background: fade(@base-color, 40%);
border-radius: 0;
border: none;
}
// blok kode berikut untuk pengaturan scrollbar pada panel samping kiri //
.tree-view-scroller {
&::-webkit-scrollbar {
display: none;
width: 0.35rem;
height: 0.35rem;
}
&:hover::-webkit-scrollbar {
display: block;
}
}
//////////////////////////////////////////////////////////////////////////
&.panel-contrast {
.tree-view-scroller, .nuclide-ui-panel-component-scroller, .remote-ftp-view > .scroller {
&::-webkit-scrollbar-track {
background: darken(@app-background-color, 2%);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment