From 62173f663ea11f62e75aa8d7e62b10d912407d19 Mon Sep 17 00:00:00 2001 From: TeshuKatepalli Date: Wed, 13 Dec 2023 12:34:48 +0530 Subject: [PATCH] Updated the minor issues in the buttons and grey-background --- blocks/rte/rte.css | 3 ++- blocks/showcards/showcards.css | 2 +- icons/aldevron-solid-orange-background.webp | Bin 0 -> 2558 bytes scripts/aem.js | 8 ++++++++ styles/Typo.css | 2 ++ styles/styles_2020.css | 4 +--- styles/template.css | 1 - 7 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 icons/aldevron-solid-orange-background.webp diff --git a/blocks/rte/rte.css b/blocks/rte/rte.css index 70f3fab3..9eaf4279 100644 --- a/blocks/rte/rte.css +++ b/blocks/rte/rte.css @@ -1,3 +1,4 @@ .rte { - padding: 16px 0; + padding-top: 16px; + padding-bottom: 16px; } \ No newline at end of file diff --git a/blocks/showcards/showcards.css b/blocks/showcards/showcards.css index d06f2609..3b7d0a0e 100644 --- a/blocks/showcards/showcards.css +++ b/blocks/showcards/showcards.css @@ -1,5 +1,5 @@ .custom-bg { - background-image: url('https://www.aldevron.com/hs-fs/hubfs/aldevron-solid-orange-background.png?width=1800&name=aldevron-solid-orange-background.png'); + background-image: url('../../icons/aldevron-solid-orange-background.webp'); } .lists { diff --git a/icons/aldevron-solid-orange-background.webp b/icons/aldevron-solid-orange-background.webp new file mode 100644 index 0000000000000000000000000000000000000000..883120aa9047a9889723dc44e4d876582a1b081a GIT binary patch literal 2558 zcmWIYbaVU0$-ofq>J$(bV4?5|$ey6iIG0h2gZ(d)ou|q~w?&H-7bJ G1pok^`fP6i literal 0 HcmV?d00001 diff --git a/scripts/aem.js b/scripts/aem.js index 09232469..355a975f 100644 --- a/scripts/aem.js +++ b/scripts/aem.js @@ -486,11 +486,18 @@ function decorateButtons(element) { if (a.href !== a.textContent) { const up = a.parentElement; const twoup = a.parentElement.parentElement; + const threeup = twoup.parentElement; if (!a.querySelector('img')) { if (up.childNodes.length === 1 && (up.tagName === 'P' || up.tagName === 'DIV')) { a.className = 'button'; // default up.classList.add('button-container'); } + if (a.children[0]) { + if (a.children[0].tagName === 'STRONG') { + a.setAttribute('target','_blank'); + a.children[0].classList.add('text-normal'); + } + } if ( up.childNodes.length === 1 && up.tagName === 'STRONG' @@ -531,6 +538,7 @@ function decorateButtons(element) { && up.tagName === 'EM' && twoup.childNodes.length === 1 && twoup.tagName === 'STRONG' + && threeup.tagName === 'DIV' ) { a.setAttribute('target', '_blank'); a.classList.add('style-normal'); diff --git a/styles/Typo.css b/styles/Typo.css index 23256fe0..2ba6a2af 100644 --- a/styles/Typo.css +++ b/styles/Typo.css @@ -1068,6 +1068,8 @@ body.mrna input[type="submit"]:hover { .bg-grey { background-color: #ededed!important; + padding-left: 20px; + padding-right: 20px; } .bg-white { diff --git a/styles/styles_2020.css b/styles/styles_2020.css index e79c2822..39ab6b84 100644 --- a/styles/styles_2020.css +++ b/styles/styles_2020.css @@ -578,8 +578,7 @@ } .blog.anniversary-25 .blog-bottom { - background: url('https://www.aldevron.com/hubfs/aldevron_template/anniversary-btm-bg.webp') 50% 50% no-repeat; - background-size: cover + background-size: cover; } .blog.anniversary-25 .blog-bottom h3 { @@ -605,7 +604,6 @@ } .linkedin-bottom a::before { - background: url('https://www.aldevron.com/hubfs/aldevron_template/blog-linkedin-bg.webp') no-repeat 50% 50%; background-size: cover; content: ""; height: 100%; diff --git a/styles/template.css b/styles/template.css index ecf061a6..5d70bd84 100644 --- a/styles/template.css +++ b/styles/template.css @@ -880,7 +880,6 @@ body.purple .mmg-collapsible.open>.module-title,body.purple .mmg-collapsible>.mo } #careers .location-selector select { - background: url("https://www.aldevron.com/hubfs/aldevron_template/select-arrow-down.svg") 97% 50% no-repeat; background-size: 12px 6px; border-radius: 4px; padding-right: 24px