@import url(./fonts/Montserrat.css); /* This font is from https://fonts.googleapis.com/css?family=Montserrat */ :root { --color-background0: #0e0e0e; --color-background1: #070631; --color-background2: dimgray; --color-border0: #FFFFFF; --color-border1: grey; --color-text: #FFFFFF; --color-transparent: rgba(0, 0, 0, 0); } body { text-align: center; height: 100000px; color: var(--color-text); font-size: 1.4em; } html { font-family: Montserrat, sans-serif; min-height: 100%; background: var(--color-background0); background: -moz-linear-gradient(217deg, var(--color-background0) 0%, var(--color-background1) 100%); background: -webkit-linear-gradient(217deg, var(--color-background0) 0%, var(--color-background1) 100%); background: linear-gradient(217deg, var(--color-background0) 0%, var(--color-background1) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#136a77", endColorstr="#06121c", GradientType=1); } h1{ font-size: xxx-large; } a, a:visited{ color: var(--color-text); } /* Timeline stuff */ /* Source: https://www.w3schools.com/howto/howto_css_timeline.asp */ /* Modified by Pierre Tellier */ .comment{ color: dimgrey; font-size: 1em; } * { box-sizing: border-box; } /* The actual timeline (the vertical ruler) */ .timeline { position: relative; width: 100%; margin: 0 auto; } .timeline::after { content: ''; position: absolute; width: 6px; background-color: var(--color-border0); top: 0; bottom: 0; left: 50%; margin-left: -3px; } /* Container around content */ .container { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; } /* The circles on the timeline */ .container::after { content: ''; position: absolute; width: 25px; height: 25px; right: -17px; background-color: white; border: 4px solid #FF9F55; top: 15px; border-radius: 50%; z-index: 1; } /* Place the container to the left */ .left { transform-origin: top right; left: 0; } /* Place the container to the right */ .right { transform-origin: top left; left: 50%; } /* Add arrows to the left container (pointing right) */ .left::before { content: " "; height: 0; position: absolute; top: 22px; width: 0; z-index: 1; right: 30px; border: medium solid white; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent white; } /* Add arrows to the right container (pointing left) */ .right::before { content: " "; height: 0; position: absolute; top: 22px; width: 0; z-index: 1; left: 30px; border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; } /* Fix the circle for containers on the right side */ .right::after { left: -16px; } /* The actual content */ .content { padding: 20px 30px; background-color: black; position: relative; border-radius: 6px; border: solid white; } /* Media queries - Responsive timeline on screens less than 700px wide */ @media screen and (max-width: 1000px) { /* Place the timelime to the left the timeline left position is hardcoded to 31px */ .timeline::after { left: 31px; } .timeline{ left:23px; /*TODO: find why it's moving on mobile version*/ width: 90%; } /* Full-width containers */ .container { width: 100%; padding-left: 70px; } /* Make sure that all arrows are pointing leftwards */ .container::before { left: 60px; border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; } /* Make sure all circles are at the same spot the left position is hardcoded at 15px */ .left::after, .right::after { left: 0; } /* Make all right containers behave like the left ones */ .right { left: 0; transform-origin: top left; } .left { left: 0; transform-origin: top left; } }