• Report Links
    We do not store any files or images on our server. XenPaste only index and link to content provided by other non-affiliated sites. If your copyrighted material has been posted on XenPaste or if hyperlinks to your copyrighted material are returned through our search engine and you want this material removed, you must contact the owners of such sites where the files and images are stored.

Add icons to prefixes


🦊 DNSProxy Layer 7 DDOS Protection 🥷 / DMCA Ignored 🫡 / Advanced Browser Checks 🕸

King

Administrator
Joined
Jul 12, 2021
Messages
25,005
Reaction score
5
Points
38
In some cases, adding icons to labels makes them more intuitive, let's see how to add them!

Full code:


Code:

Code:
.label.label--PrefixName {
    background: #df9a6a;
    color: #fff;
    border-radius: 6px;
    border: 2px solid #bf8d6c;
   
    &:hover {
        background: #938a7b;
        color: #fff;
        border: 2px solid #666361;
    }
    &:before {
        .m-faBase();
        .m-faContent(@fa-var-text);
    font-weight: 400;
    color: #fff;
    }
}

With this code you can have a prefix like the one in the example, add or modify the css to customize it


Prefix example
Prefix example when we hover
HaIKeZ6.png
M1UCaqa.png
1. Here we modify the appearance of the prefix and name
2. Here we modify the appearance of the prefix when we hover
Code:

Code:
.label.label--PrefixName {
    background: #df9a6a;
    color: #fff;
    border-radius: 6px;
    border: 2px solid #bf8d6c;
Code:

Code:
 &:hover {
        background: #938a7b;
        color: #fff;
        border: 2px solid #666361;
    }
3. And here we modify and add the awesome font code. Leaving the start @fa-var-
4.When you finish, in your label you have to paste the code with the name
Code:

Code:
&:before {
        .m-faBase();
        .m-faContent(@fa-var-text);
        padding-right: 5px;
        font-weight: 400;
        color: #fff;
    }
}
LplOuiQ.png

Continue reading...
 
Top