_scrollbar.scss
ASCII text
1/* Scrollbars */ 2 3StScrollView { 4&.vfade { -st-vfade-offset: 32px; } 5&.hfade { -st-hfade-offset: 32px; } 6} 7 8StScrollBar { 9padding: 0; 10 11StScrollView & { 12min-width: 16px; 13min-height: 16px; 14} 15 16StBin#trough { 17margin: 4px; 18border-radius: (8px / 2); 19background-color: disabled-stroke($on-surface); 20} 21 22StButton#vhandle, 23StButton#hhandle { 24transition-duration: $duration; 25margin: 4px; 26// would be nice to margin or at least to transparent 27// border: 4px solid transparent; 28border-radius: (8px / 2); 29background-color: scrollbar-thumb($on-surface); 30 31&:hover { 32background-color: scrollbar-thumb($on-surface, "hover"); 33} 34 35&:active { 36background-color: scrollbar-thumb($on-surface, "pressed"); 37} 38} 39} 40 41%scrollbar-on-dark { 42StBin#trough { 43background-color: disabled-stroke($on-dark); 44} 45 46StButton#vhandle, 47StButton#hhandle { 48background-color: scrollbar-thumb($on-dark); 49 50&:hover { 51background-color: scrollbar-thumb($on-dark, "hover"); 52} 53 54&:active { 55background-color: scrollbar-thumb($on-dark, "pressed"); 56} 57} 58} 59