Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas

Contributor Mazi on the Templates category

Custom styling disappears when survey is copied  
Written by lovepade the 27 Oct 11 at 14:26. Global category: Templates. New
I often apply custom css styling to certain questions. I also often copy surveys (or base new ones on old ones).

The custom styling is dependant on the specific question_ID, like this:

#question2736 .answer_cell_001
background-color: #ff0000;


So when I copy a survey I must 1) copy the template, 2) assign a new template 3) change all #question classes to the new questionclass. As this is not trivial and can only be done by inspecting the stylesheet of both surveys, it would be really swell with a smart way of doing this.
1
votes
up equal down
Solution #1: maybe lesscss
Written by lovepade the 27 Oct 11 at 14:26.
less (http://lesscss.org/) allows for css variables.

Maybe this could be used to carry over the custom properties when copying a survey?

I don't know exactly how to do it though. Maybe the styling should be done under advanced question attributes, instead of manually in the style sheet?

I don't know the solution, but the problem is real :-)

See the 2 comments or propose a solution >>