-
Notifications
You must be signed in to change notification settings - Fork 33
/
styles.css
150 lines (132 loc) · 2.96 KB
/
styles.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
.ob-timelines {
display: none;
}
/* The actual timeline (the vertical ruler) */
.timeline {
position: relative;
max-width: 1200px;
margin: 0 auto;
}
/* The actual timeline (the vertical ruler) */
.timeline::after {
content: '';
position: absolute;
width: 10px;
background-color: var(--background-secondary);
top: 0;
bottom: 0;
left: 50%;
margin-left: -3px;
}
/* Container around content */
.timeline-container {
padding: 10px 40px;
position: relative;
background-color: inherit;
width: 50%;
}
/* The circles on the timeline */
.timeline-container::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: -17px;
background-color: var(--background-secondary);
border: 4px solid #FF9F55;
top: 15px;
border-radius: 50%;
z-index: 1;
}
/* Place the container to the left */
.timeline-left {
left: 0;
}
/* Place the container to the right */
.timeline-right {
left: 50%;
}
/* Add arrows to the left container (pointing right) */
.timeline-left::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
right: 30px;
border: medium solid var(--background-secondary);
border-width: 10px 0 10px 10px;
border-color: transparent transparent transparent var(--background-secondary);
}
/* Add arrows to the right container (pointing left) */
.timeline-right::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
left: 30px;
border: medium solid var(--background-secondary);
border-width: 10px 10px 10px 0;
border-color: transparent var(--background-secondary) transparent transparent;
}
/* Fix the circle for containers on the right side */
.timeline-right::after {
left: -16px;
}
/* The actual content */
.timeline-content {
padding: 10px 15px;
background-color: var(--background-accent);
position: relative;
border-radius: 6px;
}
.timeline-card{
grid-auto-rows: min-content;
color: #d1c077;
padding: 1px;
}
.timeline-card .thumb {
padding-bottom: 60%;
background-size: cover;
background-position: center center;
border-radius: 10px 10px 0px 0px;
}
.timeline-card {
background: var(--background-secondary);
text-decoration: none !important;
color: var(--text-normal);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
min-height: 100%;
position: relative;
top: 0;
transition: all 0.1s ease-in;
margin-block-end: 20px;
border-radius: 10px;
}
.timeline-card:hover {
top: -2px;
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
}
.timeline-card article {
padding-left: 15px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.timeline-card p {
padding-left: 15px;
flex: 1;
margin-block-start: 0em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
display: flex;
flex-direction: column;
justify-content: space-between;
}