Problem with profile banner and custom CSS

lazarote

web enthusiastic
Collaborate
Registered
Joined
Jun 24, 2019
Messages
141
Points
53

Reputation:

hi, i'm having trouble with profile banners for a long time. In xenforo 2.1 it worked perfectly with the Themehouse Covers addon, but now with the integrated option there is an error when I use this CSS code, I attach a capture of the bug and send the code

IMG_20210627_105445.jpg


CSS:
background: #2E3192;
background: -webkit-radial-gradient(ellipse farthest-corner at top left, #2E3192 12%, #18FFFF 89%);
background: -moz-radial-gradient(ellipse farthest-corner at top left, #2E3192 12%, #18FFFF 89%);
background: radial-gradient(ellipse farthest-corner at top left, #2E3192 12%, #18FFFF 89%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,529
Points
523

Reputation:

but now with the integrated option there is an error when I use this CSS code, I attach a capture of the bug and send the code
lazaroteWhat kind of error you got?

Is the screenshot on how it has to look like? Or how it looks currently in the new xenforo installation?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,529
Points
523

Reputation:

I created a template modification for member_tooltip and for member_tooltip.less this is from std. theme

First one:
1625070960400.png

Find:

PHP:
#(<xf:profilebanner\s+user="\$user"\s+size="m"\s+class="memberTooltip-header"\s+toggle="memberTooltip--withBanner">)(.*)(<\/xf:profilebanner>)#siU

Replace with:
PHP:
$1
$3
<div class="memberTooltip-header">
$2
</div>

Second:
1625070977600.png

Find:
Less:
.memberTooltip-header
{
    display: table;
    table-layout: fixed;
    width: 100%;
    padding: @_memberTooltip-padding;
    .xf-memberTooltipHeader();
}

Replace with:
Code:
.memberTooltip-header
{
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 180px;
    padding: @_memberTooltip-padding;
    .xf-memberTooltipHeader();
}

Then it looks like this

1625071183000.png
Maybe you need to adapt the colors.
 
Top