-
Notifications
You must be signed in to change notification settings - Fork 4
/
timeline.css
78 lines (65 loc) · 1.16 KB
/
timeline.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@import "fyndiq-styles-colors/colors.css";
.event {
position: relative;
display: flex;
align-items: center;
& + .event {
margin-top: 15px;
&:before {
content: " ";
display: block;
position: absolute;
height: 17px;
width: 1px;
background: var(--color-border);
top: -16px;
left: 16px;
}
}
}
@keyframes iconAppear {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
.icon {
align-items: center;
display: inline-flex;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 40px;
padding: 5px;
margin-right: 8px;
animation: iconAppear .3s;
& svg {
width: 18px;
height: 18px;
margin-right: 0;
}
}
/* color themes */
.timeline_type_white {
& .event:before {
background-color: var(--color-border);
}
& .icon {
background-color: var(--color-white);
border: 1px solid var(--color-border);
}
}
.timeline_type_black {
& .event:before {
background-color: var(--color-black);
}
& .icon {
background-color: var(--color-black);
& svg {
fill: var(--color-white);
stroke: var(--color-white);
}
}
}