From 2cacee7ce788c4d5d26dadd669ef8241be6fa015 Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 12 Feb 2024 19:41:30 +0000 Subject: [PATCH] simplified linkdin openid fix --- public/helpbuild/theme.css | 10 ---------- public/helpbuild/theme.js | 22 +++------------------- 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/public/helpbuild/theme.css b/public/helpbuild/theme.css index 3b7696c..c4f43fc 100644 --- a/public/helpbuild/theme.css +++ b/public/helpbuild/theme.css @@ -48,13 +48,3 @@ div#kc-registration span a:hover { background: #57b8d7 !important; } -.kc-social-provider-name { - position: relative; - top: -21px; - padding-left: 10px; - font-size: 18px; -} -.pf-c-button.pf-m-control { - padding: 10px 5px 2px; -} - diff --git a/public/helpbuild/theme.js b/public/helpbuild/theme.js index 2be9cc6..796c305 100644 --- a/public/helpbuild/theme.js +++ b/public/helpbuild/theme.js @@ -7,25 +7,9 @@ if (privacyPolicy) { const swapLinkedIn = () => { var anchor = document.getElementById('social-linkedin-openid-connect'); - // Create an SVG element - var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); - svg.setAttribute('height', '60px'); - svg.setAttribute('width', '60px'); - svg.setAttribute('viewBox', '0 0 291.319 291.319'); - - // Create paths and append them to the SVG - var path1 = document.createElementNS('http://www.w3.org/2000/svg', 'path'); - path1.setAttribute('style', 'fill:#0E76A8;'); - path1.setAttribute('d', 'M145.659,0c80.45,0,145.66,65.219,145.66,145.66s-65.21,145.659-145.66,145.659S0,226.1,0,145.66 S65.21,0,145.659,0z'); - svg.appendChild(path1); - - var path2 = document.createElementNS('http://www.w3.org/2000/svg', 'path'); - path2.setAttribute('style', 'fill:#FFFFFF;'); - path2.setAttribute('d', 'M82.079,200.136h27.275v-90.91H82.079V200.136z M188.338,106.077 c-13.237,0-25.081,4.834-33.483,15.504v-12.654H127.48v91.21h27.375v-49.324c0-10.424,9.55-20.593,21.512-20.593 s14.912,10.169,14.912,20.338v49.57h27.275v-51.6C218.553,112.686,201.584,106.077,188.338,106.077z M95.589,100.141 c7.538,0,13.656-6.118,13.656-13.656S103.127,72.83,95.589,72.83s-13.656,6.118-13.656,13.656S88.051,100.141,95.589,100.141z'); - svg.appendChild(path2); - - // Insert the SVG at the beginning of the anchor element - anchor.insertBefore(svg, anchor.firstChild); + if (anchor) { + anchor.insertAdjacentHTML('afterbegin', ' '); + } // Get the span element var span = anchor.getElementsByClassName('kc-social-provider-name')[0];