XF 2.1 Banner wrap

kray

Member
How do you wrap a banner?

I saw a few tuts and they did it like this:

Code:
.userBanner.Manager
{
    color: white;
    background-color: red;
    border-color: red;
    font-weight: bold;
}

yet it puts out a banner without the wrapping part
 
Hello,

What do you want exactly ? Do you have a screen ? :unsure:

Regards, SyTry

9WGplYY.png
 
Ok, add this code to your EXTRA.less :
CSS:
/* start banner wrapper */
.userBanner {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 6px;
}

.userBanner-before {
    border-top-left-radius: 3px;
    left: 0;
}

.userBanner-after {
    border-top-right-radius: 3px;
    right: 0;
}

.userBanner span {
    position: absolute;
    width: 5px;
    height: 4px;
    background-color: inherit;
    margin: -3px;
}

.message-userBanner .userBanner {
    display: block;
    margin-top: 3px;
}
/* end banner wrapper */

Screen :
199034
 
Ok, add this code to your EXTRA.less :
CSS:
/* start banner wrapper */
.userBanner {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 6px;
}

.userBanner-before {
    border-top-left-radius: 3px;
    left: 0;
}

.userBanner-after {
    border-top-right-radius: 3px;
    right: 0;
}

.userBanner span {
    position: absolute;
    width: 5px;
    height: 4px;
    background-color: inherit;
    margin: -3px;
}

.message-userBanner .userBanner {
    display: block;
    margin-top: 3px;
}
/* end banner wrapper */

Screen :
View attachment 199034

Doesn't work.

Should my custom CSS be userBanner Manager? The code you gave me just stretched it out lol

ZpC16Pq.png
 
Back
Top Bottom