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

Editing discussion_list.css

Discussion in 'Troubleshooting and Problems' started by sifuhall, May 26, 2011.

  1. sifuhall

    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
    background-color: @contentBackground;
    /* background-color: @contentBackground; */
    background-color: #FFFAF0;
    Then I click Save And Exit.

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

    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 :)
  3. Brogan

    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.
  4. sifuhall

    sifuhall Active Member

    Thanks for the replies.

    I am able to reproduce this.

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

  5. Mike

    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.
  6. sifuhall

    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.
  7. Mike

    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.
  8. sifuhall

    sifuhall Active Member



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


Share This Page