I should clarify this. The example above just has the html element, but in my actual usage, I specify each object explicitly. I can’t recall if that was a requirement, or “just the way I did it”, but I think it was a requirement. For example, if the element was in a modal, etc.
html,
#actual_pantry_item_body,
#actual_recipe_body,
#mini_recipe_body,
#recipe_list_display,
#kitchen_prep_scrolling,
#messages_scrolling,
#modal_recipe_preparation_tabs_content,
#modal_thread_body,
#public_empty,
#recipe_edit_tabs_content,
#scroll_cooking_mode_steps,
#all_ingredient_cooking_view,
#scrolling_nav_tags,
#leftover_list_display,
#scrolling_off_canvas_settings,
#user_notifications_body,
#each_user_notification {
-ms-scroll-chaining: none !important;
overscroll-behavior: contain !important;
-ms-overflow-style: none !important;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
html::-webkit-scrollbar,
#actual_pantry_item_body::-webkit-scrollbar,
#mini_recipe_body::-webkit-scrollbar,
#actual_recipe_body::-webkit-scrollbar,
#recipe_list_display::-webkit-scrollbar,
#kitchen_prep_scrolling::-webkit-scrollbar,
#messages_scrolling::-webkit-scrollbar,
#modal_recipe_preparation_tabs_content::-webkit-scrollbar,
#modal_thread_body::-webkit-scrollbar,
#public_empty::-webkit-scrollbar,
#recipe_edit_tabs_content::-webkit-scrollbar,
#scroll_cooking_mode_steps::-webkit-scrollbar,
#all_ingredient_cooking_view::-webkit-scrollbar,
#scrolling_nav_tags::-webkit-scrollbar,
#leftover_list_display::-webkit-scrollbar,
#scrolling_off_canvas_settings::-webkit-scrollbar,
#user_notifications_body::-webkit-scrollbar,
#each_user_notification::-webkit-scrollbar {
width: 0px !important;
}
html.show-scrollbars,
html.show-scrollbars #actual_pantry_item_body,
html.show-scrollbars #actual_recipe_body,
html.show-scrollbars #mini_recipe_body,
html.show-scrollbars #recipe_list_display,
html.show-scrollbars #kitchen_prep_scrolling,
html.show-scrollbars #messages_scrolling,
html.show-scrollbars #modal_recipe_preparation_tabs_content,
html.show-scrollbars #modal_thread_body,
html.show-scrollbars #public_empty,
html.show-scrollbars #recipe_edit_tabs_content,
html.show-scrollbars #scroll_cooking_mode_steps,
html.show-scrollbars #all_ingredient_cooking_view,
html.show-scrollbars #scrolling_nav_tags,
html.show-scrollbars #leftover_list_display,
html.show-scrollbars #scrolling_off_canvas_settings,
html.show-scrollbars #user_notifications_body,
html.show-scrollbars #each_user_notification {
-ms-overflow-style: auto !important;
scrollbar-width: thin !important;
}
html.show-scrollbars::-webkit-scrollbar,
html.show-scrollbars #actual_pantry_item_body::-webkit-scrollbar,
html.show-scrollbars #actual_recipe_body::-webkit-scrollbar,
html.show-scrollbars #mini_recipe_body::-webkit-scrollbar,
html.show-scrollbars #recipe_list_display::-webkit-scrollbar,
html.show-scrollbars #kitchen_prep_scrolling::-webkit-scrollbar,
html.show-scrollbars #messages_scrolling::-webkit-scrollbar,
html.show-scrollbars #modal_recipe_preparation_tabs_content::-webkit-scrollbar,
html.show-scrollbars #modal_thread_body::-webkit-scrollbar,
html.show-scrollbars #public_empty::-webkit-scrollbar,
html.show-scrollbars #recipe_edit_tabs_content::-webkit-scrollbar,
html.show-scrollbars #scroll_cooking_mode_steps::-webkit-scrollbar,
html.show-scrollbars #all_ingredient_cooking_view::-webkit-scrollbar,
html.show-scrollbars #scrolling_nav_tags::-webkit-scrollbar,
html.show-scrollbars #leftover_list_display::-webkit-scrollbar,
html.show-scrollbars #scrolling_off_canvas_settings::-webkit-scrollbar,
html.show-scrollbars #user_notifications_body::-webkit-scrollbar,
html.show-scrollbars #each_user_notification::-webkit-scrollbar {
display: block !important; /* Or 'initial', depending on browser support */
width: 8px !important;
}