Can I define a stylevar in css_additional.css?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sadie Frost
    Senior Member
    • Dec 2001
    • 126
    • 5.0.X

    Can I define a stylevar in css_additional.css?

    Is there any way to define a style variable in the css_additional.css template?

    For example, I'd like to make an entry for, say, the color property of button_disabled_border. Can that be done or would I have to go back and list the original css classes in order to do that?

    Thanks
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Erm, what exactly do you want to do?

    Comment

    • Sadie Frost
      Senior Member
      • Dec 2001
      • 126
      • 5.0.X

      #3
      I want to have all the other variables that use the same color point at one stylevar, so I only have to edit like 8 style vars for each style instead of all of them.

      So for example, all the border style variables would be listed in css_additional with background as the color of button_disabled_border. Then I would only have to edit the button_disabled_border style variable to change all of the borders to the same color.


      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        You can add the CSS rules that you want to override to additional.css, and you can use a stylevar as its defined in additional.css, but you cannot define a stylevar in additional.css

        Comment

        • Sadie Frost
          Senior Member
          • Dec 2001
          • 126
          • 5.0.X

          #5
          That answers my question - thanks Zachery

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73981

            #6
            You can make one stylevar inherit from another in the AdminCP. To do this, you need to put the AdminCP into Debug mode by uncommenting the debug line in core/includes/config.php. Once you do that, additional fields will appear when editing stylevars. One of them allows you to put in another stylevar to inherit from.

            Whatever you do though, do not edit the MASTER style. You will break your site.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment


            • Sadie Frost
              Sadie Frost commented
              Editing a comment
              Thank you Wayne - that's terrific

          Related Topics

          Collapse

          Working...