We are trying to embed a timeline into our home page but the HTML Embed widget is now reading our font.
https://mrd-finance-mockup-1.webflow.io/
<html>
<ul class="timeline">
<li data-year="1" data-text="Lorem ipsum dolor sit amet, consectetur."></li>
<li data-year="2" data-text="Lorem ipsum dolor sit amet, consectetur."></li>
<li data-year="3" data-text="Lorem ipsum dolor sit amet, consectetur."></li>
<li data-year="4" data-text="Lorem ipsum dolor sit amet, consectetur."></li>
<li data-year="5" data-text="Lorem ipsum dolor sit amet, consectetur."></li>
</ul>
</html>
<style>
@font-face {
font-family: 'Montserrat'; !important /*a name to be used later*/
src: url('https://fonts.googleapis.com/css?family=Montserrat'); /*URL to font*/
}
.timeline {
font-family: 'Montserrat';font-size: 22px;
width:800px;
height: 20px;
list-style: none;
text-align: justify;
margin: 80px auto;
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,0)), color-stop(45%, rgba(255,255,255,0)), color-stop(51%, rgba(191,128,11,1)), color-stop(57%, rgba(255,255,255,0)), color-stop(100%, rgba(255,255,255,0)));
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 45%, rgba(0,175,205 ,0.5) 51%, rgba(255,255,255,0) 57%, rgba(255,255,255,0) 100%);
}
.timeline:after {
display: inline-block;
content: "";
width: 100%;
}
.timeline li {
display: inline-block;
width: 20px;
height: 20px;
background: #00AFCD;
text-align: center;
line-height: 1.2;
position: relative;
border-radius: 50%;
}
.timeline li:before {
display: inline-block;
content: attr(data-year);
font-size: 26px;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.timeline li:nth-child(odd):before {
top: -40px;
}
.timeline li:nth-child(even):before {
bottom: -40px;
}
.timeline li:after {
display: inline-block;
content: attr(data-text);
font-size: 16px;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.timeline li:nth-child(odd):after {
bottom: 0;
margin-bottom: -10px;
transform: translate(-50%, 100%);
}
.timeline li:nth-child(even):after {
top: 0;
margin-top: -10px;
transform: translate(-50%, -100%);
}
</style>