Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Sir Osis of Liver on May 01, 2023, 10:55:28 PM

Title: Curve2 avatars
Post by: Sir Osis of Liver on May 01, 2023, 10:55:28 PM
What removes avatar from poster info in phone view?
Title: Re: Curve2 avatars
Post by: Kindred on May 02, 2023, 12:31:09 AM
Responsive css based on screen size
Title: Re: Curve2 avatars
Post by: Sir Osis of Liver on May 02, 2023, 06:01:50 PM
Spent a good hour last night looking in there.  Only two classes incude 'avatar' -


#alerts .alert_image .avatar {
display: none;
}
#alerts .alert_image .avatar + .alert_icon {
position: static;
}


No effect.  And there's nothing in index.css that has any effect.
Title: Re: Curve2 avatars
Post by: Diego Andrés on May 02, 2023, 06:25:57 PM
Unfortunately, it hides everything and then picks what to show/bring back.
Try like this

Code (Search) Select
.user_info li,
.custom_fields_above_member {
display: none;
}

Code (Replace) Select
.user_info li:not(.avatar),
.custom_fields_above_member {
display: none;
}
.user_info li.avatar::before {
display: none;
}
Title: Re: Curve2 avatars
Post by: Sir Osis of Liver on May 02, 2023, 06:55:09 PM
That works.  Added this to make it smaller -


@media (max-width: 768px) {
.poster img.avatar {
max-height: 60px !important;
}
}