Permalink
Browse files

bug: -webkit-scrollbar did not hide if 'show_on_hover' was false

  • Loading branch information...
MikeMitterer committed May 3, 2017
1 parent eef0133 commit 01461bb25715002e1d85df3bcbb093098e2b4878
Showing with 14 additions and 12 deletions.
  1. +1 −4 lib/assets/styles/material.css
  2. +1 −1 lib/assets/styles/material.min.css
  3. +12 −7 lib/assets/styles/scrollbars/_mixins.scss
@@ -7057,13 +7057,10 @@ input[name^='mdl-accordion']:checked ~ .mdl-accordion--content {
.mdl-dialog-container .mdl-dialog .mdl-dialog__content::-webkit-scrollbar {
display: none;
-webkit-appearance: none;
width: 0;
background-color: transparent; }
.mdl-dialog-container .mdl-dialog .mdl-dialog__content::-webkit-scrollbar * {
background-color: transparent; }
.mdl-dialog-container .mdl-dialog .mdl-dialog__content:hover::-webkit-scrollbar-thumb {
border-radius: 8px;
border: 2px solid white;
background-color: rgba(0, 0, 0, 0.5) !important; }
.mdl-dialog-container .mdl-dialog .mdl-dialog__content::-webkit-scrollbar-button {
display: none; }
.mdl-dialog-container .mdl-dialog .mdl-dialog__actions {

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -36,12 +36,15 @@
@if $show_on_hover {
width: 9px;
height: 9px;
} @else {
width: 0;
height: 0;
}
background-color: $bg_color;
}
&::-webkit-scrollbar * {
background-color: transparent;
background-color : $bg_color;
}
&::-webkit-scrollbar-track {
@@ -53,13 +56,15 @@
&::-webkit-scrollbar-track-piece:end {
}
&:hover::-webkit-scrollbar-thumb {
border-radius: 8px;
// Angleichen mit Hintergrundfarbe-nicht transparent!
border: 2px solid white;
background-color: rgba(0, 0, 0, .5) !important;
@if $show_on_hover {
&:hover::-webkit-scrollbar-thumb {
border-radius : 8px;
// Angleichen mit Hintergrundfarbe-nicht transparent!
border : 2px solid white;
background-color : rgba(0, 0, 0, .5) !important;
}
}
// 3. enables smooth scrolling on mobile
-webkit-overflow-scrolling: touch;

0 comments on commit 01461bb

Please sign in to comment.