From b2be63dd0fcd429bc012bcca2e59d55f41d7bdd3 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Wed, 22 Aug 2018 11:16:57 -0400 Subject: [PATCH] spend table styles --- styles/sections/_reports.scss | 108 +++++++++++++++++++++++++++++++++- 1 file changed, 107 insertions(+), 1 deletion(-) diff --git a/styles/sections/_reports.scss b/styles/sections/_reports.scss index 77383d8c..cc72ca73 100644 --- a/styles/sections/_reports.scss +++ b/styles/sections/_reports.scss @@ -6,13 +6,20 @@ } .funding-summary-row__col { - @include grid-pad; @include media($medium-screen) { + @include grid-pad; flex-grow: 1; display: flex; flex-direction: row; flex-basis: 50%; + + &:first-child { + padding-left: 0; + } + &:last-child { + padding-right: 0; + } } align-items: stretch; @@ -171,3 +178,102 @@ } } } + + +.spend-table { + .spend-table__header { + @include panel-base; + @include panel-theme-default; + border-bottom: 0; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; + padding: $gap * 2; + + .spend-table__title { + @include h3; + margin: 0; + flex: 2; + } + + .spend-table__month-select { + margin: 0; + flex: 1; + } + } + + table { + th, td { + white-space: nowrap; + + button { + margin: 0; + } + + &.current-month { + background-color: $color-aqua-lightest; + } + + &.previous-month { + opacity: 0.65; + } + + &.meter-cell { + padding-left: 0; + + @include media($medium-screen) { + min-width: 12rem; + } + + meter { + width: 100%; + height: 3rem; + background: $color-white; + position: relative; + display: none; + + @include media($medium-screen) { + display: block; + } + + &::-webkit-meter-bar { + background: $color-white; + } + + &::before { + content: attr(title); + position: absolute; + top: .5rem; + left: $gap; + @include h5; + color: $color-white; + } + } + } + } + + .spend-table__workspace { + th, td { + font-weight: bold; + } + } + + .spend-table__project { + .spend-table__project__toggler { + @include icon-link-color($color-black-light, $color-gray-lightest); + margin-left: -$gap; + + .icon { + @include icon-size(12); + margin-right: $gap; + } + } + + .spend-table__project__env { + margin-left: $gap; + } + } + } +}