From ec794abbf26775ae08ab8d742412b2f1e58b8dc6 Mon Sep 17 00:00:00 2001 From: dandds Date: Mon, 25 Mar 2019 06:53:48 -0400 Subject: [PATCH] more styling for new portfolio member modal --- styles/components/_modal.scss | 58 ++++++++++++++++++- templates/components/modal.html | 4 +- .../components/multi_step_modal_form.html | 4 +- templates/components/options_input.html | 3 +- templates/portfolios/admin.html | 48 ++++++++++----- 5 files changed, 96 insertions(+), 21 deletions(-) diff --git a/styles/components/_modal.scss b/styles/components/_modal.scss index db54378f..0947fb35 100644 --- a/styles/components/_modal.scss +++ b/styles/components/_modal.scss @@ -140,7 +140,36 @@ body { } } - .modal--form { + &.wide { + .modal__dialog { + max-width: 90rem; + } + + .modal__body { + padding-left: 4rem; + padding-right: 4rem; + } + } + + .modal__form { + + .modal__form--header { + margin-bottom: 4rem; + + h1 { + margin-bottom: 0; + } + + .icon-link { + padding-top: 0.5rem; + padding-left: 0; + + .icon { + margin-left: 0; + } + } + } + .progress-menu ul { width: 40%; margin-left: 30%; @@ -157,5 +186,32 @@ body { padding-top: 0.4rem; } } + + .form-row { + margin-top: 0; + + .form-col { + .usa-input { + margin-bottom: 1.5rem; + } + } + } + + .icon-link--default { + font-size: 1.7rem; + } + + .usa-button { + margin-left: 2rem; + } + + .modal__form--padded { + padding-left: 5%; + padding-right: 5%; + + .usa-input .usa-input__choices select { + max-width: 100%; + } + } } } diff --git a/templates/components/modal.html b/templates/components/modal.html index 9df49137..c7b582ff 100644 --- a/templates/components/modal.html +++ b/templates/components/modal.html @@ -1,8 +1,8 @@ {% from "components/icon.html" import Icon %} -{% macro Modal(name, dismissable=False) -%} +{% macro Modal(name, dismissable=False, classes="") -%}
-