From 596cabfba07404cb4052b58170c9cfd91f5673c5 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Mon, 11 Feb 2019 16:34:40 -0500 Subject: [PATCH] Update styling and change title on page and in breadcrumbs --- styles/components/_portfolio_layout.scss | 24 +++++++++++++++++++++++ styles/elements/_accordians.scss | 4 ++++ styles/elements/_block_lists.scss | 8 +++++++- templates/fragments/audit_events_log.html | 7 ++----- templates/portfolios/edit.html | 12 ++++++------ translations.yaml | 1 + 6 files changed, 44 insertions(+), 12 deletions(-) diff --git a/styles/components/_portfolio_layout.scss b/styles/components/_portfolio_layout.scss index a81f6a87..fa91d325 100644 --- a/styles/components/_portfolio_layout.scss +++ b/styles/components/_portfolio_layout.scss @@ -153,6 +153,18 @@ } } } + + .activity-log { + border-top: 3px solid $color-blue; + + .subheading { + border-top: 0; + border-bottom: 1px solid $color-gray-lightest; + padding: 1.6rem 1.6rem; + font-weight: $font-bold; + } + } + } .portfolio-applications { @@ -355,4 +367,16 @@ .edit-portfolio-name.action-group { margin-top: 2rem; } + + .form-row { + margin-bottom: 0; + + .form-col { + .usa-input { + input { + max-width: 45em; + } + } + } + } } diff --git a/styles/elements/_accordians.scss b/styles/elements/_accordians.scss index e2a91b23..4db50c9f 100644 --- a/styles/elements/_accordians.scss +++ b/styles/elements/_accordians.scss @@ -25,6 +25,10 @@ border-top: 3px solid $color-blue; border-bottom: none; box-shadow: 0 2px 4px 0 rgba(216,218,222,0.58); + + &.row { + background: $color-white; + } } .accordian__title { diff --git a/styles/elements/_block_lists.scss b/styles/elements/_block_lists.scss index bfe1d0e3..28a9f357 100644 --- a/styles/elements/_block_lists.scss +++ b/styles/elements/_block_lists.scss @@ -1,5 +1,6 @@ @mixin block-list { @include panel-margin; + box-shadow: 0 6px 18px 0 rgba(144,164,183,0.3); ul, dl { list-style: none; @@ -15,6 +16,11 @@ display: flex; flex-direction: row; justify-content: space-between; + background-color: $color-gray-lightest; + padding: $gap 2 * $gap; + border-top: none; + border-bottom: none; + color: $color-gray; .icon-tooltip { margin: -$gap; @@ -59,7 +65,7 @@ margin: 0; padding: $gap * 2; border-top: 0; - border-bottom: 1px dashed $color-gray-light; + border-bottom: 1px solid $color-gray-lightest; @at-root li#{&} { &:last-child { diff --git a/templates/fragments/audit_events_log.html b/templates/fragments/audit_events_log.html index 4c9de82a..8c5b7f93 100644 --- a/templates/fragments/audit_events_log.html +++ b/templates/fragments/audit_events_log.html @@ -1,10 +1,7 @@ {% from "components/pagination.html" import Pagination %} -
-
-

{{ "audit_log.header_title" | translate }}

-
- +
+
Activity Log
    {% for event in audit_events %}
  • diff --git a/templates/portfolios/edit.html b/templates/portfolios/edit.html index a71dd143..f8e9dcc5 100644 --- a/templates/portfolios/edit.html +++ b/templates/portfolios/edit.html @@ -4,13 +4,14 @@ {% from "components/icon.html" import Icon %} {% from "components/text_input.html" import TextInput %} -{% set secondary_breadcrumb = "navigation.portfolio_navigation.breadcrumbs.admin" | translate %} +{% set secondary_breadcrumb = "navigation.portfolio_navigation.portfolio_admin" | translate %} {% block portfolio_content %} {% include "fragments/flash.html" %} -
    +
    +
    {{ form.csrf_token }} @@ -19,13 +20,12 @@ {{ TextInput(form.name, validation="portfolioName") }}
    -
    -
    - -
    +
    +
    + {% include "fragments/audit_events_log.html" %} {{ Pagination(audit_events, 'portfolios.portfolio_activity', portfolio_id=portfolio_id) }} diff --git a/translations.yaml b/translations.yaml index 983db1b9..0cab4ab3 100644 --- a/translations.yaml +++ b/translations.yaml @@ -304,6 +304,7 @@ navigation: applications: Applications portfolio_funding: Funding portfolio_settings: Portfolio Settings + portfolio_admin: Portfolio Administration breadcrumbs: admin: Admin funding: Funding