Editing discussion_list.css

sifuhall

Active member
I have an interesting issue that may be a bug.

I edit the template discussion_list.css and change this line under .discussionListItem
Code:
background-color: @contentBackground;
to
Code:
/* background-color: @contentBackground; */
background-color: #FFFAF0;
Then I click Save And Exit.

I re-open discussion_list.css and the change was not saved.
 

Vincent

Well-known member
Does this happen if you do it a second time?
I can't reproduce, so maybe an issue came up ad you have to save again :)
 

Brogan

XenForo moderator
Staff member
If you have multiple templates open in different tabs then this can sometimes occur.

Try just having one tab open and opening this single template, editing and saving.

I've moved the thread from bug reports to troubleshooting for now.
 

sifuhall

Active member
Thanks for the replies.

I am able to reproduce this.

I made a video screen capture of what I am seeing.

 

Mike

XenForo developer
Staff member
You're probably confusing the parser, as what you're actually editing is the primary content background in the entirety of XF (the primary content style property). The commented out CSS isn't expected there.

Add your background change outside of the @property areas in that CSS rule.
 

sifuhall

Active member
Some progress with that.

I added the change outside of the @property and then removed the background-color from inside the @property.

My addition outside of the @property was saved, however the original background-color inside the @property reappears and I'm not able to delete it.
 

Mike

XenForo developer
Staff member
Take out the @property tags surrounding the background. You don't actually want to take the background out of there.
 

sifuhall

Active member
Thanks.

Removing

@property "primaryContent.background";
background-color: @contentBackground;
@property "/primaryContent.background";

worked.
 
Top