Thank you very much, Emanuele.
I tried both, but nothing happened with this code.
I tried several other things, some I cannot remember at all, with results like this:
I have already this in my custom.css for the user avatars on the profile buttons:
.i-account:before {
display: block;
width: 2.2em;
height: 2.2em;
background: no-repeat center;
background-size: contain;
margin: -3px 0 0 -4px;
top: -7px;
left: -3px;
position: relative;
float: left;
margin-right: 0.8em;
}
So I tried this for the default avatar, which is looking as I want it, but than every user
will get the default avatar on the profile button:
#main_menu .i-account::before {
content: "";
background-image: url(../../images/default_avatar.png);
}
At the moment I have this, it is working for both kind of avatars, but the default avatar looks much to small:
#main_menu .i-account {
background-image: url(../../images/default_avatar.png);
display: inline-block;
background-repeat: no-repeat;
padding-bottom: 5px;
background-size: contain;
}
#main_menu .i-account::before { content:"";}
If I change something about the size of the default avatar, the profile button will get to much height or the user avatar will not "overlay" the default avatar or something else is happening, which is looking ugly.
I also have tried to display nothing on the profile button, if someone is using the default avatar. But than there will be an "empty place" on the profile button on the left side.
This button should get shorter without an avatar.
Maybe this would be the best solution...but I don't know, how to do it.