diff --git a/app/assets/stylesheets/milestones.scss b/app/assets/stylesheets/milestones.scss index 1b12eef0c..71b62e4f9 100644 --- a/app/assets/stylesheets/milestones.scss +++ b/app/assets/stylesheets/milestones.scss @@ -1,66 +1,36 @@ -.tab-milestones .timeline ul { - margin-top: rem-calc(40); - position: relative; -} +$progress-bar-background: #fef0e2; +$progress-bar-color: #fea230; -.tab-milestones .progress-bars { - margin-top: $line-height / 2; +.tab-milestones { - h5 { - font-size: rem-calc(25); - } + .progress-bars { + margin-bottom: $line-height * 2; + margin-top: $line-height; - 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; - } + h5 { + font-size: rem-calc(24); } - } - [data-text] { - display: block; - font-weight: bold; - position: relative; + .progress { + background: $progress-bar-background; + border-radius: rem-calc(6); + position: relative; + } - &::after { - content: attr(data-text); - left: 0; - position: absolute; + .progress-meter { + background: $progress-bar-color; + border-radius: rem-calc(6); + } + + .progress-meter-text { + color: #000; + right: 12px; text-align: right; - top: -0.1rem; - width: 100%; - } - } - - progress { - $background-color: #fef0e2; - $progress-color: #fea230; - - background-color: $background-color; - color: $progress-color; - - &.primary { - width: 100%; + transform: translate(0%, -50%); } - &::-webkit-progress-bar { - background-color: $background-color; - } - - &::-webkit-progress-value { - background-color: $progress-color; - } - - &::-moz-progress-bar { - background-color: $progress-color; + .milestone-progress .row { + margin-bottom: $line-height / 2; } } } diff --git a/app/views/milestones/_milestones_content.html.erb b/app/views/milestones/_milestones_content.html.erb index 12d2d1e92..dd85cc763 100644 --- a/app/views/milestones/_milestones_content.html.erb +++ b/app/views/milestones/_milestones_content.html.erb @@ -1,13 +1,13 @@