UNPKG

responsivewebframework

Version:

Jalasoft Foundation Front End Framework ========================================

134 lines (109 loc) 2.21 kB
// Scroll bar .scrollable { position: relative; } .scrollable:focus { outline: 0; } .scrollable .viewport { position: relative; overflow: hidden; } .scrollable .viewport .overview { position: absolute; } .scrollable .scroll-bar { display: none; } .scrollable .scroll-bar.vertical { position: absolute; right: 0; height: 100%; z-index: 2000; } .scrollable .scroll-bar.horizontal { position: relative; width: 100%; } .scrollable .scroll-bar .thumb { position: absolute; } .scrollable .scroll-bar.vertical .thumb { width: 100%; min-height: 10px; } .scrollable .scroll-bar.horizontal .thumb { height: 100%; min-width: 10px; left: 0; } .overview { height: auto; width: auto; } .not-selectable { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /*Default skin*/ .scrollable.scroll-default { padding-right: 25px; padding-bottom: 4px; background-color: transparent; } .scrollable.scroll-default .scroll-bar.vertical { width: 14px; padding: 2px; background-color: rgb(235, 235, 235); } .scrollable.scroll-default .scroll-bar.horizontal { height: 14px; padding: 2px; background-color: rgb(235, 235, 235); } .scrollable.scroll-default .scroll-bar .thumb { background-color: rgb(117, 117, 117); opacity: 0.5; width: 14px; margin-top: 2px; } .scrollable.scroll-default .scroll-bar:hover .thumb { opacity: 1; } /*Inner skin*/ .scrollable.scroll-inner { padding-right: 12px; padding-bottom: 4px; background-color: transparent; } .scrollable.scroll-inner .scroll-bar.vertical { width: 8px; padding: 2px; background-color: rgb(235, 235, 235); } .scrollable.scroll-inner .scroll-bar.horizontal { height: 8px; padding: 2px; background-color: rgb(235, 235, 235); } .scrollable.scroll-inner .scroll-bar .thumb { background-color: rgb(117, 117, 117); opacity: 0.5; width: 8px; margin-top: 2px; } .scrollable.scroll-inner .scroll-bar:hover .thumb { opacity: 1; } .jl-scrollbar { width: ~'calc(100% - 25px)'; height: ~'calc(100% - 4px)'; } .jl-scrollbar-inner { width: 100%; height: 100%; }