Skip to content

Commit 2702ebd

Browse files
committed
move some styles to overrides.css
1 parent ca1d361 commit 2702ebd

File tree

4 files changed

+85
-68
lines changed

4 files changed

+85
-68
lines changed

src/renderer/history/styles.css

-22
This file was deleted.

src/renderer/main.css

-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
@import "overrides";
1313

1414
@import "theme/styles";
15-
@import "history/styles";
1615
@import "menubar/styles";
17-
@import "timeline/styles";
1816
@import "tree/styles";
1917

2018
body {

src/renderer/overrides.css

+85
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
Styles that override default css rules of third party components.
3+
Prefer custom vies when possible, to avoid inflating this file.
4+
*/
5+
6+
// react-color
7+
18
.chrome-picker,
29
.photoshop-picker {
310
background: transparent !important;
@@ -66,6 +73,8 @@
6673
}
6774
}
6875

76+
// cmdk
77+
6978
[cmdk-item],
7079
[cmdk-empty] {
7180
@apply flex p-2 rounded items-center text-sm;
@@ -83,6 +92,8 @@
8392
@apply p-2 text-muted uppercase font-bold text-2xs;
8493
}
8594

95+
// codemirror
96+
8697
.CodeMirror-selected {
8798
@apply overlay !important;
8899
}
@@ -122,6 +133,80 @@
122133
@apply p-0;
123134
}
124135

136+
// react-timeline-editor
137+
138+
.timeline-editor {
139+
@apply bg-primary w-full min-h-0 h-full !important;
140+
font-family: inherit !important;
141+
color: var(--font-color-muted) !important;
142+
}
143+
144+
.timeline-editor-action {
145+
@apply overlay flex justify-around items-center pointer-events-none !important;
146+
147+
&-selected {
148+
@apply border border-accent;
149+
.timeline-editor-action-left-stretch::after {
150+
border-left-color: var(--accent) !important;
151+
}
152+
.timeline-editor-action-right-stretch::after {
153+
border-right-color: var(--accent) !important;
154+
}
155+
}
156+
}
157+
158+
.timeline-editor-time-area .ReactVirtualized__Grid {
159+
overflow: hidden !important;
160+
}
161+
162+
.timeline-editor-cursor {
163+
border-color: var(--accent) !important;
164+
}
165+
166+
.timeline-editor-cursor-top path {
167+
fill: var(--accent) !important;
168+
}
169+
170+
.timeline-editor-time-unit {
171+
border-color: var(--border-color) !important;
172+
}
173+
174+
.timeline-editor-time-unit-scale {
175+
color: var(--font-color-muted) !important;
176+
}
177+
178+
.timeline-editor-edit-row {
179+
background-image: linear-gradient(var(--bg-primary), var(--bg-primary)),
180+
linear-gradient(90deg, var(--border-color) 1px, transparent 0) !important;
181+
}
182+
183+
// react-d3-tree
184+
185+
.rd3t-node,
186+
.rd3t-leaf-node {
187+
circle {
188+
transition: fill .3s;
189+
}
190+
191+
&:hover {
192+
circle {
193+
stroke : var(--accent);
194+
}
195+
}
196+
}
197+
198+
.rd3t-link {
199+
stroke : var(--border-color) !important;
200+
stroke-width: 3;
201+
}
202+
203+
.rd3t-label__title {
204+
font-weight: normal !important;
205+
fill: inherit !important;
206+
}
207+
208+
// devtools
209+
125210
.devtools * {
126211
background: transparent !important;
127212
}

src/renderer/timeline/styles.css

-44
This file was deleted.

0 commit comments

Comments
 (0)