Do you think you can help me with a tutorial where exactly to add those codes?Madalin10 wrote: ↑Mon Mar 18, 2024 8:53 am If you only want to add icons to the legend (but not the usernames aswell), you can do this via css easily by targeting the <a> element and using :before or :after.
This is just an example, you can even use font awesome / google material icons etc..
-> https://jsfiddle.net/hteoya23/
At the end of colours.css or in a separate file, so that you can find them easily.MortallCsAl3x wrote: ↑Tue Mar 19, 2024 7:21 pm Do you think you can help me with a tutorial where exactly to add those codes?
Code: Select all
/* Common properties on the href attributes that link a group page. */
[href^="./memberlist.php?mode=group&g="]::before {
display: inline-block;
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
font-variant: normal;
font-size: 1.2em;
line-height: 1;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding-right: 3px;
}
/* Group ID 4 */
[href^="./memberlist.php?mode=group&g=4"]::before {
content: "\f0e3";
}
/* Group ID 5 */
[href^="./memberlist.php?mode=group&g=5"]::before {
content: "\f013";
}
It works perfectly, but I want the icon to appear here too when someone posts don't nuai in the caption! look where I mean, I'll leave you a screenshot!
Code: Select all
[href^="./memberlist.php?mode=group&g="]::before,
.username-coloured::before {
display: inline-block;
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
font-variant: normal;
font-size: 1.1em;
line-height: 1;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding-right: 3px;
}
/* Group/User color #00AA00 */
[href^="./memberlist.php?mode=group&g="][style*="#00AA00"]::before,
.forums .username-coloured[style*="#00AA00"]::before {
content: "\f0e3";
}
/* Group/User color #AA0000 */
[href^="./memberlist.php?mode=group&g="][style*="#AA0000"]::before,
.forums .username-coloured[style*="#AA0000"]::before {
content: "\f013";
}