_scrollbars.scss
ASCII text, with CRLF, LF line terminators
1@use "../../theme-color"; 2 3::-webkit-scrollbar, 4::-webkit-scrollbar-corner { 5width: 17px; 6height: 17px; 7border: 0 solid theme-color.divider(theme-color.$on-surface); 8background-color: rgba(theme-color.$surface-z8, .9); 9} 10 11::-webkit-scrollbar:horizontal, 12::-webkit-scrollbar-corner { 13border-top-width: 1px; 14} 15 16::-webkit-scrollbar:vertical, 17::-webkit-scrollbar-corner { 18border-left-width: 1px; 19} 20 21::-webkit-scrollbar { 22background-clip: padding-box; 23} 24 25::-webkit-scrollbar-thumb { 26width: 32px; 27height: 32px; 28border: 4px solid transparent; 29border-radius: 8px; 30background-color: theme-color.scrollbar-thumb(theme-color.$on-surface); 31background-clip: padding-box; 32 33&:horizontal { 34border-top-width: 5px; 35border-top-left-radius: 8px 9px; 36border-top-right-radius: 8px 9px; 37} 38 39&:vertical { 40border-left-width: 5px; 41border-top-left-radius: 9px 8px; 42border-bottom-left-radius: 9px 8px; 43} 44 45&:hover { 46background-color: theme-color.scrollbar-thumb(theme-color.$on-surface, "hover"); 47} 48 49&:active { 50background-color: theme-color.scrollbar-thumb(theme-color.$on-surface, "pressed"); 51} 52 53&:disabled { 54background-color: theme-color.scrollbar-thumb(theme-color.$on-surface, "disabled"); 55} 56} 57 58// 59// Workaround: Chrome does not properly load selection style of GTK theme. 60// 61 62::selection { 63background-color: rgba(theme-color.primary(theme-color.$on-light), .24); 64} 65