.mainContent { overflow: auto; overflow: overlay; } /* Let's get this party started */ .mainContent::-webkit-scrollbar { width: 1.2em; position: relative !important; z-index: 10000 !important; } .mainContent::-webkit-scrollbar * { width: 1.2em; position: relative !important; z-index: 10000 !important; } /* Track */ .mainContent::-webkit-scrollbar-track { /*-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); border-radius: 1em;*/ background-color: transparent; } /* Handle */ .mainContent::-webkit-scrollbar-thumb { border-radius: 1em; background: rgba(139, 23, 36, 0.8); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5); border: 0.3em solid transparent; background-clip: content-box; } .mainContent::-webkit-scrollbar-thumb:window-inactive { border-radius: 1em; background: rgba(139, 23, 36, 0.3); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5); border: 0.3em solid transparent; background-clip: content-box; }