View Revisions: Issue #14520

Summary 14520: Lots of styles for "print answers" view are hardcoded within Twig files which makes adjusting the page design pretty difficult
Revision 2019-02-12 16:40 by cdorin
Description

Some example of hard coded design details at some "print answers" twig files (of which most can't be edited at the theme editor!):
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_ranking.twig#L7
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_boilerplate.twig#L6
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_multiple-opt.twig#L14
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/printanswers_question.twig#L5

There are many more affected at https://github.com/LimeSurvey/LimeSurvey/tree/master/themes/survey/vanilla/views/subviews/printanswers/question_types.

I suggest removing these hard coded design details and replacing them with proper SPAN or similar elements which get assigned some additional CSS classes so we (and all other users) can style those details at the custom.css file.

Revision 2019-02-12 12:11 by Mazi
Description

Some example of hard coded design details at some "print answers" twig files (of which most can't be edited at the theme editor!):
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_ranking.twig#L7
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_boilerplate.twig#L6
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_multiple-opt.twig#L14
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/printanswers_question.twig#L5

There are many more affected at https://github.com/LimeSurvey/LimeSurvey/tree/master/themes/survey/vanilla/views/subviews/printanswers/question_types.

I suggest removing these hard coded design details and replacing them with proper SPAN or similar elements which get assigned some additional CSS classes so we (and all other users) can style those details at the custom.css file.