Code: Select all
.online {
background-image: none;
background-position: 100% 0;
background-repeat: no-repeat;
}
background-position: 100% 0;
to background-position: 100% 100%;
<!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF -->
that is adding the online class to the post row in the viewtopic_body.html template here:Code: Select all
<div id="p{postrow.POST_ID}" class="post has-profile <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF --><!-- IF postrow.POSTER_WARNINGS --> warned<!-- ENDIF -->">
<!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF -->
conditional code to make online a conditional class of "postprofile" instead. Such that the line which emits the postprofile line now looks like:Code: Select all
<dl class="postprofile <!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF -->" id="profile{postrow.POST_ID}"<!-- IF postrow.S_POST_HIDDEN --> style="display: none;"<!-- ENDIF -->>
Code: Select all
.postprofile {
padding-bottom: 68px;
}
Code: Select all
.online {
background-position: 8px 100%;
}
Agreed, you'll play with the position of the background just like mannix was already recommending, but also adjust the internal padding of the profile area so that it "expects" the background image and will avoid allowing any text or other content to overlap the background image.DV1 wrote: Sat Dec 21, 2019 9:04 pm Maybe by extending - even slightly - the bottom parameters of the profile block?
.online { }
in the existing @media (max-width: 700px) { }
section; your choice.)Code: Select all
@media (max-width: 700px) {
.online {
background-image: none;
}
}
I see that behavior now, and why I missed it in testing. The English CSS stylesheet (/styles/prosilver/theme/en/stylesheet.css) is applied after responsive.css on this point, and so theDV1 wrote: Sun Dec 22, 2019 6:16 pm I tried the code for 'background image - none' in responsive.css at 700px but the gif still shows behind the avatar.
background-image: url(./icon_user_online.gif)
is being re-asserted, even though the default from content.css is still successfully overridden. (Since the main non-language-specific CSS stylesheet.css includes responsive.css after content.css.)Code: Select all
/* Online image */
.online { background-image: url("./icon_user_online.gif"); }
@media (max-width: 700px) {
.online {
background-image: none;
}
}
Well for what it's worth, it looks like this to me. With the image overlapping the profile text in an unreadable manner:DV1 wrote: Sun Dec 22, 2019 6:16 pm As for the, 'other profile displays', when I collapse it to small it shows okay, list-like. Unless you're referring to a detail(s) I'm not aware of.
If and when it's convenient for you to spend time with this then please let me know. Maybe apart just from my use there may be others who would like to make their own 'online' image display in the manner which we have been discussing.EA117 wrote: Sun Dec 22, 2019 8:48 pm But this is all definitely addressable if you actually want to leave the online image displayed on mobile devices.