Fixed Transparent images visible twice when expanded

Luke F

Well-known member
vk98.png


Perhaps not strictly a bug, but it might be better to have the expanded version's css background match the post background or such
 
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.
 
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.
 
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. :)
 
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.
 
Top Bottom