@import "../../bibase"; .scrollbar-layout-main { box-sizing: border-box; outline: none; overflow: hidden; position: absolute; transition-duration: 250ms; transition-timing-function: ease; user-select: none; background-color: @scroll-color; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#0D666666,endColorstr=#0D666666)"; border-radius: 5px; } .bi-theme-dark { .scrollbar-layout-main { background-color: @scroll-color-theme-dark; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#0Dcccccc,endColorstr=#0Dcccccc)"; } } .scrollbar-layout-main-vertical { bottom: 0; right: 0; top: 0; transition-property: background-color; width: 10px; } .scrollbar-layout-main-vertical.public-scrollbar-main-active, .scrollbar-layout-main-vertical:hover { width: 10px; } .scrollbar-layout-main-horizontal { bottom: 0; height: 10px; left: 0; transition-property: background-color; background-color: @scroll-color; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#0D666666,endColorstr=#0D666666)"; } .bi-theme-dark { .scrollbar-layout-main-horizontal { background-color: @scroll-color-theme-dark; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#0Dcccccc,endColorstr=#0Dcccccc)"; } } /* Touching the scroll-track directly makes the scroll-track bolder */ .scrollbar-layout-main-horizontal.public-scrollbar-main-active, .scrollbar-layout-main-horizontal:hover { height: 10px; } .scrollbar-layout-face { left: 0; overflow: hidden; position: absolute; z-index: 1; } /** * This selector renders the "nub" of the scrollface. The nub must * be rendered as pseudo-element so that it won't receive any UI events then * we can get the correct `event.offsetX` and `event.offsetY` from the * scrollface element while dragging it. */ .scrollbar-layout-face:after { border-radius: 6px; content: ''; display: block; position: absolute; transition: background-color 250ms ease; } .scrollbar-layout-face-horizontal { bottom: 0; left: 0; top: 0; } .scrollbar-layout-face-horizontal:after { bottom: 2px; left: 0; top: 2px; width: 100%; } .scrollbar-layout-face-vertical { left: 0; right: 0; top: 0; } .scrollbar-layout-face-vertical:after { height: 100%; left: 2px; right: 2px; top: 0; } /** * scrollbars. */ /* Touching the scroll-track directly makes the scroll-track bolder */ .public-scrollbar-main.public-scrollbar-main-active, .public-scrollbar-main:hover { //background-color: rgba(255, 255, 255, 0.8); } .public-scrollbar-main-opaque, .public-scrollbar-main-opaque.public-scrollbar-main-active, .public-scrollbar-main-opaque:hover { //background-color: #fff; } .public-scrollbar-face:after { background-color: @scroll-thumb-color; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C666666,endColorstr=#4C666666)"; } .bi-theme-dark { .public-scrollbar-face:after { background-color: @scroll-thumb-color-theme-dark; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4Ccccccc,endColorstr=#4Ccccccc)"; } } .public-scrollbar-main:hover .public-scrollbar-face:after, .public-scrollbar-main-active .public-scrollbar-face:after, .public-scrollbar-faceActive:after { background-color: @scroll-thumb-focus-color; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#B2666666,endColorstr=#B2666666)"; } .bi-theme-dark { .public-scrollbar-main:hover .public-scrollbar-face:after, .public-scrollbar-main-active .public-scrollbar-face:after, .public-scrollbar-faceActive:after { background-color: @scroll-thumb-focus-color-theme-dark; filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#B2cccccc,endColorstr=#B2cccccc)"; } } //horizontalScrollbar .horizontal-scrollbar { bottom: 0; position: absolute; }