Created timeline for desktop version.
This commit is contained in:
committed by
taitus
parent
c58371a5fe
commit
30f6fa9ae6
@@ -494,6 +494,59 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tab-milestones{
|
||||||
|
.timeline ul li {
|
||||||
|
list-style-type: none;
|
||||||
|
position: relative;
|
||||||
|
width: 1px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding-top: 50px;
|
||||||
|
background: #dfe2e5;
|
||||||
|
&:before{
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top:0;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: inherit;
|
||||||
|
background: #179c87;
|
||||||
|
}
|
||||||
|
&:nth-child(odd) div {
|
||||||
|
text-align: right;
|
||||||
|
left: -515px;
|
||||||
|
top:-20px;
|
||||||
|
&:before {
|
||||||
|
left: -15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(even) div {
|
||||||
|
left: 15px;
|
||||||
|
top:-20px;
|
||||||
|
&:before {
|
||||||
|
right: -15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
padding: 10px;
|
||||||
|
width: 30vw;
|
||||||
|
width: 500px;
|
||||||
|
h3{
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin-bottom:0;
|
||||||
|
}
|
||||||
|
strong{
|
||||||
|
color:#c9c9c9;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 04. List participation
|
// 04. List participation
|
||||||
// ----------------------
|
// ----------------------
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,19 @@
|
|||||||
<%= t('budgets.investments.show.no_milestones') %>
|
<%= t('budgets.investments.show.no_milestones') %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<section class="timeline">
|
||||||
|
<ul>
|
||||||
<% @investment.milestones.each do |milestone| %>
|
<% @investment.milestones.each do |milestone| %>
|
||||||
|
<li>
|
||||||
|
<div>
|
||||||
<h3><%= milestone.title %></h3>
|
<h3><%= milestone.title %></h3>
|
||||||
|
<strong>Publicado el <%= milestone.created_at.strftime("%d/%m/%Y") %></strong>
|
||||||
<p><%= milestone.description %></p>
|
<p><%= milestone.description %></p>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user