From 1503a519ed17f830160eaf89822bda8bb5ca851f Mon Sep 17 00:00:00 2001 From: Luis Cielak Date: Tue, 24 Jul 2018 14:18:04 -0400 Subject: [PATCH] Handle styles for a panel subtitle --- scss/elements/_panels.scss | 8 ++++++++ scss/elements/_typography.scss | 11 ++++++++++- templates/requests/screen-1.html.to | 5 ++++- templates/requests/screen-2.html.to | 6 ++++-- templates/requests/screen-3.html.to | 5 ++++- templates/requests/screen-4.html.to | 6 ++++-- templates/requests_new.html.to | 1 + 7 files changed, 35 insertions(+), 7 deletions(-) diff --git a/scss/elements/_panels.scss b/scss/elements/_panels.scss index e45ee1ec..ba88cd48 100644 --- a/scss/elements/_panels.scss +++ b/scss/elements/_panels.scss @@ -43,4 +43,12 @@ padding: 0 ($gap * 4); } } + + .panel__heading { + margin: ($gap * 2) 0; + + h1, h2, h3, h4, h5, h6 { + margin: 0; + } + } } \ No newline at end of file diff --git a/scss/elements/_typography.scss b/scss/elements/_typography.scss index facba32b..e97b8216 100644 --- a/scss/elements/_typography.scss +++ b/scss/elements/_typography.scss @@ -4,7 +4,7 @@ * @source https://github.com/uswds/uswds/blob/develop/src/stylesheets/elements/_typography.scss */ -* { + * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } @@ -17,6 +17,11 @@ p { h1, h2, h3, h4, h5, h6 { font-family: $font-sans; margin: ($gap * 2) 0; + + + .subtitle * { + margin-top: 0; + } + } a, @@ -36,3 +41,7 @@ dt { display: inline; font-weight: bold; } + +.subtitle { + color: $color-gray; +} diff --git a/templates/requests/screen-1.html.to b/templates/requests/screen-1.html.to index e9cc5ca8..61d94528 100644 --- a/templates/requests/screen-1.html.to +++ b/templates/requests/screen-1.html.to @@ -1,7 +1,10 @@ {% extends '../requests_new.html.to' %} +{% block subtitle %} +

Details of Use

+{% end %} + {% block form %} -

Details of Use

{% autoescape None %} {% if f.errors %} diff --git a/templates/requests/screen-2.html.to b/templates/requests/screen-2.html.to index 951cfe6f..af1dbb74 100644 --- a/templates/requests/screen-2.html.to +++ b/templates/requests/screen-2.html.to @@ -1,5 +1,9 @@ {% extends '../requests_new.html.to' %} +{% block subtitle %} +

Information About You

+{% end %} + {% block form %} {% autoescape None %} @@ -7,8 +11,6 @@ There were some errors, see below. {% end %} - -

Information About You

Please tell us more about yourself.

{{ f.fname_request.label }} diff --git a/templates/requests/screen-3.html.to b/templates/requests/screen-3.html.to index 15c26b51..4dbeb3d4 100644 --- a/templates/requests/screen-3.html.to +++ b/templates/requests/screen-3.html.to @@ -1,5 +1,9 @@ {% extends '../requests_new.html.to' %} +{% block subtitle %} +

Primary Government/Military
Point of Contact (POC)

+{% end %} + {% block form %} {% autoescape None %} @@ -7,7 +11,6 @@ There were some errors, see below. {% end %} -

Primary Government/Military
Point of Contact (POC)

Please designate a Primary Point of Contact that will be responsible for owning the workspace in the JEDI Cloud.

The Point of Contact will become the primary owner of the workspace created to use the JEDI Cloud. As a workspace owner, this person will have the ability to: