Add styles to milestones progress bars

This commit is contained in:
Javi Martín
2019-01-10 22:19:32 +01:00
committed by decabeza
parent 84fc254e92
commit ce0a93be58
2 changed files with 48 additions and 1 deletions

View File

@@ -3,6 +3,53 @@
position: relative;
}
.tab-milestones .progress-bars {
margin-top: $line-height / 2;
h5 {
font-size: rem-calc(25);
}
ul {
border-spacing: rem-calc(15) $line-height / 4;
display: table;
margin-top: $line-height / 2;
li {
display: table-row;
> * {
display: table-cell;
vertical-align: middle;
}
}
}
progress {
$background-color: #fef0e2;
$progress-color: #fea230;
background-color: $background-color;
color: $progress-color;
&.primary {
width: 100%;
}
&::-webkit-progress-bar {
background-color: $background-color;
}
&::-webkit-progress-value {
background-color: $progress-color;
}
&::-moz-progress-bar {
background-color: $progress-color;
}
}
}
.tab-milestones .timeline li {
margin: 0 auto;
position: relative;

View File

@@ -8,7 +8,7 @@
<ul class="milestone-progress">
<% milestoneable.secondary_progress_bars.each do |progress_bar| %>
<li>
<%= progress_bar.title %>
<span class="title"><%= progress_bar.title %></span>
<%= progress_tag_for(progress_bar) %>
</li>
<% end %>