Skip to content

Commit 6a3090f

Browse files
committed
refactor: rename style variable
1 parent a054e68 commit 6a3090f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Timeline.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
--pointer-height: 2rem;
1212
--pointer-width: 1rem;
1313
--pointer-min-offset: 5rem;
14-
--pointer-spacing: 1rem;
1514
--card-background: whitesmoke;
1615
--card-radius: 0.1rem;
1716
--card-shadow: unset;
1817
--card-padding: 1rem;
18+
--card-offset: 1rem;
1919
}
2020

2121
.timeline {
@@ -63,7 +63,7 @@
6363
display: flex;
6464
align-items: flex-start;
6565
transition: top 0.1s;
66-
gap: var(--pointer-spacing);
66+
gap: var(--card-offset);
6767
}
6868

6969
.timeline__items-container--left .timeline-item {

src/models/style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ export type StyleConfig = {
2323
height?: CSSProperties['height'];
2424
width?: CSSProperties['width'];
2525
minOffset?: CSSProperties['marginTop'];
26-
spacing?: CSSProperties['gap'];
2726
};
2827
card?: {
2928
background?: CSSProperties['backgroundColor'];
3029
radius?: CSSProperties['borderRadius'];
3130
shadow?: CSSProperties['boxShadow'];
3231
padding?: CSSProperties['padding'];
32+
offset?: CSSProperties['gap'];
3333
};
3434
};
3535

0 commit comments

Comments
 (0)