Skip to content

🎥 Make videos programmatically with React

scrollbar color fixed for firefox

Patric Salvisberg7b835c082038
diff --git a/packages/bundler/src/setup-environment.ts b/packages/bundler/src/setup-environment.ts
index f67034527d..5b7a027163 100644
--- a/packages/bundler/src/setup-environment.ts
+++ b/packages/bundler/src/setup-environment.ts
@@ -36,6 +36,7 @@ Internals.CSSUtils.injectCSS(`
background-color: rgba(0, 0, 0, 1);
}
+
.__remotion-horizontal-scrollbar::-webkit-scrollbar {
height: 6px;
}
@@ -49,6 +50,29 @@ Internals.CSSUtils.injectCSS(`
background-color: rgba(0, 0, 0, 1);
}
+
+ @-moz-document url-prefix() {
+ .__remotion-vertical-scrollbar {
+ scrollbar-width: thin;
+ scrollbar-color: rgba(0, 0, 0, 0.6) rgba(0, 0, 0, 0);
+ }
+
+ .__remotion-vertical-scrollbar:hover {
+ scrollbar-color: rgba(0, 0, 0, 1) rgba(0, 0, 0, 0);
+ }
+
+ .__remotion-horizontal-scrollbar {
+ scrollbar-width: thin;
+ scrollbar-color: rgba(0, 0, 0, 0.6) rgba(0, 0, 0, 0);
+ }
+
+ .__remotion-horizontal-scrollbar:hover {
+ scrollbar-width: thin;
+ scrollbar-color: rgba(0, 0, 0, 1) rgba(0, 0, 0, 0);
+ }
+ }
+
+
.__remotion-timeline-slider {
appearance: none;
width: 100px;
@@ -66,4 +90,6 @@ Internals.CSSUtils.injectCSS(`
appearance: none;
}
+
+
`);