🎥 Make videos programmatically with React
CSS refactor
Jonny Burger790b4631d8dd
diff --git a/packages/cli/src/editor/components/EditorGuides/Guide.tsx b/packages/cli/src/editor/components/EditorGuides/Guide.tsxindex a9e66f6130..bb696ec6a5 100644--- a/packages/cli/src/editor/components/EditorGuides/Guide.tsx+++ b/packages/cli/src/editor/components/EditorGuides/Guide.tsx@@ -1,5 +1,4 @@import {memo, useCallback, useContext, useMemo} from 'react';-import '../../../../styles/editor-guides.css';import {EditorShowGuidesContext} from '../../state/editor-guides';import {RULER_WIDTH} from '../../state/editor-rulers';diff --git a/packages/cli/src/editor/components/EditorRuler/Ruler.tsx b/packages/cli/src/editor/components/EditorRuler/Ruler.tsxindex d0a0486905..8a3de99a18 100644--- a/packages/cli/src/editor/components/EditorRuler/Ruler.tsx+++ b/packages/cli/src/editor/components/EditorRuler/Ruler.tsx@@ -6,6 +6,7 @@ import React, {useRef,useState,} from 'react';+import {TIMELINE_BACKGROUND} from '../../helpers/colors';import {drawMarkingOnRulerCanvas} from '../../helpers/editor-ruler';import {EditorShowGuidesContext} from '../../state/editor-guides';import {RULER_WIDTH} from '../../state/editor-rulers';@@ -67,7 +68,7 @@ const Ruler: React.FC<RulerProps> = ({const rulerStyle: React.CSSProperties = useMemo(() => ({position: 'absolute',- background: '#000000',+ background: TIMELINE_BACKGROUND,width: `${rulerWidth}px`,height: `${rulerHeight}px`,left: isVerticalRuler ? 0 : 'unset',diff --git a/packages/cli/src/editor/components/EditorRuler/index.tsx b/packages/cli/src/editor/components/EditorRuler/index.tsxindex 430d7f875d..3433fbdd41 100644--- a/packages/cli/src/editor/components/EditorRuler/index.tsx+++ b/packages/cli/src/editor/components/EditorRuler/index.tsx@@ -6,6 +6,7 @@ import React, {useMemo,useRef,} from 'react';+import {TIMELINE_BACKGROUND} from '../../helpers/colors';import {getRulerPoints, getRulerScaleRange} from '../../helpers/editor-ruler';import type {AssetMetadata} from '../../helpers/get-asset-metadata';import type {Dimensions} from '../../helpers/is-current-selected-still';@@ -27,7 +28,7 @@ const originBlockStyles: React.CSSProperties = {borderRight: '1px solid #444444',width: `${RULER_WIDTH}px`,height: `${RULER_WIDTH}px`,- background: '#000000',+ background: TIMELINE_BACKGROUND,};export const EditorRulers: React.FC<{diff --git a/packages/cli/styles/editor-guides.css b/packages/cli/styles/editor-guides.cssdeleted file mode 100644index 374741ae24..0000000000--- a/packages/cli/styles/editor-guides.css+++ /dev/null@@ -1,6 +0,0 @@-.editor-guide-content {- background: #7e1219;-}-.editor-guide:hover .editor-guide-content {- background: #d22d3a;-}diff --git a/packages/cli/styles/styles.css b/packages/cli/styles/styles.cssindex c784eb176d..0712f15413 100644--- a/packages/cli/styles/styles.css+++ b/packages/cli/styles/styles.css@@ -121,3 +121,10 @@ input[type='color'].__remotion_color_picker::-webkit-color-swatch {background-color: white;position: relative;}++.editor-guide-content {+ background: #7e1219;+}+.editor-guide:hover .editor-guide-content {+ background: #d22d3a;+}