Announcement

Collapse
No announcement yet.

Can I define a stylevar in css_additional.css?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sadie Frost
    commented on 's reply
    Thank you Wayne - that's terrific

  • Wayne Luke
    replied
    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.

    Leave a comment:


  • Sadie Frost
    replied
    That answers my question - thanks Zachery

    Leave a comment:


  • Zachery
    replied
    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

    Leave a comment:


  • Sadie Frost
    replied
    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.


    Leave a comment:


  • Zachery
    replied
    Erm, what exactly do you want to do?

    Leave a comment:


  • Sadie Frost
    started a topic Can I define a stylevar in css_additional.css?

    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

Related Topics

Collapse

Working...
X