From 38884bdb37b516ac49f340254bf2ba86921be6b4 Mon Sep 17 00:00:00 2001 From: Ans Date: Thu, 12 Sep 2024 11:27:34 -0400 Subject: [PATCH] Organize heading overrides --- cfgov/unprocessed/apps/filing-instruction-guide/css/main.scss | 1 + .../apps/paying-for-college/css/cf-enhancements.scss | 1 + .../paying-for-college/css/college-costs/financial-item.scss | 1 + cfgov/unprocessed/apps/paying-for-college/css/disclosures.scss | 3 +++ cfgov/unprocessed/apps/prepaid-agreements/css/main.scss | 2 ++ cfgov/unprocessed/apps/regulations3k/css/reg-search.scss | 1 + cfgov/unprocessed/css/molecules/social-media.scss | 1 + cfgov/unprocessed/css/organisms/post-preview.scss | 1 - cfgov/unprocessed/css/organisms/secondary-nav.scss | 2 +- 9 files changed, 11 insertions(+), 2 deletions(-) diff --git a/cfgov/unprocessed/apps/filing-instruction-guide/css/main.scss b/cfgov/unprocessed/apps/filing-instruction-guide/css/main.scss index 14a05d5da1..483a0b8613 100644 --- a/cfgov/unprocessed/apps/filing-instruction-guide/css/main.scss +++ b/cfgov/unprocessed/apps/filing-instruction-guide/css/main.scss @@ -22,6 +22,7 @@ &:not(.m-info-unit__heading-text) > h4 { @include h3; + // Override for h3 margin. margin-top: 30px; } diff --git a/cfgov/unprocessed/apps/paying-for-college/css/cf-enhancements.scss b/cfgov/unprocessed/apps/paying-for-college/css/cf-enhancements.scss index b15227f978..b2bdd6f372 100644 --- a/cfgov/unprocessed/apps/paying-for-college/css/cf-enhancements.scss +++ b/cfgov/unprocessed/apps/paying-for-college/css/cf-enhancements.scss @@ -82,6 +82,7 @@ &__text { @include h4; + // Override for h4 margin. margin: 0; .short-desc { diff --git a/cfgov/unprocessed/apps/paying-for-college/css/college-costs/financial-item.scss b/cfgov/unprocessed/apps/paying-for-college/css/college-costs/financial-item.scss index 6e26ad5b0e..257f25a884 100644 --- a/cfgov/unprocessed/apps/paying-for-college/css/college-costs/financial-item.scss +++ b/cfgov/unprocessed/apps/paying-for-college/css/college-costs/financial-item.scss @@ -42,6 +42,7 @@ .financial-item__label > :not(p), .financial-item__value { @include heading-4; + // Override for h4 margin. margin-bottom: 0; } } diff --git a/cfgov/unprocessed/apps/paying-for-college/css/disclosures.scss b/cfgov/unprocessed/apps/paying-for-college/css/disclosures.scss index 4be17d3251..9c0a2ab417 100644 --- a/cfgov/unprocessed/apps/paying-for-college/css/disclosures.scss +++ b/cfgov/unprocessed/apps/paying-for-college/css/disclosures.scss @@ -158,6 +158,7 @@ $bp-graph-cols-min: 740px; &__prompt { @include heading-2; + // Override for h2 heading. margin-bottom: math.div(30px, $size-ii) + em; } @@ -188,6 +189,7 @@ $bp-graph-cols-min: 740px; &__heading, &__label { @include heading-5; + // Override for h5 margin. margin-bottom: 0; } @@ -1416,6 +1418,7 @@ $bp-graph-cols-min: 740px; &__summary-heading { @include heading-4; + // Override for h4 margin and text-transform. margin-bottom: math.div(10px, $size-iv) + em; text-transform: none; } diff --git a/cfgov/unprocessed/apps/prepaid-agreements/css/main.scss b/cfgov/unprocessed/apps/prepaid-agreements/css/main.scss index fca2d0ca63..1df542e95e 100644 --- a/cfgov/unprocessed/apps/prepaid-agreements/css/main.scss +++ b/cfgov/unprocessed/apps/prepaid-agreements/css/main.scss @@ -27,6 +27,7 @@ font-size: inherit; @include heading-4; + // Override for h4 margin. margin-bottom: math.div(math.div($grid-gutter-width, 6), $base-font-size-px) + em; @@ -105,6 +106,7 @@ .prepaid-agreements-detail { dt h2 { @include h4; + // Override for h4 margin. margin-bottom: math.div(math.div($grid-gutter-width, 6), $base-font-size-px) + em; } diff --git a/cfgov/unprocessed/apps/regulations3k/css/reg-search.scss b/cfgov/unprocessed/apps/regulations3k/css/reg-search.scss index a4c4f18207..df8e5ddfe4 100644 --- a/cfgov/unprocessed/apps/regulations3k/css/reg-search.scss +++ b/cfgov/unprocessed/apps/regulations3k/css/reg-search.scss @@ -63,6 +63,7 @@ } &__label { @include h4; + // Override for h4 margin. margin-bottom: 0; } } diff --git a/cfgov/unprocessed/css/molecules/social-media.scss b/cfgov/unprocessed/css/molecules/social-media.scss index 44a187afd4..e5c6ba7281 100644 --- a/cfgov/unprocessed/css/molecules/social-media.scss +++ b/cfgov/unprocessed/css/molecules/social-media.scss @@ -26,6 +26,7 @@ &--share { .m-social-media__heading { @include heading-5; + // Override for h5 margin. margin: auto 0; } diff --git a/cfgov/unprocessed/css/organisms/post-preview.scss b/cfgov/unprocessed/css/organisms/post-preview.scss index a52fb4f248..469968427d 100644 --- a/cfgov/unprocessed/css/organisms/post-preview.scss +++ b/cfgov/unprocessed/css/organisms/post-preview.scss @@ -77,7 +77,6 @@ &__subtitle { @include heading-6; - // margin-top: math.div(math.div($grid-gutter-width, 2), $base-font-size-px) + em; clear: both; } diff --git a/cfgov/unprocessed/css/organisms/secondary-nav.scss b/cfgov/unprocessed/css/organisms/secondary-nav.scss index b8360c1452..b35d447fbc 100644 --- a/cfgov/unprocessed/css/organisms/secondary-nav.scss +++ b/cfgov/unprocessed/css/organisms/secondary-nav.scss @@ -160,7 +160,7 @@ &--parent { @include heading-4; - + // Override for h4 margin. margin-bottom: inherit; } }