Creating custom prefix styling

Creating custom prefix styling

The custom styling only applies on the front end.

The ACP only shows the master style - it can't show custom CSS from another style.
 
What would be the best way to create a gradient background for a prefix?

&.label--btmTabloid { .m-labelVariation(white, #ff8800); }

I've tried variations of the following, but it just breaks things

background: #466368;
background: linear-gradient(to right bottom, #648880, #293f50);
 
Nice instruction Brogan but this should be core XF in style properties or someone needs to create an addon to be able to style prefix. This is just too much work. :) Point and click is enormously helpful.
 
Is there any advantage to adding these into core_labels.less as opposed to extra.less? I have been adding my custom labels into the latter with no issues.
 
You can use either approach - it's just fewer lines of code and easier to add when using the core template.
 
That's good. Since I use my custom colors in a few locations, I've created them as an add-on to insert into extra.less, but I could just as easily switch it to insert into core_labels.less safely, which would apply to any and all templates. Thanks!
 
I'm curious to that too. I used Font Awesome as forum icons for my boards when I used IPB before, but it certainly had an impact on load speed.
Not sure if that is due to all the template css change I had to do (couple of lines for every icon) or the loading of the icons themselves.
 
I used emoji for the thread prefixes, right in the prefix editor (which makes them easy to add). But I'm considering changing those to FontAwesome since I prefer it to look like a font vs. an image. That is something I can mess around with at a later date...
 
Aside from my imagination (and taste) am I also limited to adding an FA icon on custom colors only 'cause default prefix colors like blue breaks the page when adding an FA icon.

Less:
        &blue:before
        {
            .m-faContent(@fa-lightbulb);
        }
 
What would be the best way to create a gradient background for a prefix?

&.label--btmTabloid { .m-labelVariation(white, #ff8800); }

I've tried variations of the following, but it just breaks things

background: #466368;
background: linear-gradient(to right bottom, #648880, #293f50);
Was there a solution for this?

I'm trying to do the same thing, create a gradient for a particular prefix. I'm having difficulty, also. I tried adding the css code after the label stuff here and in extra.less. Added !important. Doesn't want to pick it up.
 
Top Bottom