From 3016c766270768161d8c31dbfa6c561f938e4cdd Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Mon, 20 Aug 2018 16:45:31 -0400 Subject: [PATCH] reports screen styles --- styles/sections/_funding.scss | 62 ------------ styles/sections/_reports.scss | 173 ++++++++++++++++++++++++++++++++++ 2 files changed, 173 insertions(+), 62 deletions(-) delete mode 100644 styles/sections/_funding.scss create mode 100644 styles/sections/_reports.scss diff --git a/styles/sections/_funding.scss b/styles/sections/_funding.scss deleted file mode 100644 index 2e43170d..00000000 --- a/styles/sections/_funding.scss +++ /dev/null @@ -1,62 +0,0 @@ -.funding-summary-row { - @include media($medium-screen) { - @include grid-row; - - .funding-summary-row__col { - @include grid-pad; - flex-grow: 1; - - .panel { - padding: $gap * 2; - - &.spend-summary { - .row { - justify-content: space-between; - } - - .spend-summary__heading { - @include h3; - margin: 0 $gap 0 0; - } - - .spend-summary__budget { - margin: 0 0 0 $gap; - - > div { - text-align: right; - margin: 0 0 ($gap / 2) 0; - - dd, dt { - display: inline; - } - - dt { - color: $color-gray; - margin-right: $gap; - font-weight: normal; - } - - dd { - font-weight: bold; - } - } - } - - meter { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - width: 100%; - height: 3rem; - display: block; - background: $color-gray-lightest; - } - - meter::-webkit-meter-bar { - background: $color-primary; - } - } - } - } - } -} diff --git a/styles/sections/_reports.scss b/styles/sections/_reports.scss new file mode 100644 index 00000000..77383d8c --- /dev/null +++ b/styles/sections/_reports.scss @@ -0,0 +1,173 @@ +.funding-summary-row { + + @include media($medium-screen) { + @include grid-row; + flex-wrap: wrap; + } + + .funding-summary-row__col { + @include grid-pad; + + @include media($medium-screen) { + flex-grow: 1; + display: flex; + flex-direction: row; + flex-basis: 50%; + } + + align-items: stretch; + + .panel { + padding: $gap * 2; + flex-grow: 1; + + + // Spending Summary + // =============================== + &.spend-summary { + display: flex; + flex-direction: column; + justify-content: space-between; + + .row { + justify-content: space-between; + } + + .spend-summary__heading { + @include h3; + margin: 0 $gap 0 0; + } + + .spend-summary__budget { + margin: 0 0 0 $gap; + + > div { + text-align: right; + margin: 0 0 ($gap / 2) 0; + + dd, dt { + display: inline; + } + + dt { + color: $color-gray; + margin-right: $gap; + font-weight: normal; + } + + dd { + font-weight: bold; + } + } + } + + meter { + width: 100%; + height: 3rem; + margin: ($gap * 2) 0 0; + } + + .spend-summary__spent { + margin: $gap 0 0 0; + display: flex; + flex-direction: row-reverse; + justify-content: flex-end; + + dd, dt { + @include h5; + } + + dt { + font-weight: normal; + margin-left: $gap; + } + } + } + + + + // Task Order Summary + // =============================== + &.to-summary { + + .to-summary__row { + .to-summary__heading { + @include h3; + margin: 0; + } + + .to-summary__to-number { + margin: 0; + dd { + &::before { + content: '#'; + color: $color-gray; + margin-right: $gap; + } + } + } + + @include media($xlarge-screen) { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + + .to-summary__to { + margin: 0 $gap 0 0; + } + + .to-summary__expiration { + text-align: right; + flex-grow: 1; + + dl { + margin: 0 0 0 $gap; + + dd, dt { + display: inline; + } + } + } + } + } + + .to-summary__expiration { + + dl { + margin: ($gap * 2) 0 0 0; + + > div { + margin: 0 0 ($gap / 2) 0; + + dd, dt { + display: block; + } + + dt { + color: $color-gray; + margin-right: $gap; + font-weight: normal; + } + + dd { + font-weight: bold; + } + } + } + + .icon-link { + margin: 0 (-$gap); + } + } + + .to-summary__co { + margin: ($gap * 2) 0 0 0; + + @include media($xlarge-screen) { + margin: 0; + } + } + } + } + } +}