Ignore CSS when in layout view

Posted by Community Admin on 05-Aug-2018 12:51

Ignore CSS when in layout view

All Replies

Posted by Community Admin on 20-Oct-2011 00:00

Hi There,

I would like to ignore my theme CSS when switching into the layout view of a template. The reason for this is that I limit my header to a certain height, what happens then is that the layout controls gets stacked on on top of another and I can't edit the properties of the control at the bottom becuase the edit button is not visible. Is this in anyway possible?

Regards,
Jean Erasmus

Posted by Community Admin on 20-Oct-2011 00:00

Yeah, I always do somewhat custom CSS for the designer

If you inspect the html, the BODY tag should have a class of something like sfPageEditor or something (I dont have an instance here to check atm)

So then just override\fix the styles you want to be different based off of that!

Example

Current Style:
.header
   height: 200px;


//so we want to hide it in the designer
.sfPageEditor .header
  display:none;

Posted by Community Admin on 21-Oct-2011 00:00

Hi Steve,

Thanks for pointing me into right direction, much appreciated.

Regards,
Jean Erasmus

This thread is closed