XF 2.2 Lightning Bolt icon show on desktop as well as mobile

Solution
Just add this to extra.less, for the icon + the text to show:

Code:
.p-nav .p-navgroup-link--whatsnew {
    display: block;
}

Or icon only:

Code:
.p-nav .p-navgroup-link--whatsnew {
    display: block;
    .p-navgroup-linkText { display: none; }
}
Just add this to extra.less, for the icon + the text to show:

Code:
.p-nav .p-navgroup-link--whatsnew {
    display: block;
}

Or icon only:

Code:
.p-nav .p-navgroup-link--whatsnew {
    display: block;
    .p-navgroup-linkText { display: none; }
}
 
Solution
For what it's worth, easily done via CSS still. I've just never been a fan of installing an add-on for what a tiny bit of CSS can do. I appreciate that Bassman add-ons provide additional options though.

Code:
.p-nav 
{
    .p-navgroup.p-account
    {
        border-top-right-radius: 0;
    }
    .p-navgroup.p-discovery
    {
        margin-left: 0;
        background-color: transparent;
        border-top-left-radius: 0;
        .p-navgroup-link--whatsnew
        {
            display: block;
            border-left: 1px solid @xf-publicHeaderAdjustColor;
            border-top-right-radius: @xf-borderRadiusMedium;
            border-top-left-radius: 0;
            background: @xf-publicHeaderAdjustColor;
            .p-navgroup-linkText { display: none; }
        }
        .p-navgroup-link--search
        {
            margin-left: 5px;
            background: @xf-publicHeaderAdjustColor;
        }
    }
}

If you're really picky about it :D

Screenshot_4.webp
 
Which is why I said: I appreciate that Bassman add-ons provide additional options though. :)
@Russ unfortunately can't be there all the time (Pixel Exit and all) and I believe I did tip him for this (if I recollect) which is why it's free.

But hopefully, anyone who chooses your edit over the add on throws ya a couple of bucks for that solution. :)
 
For what it's worth, easily done via CSS still. I've just never been a fan of installing an add-on for what a tiny bit of CSS can do. I appreciate that Bassman add-ons provide additional options though.

Code:
.p-nav
{
    .p-navgroup.p-account
    {
        border-top-right-radius: 0;
    }
    .p-navgroup.p-discovery
    {
        margin-left: 0;
        background-color: transparent;
        border-top-left-radius: 0;
        .p-navgroup-link--whatsnew
        {
            display: block;
            border-left: 1px solid @xf-publicHeaderAdjustColor;
            border-top-right-radius: @xf-borderRadiusMedium;
            border-top-left-radius: 0;
            background: @xf-publicHeaderAdjustColor;
            .p-navgroup-linkText { display: none; }
        }
        .p-navgroup-link--search
        {
            margin-left: 5px;
            background: @xf-publicHeaderAdjustColor;
        }
    }
}

If you're really picky about it :D

View attachment 234255
this is missing the hover style attributes.
 
Just add this to extra.less, for the icon + the text to show:

Code:
.p-nav .p-navgroup-link--whatsnew {
    display: block;
}

Or icon only:

Code:
.p-nav .p-navgroup-link--whatsnew {
    display: block;
    .p-navgroup-linkText { display: none; }
}
Wish I had the time to learn this CSS stuff better. This is such a nice, simple way to add it. And I don't mind it being next to Search. Seems to make sense to have it there, really.
 
Yea it's not working correctly. Just the code from Russ breaks mobile

You could just apply the CSS in a media query wrapper so it only happens above the navigation break:

Code:
@media (min-width: (@xf-responsiveMedium  + 1))
{
    .p-nav 
    {
        .p-navgroup.p-account
        {
            border-top-right-radius: 0;
        }
        .p-navgroup.p-discovery
        {
            margin-left: 0;
            background-color: transparent;
            border-top-left-radius: 0;
            .p-navgroup-link--whatsnew
            {
                display: block;
                border-left: 1px solid @xf-publicHeaderAdjustColor;
                border-top-right-radius: @xf-borderRadiusMedium;
                border-top-left-radius: 0;
                background: @xf-publicHeaderAdjustColor;
                .p-navgroup-linkText { display: none; }
            }
            .p-navgroup-link--search
            {
                margin-left: 5px;
                background: @xf-publicHeaderAdjustColor;
            }
        }
    }
}

Removes the formatting so there are no background colors.
 
Back
Top Bottom