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

Lack of Interest Add style name (or id) to html classes

Discussion in 'Closed Suggestions' started by CyberAP, May 31, 2011.

  1. CyberAP

    CyberAP Well-Known Member

    If we make some modifications to styles via extra.css then all our child-styles inherit them if they don't have modified extra.css already. But if our styles are very different (for example: different #QuickSearch positioning) it may cause some extra tweaking, that means modifying every style extra.css template each time we want to change something. But if we have style name or id in the head classes we can just type in: html.default {} and then apply changes to any style with only one template.
  2. James

    James Well-Known Member

    Why can't you use the content div?
  3. CyberAP

    CyberAP Well-Known Member

    How do you want to change Search Bar position using content div?
  4. James

    James Well-Known Member

    If you want to change it on forum list:
    div.forum_list #quickSearch{

  5. CyberAP

    CyberAP Well-Known Member

    We are talking about different things.
  6. Mike

    Mike XenForo Developer Staff Member

    If they're very different, I'm not sure it makes sense to set them up in a hierarchy. :)

    It sounds like your parent style is a base (not necessarily complete) style, so why not do what we do with extra.css for it? Have your extra.css include extra2.css and make it blank in the base style, and just modify extra2.css in the child style.
    Steve F likes this.
  7. CyberAP

    CyberAP Well-Known Member

    Every style is a modification of Default style, so they all have similar classes.

    Well, that's a good idea. Thanks!
    Steve F likes this.

Share This Page