0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/assets/sass/lib/nanoscroller.scss
Paul Adam Davis 9b94e71805 Static nanoscroller integration
References #1892

A static integration of https://github.com/jamesflorentino/nanoScrollerJS



This is WIP with the goal of getting feedback on and deciding how we should integrate this into Ghost.
2014-09-14 17:15:57 +01:00

52 lines
No EOL
999 B
SCSS

.nano {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.nano > .nano-content {
position: absolute;
overflow: scroll;
overflow-x: hidden;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.nano > .nano-content:focus {
outline: thin dotted;
}
.nano > .nano-content::-webkit-scrollbar {
display: none;
}
.has-scrollbar > .nano-content::-webkit-scrollbar {
display: block;
}
.nano > .nano-pane {
background: transparent;
position: absolute;
width: 6px;
right: 2px;
top: 2px;
bottom: 2px;
opacity: 0;
transition: 0.35s;
border-radius: 10px;
}
.nano > .nano-pane > .nano-slider {
background: #444;
background: rgba(0,0,0,0.35);
position: relative;
border-radius: 10px;
}
.nano.nanoShowScrollBar > .nano-pane,
.nano-pane.active,
.nano-pane.flashed {
opacity: 1;
}
.nano > .nano-pane:hover {
width: 10px;
background: rgba(0, 0, 0, .15);
opacity: 1;
transition: 0.15s;
}