/** initial setup **/
.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;
}

/* Правка для Firefox (01539161f2). Держим её строго вне Chromium: там объявленный
   scrollbar-color переключает скролл на собственную отрисовку движка и отключает
   ::-webkit-scrollbar, из-за чего ширина скролла перестаёт совпадать с измеренной
   в getBrowserScrollbarWidth(), и сдвиг right: -N его больше не прячет
   (в Opera полоса вылезает поверх контента). @supports ниже истинен только там,
   где ::-webkit-scrollbar не поддерживается, т.е. в Gecko. */
@supports not selector(::-webkit-scrollbar) {
  .nano > .nano-content {
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable;
  }
}
.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 : rgba(0,0,0,.1);
  position   : absolute;
  width      : 8px;
  right      : 0;
  top        : 0;
  bottom     : 0;
  visibility : hidden\9; /* Target only IE7 and IE8 with this hack */
  opacity    : .01;
  -webkit-transition    : .2s;
  -moz-transition       : .2s;
  -o-transition         : .2s;
  transition            : .2s;
  -moz-border-radius    : 3px;
  -webkit-border-radius : 3px;
  border-radius         : 3px;
}
.nano > .nano-pane > .nano-slider {
  background: #444;
  background: rgba(0,0,0,.2);
  position              : relative;
  margin                : 0px;
  -moz-border-radius    : 2px;
  -webkit-border-radius : 2px;
  border-radius         : 2px;
}
.nano:hover > .nano-pane, .nano-pane.active, .nano-pane.flashed {
  visibility : visible\9; /* Target only IE7 and IE8 with this hack */
  opacity    : 0.99;
}
