Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1

how to block css from changing dashboard.

I'm trying to make a whole bunch of custom themes for my users using the ThemeChooser plugin. The only problem is theme changes affect the dashboard in ways that affects usability. Is there a way to bar the .css in ThemeChooser/design/ from affecting the dashboard?

Comments

  • You can use the :not css selector?

    body:not(.Dashboard.Settings.index) p
    {
    }

    should affect all non-dashboard p's methinks.

    So in that way you can disable all CSS rules that affect usability.

    You could also edit the plugin, I think something like this would work (replace the beginning of Base_Render_Before with this snippet):

    public function Base_Render_Before($Sender) {
            $Session = Gdn::Session();
            if(gdn::controller() instanceof SettingsController || !$Sender->Data || !$this->Enabled())
            {
                  return;
            }
    

    Fair warning: I've not yet tested that snippet of code to see if it really does what you want to do, and I don't know if it will continue to work in new versions of Vanilla.

Sign In or Register to comment.