diff --git a/app/partials/includes/components/sprint-summary.jade b/app/partials/includes/components/sprint-summary.jade index caa16ba2..5fbe8e4e 100644 --- a/app/partials/includes/components/sprint-summary.jade +++ b/app/partials/includes/components/sprint-summary.jade @@ -24,5 +24,6 @@ div.summary.large-summary span.icon.icon-iocaine span.number(ng-bind="stats.iocaine_doses|default:'--'") span.description(translate="BACKLOG.SPRINT_SUMMARY.IOCAINE_DOSES") - - a.icon.icon-stats.toggle-analytics-visibility(href="", title="{{'BACKLOG.SPRINT_SUMMARY.SHOW_STATISTICS_TITLE' | translate}}") + + div.stats.toggle-analytics-visibility(title="{{'BACKLOG.SPRINT_SUMMARY.SHOW_STATISTICS_TITLE' | translate}}") + include ../../../svg/graph.svg diff --git a/app/partials/includes/components/summary.jade b/app/partials/includes/components/summary.jade index 849ec856..0b8ac558 100644 --- a/app/partials/includes/components/summary.jade +++ b/app/partials/includes/components/summary.jade @@ -17,6 +17,6 @@ div.summary span.number(ng-bind="stats.speed | number:0") -- span.description(translate="BACKLOG.SUMMARY.POINTS_PER_SPRINT") - a.icon.icon-stats.js-toggle-burndown-visibility-button(href="", - title="{{'BACKLOG.SPRINT_SUMMARY.TOGGLE_BAKLOG_GRAPH' | translate}}") - + + div.stats.js-toggle-burndown-visibility-button(title="{{'BACKLOG.SPRINT_SUMMARY.TOGGLE_BAKLOG_GRAPH' | translate}}") + include ../../../svg/graph.svg diff --git a/app/styles/components/summary.scss b/app/styles/components/summary.scss index d2120143..8137273b 100644 --- a/app/styles/components/summary.scss +++ b/app/styles/components/summary.scss @@ -1,6 +1,8 @@ +$summary-background: $grayer; + .summary { align-content: center; - background: $grayer; + background: $summary-background; color: $white; display: flex; flex-wrap: wrap; @@ -16,26 +18,6 @@ color: $fresh-taiga; } } - .icon { - font-size: 1.4rem; - margin-right: .4rem; - &.icon-stats { - color: $gray; - float: right; - transition: color .3s linear; - &:hover { - color: $fresh-taiga; - transition: color .3s linear; - } - &.active { - color: $fresh-taiga; - } - &.active:hover { - color: $gray; - transition: color .3s linear; - } - } - } .number { @extend %xlarge; @extend %bold; @@ -48,6 +30,47 @@ @extend %light; line-height: 1; } + .stats { + cursor: pointer; + height: 2rem; + margin-left: auto; + width: 2rem; + path { + opacity: 1; + } + &:hover { + .graph, + .color-line { + fill: $fresh-taiga; + transition: fill .2s; + } + } + &.active { + .white-line, + .color-line { + display: none; + } + .graph { + fill: $green-taiga; + } + } + svg { + height: 100%; + width: 100%; + } + .graph, + .color-line { + fill: darken($gray-light, 20%); + transition: fill .2s; + } + .white-line { + fill: $summary-background; + } + .white-line, + .color-line { + display: block; + } + } } .summary-progress-bar { @@ -105,4 +128,28 @@ .summary-stats-divider { margin-right: 2rem; } + .icon { + font-size: 1.4rem; + margin-right: .4rem; + &.icon-stats { + color: $green-taiga; + float: right; + transition: color .3s linear; + &:hover { + color: $fresh-taiga; + transition: color .3s linear; + } + &.active { + color: $fresh-taiga; + } + &.active:hover { + color: $green-taiga; + transition: color .3s linear; + } + } + } +} + +.graphics-container { + @include slide(300px, hidden, 0); } diff --git a/app/svg/graph.svg b/app/svg/graph.svg new file mode 100644 index 00000000..4563bf70 --- /dev/null +++ b/app/svg/graph.svg @@ -0,0 +1,8 @@ + + + + + + + +