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

Editing discussion_list.css

sifuhall

Active member
#1
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.
 

Brogan

XenForo moderator
Staff member
#3
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.
 

Mike

XenForo developer
Staff member
#5
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
#6
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
#7
Take out the @property tags surrounding the background. You don't actually want to take the background out of there.
 

sifuhall

Active member
#8
Thanks.

Removing

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

worked.