Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Uniform scrollbars on every overflow pane in Firefox

Vincenzo Fabiano9f4e86eca6af
diff --git a/src/styles.css b/src/styles.css
index 21a2ad7a98..bf465b253b 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -2005,11 +2005,7 @@ body {
0%, 94% { --settings-fade: 10px; }
100% { --settings-fade: 0px; }
}
-/* A thin thumb that stays visible, so a long Settings page shows it goes on. */
-.settings-scroll {
- scrollbar-width: thin;
- scrollbar-color: var(--color-scrollbar) transparent;
-}
+/* Settings scroll-mask; thumb colour comes from the overflow-* rules below. */
@property --settings-fade-top {
syntax: "<length>";
inherits: false;
@@ -2294,6 +2290,17 @@ body {
background: transparent;
}
+/* Firefox does not inherit scrollbar-color from :root; every overflow pane
+ (dialogs, menus, settings, chat) gets the same thumb as WebKit above. */
+:is(.overflow-y-auto, .overflow-auto, .overflow-x-auto, .overflow-y-scroll, .overflow-x-scroll, .overflow-scroll) {
+ scrollbar-width: thin;
+ scrollbar-color: var(--color-scrollbar) transparent;
+}
+[class*="scrollbar-width:none"],
+[class*="scrollbar]:hidden"] {
+ scrollbar-width: none;
+}
+
@keyframes panel-in {
from { transform: translateX(28px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }