• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Transparent images visible twice when expanded

Jake Bunce

XenForo moderator
Staff member
#3
Here is a fix:

Admin CP -> Appearance -> Templates -> EXTRA.css

Add this code:

Code:
.bbCodeImageFullSize
{
	background-color: @contentBackground;
}
@contentBackground is the background color of the message area in the default style so this should be appropriate for most styles that use the palette.
 

Jake Bunce

XenForo moderator
Staff member
#4
Or this would actually be more correct:

Code:
.bbCodeImageFullSize
{
	background-color: @primaryContent.background-color;
}
That way it literally uses the background of primaryContent and not just the same color swatch.
 

Mike

XenForo developer
Staff member
#5
I think I'm actually using the entire set of background properties specified for @primaryContent for this now, but the concept is similar to what Jake suggested. :)
 

CyberAP

Well-known member
#6
I think I'm actually using the entire set of background properties specified for @primaryContent for this now, but the concept is similar to what Jake suggested. :)
You could just set
Code:
visibility: hidden;
for the parent image and
Code:
visibility: visible;
for child.
That way we don't screw up custom styles and properly display semi-transparent images.