/** * gemini-scrollbar * @version 1.5.2 * @link http://noeldelgado.github.io/gemini-scrollbar/ * @license MIT */ /* disable selection while dragging */ .gm-scrollbar-disable-selection { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* fallback for native floating scrollbars */ .gm-prevented { -webkit-overflow-scrolling: touch; } .gm-prevented > .gm-scrollbar { display: none; } /* actual gemini-scrollbar styles */ .gm-scrollbar-container { position: relative; overflow: hidden!important; width: 100%; height: 100%; } .gm-scrollbar { position: absolute; right: 2px; bottom: 2px; z-index: 1; border-radius: 3px; &:hover { .thumb { opacity: 1; transition: opacity 100ms ease-in-out; } } } .gm-scrollbar.-vertical { width: 6px; top: 2px; } .gm-scrollbar.-horizontal { height: 6px; left: 2px; } .gm-scrollbar .thumb { position: relative; display: block; width: 0; height: 0; cursor: pointer; border-radius: inherit; background-color: $dark-5; transform: translate3d(0,0,0); opacity: 0; } .gemini-scrolling { .gm-scrollbar .thumb { opacity: 1; transition: opacity 100ms ease-in-out; } } .gm-scrollbar .thumb:hover, .gm-scrollbar .thumb:active { background-color: $blue-dark; } .gm-scrollbar.-vertical .thumb { width: 100%; } .gm-scrollbar.-horizontal .thumb { height: 100%; } .gm-scrollbar-container .gm-scroll-view { width: 100%; height: 100%; overflow: scroll; transform: translate3d(0,0,0); -webkit-overflow-scrolling: touch; } /* @option: autoshow */ .gm-scrollbar-container.gm-autoshow .gm-scrollbar { opacity: 0; transition: opacity 120ms ease-out; } .gm-scrollbar-container.gm-autoshow:hover > .gm-scrollbar, .gm-scrollbar-container.gm-autoshow:active > .gm-scrollbar, .gm-scrollbar-container.gm-autoshow:focus > .gm-scrollbar { opacity: 1; transition: opacity 340ms ease-out; } .gm-resize-trigger { position: absolute; display: block; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0; } // Srollbars // ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar:hover { height: 8px; } ::-webkit-scrollbar-button:start:decrement, ::-webkit-scrollbar-button:end:increment { display: none; } ::-webkit-scrollbar-button:horizontal:decrement { display: none; } ::-webkit-scrollbar-button:horizontal:increment { display: none; } ::-webkit-scrollbar-button:vertical:decrement { display: none; } ::-webkit-scrollbar-button:vertical:increment { display: none; } ::-webkit-scrollbar-button:horizontal:decrement:active { background-image: none; } ::-webkit-scrollbar-button:horizontal:increment:active { background-image: none; } ::-webkit-scrollbar-button:vertical:decrement:active { background-image: none; } ::-webkit-scrollbar-button:vertical:increment:active {background-image: none; } ::-webkit-scrollbar-track-piece { background-color: transparent; } ::-webkit-scrollbar-thumb:vertical { height: 50px; background: -webkit-gradient(linear, left top, right top, color-stop(0%, $scrollbarBackground), color-stop(100%, $scrollbarBackground2)); border: 1px solid $scrollbarBorder; border-top: 1px solid $scrollbarBorder; border-left: 1px solid $scrollbarBorder; } ::-webkit-scrollbar-thumb:horizontal { width: 50px; background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $scrollbarBackground), color-stop(100%, $scrollbarBackground2)); border: 1px solid $scrollbarBorder; border-top: 1px solid $scrollbarBorder; border-left: 1px solid $scrollbarBorder; }