From fe29b5d838053576e2b2c37577c3e075824e1ba2 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Wed, 2 Oct 2019 14:47:41 -0400 Subject: [PATCH] Low-fi update of multi-step modals to fix styling --- styles/components/_modal.scss | 4 ++ styles/components/_progress_menu.scss | 6 ++- .../fragments/new_member_modal_content.html | 6 +-- templates/applications/settings.html | 1 - .../components/multi_step_modal_form.html | 4 +- .../fragments/add_new_portfolio_member.html | 44 +++++++++---------- .../portfolios/fragments/change_ppoc.html | 42 ++++++++---------- 7 files changed, 51 insertions(+), 56 deletions(-) diff --git a/styles/components/_modal.scss b/styles/components/_modal.scss index f2653a6f..826d37b9 100644 --- a/styles/components/_modal.scss +++ b/styles/components/_modal.scss @@ -127,6 +127,10 @@ body { border-bottom: 1px solid $color-gray-lighter; margin: 0 (-$gap * 1.5); } + + .form-row { + margin: 0; + } } &__dismiss { diff --git a/styles/components/_progress_menu.scss b/styles/components/_progress_menu.scss index 3cb2808f..90780705 100644 --- a/styles/components/_progress_menu.scss +++ b/styles/components/_progress_menu.scss @@ -3,8 +3,10 @@ ul { list-style: none; - margin: 0; + margin: auto; + width: 50%; padding: 0; + padding-top: $gap; } &--two { @@ -40,7 +42,7 @@ a { display: block; position: relative; - padding: ($gap * 4) ($gap * 2); + padding: ($gap * 4) ($gap * 2) 0; margin: 0 ($gap * 2); text-decoration: none; text-align: center; diff --git a/templates/applications/fragments/new_member_modal_content.html b/templates/applications/fragments/new_member_modal_content.html index 94bbc64e..5e835e5b 100644 --- a/templates/applications/fragments/new_member_modal_content.html +++ b/templates/applications/fragments/new_member_modal_content.html @@ -2,10 +2,8 @@ {% import "applications/fragments/member_form_fields.html" as member_fields %} {% macro MemberFormTemplate(title, next_button, previous=True) %} - +
+

{{ Icon('avatar') }} {{ title }}

{{ caller() }} diff --git a/templates/applications/settings.html b/templates/applications/settings.html index 62c8eed6..362d4e7b 100644 --- a/templates/applications/settings.html +++ b/templates/applications/settings.html @@ -6,7 +6,6 @@ {% import "applications/fragments/new_member_modal_content.html" as member_steps %} {% from "fragments/members.html" import MemberManagementTemplate %} {% from "components/modal.html" import Modal %} -{% from "components/multi_step_modal_form.html" import MultiStepModalForm %} {% from "components/pagination.html" import Pagination %} {% from "components/save_button.html" import SaveButton %} {% from "components/text_input.html" import TextInput %} diff --git a/templates/components/multi_step_modal_form.html b/templates/components/multi_step_modal_form.html index 23d21ffa..a7f71edf 100644 --- a/templates/components/multi_step_modal_form.html +++ b/templates/components/multi_step_modal_form.html @@ -28,12 +28,12 @@ {% macro MultiStepModalForm(name, form, form_action, steps, dismissable=False) -%} {% set step_count = steps|length %} - {% call Modal(name=name, dismissable=dismissable, classes="wide") %} + {% call Modal(name=name, dismissable=dismissable) %}
{{ form.csrf_token }}
{% for step in steps %} -