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
|
||||
// ----------------------
|
||||
|
||||
|
||||
@@ -6,11 +6,19 @@
|
||||
<%= t('budgets.investments.show.no_milestones') %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% @investment.milestones.each do |milestone| %>
|
||||
<h3><%= milestone.title %></h3>
|
||||
<p><%= milestone.description %></p>
|
||||
<% end %>
|
||||
<section class="timeline">
|
||||
<ul>
|
||||
<% @investment.milestones.each do |milestone| %>
|
||||
<li>
|
||||
<div>
|
||||
<h3><%= milestone.title %></h3>
|
||||
<strong>Publicado el <%= milestone.created_at.strftime("%d/%m/%Y") %></strong>
|
||||
<p><%= milestone.description %></p>
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user