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