[cXF] Highlight new menu item

XF 2.2 / 2.3 [cXF] Highlight new menu item

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
[cXF] Highlight new menu item

XF 2.2 / 2.3 [cXF] Highlight new menu item

Catégorie Catégorie Modifications Templates
Titre du sujet Titre du sujet [cXF] Highlight new menu item
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 2
Affichages Affichages 210
Réaction Réaction 1
Dernier message par Dernier message par XenforoNoob90

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
4 649
Messages
12 075
Solutions
81
J'aime
7 620
Points
198
This is a DIY tutorial to achieve this :

2019-04-18_20-40-55.gif


As you can see you can get an icon that changes on hover only on new items just to highlight them a bit more.

Open your extra.less template and add the code :

Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Vous devez répondre avant de pouvoir voir le contenu des données cachées.

To edit the icon check class &:before. To change the Font Awesome icon edit the word dot-circle (in above example) with any other icon name.

To change the icon color edit the color property.
To edit icon when hover check class &:hover:before.

Want a Pro icon of a specific style?

If you want an icon with one of the Font Awesome 5 Pro styles - light, solid or duotone - use the above code like this (example): .m-faContent(@fa-var-duotone-sign-in);. As you can see, you add the style name (in that case duotone) inside the code right after the var-.
Edit .m-faBase(); and change it to .m-faBase('Pro', @faWeight-solid);, .m-faBase('Pro', @faWeight-regular); or .m-faBase('Pro', @faWeight-light);.

Want a Brand icon?

In XenForo 2.3 you don't need to specify the Brands icon. Use the code as you would for any other icon.
Edit .m-faBase(); and change it to .m-faBase('Brands');.
 
Sujets similaires Les plus vues Voir plus
Retour
Haut Bas