@@ -31,6 +31,7 @@ const TimelineContainer = styled.ul`
3131 width: 3px;
3232 left: 50%;
3333 margin-left: -1.5px;
34+ background-color: ${ ( props ) => props . theme . light . dividerColor } ;
3435 }
3536
3637 @media (min-width: 992px) {
@@ -47,7 +48,7 @@ const TimelineContainer = styled.ul`
4748 background-color: ${ ( props ) => props . theme . dark . generalBackground } ;
4849
4950 &:before {
50- background-color: ${ ( props ) => props . theme . dark . generalBackgroundLight } ;
51+ background-color: ${ ( props ) => props . theme . dark . dividerColor } ;
5152 }
5253 }
5354` ;
@@ -106,26 +107,6 @@ const TimelinePanel = styled.div<TimelinePanelProps>`
106107 content: " ";
107108 }
108109
109- ${ ( props ) =>
110- props . inverted &&
111- css `
112- float: right;
113-
114- &:before {
115- border-right-width: 15px;
116- border-left-width: 0;
117- left: -15px;
118- right: auto;
119- }
120-
121- &:after {
122- border-right-width: 0;
123- border-left-width: 14px;
124- left: -14px;
125- right: auto;
126- }
127- ` } ;
128-
129110 @media (max-width: 992px) {
130111 width: calc(100% - 90px);
131112 width: -moz-calc(100% - 90px);
@@ -134,8 +115,8 @@ const TimelinePanel = styled.div<TimelinePanelProps>`
134115
135116 &:before {
136117 border-left-width: 0;
137- border-right-width: 15px ;
138- left: -15px ;
118+ border-right-width: 14px ;
119+ left: -14px ;
139120 right: auto;
140121 }
141122
@@ -147,6 +128,26 @@ const TimelinePanel = styled.div<TimelinePanelProps>`
147128 }
148129 }
149130
131+ ${ ( props ) =>
132+ props . inverted &&
133+ css `
134+ float: right;
135+
136+ &:before {
137+ border-left-width: 0;
138+ border-right-width: 14px;
139+ left: -14px;
140+ right: auto;
141+ }
142+
143+ &:after {
144+ border-left-width: 0;
145+ border-right-width: 14px;
146+ left: -13px;
147+ right: auto;
148+ }
149+ ` } ;
150+
150151 @media (prefers-color-scheme: dark) {
151152 background-color: ${ ( props ) => props . theme . dark . generalBackgroundLight } ;
152153 border: ${ ( props ) => props . theme . dark . dividerColor } 1px solid;
@@ -164,26 +165,6 @@ const TimelinePanel = styled.div<TimelinePanelProps>`
164165 solid;
165166 }
166167
167- ${ ( props ) =>
168- props . inverted &&
169- css `
170- float: right;
171-
172- &:before {
173- border-left-width: 0;
174- border-right-width: 14px;
175- left: -14px;
176- right: auto;
177- }
178-
179- &:after {
180- border-left-width: 0;
181- border-right-width: 14px;
182- left: -14px;
183- right: auto;
184- }
185- ` } ;
186-
187168 @media (max-width: 992px) {
188169 width: calc(100% - 90px);
189170 width: -moz-calc(100% - 90px);
@@ -204,12 +185,32 @@ const TimelinePanel = styled.div<TimelinePanelProps>`
204185 right: auto;
205186 }
206187 }
188+
189+ ${ ( props ) =>
190+ props . inverted &&
191+ css `
192+ float: right;
193+
194+ &:before {
195+ border-left-width: 0;
196+ border-right-width: 14px;
197+ left: -14px;
198+ right: auto;
199+ }
200+
201+ &:after {
202+ border-left-width: 0;
203+ border-right-width: 14px;
204+ left: -13px;
205+ right: auto;
206+ }
207+ ` } ;
207208 }
208209` ;
209210
210211const TimelineBadge = styled . div `
211212 background-color: ${ ( props ) => props . theme . light . primaryColor } ;
212- color: ${ ( props ) => props . theme . light . primaryColorText } ;
213+ color: ${ ( props ) => props . theme . light . textAbovePrimaryColor } ;
213214 width: 40px;
214215 height: 40px;
215216 line-height: 40px;
@@ -224,7 +225,7 @@ const TimelineBadge = styled.div`
224225
225226 @media (prefers-color-scheme: dark) {
226227 background-color: ${ ( props ) => props . theme . dark . primaryColor } ;
227- color: ${ ( props ) => props . theme . dark . primaryColorText } ;
228+ color: ${ ( props ) => props . theme . dark . textAbovePrimaryColor } ;
228229 }
229230
230231 @media (max-width: 992px) {
@@ -275,6 +276,9 @@ export const Timeline: React.FC = () => {
275276 display : "block" ,
276277 backgroundColor : "#fff" ,
277278 } ;
279+ const imgContainerStyle = {
280+ border : "1px solid gray" ,
281+ } ;
278282
279283 return (
280284 < TimelineContentContainer >
@@ -286,6 +290,7 @@ export const Timeline: React.FC = () => {
286290 src = { "../../../images/carrier/lastminute-group.png" }
287291 alt = { "lastminute" }
288292 imgStyle = { imgStyle }
293+ style = { imgContainerStyle }
289294 />
290295 < TimelineTitle > Lastminute.com group</ TimelineTitle >
291296 < TimelineSubtitle > Mobile application developer</ TimelineSubtitle >
@@ -302,6 +307,7 @@ export const Timeline: React.FC = () => {
302307 src = { "../../../images/carrier/unimib.jpg" }
303308 alt = { "unimib" }
304309 imgStyle = { imgStyle }
310+ style = { imgContainerStyle }
305311 />
306312 < TimelineTitle > Milano-Bicocca University</ TimelineTitle >
307313 < TimelineSubtitle >
@@ -329,6 +335,7 @@ export const Timeline: React.FC = () => {
329335 src = { "../../../images/carrier/condenast.png" }
330336 alt = { "condenast" }
331337 imgStyle = { imgStyle }
338+ style = { imgContainerStyle }
332339 />
333340 < TimelineTitle > Condé Nast Italia</ TimelineTitle >
334341 < TimelineSubtitle > Mobile/Web application developer</ TimelineSubtitle >
@@ -347,6 +354,7 @@ export const Timeline: React.FC = () => {
347354 src = { "../../../images/carrier/shi.png" }
348355 alt = { "shi" }
349356 imgStyle = { imgStyle }
357+ style = { imgContainerStyle }
350358 />
351359 < TimelineTitle > SHI</ TimelineTitle >
352360 < TimelineSubtitle > iOS/Web Developer</ TimelineSubtitle >
@@ -366,6 +374,7 @@ export const Timeline: React.FC = () => {
366374 src = { "../../../images/carrier/bottinelli-informatica.png" }
367375 alt = { "bottinelli informatica" }
368376 imgStyle = { imgStyle }
377+ style = { imgContainerStyle }
369378 />
370379 < TimelineTitle > Bottinelli informatica</ TimelineTitle >
371380 < TimelineSubtitle > Developer</ TimelineSubtitle >
@@ -379,6 +388,7 @@ export const Timeline: React.FC = () => {
379388 src = { "../../../images/carrier/avanade.png" }
380389 alt = { "avanade" }
381390 imgStyle = { imgStyle }
391+ style = { imgContainerStyle }
382392 />
383393 < TimelineTitle > Avanade</ TimelineTitle >
384394 < TimelineSubtitle > PMO Consultant</ TimelineSubtitle >
@@ -414,6 +424,7 @@ export const Timeline: React.FC = () => {
414424 src = { "../../../images/carrier/insubria.png" }
415425 alt = { "insubria" }
416426 imgStyle = { imgStyle }
427+ style = { imgContainerStyle }
417428 />
418429 < TimelineTitle > Insubria University</ TimelineTitle >
419430 < TimelineSubtitle >
0 commit comments