3
0

simplified linkdin openid fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mike Sutton 2024-02-12 19:41:30 +00:00
parent c4ed061f8f
commit 2cacee7ce7
2 changed files with 3 additions and 29 deletions

View File

@ -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;
}

View File

@ -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', '<i class="kc-social-provider-logo kc-social-gray fa fa-linkedin" aria-hidden="true"></i> ');
}
// Get the span element
var span = anchor.getElementsByClassName('kc-social-provider-name')[0];