Skip to content

Commit

Permalink
CHEMH-000: fix to a background color bug (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese authored Sep 29, 2023
1 parent b1453cb commit d14cd44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/css/chem_h_subtheme.css

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/js/chem_h_subtheme.behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@
.removeAttr('height')
.removeAttr('width');
});

// Heading change for the halfpill title banner.
$('.chemh-wrapper--banner-halfpill-title h2').contents().unwrap().wrap('<h1/>');

// Bckground color needed on only the Halfpill title banner.
$('.chemh-wrapper--banner-halfpill-title').parents().find('.su-page-banner').addClass('su-page-banner--title');

// Replace <a> tag for event node event type taxonomy with <p>
$('.node.event .section-editorial-content .su-event-type a').contents().unwrap().wrap('<p/>');

// Replace <a> tag for news node news topics taxonomy with <p>
$('.news.node .layout--section-news-header .section-header .su-news-topics a').contents().unwrap().wrap('<p/>');

Expand Down
2 changes: 1 addition & 1 deletion src/scss/components/banner/_banner--halfpill-title.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// .chemh-wrapper--banner-wholepill
// .chemh-wrapper--banner-halfpill-title

.su-page-banner {
.su-page-banner--title {
background: #000 url(../../assets/png/header-sm-000--cropped.png) no-repeat 50%/cover;

.chemh-wrapper--banner-halfpill-title {
Expand Down

0 comments on commit d14cd44

Please sign in to comment.