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